Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

index.vue 27KB

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