選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

index.vue 27KB

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