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.

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