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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110
  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. // uni.navigateTo({
  337. // url: "/subpackage/after-sale/account-opening-template/account-opening-template"
  338. // })
  339. })
  340. const qq = () => {
  341. uni.navigateToMiniProgram({
  342. appId: "wxbcad394b3d99dac9",
  343. path: "pages/route/index",
  344. extraData: {
  345. appid: "wxcb1388c809fe25a9",
  346. sub_appid: "wx008c60533388527a",
  347. mch_id: "1500877591",
  348. sub_mch_id: "1622652848",
  349. nonce_str: "e9eb7a02533947389f8f4e7cb9394fb5",
  350. sign_type: "HMAC-SHA256",
  351. trade_scene: "HIGHWAY",
  352. plate_number: "贵ZBYD09",
  353. sub_openid: "oHQtp5C8821AImJa1ibf6rZ6xc60",
  354. sign: "B926E47DF8DE6B5FE53FF7AC3CCB5FA7C5CDB3459A4C1AFC0CDC8B143EC68DDA",
  355. channel_type: "ETC"
  356. },
  357. // extraData: {
  358. // appid: "wxe5572b2938f35c09",
  359. // channel_type: "ETC", //没有
  360. // mch_id: "1641444218",
  361. // nonce_str: "e9eb7a02533947389f8f4e7cb9394fb5",
  362. // plate_number: "贵ZBYD09",
  363. // sign: "B926E47DF8DE6B5FE53FF7AC3CCB5FA7C5CDB3459A4C1AFC0CDC8B143EC68DDA",
  364. // sign_type: "HMAC-SHA256",
  365. // sub_appid: "wx008c60533388527a",
  366. // sub_mch_id: "1648725759",
  367. // sub_openid: "oHQtp5C8821AImJa1ibf6rZ6xc60",
  368. // trade_scene: "HIGHWAY"
  369. // },
  370. success(res) {
  371. console.log(res);
  372. },
  373. complete(res) {
  374. console.log(res);
  375. },
  376. fail(res) {
  377. console.log(res);
  378. // 未成功跳转到车主小程序
  379. },
  380. });
  381. }
  382. onMounted(() => {
  383. uni.getSystemInfo({
  384. success: (e : any) => {
  385. // console.log(e.statusBarHeight);
  386. statusBarHeight.value = e.statusBarHeight;
  387. }
  388. })
  389. getSwiper()
  390. });
  391. //获取轮播
  392. const getSwiper = () => {
  393. let options = {
  394. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  395. data: {
  396. // opId: getItem("openId"),
  397. // source: "WECHAT",
  398. // tabIndex: "0",
  399. }, //请求参数
  400. method: "POST", //提交方式(默认POST)
  401. showLoading: true, //是否显示加载中(默认显示)
  402. };
  403. //调用方式
  404. request(querySwiper, options).then((res) => {
  405. console.log(stringToJson(res.bizContent));
  406. const data = stringToJson(res.bizContent)
  407. console.log("轮播图", data)
  408. state.swiperList = data.swipers ? data.swipers : []
  409. })
  410. .catch((err) => {
  411. console.log(err);
  412. });
  413. };
  414. //轮播跳转
  415. const test = () => {
  416. // let options = {
  417. // type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  418. // data: {
  419. // openid: "ovrFz6COEbqoMyG6mVZgAHmPZaAw",
  420. // feeTotal: 1,
  421. // fee: 1,
  422. // goodsName: "测试",
  423. // externalOrderNo:"123435345462345",
  424. // payConfigId:"6a9a54bc01f6443faea7ffe132b19f6"
  425. // }, //请求参数
  426. // method: "POST", //提交方式(默认POST)
  427. // showLoading: true, //是否显示加载中(默认显示)
  428. // };
  429. // //调用方式
  430. // request("25", options).then((res) => {
  431. // console.log(res);
  432. // })
  433. // .catch((err) => {
  434. // console.log(err);
  435. // });
  436. uni.navigateTo({
  437. url: "/subpackage/orders/payment/payment?token=445dff5be89c4dcaa89386d1c390930a&openId=0e716af635634d749a981524cc6146a5&orderId=20231016175113823159477&qdOrderNo=20231016175113823159477"
  438. })
  439. };
  440. //轮播跳转
  441. const gotoLink = (item : any) => {
  442. console.log("555555555555555555", item);
  443. };
  444. //办理流程tab选择
  445. const flowPathTabHandle = (tab) => {
  446. state.tabActive = tab;
  447. };
  448. //安装激活
  449. const goActivation = () => {
  450. tools.toUrl("/pages/order/order");
  451. };
  452. const goToRecharge = () => {
  453. console.log("执行点击事件");
  454. console.log('321')
  455. tools.toUrl("/pages/recharge/select-car");
  456. };
  457. //全量枚举值查询
  458. const quanKeyAction = () => {
  459. var data = {};
  460. const options = {
  461. type: 2,
  462. data: data,
  463. method: "POST",
  464. showLoading: true,
  465. };
  466. return new Promise(async (resolve, reject) => {
  467. const res = await request(queryKey, options);
  468. const data = stringToJson(res.bizContent);
  469. resolve(data);
  470. }).catch((error) => {
  471. reject(error);
  472. });
  473. }
  474. const toCreatOrder = (val : number) => {
  475. console.log(typeof (val));
  476. state.userType = val;
  477. navTo(`/subpackage/orders/choice-product?type=${state.type}&&userType=${state.userType}`)
  478. closeMask();
  479. };
  480. const showMask = (val : any) => {
  481. state.type = val; //1 客车 2货车
  482. isShowMask.value = true;
  483. };
  484. const closeMask = () => {
  485. isShowMask.value = false;
  486. };
  487. // 获取文本信息----用户协议
  488. const getInfo = () => {
  489. //参数说明
  490. let options = {
  491. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  492. data: {
  493. businessType: 'BROADCAST' //广播栏信息
  494. }, //请求参数
  495. method: "POST", //提交方式(默认POST)
  496. showLoading: true, //是否显示加载中(默认显示)
  497. };
  498. //调用方式
  499. request(infoQuery, options)
  500. .then((res) => {
  501. let data = stringToJson(res.bizContent)
  502. console.log(data);
  503. state.notice = data.text
  504. })
  505. .catch((err) => {
  506. console.log(err);
  507. });
  508. }
  509. //替换图片地址
  510. const strReplace = (str : string) => {
  511. return str.replace('http://192.168.100.63:8087', envs[process.env.NODE_ENV].baseUrl)
  512. }
  513. // 高速快讯查询接口
  514. const highMsg = () => {
  515. let options = {
  516. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  517. data: {
  518. pageNo: 1,
  519. pageSize: 2
  520. }, //请求参数
  521. method: "POST", //提交方式(默认POST)
  522. showLoading: true, //是否显示加载中(默认显示)
  523. };
  524. //调用方式
  525. request(queryHighMsg, options).then((res) => {
  526. console.log("高速快讯查询接口", stringToJson(res.bizContent));
  527. state.highMsgData = stringToJson(res.bizContent).data
  528. for (var i = 0; i < state.highMsgData.length; i++) {
  529. state.highMsgData[i]["copywriting"] = getCodeName('COPYWRITING', state.highMsgData[i]["copywriting"])
  530. if (state.highMsgData[i]["type"] == 3) {
  531. state.highMsgData[i]["title"] = state.highMsgData[i]["hyperLink"]
  532. }
  533. }
  534. }).catch((err) => { console.log(err) });
  535. }
  536. const link = (item : any) => {
  537. if (item.type == 1) {
  538. const params = encodeURIComponent(JSON.stringify(item.hyperLink))
  539. tools.toUrl(`/subpackage/personal-center/webview?url=` + params);
  540. } else if (item.type == 2) {
  541. navTo(item.hyperLink)
  542. } else if (item.type == 3) {
  543. const param = encodeURIComponent(JSON.stringify(item))
  544. tools.toUrl(`/subpackage/orders/moreHighMsg/textDetails?item=` + param);
  545. } else if (item.type == 4) {
  546. uni.navigateToMiniProgram({
  547. appId: item.hyperLink,
  548. path: item.speedUrl,
  549. success(res) {
  550. console.log(res);
  551. },
  552. complete(res) {
  553. console.log(res);
  554. },
  555. fail(res) {
  556. console.log(res);
  557. // 未成功跳转到车主小程序
  558. },
  559. });
  560. }
  561. }
  562. const processeCondition = () => {
  563. let options = {
  564. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  565. data: {
  566. businessType: 'PROCESSING_CONDITIONS' //办理条件
  567. }, //请求参数
  568. method: "POST", //提交方式(默认POST)
  569. showLoading: true, //是否显示加载中(默认显示)
  570. };
  571. //调用方式
  572. request(infoQuery, options)
  573. .then((res) => {
  574. let data = stringToJson(res.bizContent)
  575. console.log("办理条件", data)
  576. state.processeConditionText = data.text
  577. })
  578. .catch((err) => {
  579. console.log(err);
  580. });
  581. }
  582. const commonQuestion = () => {
  583. let options = {
  584. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  585. data: {
  586. businessType: 'COMMON_PROBLEM' //常见问题
  587. }, //请求参数
  588. method: "POST", //提交方式(默认POST)
  589. showLoading: true, //是否显示加载中(默认显示)
  590. };
  591. //调用方式
  592. request(infoQuery, options)
  593. .then((res) => {
  594. let data = stringToJson(res.bizContent)
  595. console.log("常见问题", data)
  596. state.commonQuestionText = data.text
  597. })
  598. .catch((err) => {
  599. console.log(err);
  600. });
  601. }
  602. // 代办事项
  603. const doSomething = () => {
  604. let options = {
  605. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  606. data: {
  607. "opId": getItem(StorageKeys.OpenId),
  608. "source": "WECHAT",
  609. "vehiclePlate": "",
  610. "tabIndex": 3 + '',
  611. "pageNo": 1,
  612. "pageSize": 100,
  613. "promotionModes": 1
  614. },
  615. method: "POST", //提交方式(默认POST)
  616. };
  617. //调用方式
  618. request(orderList, options)
  619. .then((res) => {
  620. let data = stringToJson(res.bizContent)
  621. let obj = {};
  622. obj["id"] = 1;
  623. obj['title'] = "您有" + data.data.length + "条未完成订单,前往处理"
  624. state.noticeList.push(obj)
  625. console.log("代办事项", data.data)
  626. })
  627. .catch((err) => {
  628. console.log(err);
  629. });
  630. }
  631. const goOrder = (index) => {
  632. uni.reLaunch({
  633. url: `../order/order?index=${index}`
  634. })
  635. }
  636. </script>
  637. <style>
  638. page {
  639. background: #eef7f7;
  640. }
  641. </style>
  642. <style lang="scss" scoped>
  643. .statusBar {
  644. width: 100%;
  645. position: sticky;
  646. background: linear-gradient(-90deg, #43a1e0 0%, #13e7c1 100%);
  647. top: 0;
  648. left: 0;
  649. z-index: 999;
  650. }
  651. .banner {
  652. position: relative;
  653. }
  654. .banner swiper {
  655. height: 470rpx;
  656. width: 750rpx;
  657. }
  658. .banner .notice {
  659. position: absolute;
  660. background: rgba(0, 0, 0, 0.28);
  661. border-radius: 30rpx;
  662. width: 500rpx;
  663. height: 60rpx;
  664. bottom: 46rpx;
  665. left: 125rpx;
  666. display: flex;
  667. justify-content: center;
  668. align-items: center;
  669. padding: 0 20rpx;
  670. box-sizing: border-box;
  671. ::v-deep .uni-noticebar {
  672. background: none !important;
  673. margin-bottom: 0;
  674. text {
  675. font-size: 24rpx !important;
  676. color: #ffffff !important;
  677. }
  678. }
  679. }
  680. .banner .notice .icon {
  681. width: 40rpx;
  682. height: 40rpx;
  683. margin: 10rpx;
  684. }
  685. .banner .notice .notice-text {
  686. font-size: 24rpx;
  687. color: #ffffff;
  688. flex: 1;
  689. }
  690. .swiper-item image {
  691. width: 100%;
  692. height: auto;
  693. }
  694. .nav {
  695. display: flex;
  696. flex-wrap: wrap;
  697. padding: 0 35rpx;
  698. font-size: 28rpx;
  699. }
  700. .nav .item-box {
  701. display: flex;
  702. flex-direction: column;
  703. justify-content: center;
  704. align-items: center;
  705. }
  706. .nav .item {
  707. width: 80rpx;
  708. height: 80rpx;
  709. border-radius: 30rpx;
  710. display: flex;
  711. justify-content: center;
  712. align-items: center;
  713. margin: 50rpx 45rpx 20rpx 45rpx;
  714. }
  715. .nav .text {
  716. font-size: 24rpx;
  717. color: #172843;
  718. }
  719. .item-1 {
  720. background: linear-gradient(133deg, #5fff9b 0%, #00b38b 100%);
  721. }
  722. .item-2 {
  723. background: linear-gradient(-50deg, #018ffd 0%, #27fcff 100%);
  724. }
  725. .item-3 {
  726. background: linear-gradient(-47deg, #f88721 0%, #fecd61 100%);
  727. }
  728. .item-4 {
  729. background: linear-gradient(-47deg, #018ffd 0%, #27fcff 100%);
  730. }
  731. .item-5 {
  732. background: linear-gradient(-44deg, #018ffd 0%, #27fcff 100%);
  733. }
  734. .item-6 {
  735. background: linear-gradient(-50deg, #f88721 0%, #fecd61 100%);
  736. }
  737. .item-7 {
  738. background: linear-gradient(129deg, #5fff9b 0%, #00b38b 100%);
  739. }
  740. .item-8 {
  741. background: linear-gradient(124deg, #b8f0f2 0%, #62aeb1 100%);
  742. }
  743. .item image {
  744. width: 56rpx;
  745. height: 56rpx;
  746. }
  747. .express-lane {
  748. font-size: 36rpx;
  749. font-weight: 400;
  750. color: #000000;
  751. padding-top: 30rpx;
  752. // line-height: 58rpx;
  753. }
  754. .express-lane .title {
  755. padding-left: 30rpx;
  756. margin: 0rpx 0 20rpx;
  757. font-size: 32rpx;
  758. font-weight: bold;
  759. }
  760. .lane {
  761. display: flex;
  762. justify-content: space-evenly;
  763. }
  764. .lane-item {
  765. width: 330rpx;
  766. height: 150rpx;
  767. border-radius: 20rpx;
  768. display: flex;
  769. justify-content: center;
  770. align-items: center;
  771. }
  772. .lane-item image {
  773. width: 120rpx;
  774. height: 100rpx;
  775. margin: 0 18rpx;
  776. }
  777. .lane-item .text {
  778. display: flex;
  779. flex-direction: column;
  780. justify-content: center;
  781. // align-items: center;
  782. color: #ffffff;
  783. flex: 1;
  784. }
  785. .lane-item .head {
  786. font-size: 30rpx;
  787. font-weight: bold;
  788. }
  789. .lane-item .decribe {
  790. font-size: 24rpx;
  791. }
  792. .lane-1 {
  793. background: var(--background);
  794. }
  795. .lane-2 {
  796. background: var(--background);
  797. }
  798. .news {
  799. padding: 30rpx 30rpx 0 30rpx;
  800. }
  801. .news .title {
  802. font-size: 32rpx;
  803. font-weight: bold;
  804. }
  805. .news .left-text {
  806. flex: 1;
  807. margin-right: 100rpx;
  808. }
  809. .news-box {
  810. background: #ffffff;
  811. border-radius: 20rpx;
  812. padding: 0 32rpx;
  813. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  814. margin: 20rpx 0 50rpx;
  815. }
  816. .news .tit {
  817. font-size: 26rpx;
  818. color: #172843;
  819. }
  820. .news .news-item {
  821. display: flex;
  822. border-bottom: 1px solid #dcdcdc;
  823. padding: 32rpx 0 15rpx;
  824. }
  825. .news .image-box image {
  826. width: 100rpx;
  827. height: 100rpx;
  828. border-radius: 10rpx;
  829. }
  830. .news .span {
  831. font-size: 22rpx;
  832. display: inline-block;
  833. text-align: center;
  834. background: #bae0f1;
  835. border-radius: 6rpx;
  836. color: #0a8f8a;
  837. padding: 4rpx 8rpx;
  838. }
  839. .news .more {
  840. font-size: 24rpx;
  841. text-align: center;
  842. color: #0a8f8a;
  843. padding: 22rpx 0;
  844. }
  845. .service {
  846. padding: 0 30rpx 50rpx 30rpx;
  847. }
  848. .service .title {
  849. font-size: 32rpx;
  850. font-weight: bold;
  851. }
  852. .service-box {
  853. background: #ffffff;
  854. border-radius: 20rpx;
  855. padding: 0 32rpx;
  856. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  857. display: flex;
  858. flex-direction: column;
  859. margin-top: 20rpx;
  860. }
  861. .service-item {
  862. display: flex;
  863. align-items: center;
  864. justify-content: center;
  865. padding: 22rpx 0;
  866. }
  867. .service-item .text {
  868. flex: 1;
  869. }
  870. .service image {
  871. width: 170rpx;
  872. height: 116rpx;
  873. margin-right: 26rpx;
  874. }
  875. .service .tit {
  876. font-size: 28rpx;
  877. font-weight: bold;
  878. color: #0d0f26;
  879. }
  880. .service .sub {
  881. font-size: 24rpx;
  882. color: #666666;
  883. padding-top: 10rpx;
  884. }
  885. .service .border {
  886. border-bottom: 1px solid #dcdcdc;
  887. }
  888. .mask {
  889. background: $uni-bg-color-mask;
  890. position: fixed;
  891. left: 0;
  892. top: 0;
  893. right: 0;
  894. bottom: 0;
  895. }
  896. .mask-content {
  897. background: $uni-bg-color;
  898. width: 570rpx;
  899. height: 480rpx;
  900. position: absolute;
  901. left: 50%;
  902. top: 50%;
  903. transform: translate(-50%, -50%);
  904. display: flex;
  905. flex-direction: column;
  906. border-radius: 20rpx;
  907. }
  908. .mask-close {
  909. text-align: right;
  910. }
  911. .mask-title {
  912. text-align: center;
  913. font-size: 32rpx;
  914. color: $uni-text-color-black;
  915. margin-bottom: 50rpx;
  916. }
  917. .mask-tab {
  918. display: flex;
  919. justify-content: space-evenly;
  920. }
  921. .icon-closed {
  922. width: 48rpx;
  923. height: 48rpx;
  924. margin: 24rpx 24rpx 0 0;
  925. }
  926. .tab-item {
  927. display: flex;
  928. flex-direction: column;
  929. justify-content: center;
  930. align-items: center;
  931. }
  932. .tab-tit {
  933. font-size: 32rpx;
  934. margin-top: 20rpx;
  935. color: #666;
  936. }
  937. .tab-item image {
  938. width: 160rpx;
  939. height: 160rpx;
  940. }
  941. .backlog-notice {
  942. margin: 50rpx 30rpx 0rpx;
  943. }
  944. .flow-path {
  945. padding: 20rpx 0rpx 20rpx;
  946. .scroll-view {
  947. white-space: nowrap;
  948. // position: sticky;
  949. top: 0;
  950. }
  951. .top-menu {
  952. display: flex;
  953. }
  954. .top-menu .tab {
  955. font-size: 28rpx;
  956. padding: 38rpx 30rpx;
  957. color: #666666;
  958. position: relative;
  959. }
  960. .top-menu .active .border {
  961. position: absolute;
  962. width: 70%;
  963. height: 16rpx;
  964. background: #00b38b;
  965. opacity: 0.3;
  966. bottom: 40rpx;
  967. z-index: -99;
  968. left: 15%;
  969. border-radius: 6rpx;
  970. }
  971. .top-menu .active {
  972. font-weight: bold;
  973. font-size: 32rpx;
  974. color: #0d0f26;
  975. }
  976. .top-menu .active::before {
  977. width: 100%;
  978. height: 16rpx;
  979. background: #00b38b;
  980. opacity: 0.3;
  981. }
  982. .flow-list {
  983. margin: 0rpx 30rpx;
  984. min-height: 700rpx;
  985. background: #ffffff;
  986. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  987. border-radius: 20rpx;
  988. padding: 55rpx 30rpx 30rpx;
  989. }
  990. }
  991. .description {
  992. overflow: hidden;
  993. -webkit-line-clamp: 2;
  994. text-overflow: ellipsis;
  995. display: -webkit-box;
  996. -webkit-box-orient: vertical;
  997. }
  998. </style>