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.

index.vue 26KB

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