Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

index.vue 25KB

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