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.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082
  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. uni.navigateToMiniProgram({
  460. appId: 'wx008c60533388527a',
  461. path: 'pages/sign/auth?msgId=294715&plateNumber=贵ZSC124&bizNotifyUrl=etQZOsm76UqkXvCBobMJ/xZLggGU1Fs8lXiqDgs5giYr+JDBRBoYx2cSKoDEr9yWLcub+F/4LjtCvQ0uCY1qZRdNmJsNwsEuKayjp7VbTA+5IJpdyF+/OCC5OcWIHu0m', // 可选,要跳转到的目标小程序的页面路径
  462. envVersion: 'trial',
  463. extraData: {},
  464. success(res) {
  465. // 成功跳转到目标小程序
  466. },
  467. fail(err) {
  468. // 跳转失败
  469. }
  470. });
  471. // state.type = val; //1 客车 2货车
  472. // isShowMask.value = true;
  473. };
  474. const closeMask = () => {
  475. isShowMask.value = false;
  476. };
  477. // 获取文本信息----用户协议
  478. const getInfo = () => {
  479. //参数说明
  480. let options = {
  481. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  482. data: {
  483. businessType: 'BROADCAST' //广播栏信息
  484. }, //请求参数
  485. method: "POST", //提交方式(默认POST)
  486. showLoading: true, //是否显示加载中(默认显示)
  487. };
  488. //调用方式
  489. request(infoQuery, options)
  490. .then((res) => {
  491. let data = stringToJson(res.bizContent)
  492. console.log(data);
  493. state.notice = data.text
  494. })
  495. .catch((err) => {
  496. console.log(err);
  497. });
  498. }
  499. //替换图片地址
  500. const strReplace = (str : string) => {
  501. return str.replace('http://192.168.100.63:8087', envs[process.env.NODE_ENV].baseUrl)
  502. }
  503. // 高速快讯查询接口
  504. const highMsg = () => {
  505. let options = {
  506. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  507. data: {
  508. pageNo: 1,
  509. pageSize: 2
  510. }, //请求参数
  511. method: "POST", //提交方式(默认POST)
  512. showLoading: true, //是否显示加载中(默认显示)
  513. };
  514. //调用方式
  515. request(queryHighMsg, options).then((res) => {
  516. console.log("高速快讯查询接口", stringToJson(res.bizContent));
  517. state.highMsgData = stringToJson(res.bizContent).data
  518. for (var i = 0; i < state.highMsgData.length; i++) {
  519. state.highMsgData[i]["copywriting"] = getCodeName('COPYWRITING', state.highMsgData[i]["copywriting"])
  520. if (state.highMsgData[i]["type"] == 3) {
  521. state.highMsgData[i]["title"] = state.highMsgData[i]["hyperLink"]
  522. }
  523. }
  524. })
  525. .catch((err) => { console.log(err) });
  526. }
  527. const link = (item) => {
  528. console.log("item", item)
  529. if (item.type == 1) {
  530. const params = encodeURIComponent(JSON.stringify(item.hyperLink))
  531. uni.navigateTo({
  532. url: `/subpackage/personal-center/webview?url=` + params
  533. })
  534. } else if (item.type == 2) {
  535. navTo(item.hyperLink)
  536. } else if (item.type == 3) {
  537. const param = encodeURIComponent(JSON.stringify(item))
  538. uni.navigateTo({
  539. url: `/subpackage/orders/moreHighMsg/textDetails?item=` + param
  540. })
  541. } else if (item.type == 4) {
  542. uni.navigateToMiniProgram({
  543. appId: item.hyperLink,
  544. path: item.speedUrl,
  545. success(res) {
  546. console.log(res);
  547. },
  548. complete(res) {
  549. console.log(res);
  550. },
  551. fail(res) {
  552. console.log(res);
  553. // 未成功跳转到车主小程序
  554. },
  555. });
  556. }
  557. }
  558. const processeCondition = () => {
  559. let options = {
  560. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  561. data: {
  562. businessType: 'PROCESSING_CONDITIONS' //办理条件
  563. }, //请求参数
  564. method: "POST", //提交方式(默认POST)
  565. showLoading: true, //是否显示加载中(默认显示)
  566. };
  567. //调用方式
  568. request(infoQuery, options)
  569. .then((res) => {
  570. let data = stringToJson(res.bizContent)
  571. console.log("办理条件", data)
  572. state.processeConditionText = data.text
  573. })
  574. .catch((err) => {
  575. console.log(err);
  576. });
  577. }
  578. const commonQuestion = () => {
  579. let options = {
  580. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  581. data: {
  582. businessType: 'COMMON_PROBLEM' //常见问题
  583. }, //请求参数
  584. method: "POST", //提交方式(默认POST)
  585. showLoading: true, //是否显示加载中(默认显示)
  586. };
  587. //调用方式
  588. request(infoQuery, options)
  589. .then((res) => {
  590. let data = stringToJson(res.bizContent)
  591. console.log("常见问题", data)
  592. state.commonQuestionText = data.text
  593. })
  594. .catch((err) => {
  595. console.log(err);
  596. });
  597. }
  598. </script>
  599. <style>
  600. page {
  601. background: #eef7f7;
  602. }
  603. </style>
  604. <style lang="scss" scoped>
  605. .statusBar {
  606. width: 100%;
  607. position: sticky;
  608. background: linear-gradient(-90deg, #43a1e0 0%, #13e7c1 100%);
  609. top: 0;
  610. left: 0;
  611. z-index: 999;
  612. }
  613. .banner {
  614. position: relative;
  615. }
  616. .banner swiper {
  617. height: 470rpx;
  618. width: 750rpx;
  619. }
  620. .banner .notice {
  621. position: absolute;
  622. background: rgba(0, 0, 0, 0.28);
  623. border-radius: 30rpx;
  624. width: 500rpx;
  625. height: 60rpx;
  626. bottom: 46rpx;
  627. left: 125rpx;
  628. display: flex;
  629. justify-content: center;
  630. align-items: center;
  631. padding: 0 20rpx;
  632. box-sizing: border-box;
  633. ::v-deep .uni-noticebar {
  634. background: none !important;
  635. margin-bottom: 0;
  636. text {
  637. font-size: 24rpx !important;
  638. color: #ffffff !important;
  639. }
  640. }
  641. }
  642. .banner .notice .icon {
  643. width: 40rpx;
  644. height: 40rpx;
  645. margin: 10rpx;
  646. }
  647. .banner .notice .notice-text {
  648. font-size: 24rpx;
  649. color: #ffffff;
  650. flex: 1;
  651. }
  652. .swiper-item image {
  653. width: 100%;
  654. height: auto;
  655. }
  656. .nav {
  657. display: flex;
  658. flex-wrap: wrap;
  659. padding: 0 35rpx;
  660. font-size: 28rpx;
  661. }
  662. .nav .item-box {
  663. display: flex;
  664. flex-direction: column;
  665. justify-content: center;
  666. align-items: center;
  667. }
  668. .nav .item {
  669. width: 80rpx;
  670. height: 80rpx;
  671. border-radius: 30rpx;
  672. display: flex;
  673. justify-content: center;
  674. align-items: center;
  675. margin: 50rpx 45rpx 20rpx 45rpx;
  676. }
  677. .nav .text {
  678. font-size: 24rpx;
  679. color: #172843;
  680. }
  681. .item-1 {
  682. background: linear-gradient(133deg, #5fff9b 0%, #00b38b 100%);
  683. }
  684. .item-2 {
  685. background: linear-gradient(-50deg, #018ffd 0%, #27fcff 100%);
  686. }
  687. .item-3 {
  688. background: linear-gradient(-47deg, #f88721 0%, #fecd61 100%);
  689. }
  690. .item-4 {
  691. background: linear-gradient(-47deg, #018ffd 0%, #27fcff 100%);
  692. }
  693. .item-5 {
  694. background: linear-gradient(-44deg, #018ffd 0%, #27fcff 100%);
  695. }
  696. .item-6 {
  697. background: linear-gradient(-50deg, #f88721 0%, #fecd61 100%);
  698. }
  699. .item-7 {
  700. background: linear-gradient(129deg, #5fff9b 0%, #00b38b 100%);
  701. }
  702. .item-8 {
  703. background: linear-gradient(124deg, #b8f0f2 0%, #62aeb1 100%);
  704. }
  705. .item image {
  706. width: 56rpx;
  707. height: 56rpx;
  708. }
  709. .express-lane {
  710. font-size: 36rpx;
  711. font-weight: 400;
  712. color: #000000;
  713. padding-top: 30rpx;
  714. // line-height: 58rpx;
  715. }
  716. .express-lane .title {
  717. padding-left: 30rpx;
  718. margin: 0rpx 0 20rpx;
  719. font-size: 32rpx;
  720. font-weight: bold;
  721. }
  722. .lane {
  723. display: flex;
  724. justify-content: space-evenly;
  725. }
  726. .lane-item {
  727. width: 330rpx;
  728. height: 150rpx;
  729. border-radius: 20rpx;
  730. display: flex;
  731. justify-content: center;
  732. align-items: center;
  733. }
  734. .lane-item image {
  735. width: 120rpx;
  736. height: 100rpx;
  737. margin: 0 18rpx;
  738. }
  739. .lane-item .text {
  740. display: flex;
  741. flex-direction: column;
  742. justify-content: center;
  743. // align-items: center;
  744. color: #ffffff;
  745. flex: 1;
  746. }
  747. .lane-item .head {
  748. font-size: 30rpx;
  749. font-weight: bold;
  750. }
  751. .lane-item .decribe {
  752. font-size: 24rpx;
  753. }
  754. .lane-1 {
  755. background: var(--background);
  756. }
  757. .lane-2 {
  758. background: var(--background);
  759. }
  760. .news {
  761. padding: 30rpx 30rpx 0 30rpx;
  762. }
  763. .news .title {
  764. font-size: 32rpx;
  765. font-weight: bold;
  766. }
  767. .news .left-text {
  768. flex: 1;
  769. margin-right: 100rpx;
  770. }
  771. .news-box {
  772. background: #ffffff;
  773. border-radius: 20rpx;
  774. padding: 0 32rpx;
  775. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  776. margin: 20rpx 0 50rpx;
  777. }
  778. .news .tit {
  779. font-size: 26rpx;
  780. color: #172843;
  781. }
  782. .news .news-item {
  783. display: flex;
  784. border-bottom: 1px solid #dcdcdc;
  785. padding: 32rpx 0 15rpx;
  786. }
  787. .news .image-box image {
  788. width: 100rpx;
  789. height: 100rpx;
  790. border-radius: 10rpx;
  791. }
  792. .news .span {
  793. font-size: 22rpx;
  794. display: inline-block;
  795. text-align: center;
  796. background: #bae0f1;
  797. border-radius: 6rpx;
  798. color: #0a8f8a;
  799. padding: 4rpx 8rpx;
  800. }
  801. .news .more {
  802. font-size: 24rpx;
  803. text-align: center;
  804. color: #0a8f8a;
  805. padding: 22rpx 0;
  806. }
  807. .service {
  808. padding: 0 30rpx 50rpx 30rpx;
  809. }
  810. .service .title {
  811. font-size: 32rpx;
  812. font-weight: bold;
  813. }
  814. .service-box {
  815. background: #ffffff;
  816. border-radius: 20rpx;
  817. padding: 0 32rpx;
  818. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  819. display: flex;
  820. flex-direction: column;
  821. margin-top: 20rpx;
  822. }
  823. .service-item {
  824. display: flex;
  825. align-items: center;
  826. justify-content: center;
  827. padding: 22rpx 0;
  828. }
  829. .service-item .text {
  830. flex: 1;
  831. }
  832. .service image {
  833. width: 170rpx;
  834. height: 116rpx;
  835. margin-right: 26rpx;
  836. }
  837. .service .tit {
  838. font-size: 28rpx;
  839. font-weight: bold;
  840. color: #0d0f26;
  841. }
  842. .service .sub {
  843. font-size: 24rpx;
  844. color: #666666;
  845. padding-top: 10rpx;
  846. }
  847. .service .border {
  848. border-bottom: 1px solid #dcdcdc;
  849. }
  850. .mask {
  851. background: $uni-bg-color-mask;
  852. position: fixed;
  853. left: 0;
  854. top: 0;
  855. right: 0;
  856. bottom: 0;
  857. }
  858. .mask-content {
  859. background: $uni-bg-color;
  860. width: 570rpx;
  861. height: 480rpx;
  862. position: absolute;
  863. left: 50%;
  864. top: 50%;
  865. transform: translate(-50%, -50%);
  866. display: flex;
  867. flex-direction: column;
  868. border-radius: 20rpx;
  869. }
  870. .mask-close {
  871. text-align: right;
  872. }
  873. .mask-title {
  874. text-align: center;
  875. font-size: 32rpx;
  876. color: $uni-text-color-black;
  877. margin-bottom: 50rpx;
  878. }
  879. .mask-tab {
  880. display: flex;
  881. justify-content: space-evenly;
  882. }
  883. .icon-closed {
  884. width: 48rpx;
  885. height: 48rpx;
  886. margin: 24rpx 24rpx 0 0;
  887. }
  888. .tab-item {
  889. display: flex;
  890. flex-direction: column;
  891. justify-content: center;
  892. align-items: center;
  893. }
  894. .tab-tit {
  895. font-size: 32rpx;
  896. margin-top: 20rpx;
  897. color: #666;
  898. }
  899. .tab-item image {
  900. width: 160rpx;
  901. height: 160rpx;
  902. }
  903. .backlog-notice {
  904. margin: 50rpx 30rpx 0rpx;
  905. }
  906. .flow-path {
  907. padding: 20rpx 0rpx 20rpx;
  908. .scroll-view {
  909. white-space: nowrap;
  910. // position: sticky;
  911. top: 0;
  912. }
  913. .top-menu {
  914. display: flex;
  915. }
  916. .top-menu .tab {
  917. font-size: 28rpx;
  918. padding: 38rpx 30rpx;
  919. color: #666666;
  920. position: relative;
  921. }
  922. .top-menu .active .border {
  923. position: absolute;
  924. width: 70%;
  925. height: 16rpx;
  926. background: #00b38b;
  927. opacity: 0.3;
  928. bottom: 40rpx;
  929. z-index: -99;
  930. left: 15%;
  931. border-radius: 6rpx;
  932. }
  933. .top-menu .active {
  934. font-weight: bold;
  935. font-size: 32rpx;
  936. color: #0d0f26;
  937. }
  938. .top-menu .active::before {
  939. width: 100%;
  940. height: 16rpx;
  941. background: #00b38b;
  942. opacity: 0.3;
  943. }
  944. .flow-list {
  945. margin: 0rpx 30rpx;
  946. min-height: 700rpx;
  947. background: #ffffff;
  948. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  949. border-radius: 20rpx;
  950. padding: 55rpx 30rpx 30rpx;
  951. }
  952. }
  953. .description {
  954. overflow: hidden;
  955. -webkit-line-clamp: 2;
  956. text-overflow: ellipsis;
  957. display: -webkit-box;
  958. -webkit-box-orient: vertical;
  959. }
  960. </style>