Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

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