<template>
	<view class="index-wrap">
		<van-button round block type="primary" native-type="submit">提交</van-button>
		<div class="index-wrap-block">
		      <div style="padding: 20px 0 40px 0; font-size: 15px; text-align:center;">
		        <span>本服务由浙江政务网、永康市应急管理局提供</span><br />
		        <span>服务咨询热线：</span><span style="color: #1492FF">0579-87101962</span>
		      </div>
		    </div>
	</view>
</template>

<script setup>
import {
  inject, reactive, ref, onMounted,
} from 'vue';
import { useRequest } from 'ahooks-vue';
import { appTweets } from '@/api/index';
import { answerquery } from '@/api/question'

// answerquery().then(res=>{
// 	console.log(res)
// })

// const global = inject('global');
// const $store = inject('store');
// const { user } = $store.state;
// const router = useRouter()

// function toPath(name) {
//   if (name == "danger-company" && user?.userInfo?.tag == 'enterprise') {
//     router.push({ name: 'danger-company-hidden', query: { entId: user?.userInfo?.enterpriseCode } });
//     return;
//   } else if (name == "injury-company" && user?.userInfo?.tag == 'enterprise') {
//     router.push({ name: 'injury-company-view', query: { entId: user?.userInfo?.enterpriseCode } });
//     return;
//   } else if (name == "notification-list" && user?.userInfo?.tag == 'enterprise') {
//     router.push({ name: 'notification-list', query: { entId: user?.userInfo?.enterpriseCode } });
//     return;
//   }
//   router.push({ name });
// }

// function goDetail(path) {
//   router.push({ name: path })
// }

// const { data: noticeList, loading: noticeLoading } = useRequest(() => appTweets({
//   type: "notice",
//   pageNumber: 1,
//   pageSize: 5
// }), {
//   formatResult: (res) => res.contentList,
// });

const { run: getRun, data: quesInfo } = useRequest(answerquery);
</script>

<style lang="less" scoped>
.index-wrap {
	/* background-color: var(--bg-color-f5f5f5); */

	.van-grid {
		background-color: #fff;
		margin-bottom: 30px;
	}

	.van-grid-item {
		.van-image {
			width: 102px;
			margin-bottom: 10px;
		}
	}

	:deep(.van-card__thumb) {
		width: 240px;
		height: 120px;
	}

	:deep(.van-card__header) {
		height: 120px;
	}

	:deep(.van-card__content) {
		min-height: 120px;
	}

	.van-card {
		background-color: #fff;
		padding: 30px 30px;
	}

	&-block {
		padding: 0 20px;
		background-color: #fff;
		margin-bottom: 30px;

		> img {
			display: block;
			width: 100%;
		}

		.title {
			display: flex;
			align-items: center;
			justify-content: space-between;
			font-size: 28px;
			color: #333;
			padding: 20px 20px 20px 36px;
			/* border-bottom: 1px solid var(--border-color); */
			position: relative;

			&::before {
				content: '';
				position: absolute;
				left: 20px;
				height: 28px;
				top: 50%;
				width: 4px;
				border-radius: 4px;
				margin-top: -14px;
				/* background-color: var(--theme-color); */
			}

			text:first-child {
				font-weight: bold;
			}

			text:last-child {
				color: #999;
				font-size: 12px;
			}
		}
	}
}
</style>
