You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.vue 24KB

1 yıl önce
1 yıl önce
1 yıl önce
1 yıl önce
1 yıl önce
1 yıl önce
1 yıl önce
2 yıl önce
2 yıl önce
2 yıl önce
2 yıl önce
1 yıl önce
1 yıl önce
1 yıl önce
1 yıl önce
1 yıl önce
1 yıl önce
1 yıl önce
1 yıl önce
1 yıl önce
1 yıl önce
1 yıl önce
1 yıl önce
1 yıl önce
1 yıl önce
1 yıl önce
1 yıl önce
1 yıl önce
1 yıl önce
1 yıl önce
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068
  1. <template>
  2. <filter>
  3. <!-- <view class="statusBar" :style="{height:statusBarHeight+'px'}" v-show="isShowBar"></view> -->
  4. <view class="wrapper">
  5. <!-- Banner -->
  6. <view class="banner">
  7. <swiper class="swiper" circular :indicator-dots="swiper.indicatorDots" :autoplay="swiper.autoplay"
  8. :interval="swiper.interval" :duration="swiper.duration"
  9. indicator-active-color="rgba(0, 179, 139, 1)" :easing-function="swiper.easing">
  10. <block v-if="state.swiperList.length >0" v-for="item in state.swiperList" :key="item.id">
  11. <swiper-item class="swiper-item" @click="gotoLink(item)">
  12. <image :src="item.imgUrl?strReplace(item.imgUrl):fileURL + 'image/index/banner-1.png'"
  13. mode="widthFix"></image>
  14. </swiper-item>
  15. </block>
  16. <block v-else>
  17. <swiper-item class="swiper-item">
  18. <image :src="fileURL + 'image/index/banner-1.png'" mode="widthFix"></image>
  19. </swiper-item>
  20. </block>
  21. </swiper>
  22. <view class="notice">
  23. <image class="icon" :src="fileURL + 'image/index/icon-notice.png'" lazy-load="false"
  24. mode="aspectFill">
  25. </image>
  26. <!-- <text class="notice-text">{{state.notice}}</text> -->
  27. <uni-notice-bar style="width: 100%;" scrollable single :text="state.notice">
  28. </uni-notice-bar>
  29. </view>
  30. </view>
  31. <!-- 按钮导航 -->
  32. <view class="nav">
  33. <view class="item-box" @click="$util.navTo('/pages/recharge/select-car',true)">
  34. <view class="item item-1">
  35. <image :src="fileURL + 'image/index/item-1.png'" mode="aspectFill" />
  36. </view>
  37. <view class="text">储值卡充值</view>
  38. </view>
  39. <view class="item-box" @click="$util.navTo('/subpackage/personal-center/search/select-car',true)">
  40. <view class="item item-2">
  41. <image :src="fileURL + 'image/index/item-2.png'" mode="aspectFill" />
  42. </view>
  43. <view class="text">账单查询</view>
  44. </view>
  45. <view class="item-box" @click="$util.navTo('/subpackage/orders/Invoice-mannager',true)">
  46. <view class="item item-3">
  47. <image :src="fileURL + 'image/index/item-3.png'" mode="aspectFill" />
  48. </view>
  49. <view class="text">通行发票</view>
  50. </view>
  51. <view class="item-box"
  52. @click="$util.navTo('/subpackage/personal-center/install-activation-order',true)">
  53. <view class="item item-4">
  54. <image :src="fileURL + 'image/index/item-4.png'" mode="aspectFill" />
  55. </view>
  56. <view class="text">设备激活</view>
  57. </view>
  58. <view class="item-box"
  59. @click="$util.navTo('/subpackage/after-sale/card-loss-reporting/select-car',true)">
  60. <view class="item item-5">
  61. <image :src="fileURL + 'image/index/item-5.png'" mode="aspectFill" />
  62. </view>
  63. <view class="text">设备遗失</view>
  64. </view>
  65. <!-- <view class="item-box" @click="$util.navTo('/subpackage/after-sale/rescind-carId/rescind-carId-select',true)"> -->
  66. <view class="item-box"
  67. @click="$util.navTo('/subpackage/after-sale/rescind-carId/rescind-carId-select',true)">
  68. <view class="item item-6">
  69. <image :src="fileURL + 'image/index/item-6.png'" mode="aspectFill" />
  70. </view>
  71. <view class="text">解除车牌占用</view>
  72. </view>
  73. <view class="item-box"
  74. @click="$util.navTo(`/subpackage/personal-center/setting/personal-information/corrections`,true)">
  75. <view class="item item-7">
  76. <image :src="fileURL + 'image/index/item-7.png'" mode="aspectFill" />
  77. </view>
  78. <view class="text">基础信息变更</view>
  79. </view>
  80. <view class="item-box" @click="$util.navTo(`/pages/service/service`,true)">
  81. <view class="item item-8">
  82. <image :src="fileURL + 'image/index/item-more.png'" mode="aspectFill" />
  83. </view>
  84. <view class="text">更多</view>
  85. </view>
  86. </view>
  87. <!-- 消息滚动显示 -->
  88. <view class="backlog-notice">
  89. <notice-bar :noticeList="state.noticeList" @noticeClick="$util.msg('该功能正在开发中,敬请期待!')"></notice-bar>
  90. </view>
  91. <!--快速办理通道 -->
  92. <view class="express-lane">
  93. <view class="title">快速办理通道</view>
  94. <view class="lane">
  95. <view class="lane-item lane-1" :style="{ '--background': bgOrange }" @click="showMask(1)">
  96. <image :src="fileURL + 'image/index/icon-car.png'" mode="aspectFill"></image>
  97. <view class="text">
  98. <text class="head">客车通道</text>
  99. <text class="decribe">业务内容简介</text>
  100. </view>
  101. </view>
  102. <view class="lane-item lane-2" :style="{ '--background': bgBlue }" @click="showMask(2)">
  103. <image :src="fileURL + 'image/index/icon-truck.png'" mode="aspectFill"></image>
  104. <view class="text">
  105. <text class="head">货车通道</text>
  106. <text class="decribe">业务内容简介</text>
  107. </view>
  108. </view>
  109. </view>
  110. </view>
  111. <!-- 办理流程 -->
  112. <view class="flow-path">
  113. <scroll-view scroll-x="true" class="scroll-view">
  114. <view class="top-menu">
  115. <view :class="item == state.tabActive ? 'tab active' : 'tab'"
  116. v-for="item in state.flowPathTabList" :key="item" @click="flowPathTabHandle(item)">
  117. <view class="border"></view>{{ item }}
  118. </view>
  119. </view>
  120. </scroll-view>
  121. <view v-if="state.tabActive === '办理流程'">
  122. <view class="flow-list">
  123. <flow-path-list :options="state.flowList"></flow-path-list>
  124. </view>
  125. </view>
  126. <view v-else-if="state.tabActive === '办理条件'">
  127. <view class="flow-list as-gravity-center"> {{state.processeConditionText}} </view>
  128. </view>
  129. <view v-else-if="state.tabActive === '常见问题'">
  130. <view class="flow-list as-gravity-center"> {{state.commonQuestionText}} </view>
  131. </view>
  132. </view>
  133. </view>
  134. <!-- 高速快讯 -->
  135. <view class="news">
  136. <view class="title">高速快讯</view>
  137. <view class="news-box">
  138. <view class="news-item" v-for="(item,index) in state.highMsgData" :key='index' @click="link(item)">
  139. <view class="left-text">
  140. <view class="tit description">{{item.title}}</view>
  141. <view class="span">{{item.copywriting}}</view>
  142. </view>
  143. <view class="image-box">
  144. <image :src="fileURL + item.imgUrl" mode="aspectFill"></image>
  145. </view>
  146. </view>
  147. <view v-if="state.highMsgData.length!=0" class="more"
  148. @click="$util.navTo('/subpackage/orders/moreHighMsg/moreHighMsg',true)">查看更多</view>
  149. </view>
  150. </view>
  151. <!-- 专区服务 -->
  152. <view class="service">
  153. <view class="title">专区服务</view>
  154. <view class="service-box">
  155. <view class="service-item border" @click="$util.msg('该功能正在开发中,敬请期待!')">
  156. <image :src="fileURL + 'image/index/truck-point.png'" mode="aspectFill"></image>
  157. <view class="text">
  158. <view class="tit">货车积分返利</view>
  159. <view class="sub">海量商品任你选择</view>
  160. </view>
  161. </view>
  162. <view class="service-item" @click="$util.msg('该功能正在开发中,敬请期待!')">
  163. <image :src="fileURL + 'image/index/parking-bill.png'" mode="aspectFill"></image>
  164. <view class="text">
  165. <view class="tit">停车场账单查询</view>
  166. <view class="sub">消费明细一目了然{{ title }}</view>
  167. </view>
  168. </view>
  169. </view>
  170. </view>
  171. </filter>
  172. <!-- ETC选择弹窗 -->
  173. <view class="mask" v-if="isShowMask">
  174. <view class="mask-content">
  175. <filter>
  176. <view class="mask-close">
  177. <image :src="fileURL + 'image/index/icon-close.png'" class="icon-closed" @click="closeMask"></image>
  178. </view>
  179. <view class="mask-title" :style="{ '--color': color }">选择ETC用户类型</view>
  180. <view class="mask-tab">
  181. <view class="tab-item active" @click="toCreatOrder('1')">
  182. <image :src="fileURL + 'image/index/icon-personal.png'" mode="aspectFill"></image>
  183. <text class="tab-tit on">个人办理</text>
  184. </view>
  185. <view class="tab-item" @click="toCreatOrder('2')">
  186. <image :src="fileURL + 'image/index/icon-unit.png'" mode="aspectFill"></image>
  187. <text class="tab-tit on">单位办理</text>
  188. </view>
  189. </view>
  190. </filter>
  191. </view>
  192. </view>
  193. </template>
  194. <script setup lang="ts">
  195. import {
  196. onMounted,
  197. ref
  198. } from "vue";
  199. import {
  200. onPageScroll,
  201. onLoad
  202. } from "@dcloudio/uni-app";
  203. import flowPathList from "./components/flow-path-list.vue";
  204. import filter from '@/components/filter/filter.vue';
  205. import {
  206. request
  207. } from "@/utils/network/request.js";
  208. import {
  209. stringToJson
  210. } from "@/utils/network/encryption.js";
  211. import {
  212. useUserStore
  213. } from "@/stores/user";
  214. import {
  215. getItem,
  216. setItem,
  217. StorageKeys
  218. } from "@/utils/storage";
  219. import {
  220. queryKey,
  221. querySwiper,
  222. envs,
  223. infoQuery,
  224. queryHighMsg
  225. } from "@/utils/network/api.js";
  226. import {
  227. reactive
  228. } from "vue";
  229. import {
  230. fileURL
  231. } from "@/datas/fileURL.js";
  232. import {
  233. navTo,
  234. confirm
  235. } from "@/utils/utils";
  236. import {
  237. getCodeName
  238. } from "@/datas/queryKey.js";
  239. const bgOrange = `url(${fileURL}image/index/bg-orange.png) center center no-repeat`;
  240. const bgBlue = `url(${fileURL}image/index/bg-blue.png) center center no-repeat`;
  241. const list = reactive(["您有一条待办事项,还未办理完成"])
  242. const swiper = reactive({
  243. indicatorDots: true,
  244. autoplay: true,
  245. interval: 2000,
  246. duration: 1000,
  247. easing: "easeInOutCubic"
  248. })
  249. const state = reactive({
  250. type: 0, //0客车 1货车
  251. userType: 1, //1个人 2单位
  252. notice: "",
  253. swiperList: [],
  254. noticeList: [
  255. //公告栏列表
  256. {
  257. title: "您有一条待办事项,还未办理完成",
  258. id: 1,
  259. },
  260. {
  261. title: "XXX刚刚申请了公交车发行",
  262. id: 2,
  263. },
  264. {
  265. title: "您还有一条订单已经发货了",
  266. id: 3,
  267. },
  268. {
  269. title: "订单等您确认收货",
  270. id: 4,
  271. },
  272. {
  273. title: "最新的新闻资讯请点击哈哈哈哈哈哈哈假的假的假的假的基督教",
  274. id: 5,
  275. },
  276. ],
  277. flowPathTabList: ["办理流程", "办理条件", "常见问题"],
  278. tabActive: "办理流程",
  279. flowList: [
  280. //办理流程数据
  281. {
  282. title: "第一步:信息校验:",
  283. desc: "提交车牌号、车牌颜色、收货地址相关信息",
  284. },
  285. {
  286. title: "第二步:证件上传:",
  287. desc: "上传身份证、行驶证等相关信息",
  288. },
  289. {
  290. title: "第三步:签约代扣:",
  291. desc: "选择签约账户并关联",
  292. },
  293. {
  294. title: "第四步:产品选择:",
  295. desc: "选择购买的发行产品",
  296. },
  297. {
  298. title: "第五步:订单完成:",
  299. desc: "支付完成订单",
  300. },
  301. ],
  302. highMsgData: '',//高速快讯内容
  303. processeConditionText: "", //办理条件文本
  304. commonQuestionText: "", //常见问题文本
  305. });
  306. const isShowMask = ref(false);
  307. const isShowBar = ref(false)
  308. const userStore = useUserStore();
  309. const type = 0;
  310. const title = ref("我是测试");
  311. const statusBarHeight = ref(0)
  312. //监听页面滚动
  313. onPageScroll((e) => {
  314. if (e.scrollTop > statusBarHeight.value) {
  315. isShowBar.value = true;
  316. } else {
  317. isShowBar.value = false;
  318. }
  319. });
  320. onLoad(() => {
  321. uni.login({
  322. success: function (res) {
  323. console.log('输出内容========', res)
  324. }
  325. })
  326. // //调用方式
  327. // request('eeb51c66bcda48dc9dbb5997323a11ed', {}).then((res) => {
  328. // console.log("====", stringToJson(res.bizContent));
  329. // uni.requestSubscribeMessage({
  330. // tmplIds: [''],
  331. // success: function(res){
  332. // console.log('输出内容========',res)
  333. // },
  334. // fail: function(res){
  335. // console.log('内容========',res)
  336. // }
  337. // })
  338. // })
  339. // .catch((err) => {});
  340. getInfo();
  341. quanKeyAction().then((val : any) => {
  342. setItem('key', val.dictTypeAndItem)
  343. })
  344. highMsg(); //高速快讯
  345. processeCondition();//办理条件
  346. commonQuestion();
  347. })
  348. onMounted(() => {
  349. uni.getSystemInfo({
  350. success: (e : any) => {
  351. // console.log(e.statusBarHeight);
  352. statusBarHeight.value = e.statusBarHeight;
  353. }
  354. })
  355. getSwiper()
  356. // console.log(credentialType);
  357. //参数说明
  358. // let code = "30" //请求编码
  359. // let options = {
  360. // type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  361. // data: {
  362. // opId: getItem("openId"),
  363. // source: "WECHAT",
  364. // tabIndex: "0",
  365. // }, //请求参数
  366. // method: "POST", //提交方式(默认POST)
  367. // showLoading: true, //是否显示加载中(默认显示)
  368. // };
  369. //调用方式
  370. // request(searchOrder, options)
  371. // .then((res) => {
  372. // console.log(stringToJson(res.bizContent));
  373. // // stringToJson(res.bizContent)
  374. // })
  375. // .catch((err) => {
  376. // console.log(err);
  377. // });
  378. });
  379. //获取轮播
  380. const getSwiper = () => {
  381. let options = {
  382. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  383. data: {
  384. // opId: getItem("openId"),
  385. // source: "WECHAT",
  386. // tabIndex: "0",
  387. }, //请求参数
  388. method: "POST", //提交方式(默认POST)
  389. showLoading: true, //是否显示加载中(默认显示)
  390. };
  391. //调用方式
  392. request(querySwiper, options).then((res) => {
  393. console.log(stringToJson(res.bizContent));
  394. const data = stringToJson(res.bizContent)
  395. console.log("轮播图", data)
  396. state.swiperList = data.swipers ? data.swipers : []
  397. })
  398. .catch((err) => {
  399. console.log(err);
  400. });
  401. };
  402. //轮播跳转
  403. const gotoLink = (item : any) => {
  404. console.log("555555555555555555", item);
  405. };
  406. //办理流程tab选择
  407. const flowPathTabHandle = (tab) => {
  408. state.tabActive = tab;
  409. };
  410. //安装激活
  411. const goActivation = () => {
  412. uni.navigateTo({
  413. url: "/pages/order/order",
  414. });
  415. };
  416. const goToRecharge = () => {
  417. console.log("执行点击事件");
  418. console.log('321')
  419. uni.navigateTo({
  420. url: "/pages/recharge/select-car",
  421. });
  422. };
  423. //全量枚举值查询
  424. const quanKeyAction = (val : any) => {
  425. var data = {
  426. };
  427. const options = {
  428. type: 2,
  429. data: data,
  430. method: "POST",
  431. showLoading: true,
  432. };
  433. return new Promise(async (resolve, reject) => {
  434. const res = await request(queryKey, options);
  435. const data = stringToJson(res.bizContent);
  436. resolve(data);
  437. }).catch((error) => {
  438. reject(error);
  439. });
  440. }
  441. const toCreatOrder = (val : number) => {
  442. console.log(typeof (val));
  443. state.userType = val;
  444. // if (val === 1) {
  445. // // navTo(`/orders/essential-information?type=${state.type}&&userType=${state.userType}`)
  446. // uni.navigateTo({
  447. // url: `/subpackage/orders/essential-information?type=${state.type}&&userType=${state.userType}`
  448. // })
  449. // } else {
  450. // // navTo(`/orders/essential-information?type=${state.type}&&userType=${state.userType}`)
  451. // uni.navigateTo({
  452. // url: `/subpackage/orders/essential-information?type=${state.type}&&userType=${state.userType}`
  453. // })
  454. // }
  455. navTo(`/subpackage/orders/choice-product?type=${state.type}&&userType=${state.userType}`)
  456. closeMask();
  457. };
  458. const showMask = (val : any) => {
  459. state.type = val; //1 客车 2货车
  460. isShowMask.value = true;
  461. };
  462. const closeMask = () => {
  463. isShowMask.value = false;
  464. };
  465. // 获取文本信息----用户协议
  466. const getInfo = () => {
  467. //参数说明
  468. let options = {
  469. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  470. data: {
  471. businessType: 'BROADCAST' //广播栏信息
  472. }, //请求参数
  473. method: "POST", //提交方式(默认POST)
  474. showLoading: true, //是否显示加载中(默认显示)
  475. };
  476. //调用方式
  477. request(infoQuery, options)
  478. .then((res) => {
  479. let data = stringToJson(res.bizContent)
  480. console.log(data);
  481. state.notice = data.text
  482. })
  483. .catch((err) => {
  484. console.log(err);
  485. });
  486. }
  487. //替换图片地址
  488. const strReplace = (str : string) => {
  489. return str.replace('http://192.168.100.63:8087', envs[process.env.NODE_ENV].baseUrl)
  490. }
  491. // 高速快讯查询接口
  492. const highMsg = () => {
  493. let options = {
  494. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  495. data: {
  496. pageNo: 1,
  497. pageSize: 2
  498. }, //请求参数
  499. method: "POST", //提交方式(默认POST)
  500. showLoading: true, //是否显示加载中(默认显示)
  501. };
  502. //调用方式
  503. request(queryHighMsg, options).then((res) => {
  504. console.log("高速快讯查询接口", stringToJson(res.bizContent));
  505. state.highMsgData = stringToJson(res.bizContent).data
  506. for (var i = 0; i < state.highMsgData.length; i++) {
  507. state.highMsgData[i]["copywriting"] = getCodeName('COPYWRITING', state.highMsgData[i]["copywriting"])
  508. if (state.highMsgData[i]["type"] == 3) {
  509. state.highMsgData[i]["title"] = state.highMsgData[i]["hyperLink"]
  510. }
  511. }
  512. })
  513. .catch((err) => { console.log(err) });
  514. }
  515. const link = (item) => {
  516. console.log("item", item)
  517. if (item.type == 1) {
  518. const params = encodeURIComponent(JSON.stringify(item.hyperLink))
  519. uni.navigateTo({
  520. url: `/subpackage/personal-center/webview?url=` + params
  521. })
  522. } else if (item.type == 2) {
  523. navTo(item.hyperLink)
  524. } else if (item.type == 3) {
  525. const param = encodeURIComponent(JSON.stringify(item))
  526. uni.navigateTo({
  527. url: `/subpackage/orders/moreHighMsg/textDetails?item=` + param
  528. })
  529. } else if (item.type == 4) {
  530. uni.navigateToMiniProgram({
  531. appId: item.hyperLink,
  532. path: item.speedUrl,
  533. success(res) {
  534. console.log(res);
  535. },
  536. complete(res) {
  537. console.log(res);
  538. },
  539. fail(res) {
  540. console.log(res);
  541. // 未成功跳转到车主小程序
  542. },
  543. });
  544. }
  545. }
  546. const processeCondition = () => {
  547. let options = {
  548. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  549. data: {
  550. businessType: 'PROCESSING_CONDITIONS' //办理条件
  551. }, //请求参数
  552. method: "POST", //提交方式(默认POST)
  553. showLoading: true, //是否显示加载中(默认显示)
  554. };
  555. //调用方式
  556. request(infoQuery, options)
  557. .then((res) => {
  558. let data = stringToJson(res.bizContent)
  559. console.log("办理条件", data)
  560. state.processeConditionText = data.text
  561. })
  562. .catch((err) => {
  563. console.log(err);
  564. });
  565. }
  566. const commonQuestion = () => {
  567. let options = {
  568. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  569. data: {
  570. businessType: 'COMMON_PROBLEM' //常见问题
  571. }, //请求参数
  572. method: "POST", //提交方式(默认POST)
  573. showLoading: true, //是否显示加载中(默认显示)
  574. };
  575. //调用方式
  576. request(infoQuery, options)
  577. .then((res) => {
  578. let data = stringToJson(res.bizContent)
  579. console.log("常见问题", data)
  580. state.commonQuestionText = data.text
  581. })
  582. .catch((err) => {
  583. console.log(err);
  584. });
  585. }
  586. </script>
  587. <style>
  588. page {
  589. background: #eef7f7;
  590. }
  591. </style>
  592. <style lang="scss" scoped>
  593. .statusBar {
  594. width: 100%;
  595. position: sticky;
  596. background: linear-gradient(-90deg, #43a1e0 0%, #13e7c1 100%);
  597. top: 0;
  598. left: 0;
  599. z-index: 999;
  600. }
  601. .banner {
  602. position: relative;
  603. }
  604. .banner swiper {
  605. height: 470rpx;
  606. width: 750rpx;
  607. }
  608. .banner .notice {
  609. position: absolute;
  610. background: rgba(0, 0, 0, 0.28);
  611. border-radius: 30rpx;
  612. width: 500rpx;
  613. height: 60rpx;
  614. bottom: 46rpx;
  615. left: 125rpx;
  616. display: flex;
  617. justify-content: center;
  618. align-items: center;
  619. padding: 0 20rpx;
  620. box-sizing: border-box;
  621. ::v-deep .uni-noticebar {
  622. background: none !important;
  623. margin-bottom: 0;
  624. text {
  625. font-size: 24rpx !important;
  626. color: #ffffff !important;
  627. }
  628. }
  629. }
  630. .banner .notice .icon {
  631. width: 40rpx;
  632. height: 40rpx;
  633. margin: 10rpx;
  634. }
  635. .banner .notice .notice-text {
  636. font-size: 24rpx;
  637. color: #ffffff;
  638. flex: 1;
  639. }
  640. .swiper-item image {
  641. width: 100%;
  642. height: auto;
  643. }
  644. .nav {
  645. display: flex;
  646. flex-wrap: wrap;
  647. padding: 0 35rpx;
  648. font-size: 28rpx;
  649. }
  650. .nav .item-box {
  651. display: flex;
  652. flex-direction: column;
  653. justify-content: center;
  654. align-items: center;
  655. }
  656. .nav .item {
  657. width: 80rpx;
  658. height: 80rpx;
  659. border-radius: 30rpx;
  660. display: flex;
  661. justify-content: center;
  662. align-items: center;
  663. margin: 50rpx 45rpx 20rpx 45rpx;
  664. }
  665. .nav .text {
  666. font-size: 24rpx;
  667. color: #172843;
  668. }
  669. .item-1 {
  670. background: linear-gradient(133deg, #5fff9b 0%, #00b38b 100%);
  671. }
  672. .item-2 {
  673. background: linear-gradient(-50deg, #018ffd 0%, #27fcff 100%);
  674. }
  675. .item-3 {
  676. background: linear-gradient(-47deg, #f88721 0%, #fecd61 100%);
  677. }
  678. .item-4 {
  679. background: linear-gradient(-47deg, #018ffd 0%, #27fcff 100%);
  680. }
  681. .item-5 {
  682. background: linear-gradient(-44deg, #018ffd 0%, #27fcff 100%);
  683. }
  684. .item-6 {
  685. background: linear-gradient(-50deg, #f88721 0%, #fecd61 100%);
  686. }
  687. .item-7 {
  688. background: linear-gradient(129deg, #5fff9b 0%, #00b38b 100%);
  689. }
  690. .item-8 {
  691. background: linear-gradient(124deg, #b8f0f2 0%, #62aeb1 100%);
  692. }
  693. .item image {
  694. width: 56rpx;
  695. height: 56rpx;
  696. }
  697. .express-lane {
  698. font-size: 36rpx;
  699. font-weight: 400;
  700. color: #000000;
  701. padding-top: 30rpx;
  702. // line-height: 58rpx;
  703. }
  704. .express-lane .title {
  705. padding-left: 30rpx;
  706. margin: 0rpx 0 20rpx;
  707. font-size: 32rpx;
  708. font-weight: bold;
  709. }
  710. .lane {
  711. display: flex;
  712. justify-content: space-evenly;
  713. }
  714. .lane-item {
  715. width: 330rpx;
  716. height: 150rpx;
  717. border-radius: 20rpx;
  718. display: flex;
  719. justify-content: center;
  720. align-items: center;
  721. }
  722. .lane-item image {
  723. width: 120rpx;
  724. height: 100rpx;
  725. margin: 0 18rpx;
  726. }
  727. .lane-item .text {
  728. display: flex;
  729. flex-direction: column;
  730. justify-content: center;
  731. // align-items: center;
  732. color: #ffffff;
  733. flex: 1;
  734. }
  735. .lane-item .head {
  736. font-size: 30rpx;
  737. font-weight: bold;
  738. }
  739. .lane-item .decribe {
  740. font-size: 24rpx;
  741. }
  742. .lane-1 {
  743. background: var(--background);
  744. }
  745. .lane-2 {
  746. background: var(--background);
  747. }
  748. .news {
  749. padding: 30rpx 30rpx 0 30rpx;
  750. }
  751. .news .title {
  752. font-size: 32rpx;
  753. font-weight: bold;
  754. }
  755. .news .left-text {
  756. flex: 1;
  757. margin-right: 100rpx;
  758. }
  759. .news-box {
  760. background: #ffffff;
  761. border-radius: 20rpx;
  762. padding: 0 32rpx;
  763. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  764. margin: 20rpx 0 50rpx;
  765. }
  766. .news .tit {
  767. font-size: 26rpx;
  768. color: #172843;
  769. }
  770. .news .news-item {
  771. display: flex;
  772. border-bottom: 1px solid #dcdcdc;
  773. padding: 32rpx 0 15rpx;
  774. }
  775. .news .image-box image {
  776. width: 100rpx;
  777. height: 100rpx;
  778. border-radius: 10rpx;
  779. }
  780. .news .span {
  781. font-size: 22rpx;
  782. display: inline-block;
  783. text-align: center;
  784. background: #bae0f1;
  785. border-radius: 6rpx;
  786. color: #0a8f8a;
  787. padding: 4rpx 8rpx;
  788. }
  789. .news .more {
  790. font-size: 24rpx;
  791. text-align: center;
  792. color: #0a8f8a;
  793. padding: 22rpx 0;
  794. }
  795. .service {
  796. padding: 0 30rpx 50rpx 30rpx;
  797. }
  798. .service .title {
  799. font-size: 32rpx;
  800. font-weight: bold;
  801. }
  802. .service-box {
  803. background: #ffffff;
  804. border-radius: 20rpx;
  805. padding: 0 32rpx;
  806. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  807. display: flex;
  808. flex-direction: column;
  809. margin-top: 20rpx;
  810. }
  811. .service-item {
  812. display: flex;
  813. align-items: center;
  814. justify-content: center;
  815. padding: 22rpx 0;
  816. }
  817. .service-item .text {
  818. flex: 1;
  819. }
  820. .service image {
  821. width: 170rpx;
  822. height: 116rpx;
  823. margin-right: 26rpx;
  824. }
  825. .service .tit {
  826. font-size: 28rpx;
  827. font-weight: bold;
  828. color: #0d0f26;
  829. }
  830. .service .sub {
  831. font-size: 24rpx;
  832. color: #666666;
  833. padding-top: 10rpx;
  834. }
  835. .service .border {
  836. border-bottom: 1px solid #dcdcdc;
  837. }
  838. .mask {
  839. background: $uni-bg-color-mask;
  840. position: fixed;
  841. left: 0;
  842. top: 0;
  843. right: 0;
  844. bottom: 0;
  845. }
  846. .mask-content {
  847. background: $uni-bg-color;
  848. width: 570rpx;
  849. height: 480rpx;
  850. position: absolute;
  851. left: 50%;
  852. top: 50%;
  853. transform: translate(-50%, -50%);
  854. display: flex;
  855. flex-direction: column;
  856. border-radius: 20rpx;
  857. }
  858. .mask-close {
  859. text-align: right;
  860. }
  861. .mask-title {
  862. text-align: center;
  863. font-size: 32rpx;
  864. color: $uni-text-color-black;
  865. margin-bottom: 50rpx;
  866. }
  867. .mask-tab {
  868. display: flex;
  869. justify-content: space-evenly;
  870. }
  871. .icon-closed {
  872. width: 48rpx;
  873. height: 48rpx;
  874. margin: 24rpx 24rpx 0 0;
  875. }
  876. .tab-item {
  877. display: flex;
  878. flex-direction: column;
  879. justify-content: center;
  880. align-items: center;
  881. }
  882. .tab-tit {
  883. font-size: 32rpx;
  884. margin-top: 20rpx;
  885. color: #666;
  886. }
  887. .tab-item image {
  888. width: 160rpx;
  889. height: 160rpx;
  890. }
  891. .backlog-notice {
  892. margin: 50rpx 30rpx 0rpx;
  893. }
  894. .flow-path {
  895. padding: 20rpx 0rpx 20rpx;
  896. .scroll-view {
  897. white-space: nowrap;
  898. // position: sticky;
  899. top: 0;
  900. }
  901. .top-menu {
  902. display: flex;
  903. }
  904. .top-menu .tab {
  905. font-size: 28rpx;
  906. padding: 38rpx 30rpx;
  907. color: #666666;
  908. position: relative;
  909. }
  910. .top-menu .active .border {
  911. position: absolute;
  912. width: 70%;
  913. height: 16rpx;
  914. background: #00b38b;
  915. opacity: 0.3;
  916. bottom: 40rpx;
  917. z-index: -99;
  918. left: 15%;
  919. border-radius: 6rpx;
  920. }
  921. .top-menu .active {
  922. font-weight: bold;
  923. font-size: 32rpx;
  924. color: #0d0f26;
  925. }
  926. .top-menu .active::before {
  927. width: 100%;
  928. height: 16rpx;
  929. background: #00b38b;
  930. opacity: 0.3;
  931. }
  932. .flow-list {
  933. margin: 0rpx 30rpx;
  934. min-height: 700rpx;
  935. background: #ffffff;
  936. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  937. border-radius: 20rpx;
  938. padding: 55rpx 30rpx 30rpx;
  939. }
  940. }
  941. .description {
  942. overflow: hidden;
  943. -webkit-line-clamp: 2;
  944. text-overflow: ellipsis;
  945. display: -webkit-box;
  946. -webkit-box-orient: vertical;
  947. }
  948. </style>