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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116
  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. } from "@/utils/utils";
  276. import {
  277. getCodeName
  278. } from "@/datas/queryKey.js";
  279. // import { jump } from "@/datas/9901Jump.js";
  280. import navBar from "@/components/nav-bar/nav-bar2.vue";
  281. const tools = require("../../static/etcUtil/tools.js");
  282. const bgOrange = `url(${fileURL}image/index/bg-orange.png) center center no-repeat`;
  283. const bgBlue = `url(${fileURL}image/index/bg-blue.png) center center no-repeat`;
  284. const list = reactive(["您有一条待办事项,还未办理完成"])
  285. const scrollTop = ref(0);
  286. const isBack = ref(false);
  287. const swiper = reactive({
  288. indicatorDots: true,
  289. autoplay: true,
  290. interval: 3000,
  291. duration: 3000,
  292. easing: "easeInOutCubic"
  293. })
  294. console.log('输出内容==============', getItem(StorageKeys.OpenId), '==============')
  295. const state = reactive({
  296. type: 0, //1客车 2货车
  297. userType: 1, //1个人 2单位
  298. notice: "",
  299. swiperList: [],
  300. noticeList: [], //公告栏列表
  301. flowPathTabList: ["办理流程", "办理条件", "常见问题"],
  302. tabActive: "办理流程",
  303. flowList: [
  304. //办理流程数据
  305. {
  306. title: "第一步:产品选择",
  307. desc: "选择购买的发行产品",
  308. },
  309. {
  310. title: "第二步:信息校验",
  311. desc: "提交车牌号、车牌颜色、收货地址相关信息",
  312. },
  313. {
  314. title: "第三步:证件上传",
  315. desc: "上传身份证、行驶证等相关信息",
  316. },
  317. {
  318. title: "第四步:订单支付",
  319. desc: "支付完成订单",
  320. },
  321. {
  322. title: "第五步:签约代扣",
  323. desc: "选择签约账户并关联",
  324. },
  325. ],
  326. highMsgData: '',//高速快讯内容
  327. processeConditionText: "", //办理条件文本
  328. commonQuestionText: "", //常见问题文本
  329. isEnableSetGray: false
  330. });
  331. const isShowMask = ref(false);
  332. const isShowBar = ref(false)
  333. const userStore = useUserStore();
  334. const type = 0;
  335. const title = ref("我是测试");
  336. const statusBarHeight = ref(0)
  337. //监听页面滚动
  338. onPageScroll((e) => {
  339. if (e.scrollTop > statusBarHeight.value) {
  340. isShowBar.value = true;
  341. } else {
  342. isShowBar.value = false;
  343. }
  344. scrollTop.value = e.scrollTop;
  345. });
  346. onLoad((options) => {
  347. console.log("wechatSignNo",options)
  348. getInfo();
  349. quanKeyAction().then((val : any) => {
  350. setItem('key', val.dictTypeAndItem)
  351. })
  352. })
  353. onMounted(() => {
  354. uni.getSystemInfo({
  355. success: (e : any) => {
  356. statusBarHeight.value = e.statusBarHeight;
  357. }
  358. })
  359. getSwiper()
  360. });
  361. onReachBottom(() => {
  362. // highMsg(); //高速快讯
  363. })
  364. const tip = () => {
  365. const params = encodeURIComponent(JSON.stringify("https://webzeus.hltgz.com/throughBilManager/index"))
  366. tools.toUrl(`/subpackage/personal-center/webview?url=` + params);
  367. }
  368. //获取轮播
  369. const getSwiper = () => {
  370. let options = {
  371. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  372. data: {
  373. }, //请求参数
  374. method: "POST", //提交方式(默认POST)
  375. showLoading: true, //是否显示加载中(默认显示)
  376. };
  377. //调用方式
  378. request(querySwiper, options).then((res) => {
  379. console.log(stringToJson(res.bizContent));
  380. const data = stringToJson(res.bizContent)
  381. console.log("轮播图", data)
  382. state.swiperList = data.swipers ? data.swipers : []
  383. })
  384. .catch((err) => {
  385. console.log(err);
  386. });
  387. };
  388. //办理流程tab选择
  389. const flowPathTabHandle = (tab) => {
  390. state.tabActive = tab;
  391. if (tab == "办理条件") {
  392. processeCondition();//办理条件
  393. } else if (tab == "常见问题") {
  394. commonQuestion();
  395. }
  396. };
  397. //全量枚举值查询
  398. const quanKeyAction = () => {
  399. var data = {};
  400. const options = {
  401. type: 2,
  402. data: data,
  403. method: "POST",
  404. showLoading: true,
  405. };
  406. return new Promise(async (resolve, reject) => {
  407. const res = await request(queryKey, options);
  408. const data = stringToJson(res.bizContent);
  409. resolve(data);
  410. }).catch((error) => {
  411. reject(error);
  412. });
  413. }
  414. const toCreatOrder = (val : number) => {
  415. console.log(typeof (val));
  416. state.userType = val;
  417. navTo(`/subpackage/orders/choice-product?type=${state.type}&&userType=${state.userType}`)
  418. closeMask();
  419. };
  420. const showMask = (val : any) => {
  421. state.type = val; //1 客车 2货车
  422. isShowMask.value = true;
  423. };
  424. const closeMask = () => {
  425. isShowMask.value = false;
  426. };
  427. // 获取文本信息----用户协议
  428. const getInfo = () => {
  429. //参数说明
  430. let options = {
  431. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  432. data: {
  433. businessType: 'BROADCAST' //广播栏信息
  434. }, //请求参数
  435. method: "POST", //提交方式(默认POST)
  436. showLoading: true, //是否显示加载中(默认显示)
  437. };
  438. //调用方式
  439. request(infoQuery, options)
  440. .then((res) => {
  441. let data = stringToJson(res.bizContent)
  442. console.log(data);
  443. state.notice = data.text
  444. })
  445. .catch((err) => {
  446. console.log(err);
  447. });
  448. }
  449. // 高速快讯查询接口
  450. const highMsg = () => {
  451. let options = {
  452. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  453. data: {
  454. pageNo: 1,
  455. pageSize: 2
  456. }, //请求参数
  457. method: "POST", //提交方式(默认POST)
  458. showLoading: true, //是否显示加载中(默认显示)
  459. };
  460. //调用方式
  461. request(queryHighMsg, options).then((res) => {
  462. console.log("高速快讯查询接口", stringToJson(res.bizContent));
  463. state.highMsgData = stringToJson(res.bizContent).data
  464. for (var i = 0; i < state.highMsgData.length; i++) {
  465. state.highMsgData[i]["copywriting"] = getCodeName('COPYWRITING', state.highMsgData[i]["copywriting"])
  466. if (state.highMsgData[i]["type"] == 3) {
  467. state.highMsgData[i]["title"] = state.highMsgData[i]["hyperLink"]
  468. }
  469. }
  470. state.highMsgData.sort(function (a, b) {
  471. return a.sequence - b.sequence//正序
  472. })
  473. }).catch((err) => { console.log(err) });
  474. }
  475. const link = (item : any) => {
  476. if (item.type == 1) {
  477. const params = encodeURIComponent(JSON.stringify(item.hyperLink))
  478. tools.toUrl(`/subpackage/personal-center/webview?url=` + params);
  479. } else if (item.type == 2) {
  480. navTo(item.hyperLink)
  481. } else if (item.type == 3) {
  482. const param = encodeURIComponent(JSON.stringify(item))
  483. tools.toUrl(`/subpackage/orders/moreHighMsg/textDetails?item=` + param);
  484. } else if (item.type == 4) {
  485. uni.navigateToMiniProgram({
  486. appId: item.hyperLink,
  487. path: item.speedUrl,
  488. success(res) {
  489. console.log(res);
  490. },
  491. complete(res) {
  492. console.log(res);
  493. },
  494. fail(res) {
  495. console.log(res);
  496. // 未成功跳转到车主小程序
  497. },
  498. });
  499. }
  500. }
  501. const processeCondition = () => {
  502. let options = {
  503. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  504. data: {
  505. businessType: 'PROCESSING_CONDITIONS' //办理条件
  506. }, //请求参数
  507. method: "POST", //提交方式(默认POST)
  508. showLoading: true, //是否显示加载中(默认显示)
  509. };
  510. //调用方式
  511. request(infoQuery, options)
  512. .then((res) => {
  513. let data = stringToJson(res.bizContent)
  514. console.log("办理条件", data)
  515. state.processeConditionText = data.text
  516. })
  517. .catch((err) => {
  518. console.log(err);
  519. });
  520. }
  521. const commonQuestion = () => {
  522. let options = {
  523. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  524. data: {
  525. businessType: 'COMMON_PROBLEM' //常见问题
  526. }, //请求参数
  527. method: "POST", //提交方式(默认POST)
  528. showLoading: true, //是否显示加载中(默认显示)
  529. };
  530. //调用方式
  531. request(infoQuery, options)
  532. .then((res) => {
  533. let data = stringToJson(res.bizContent)
  534. console.log("常见问题", data)
  535. state.commonQuestionText = data.text
  536. })
  537. .catch((err) => {
  538. console.log(err);
  539. });
  540. }
  541. // 代办事项
  542. const doSomething = () => {
  543. let options = {
  544. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  545. data: {
  546. "opId": getItem(StorageKeys.OpenId),
  547. "source": "WECHAT",
  548. "vehiclePlate": "",
  549. "tabIndex": 3 + '',
  550. "pageNo": 1,
  551. "pageSize": 100,
  552. "promotionModes": 1
  553. },
  554. method: "POST", //提交方式(默认POST)
  555. };
  556. //调用方式
  557. request(orderList, options)
  558. .then((res) => {
  559. let data = stringToJson(res.bizContent)
  560. let obj = {};
  561. obj["id"] = 1;
  562. obj['title'] = "您有" + data.data.length + "条未完成订单,前往处理"
  563. state.noticeList.push(obj)
  564. console.log("代办事项", data.data)
  565. })
  566. .catch((err) => {
  567. console.log(err);
  568. });
  569. }
  570. const cardRecharge = (val) => {
  571. // #ifdef MP-ALIPAY
  572. if (val == 1 || val == 2 || val == 3) {
  573. msg("业务升级中,请前往九州ETC公众号进行办理。或拨打客服电话400-800-8787")
  574. }
  575. // #endif
  576. // #ifdef MP-WEIXIN
  577. if (val == 1) {
  578. navTo('/pages/recharge/recharge-pay', true)
  579. } else if (val == 2) {
  580. navTo('/subpackage/after-sale/rescind-carId/rescind-carId-select', true)
  581. } else if (val == 3) {
  582. navTo('/subpackage/after-sale/ETC-log-off/select-car', true)
  583. }
  584. // #endif
  585. }
  586. const onlineService=()=>{
  587. // #ifdef MP-ALIPAY
  588. msg("请拨打客服电话400-800-8787")
  589. // #endif
  590. // #ifdef MP-WEIXIN
  591. navTo('//subpackage/after-sale/onlineService', true)
  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. text-align: center;
  664. }
  665. .nav .item {
  666. width: 80rpx;
  667. height: 80rpx;
  668. border-radius: 30rpx;
  669. display: flex;
  670. justify-content: center;
  671. align-items: center;
  672. margin: 50rpx 45rpx 20rpx 45rpx;
  673. }
  674. .nav .text {
  675. font-size: 24rpx;
  676. color: white;
  677. }
  678. .item-1 {
  679. background: linear-gradient(133deg, #5fff9b 0%, #00b38b 100%);
  680. }
  681. .item-2 {
  682. background: linear-gradient(-50deg, #018ffd 0%, #27fcff 100%);
  683. }
  684. .item-3 {
  685. background: linear-gradient(-47deg, #f88721 0%, #fecd61 100%);
  686. }
  687. .item-4 {
  688. background: linear-gradient(-47deg, #018ffd 0%, #27fcff 100%);
  689. }
  690. .item-5 {
  691. background: linear-gradient(-44deg, #018ffd 0%, #27fcff 100%);
  692. }
  693. .item-6 {
  694. background: linear-gradient(-50deg, #f88721 0%, #fecd61 100%);
  695. }
  696. .item-7 {
  697. background: linear-gradient(129deg, #5fff9b 0%, #00b38b 100%);
  698. }
  699. .item-8 {
  700. background: linear-gradient(124deg, #b8f0f2 0%, #62aeb1 100%);
  701. }
  702. .item image {
  703. width: 80rpx;
  704. height: 80rpx;
  705. }
  706. .express-lane {
  707. font-size: 36rpx;
  708. font-weight: 400;
  709. color: #000000;
  710. padding-top: 30rpx;
  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. color: #ffffff;
  740. flex: 1;
  741. }
  742. .lane-item .head {
  743. font-size: 30rpx;
  744. font-weight: bold;
  745. }
  746. .lane-item .decribe {
  747. font-size: 24rpx;
  748. }
  749. .lane-1 {
  750. background: var(--background);
  751. }
  752. .lane-2 {
  753. background: var(--background);
  754. }
  755. .news {
  756. padding: 30rpx 30rpx 0 30rpx;
  757. }
  758. .news .title {
  759. font-size: 32rpx;
  760. font-weight: bold;
  761. }
  762. .news .left-text {
  763. flex: 1;
  764. margin-right: 100rpx;
  765. }
  766. .news-box {
  767. background: #ffffff;
  768. border-radius: 20rpx;
  769. padding: 0 32rpx;
  770. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  771. margin: 20rpx 0 50rpx;
  772. }
  773. .news .tit {
  774. font-size: 26rpx;
  775. color: #172843;
  776. }
  777. .news .news-item {
  778. display: flex;
  779. border-bottom: 1px solid #dcdcdc;
  780. padding: 32rpx 0 15rpx;
  781. }
  782. .news .image-box image {
  783. width: 100rpx;
  784. height: 100rpx;
  785. border-radius: 10rpx;
  786. }
  787. .news .span {
  788. font-size: 22rpx;
  789. display: inline-block;
  790. text-align: center;
  791. background: #bae0f1;
  792. border-radius: 6rpx;
  793. color: #0a8f8a;
  794. padding: 4rpx 8rpx;
  795. }
  796. .news .more {
  797. font-size: 24rpx;
  798. text-align: center;
  799. color: #0a8f8a;
  800. padding: 22rpx 0;
  801. }
  802. .mask {
  803. background: $uni-bg-color-mask;
  804. position: fixed;
  805. left: 0;
  806. top: 0;
  807. right: 0;
  808. bottom: 0;
  809. }
  810. .mask-content {
  811. background: $uni-bg-color;
  812. width: 570rpx;
  813. height: 480rpx;
  814. position: absolute;
  815. left: 50%;
  816. top: 50%;
  817. transform: translate(-50%, -50%);
  818. display: flex;
  819. flex-direction: column;
  820. border-radius: 20rpx;
  821. }
  822. .mask-close {
  823. text-align: right;
  824. }
  825. .mask-title {
  826. text-align: center;
  827. font-size: 32rpx;
  828. color: $uni-text-color-black;
  829. margin-bottom: 50rpx;
  830. }
  831. .mask-tab {
  832. display: flex;
  833. justify-content: space-evenly;
  834. }
  835. .icon-closed {
  836. width: 48rpx;
  837. height: 48rpx;
  838. margin: 24rpx 24rpx 0 0;
  839. }
  840. .tab-item {
  841. display: flex;
  842. flex-direction: column;
  843. justify-content: center;
  844. align-items: center;
  845. }
  846. .tab-tit {
  847. font-size: 32rpx;
  848. margin-top: 20rpx;
  849. color: #666;
  850. }
  851. .tab-item image {
  852. width: 160rpx;
  853. height: 160rpx;
  854. }
  855. .backlog-notice {
  856. margin: 50rpx 30rpx 0rpx;
  857. }
  858. .flow-path {
  859. padding: 20rpx 0rpx 20rpx;
  860. .scroll-view {
  861. white-space: nowrap;
  862. top: 0;
  863. }
  864. .top-menu {
  865. display: flex;
  866. }
  867. .top-menu .tab {
  868. font-size: 28rpx;
  869. padding: 38rpx 30rpx;
  870. color: #666666;
  871. position: relative;
  872. }
  873. .top-menu .active .border {
  874. position: absolute;
  875. width: 70%;
  876. height: 16rpx;
  877. background: #00b38b;
  878. opacity: 0.3;
  879. bottom: 40rpx;
  880. z-index: -99;
  881. left: 15%;
  882. border-radius: 6rpx;
  883. }
  884. .top-menu .active {
  885. font-weight: bold;
  886. font-size: 32rpx;
  887. color: #0d0f26;
  888. }
  889. .top-menu .active::before {
  890. width: 100%;
  891. height: 16rpx;
  892. background: #00b38b;
  893. opacity: 0.3;
  894. }
  895. .flow-list {
  896. margin: 0rpx 30rpx;
  897. min-height: 700rpx;
  898. background: #ffffff;
  899. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  900. border-radius: 20rpx;
  901. padding: 55rpx 30rpx 30rpx;
  902. }
  903. }
  904. .description {
  905. overflow: hidden;
  906. -webkit-line-clamp: 2;
  907. text-overflow: ellipsis;
  908. display: -webkit-box;
  909. -webkit-box-orient: vertical;
  910. }
  911. // 新样式
  912. .top_bg{
  913. background-color: $uni-theme-color;
  914. height: 25vh;
  915. // width: 100%;
  916. border-radius: 0 0 20rpx 20rpx;
  917. }
  918. .entrance{
  919. width: 90%;
  920. height: 40vh;
  921. background-color: white;
  922. margin: 0 auto;
  923. margin-top: -80rpx;
  924. border-radius: 20rpx;
  925. }
  926. .top_title{
  927. color: white;
  928. font-size: 34rpx;
  929. background: $uni-theme-color;
  930. padding-left: 36rpx;
  931. }
  932. .triangle{
  933. width: 0;
  934. height: 0;
  935. border-left: 20px solid transparent;
  936. border-right: 20px solid transparent;
  937. border-bottom: 10px solid white; /* 箭头颜色 */
  938. position: relative;
  939. top: -18rpx;
  940. left: 40rpx;
  941. }
  942. .etc_picture{
  943. width: 150rpx;
  944. height: 100rpx;
  945. margin-bottom: 45rpx;
  946. margin-top: 10rpx;
  947. }
  948. .tips{
  949. display: flex;
  950. justify-content: space-between;
  951. font-size: 26rpx;
  952. padding: 0 30rpx;
  953. }
  954. .tips_left{
  955. width: 35%;
  956. display: flex;
  957. flex-direction: column;
  958. align-items: center;
  959. font-size: 21rpx;
  960. color: #93969E ;
  961. }
  962. .tips_right{
  963. width: 60%;
  964. }
  965. .tips_right .title{
  966. color: $uni-theme-color;
  967. font-weight: bold;
  968. }
  969. .tips_right .title1{
  970. color: #93969E;
  971. margin: 20rpx 0;
  972. }
  973. .tips_right .title2{
  974. color: $uni-theme-color;
  975. }
  976. .tips_right .title2 text{
  977. border: 1rpx solid $uni-theme-color;
  978. border-radius: 4rpx;
  979. font-size: 22rpx;
  980. padding: 2rpx 4rpx;
  981. margin-right: 14rpx;
  982. }
  983. .handle{
  984. width: 90%;
  985. height: 72rpx;
  986. background: $uni-theme-color;
  987. color: white;
  988. font-weight: bold;
  989. font-size: 30rpx;
  990. text-align: center;
  991. margin: 30rpx auto;
  992. line-height: 72rpx;
  993. border-radius: 10rpx;
  994. }
  995. .quickly{
  996. font-size: 26rpx;
  997. display: flex;
  998. justify-content: space-evenly;
  999. align-items: center;
  1000. color: #93969E;
  1001. }
  1002. .quickly>view>image{
  1003. width: 30rpx;
  1004. height: 30rpx;
  1005. vertical-align: baseline;
  1006. }
  1007. .quickly>view{
  1008. display: flex;
  1009. align-items: center;
  1010. }
  1011. .show_banner{
  1012. height: 150rpx;
  1013. margin: 30rpx 0;
  1014. width: 100%;
  1015. position:relative;
  1016. left:0;
  1017. top:0;
  1018. }
  1019. .wrapper{
  1020. width: 100%;
  1021. overflow: hidden;
  1022. }
  1023. </style>