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

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