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 25KB

2 vuotta sitten
1 vuosi sitten
1 vuosi sitten
2 vuotta sitten
1 vuosi sitten
1 vuosi sitten
2 vuotta sitten
1 vuosi sitten
1 vuosi sitten
1 vuosi sitten
2 vuotta sitten
1 vuosi sitten
1 vuosi sitten
1 vuosi sitten
1 vuosi sitten
1 vuosi sitten
2 vuotta sitten
1 vuosi sitten
1 vuosi sitten
2 vuotta sitten
1 vuosi sitten
1 vuosi sitten
2 vuotta sitten
1 vuosi sitten
1 vuosi sitten
2 vuotta sitten
1 vuosi sitten
1 vuosi sitten
1 vuosi sitten
2 vuotta sitten
1 vuosi sitten
2 vuotta sitten
1 vuosi sitten
1 vuosi sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
1 vuosi sitten
1 vuosi sitten
2 vuotta sitten
2 vuotta sitten
1 vuosi sitten
2 vuotta sitten
1 vuosi sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
1 vuosi sitten
2 vuotta sitten
1 vuosi sitten
2 vuotta sitten
1 vuosi sitten
2 vuotta sitten
1 vuosi sitten
2 vuotta sitten
1 vuosi sitten
1 vuosi sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
1 vuosi sitten
1 vuosi sitten
2 vuotta sitten
1 vuosi sitten
1 vuosi sitten
2 vuotta sitten
1 vuosi sitten
1 vuosi sitten
2 vuotta sitten
1 vuosi sitten
1 vuosi sitten
2 vuotta sitten
1 vuosi sitten
1 vuosi sitten
2 vuotta sitten
1 vuosi sitten
2 vuotta sitten
1 vuosi sitten
2 vuotta sitten
1 vuosi sitten
2 vuotta sitten
1 vuosi sitten
1 vuosi sitten
1 vuosi sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
1 vuosi sitten
1 vuosi sitten
1 vuosi sitten
1 vuosi sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
1 vuosi sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
1 vuosi sitten
1 vuosi sitten
1 vuosi sitten
1 vuosi sitten
1 vuosi sitten
1 vuosi sitten
1 vuosi sitten
1 vuosi sitten
1 vuosi sitten
1 vuosi sitten
1 vuosi sitten
1 vuosi sitten
1 vuosi sitten
1 vuosi sitten
1 vuosi sitten
1 vuosi sitten
1 vuosi sitten
1 vuosi sitten
1 vuosi sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
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. <uni-notice-bar style="width: 100%;" scrollable single :text="state.notice">
  23. </uni-notice-bar>
  24. </view>
  25. </view>
  26. <!-- 按钮导航 -->
  27. <view class="nav">
  28. <view class="item-box" @click="cardRecharge(1)">
  29. <view class="item item-1">
  30. <image :src="fileURL + 'image/index/item-1.png'" mode="aspectFill" />
  31. </view>
  32. <view class="text">储值卡充值</view>
  33. </view>
  34. <view class="item-box" @click="$util.navTo('/pages/bluetooth/bluetooth?routeType=4', true)">
  35. <view class="item item-2">
  36. <image :src="fileURL + 'image/index/item-2.png'" mode="aspectFill" />
  37. </view>
  38. <view class="text">卡签信息查询</view>
  39. </view>
  40. <!-- <view class="item-box" @click="$util.navTo('/subpackage/orders/Invoice-mannager',true)">
  41. <view class="item item-3">
  42. <image :src="fileURL + 'image/index/item-3.png'" mode="aspectFill" />
  43. </view>
  44. <view class="text">通行发票</view>
  45. </view> -->
  46. <view class="item-box"
  47. @click="$util.navTo('/subpackage/after-sale/activation-once-again/select-car',true)">
  48. <view class="item item-3">
  49. <image :src="fileURL + '20230511/24e179d44e2d4e5687339bff_obucxjh.png'" mode="aspectFill" />
  50. </view>
  51. <view class="text">重新激活</view>
  52. </view>
  53. <view class="item-box"
  54. @click="$util.navTo('/subpackage/personal-center/install-activation-order',true)">
  55. <view class="item item-4">
  56. <image :src="fileURL + 'image/index/item-4.png'" mode="aspectFill" />
  57. </view>
  58. <view class="text">设备激活</view>
  59. </view>
  60. <view class="item-box"
  61. @click="$util.navTo('/subpackage/after-sale/card-loss-reporting/select-car',true)">
  62. <view class="item item-5">
  63. <image :src="fileURL + 'image/index/item-5.png'" mode="aspectFill" />
  64. </view>
  65. <view class="text">挂失解挂</view>
  66. </view>
  67. <view class="item-box" @click="cardRecharge(2)">
  68. <view class="item item-6">
  69. <image :src="fileURL + 'image/index/item-6.png'" mode="aspectFill" />
  70. </view>
  71. <view class="text">解除车牌占用</view>
  72. </view>
  73. <!-- <view class="item-box"
  74. @click="$util.navTo(`/subpackage/personal-center/setting/personal-information/corrections`,true)">
  75. <view class="item item-7">
  76. <image :src="fileURL + 'image/index/item-7.png'" mode="aspectFill" />
  77. </view>
  78. <view class="text">基础信息变更</view>
  79. </view> -->
  80. <view class="item-box" @click="$util.navTo(`/subpackage/after-sale/onlineService`,true)">
  81. <view class="item item-7">
  82. <image :src="fileURL + 'image/index/item-7.png'" mode="aspectFill" />
  83. </view>
  84. <view class="text">在线客服</view>
  85. </view>
  86. <view class="item-box" @click="$util.navTo(`/pages/service/service`,true)">
  87. <view class="item item-8">
  88. <image :src="fileURL + 'image/index/item-more.png'" mode="aspectFill" />
  89. </view>
  90. <view class="text">更多</view>
  91. </view>
  92. </view>
  93. <!-- 消息滚动显示 -->
  94. <view v-if="false" class="backlog-notice">
  95. <notice-bar :noticeList="state.noticeList" @noticeClick="goOrder(3)"></notice-bar>
  96. </view>
  97. <!--快速办理通道 -->
  98. <view class="express-lane">
  99. <view class="title">快速办理通道</view>
  100. <view class="lane">
  101. <view class="lane-item lane-1" :style="{ '--background': bgOrange }" @click="showMask(1)">
  102. <image :src="fileURL + 'image/index/icon-car.png'" mode="aspectFill"></image>
  103. <view class="text">
  104. <text class="head">客车通道</text>
  105. <text class="decribe">业务内容简介</text>
  106. </view>
  107. </view>
  108. <view class="lane-item lane-2" :style="{ '--background': bgBlue }" @click="showMask(2)">
  109. <image :src="fileURL + 'image/index/icon-truck.png'" mode="aspectFill"></image>
  110. <view class="text">
  111. <text class="head">货车通道</text>
  112. <text class="decribe">业务内容简介</text>
  113. </view>
  114. </view>
  115. </view>
  116. </view>
  117. <!-- 办理流程 -->
  118. <view class="flow-path">
  119. <scroll-view scroll-x="true" class="scroll-view">
  120. <view class="top-menu">
  121. <view :class="item == state.tabActive ? 'tab active' : 'tab'"
  122. v-for="item in state.flowPathTabList" :key="item" @click="flowPathTabHandle(item)">
  123. <view class="border"></view>{{ item }}
  124. </view>
  125. </view>
  126. </scroll-view>
  127. <view v-if="state.tabActive === '办理流程'">
  128. <view class="flow-list">
  129. <flow-path-list :options="state.flowList"></flow-path-list>
  130. </view>
  131. </view>
  132. <view v-else-if="state.tabActive === '办理条件'">
  133. <view class="flow-list as-gravity-center"> {{state.processeConditionText}} </view>
  134. </view>
  135. <view v-else-if="state.tabActive === '常见问题'">
  136. <view class="flow-list as-gravity-center"> {{state.commonQuestionText}} </view>
  137. </view>
  138. </view>
  139. </view>
  140. <!-- 高速快讯 -->
  141. <view class="news">
  142. <view class="title">高速快讯</view>
  143. <view class="news-box">
  144. <view class="news-item" v-for="(item,index) in state.highMsgData" :key='index' @click="link(item)">
  145. <view class="left-text">
  146. <view class="tit description">{{item.title}}</view>
  147. <view class="span">{{item.copywriting}}</view>
  148. </view>
  149. <view class="image-box">
  150. <image :src="fileURLList + item.imgUrl" mode="aspectFill"></image>
  151. </view>
  152. </view>
  153. <view v-if="state.highMsgData.length!=0" class="more"
  154. @click="$util.navTo('/subpackage/orders/moreHighMsg/moreHighMsg',true)">查看更多</view>
  155. </view>
  156. </view>
  157. <!-- 专区服务 -->
  158. <!-- <view class="service">
  159. <view class="title">专区服务</view>
  160. <view class="service-box">
  161. <view class="service-item border" @click="$util.msg('该功能正在开发中,敬请期待!')">
  162. <image :src="fileURL + 'image/index/truck-point.png'" mode="aspectFill"></image>
  163. <view class="text">
  164. <view class="tit">货车积分返利</view>
  165. <view class="sub">海量商品任你选择</view>
  166. </view>
  167. </view>
  168. <view class="service-item" @click="$util.msg('该功能正在开发中,敬请期待!')">
  169. <image :src="fileURL + 'image/index/parking-bill.png'" mode="aspectFill"></image>
  170. <view class="text">
  171. <view class="tit">停车场账单查询</view>
  172. <view class="sub">消费明细一目了然{{ title }}</view>
  173. </view>
  174. </view>
  175. </view>
  176. </view> -->
  177. </filter>
  178. <!-- ETC选择弹窗 -->
  179. <view class="mask" v-if="isShowMask">
  180. <view class="mask-content">
  181. <filter>
  182. <view class="mask-close">
  183. <image :src="fileURL + 'image/index/icon-close.png'" class="icon-closed" @click="closeMask"></image>
  184. </view>
  185. <view class="mask-title" :style="{ '--color': color }">选择ETC用户类型</view>
  186. <view class="mask-tab">
  187. <view class="tab-item active" @click="toCreatOrder('1')">
  188. <image :src="fileURL + 'image/index/icon-personal.png'" mode="aspectFill"></image>
  189. <text class="tab-tit on">个人办理</text>
  190. </view>
  191. <view class="tab-item" @click="toCreatOrder('2')">
  192. <image :src="fileURL + 'image/index/icon-unit.png'" mode="aspectFill"></image>
  193. <text class="tab-tit on">单位办理</text>
  194. </view>
  195. </view>
  196. </filter>
  197. </view>
  198. </view>
  199. </template>
  200. <script setup lang="ts">
  201. import {
  202. onMounted,
  203. ref
  204. } from "vue";
  205. import {
  206. onPageScroll,
  207. onLoad
  208. } from "@dcloudio/uni-app";
  209. import flowPathList from "./components/flow-path-list.vue";
  210. import filter from '@/components/filter/filter.vue';
  211. import {
  212. request
  213. } from "@/utils/network/request.js";
  214. import {
  215. stringToJson
  216. } from "@/utils/network/encryption.js";
  217. import {
  218. useUserStore
  219. } from "@/stores/user";
  220. import {
  221. getItem,
  222. setItem,
  223. StorageKeys
  224. } from "@/utils/storage";
  225. import {
  226. queryKey,
  227. querySwiper,
  228. envs,
  229. infoQuery,
  230. queryHighMsg,
  231. orderList
  232. } from "@/utils/network/api.js";
  233. import {
  234. reactive
  235. } from "vue";
  236. import {
  237. fileURL, fileURLList
  238. } from "@/datas/fileURL.js";
  239. import {
  240. navTo,
  241. confirm,
  242. msg
  243. } from "@/utils/utils";
  244. import {
  245. getCodeName
  246. } from "@/datas/queryKey.js";
  247. import navBar from "@/components/nav-bar/nav-bar2.vue";
  248. const tools = require("../../static/etcUtil/tools.js");
  249. const bgOrange = `url(${fileURL}image/index/bg-orange.png) center center no-repeat`;
  250. const bgBlue = `url(${fileURL}image/index/bg-blue.png) center center no-repeat`;
  251. const list = reactive(["您有一条待办事项,还未办理完成"])
  252. const scrollTop = ref(0);
  253. const isBack = ref(false);
  254. const swiper = reactive({
  255. indicatorDots: true,
  256. autoplay: true,
  257. interval: 3000,
  258. duration: 3000,
  259. easing: "easeInOutCubic"
  260. })
  261. console.log('输出内容==============', getItem(StorageKeys.OpenId), '==============')
  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. } else if (val == 2) {
  586. navTo('/subpackage/after-sale/rescind-carId/rescind-carId-select', true)
  587. }
  588. // #endif
  589. }
  590. </script>
  591. <style>
  592. page {
  593. background: #eef7f7;
  594. }
  595. </style>
  596. <style lang="scss" scoped>
  597. .statusBar {
  598. width: 100%;
  599. position: sticky;
  600. background: linear-gradient(-90deg, #43a1e0 0%, #13e7c1 100%);
  601. top: 0;
  602. left: 0;
  603. z-index: 999;
  604. }
  605. .banner {
  606. position: relative;
  607. }
  608. .banner swiper {
  609. height: 470rpx;
  610. width: 750rpx;
  611. }
  612. .banner .notice {
  613. position: absolute;
  614. background: rgba(0, 0, 0, 0.28);
  615. border-radius: 30rpx;
  616. width: 500rpx;
  617. height: 60rpx;
  618. bottom: 46rpx;
  619. left: 125rpx;
  620. display: flex;
  621. justify-content: center;
  622. align-items: center;
  623. padding: 0 20rpx;
  624. box-sizing: border-box;
  625. ::v-deep .uni-noticebar {
  626. background: none !important;
  627. margin-bottom: 0;
  628. text {
  629. font-size: 24rpx !important;
  630. color: #ffffff !important;
  631. }
  632. }
  633. }
  634. .banner .notice .icon {
  635. width: 40rpx;
  636. height: 40rpx;
  637. margin: 10rpx;
  638. }
  639. .banner .notice .notice-text {
  640. font-size: 24rpx;
  641. color: #ffffff;
  642. flex: 1;
  643. }
  644. .swiper-item image {
  645. width: 100%;
  646. height: auto;
  647. }
  648. .nav {
  649. display: flex;
  650. flex-wrap: wrap;
  651. padding: 0 35rpx;
  652. font-size: 28rpx;
  653. }
  654. .nav .item-box {
  655. display: flex;
  656. flex-direction: column;
  657. justify-content: center;
  658. align-items: center;
  659. }
  660. .nav .item {
  661. width: 80rpx;
  662. height: 80rpx;
  663. border-radius: 30rpx;
  664. display: flex;
  665. justify-content: center;
  666. align-items: center;
  667. margin: 50rpx 45rpx 20rpx 45rpx;
  668. }
  669. .nav .text {
  670. font-size: 24rpx;
  671. color: #172843;
  672. }
  673. .item-1 {
  674. background: linear-gradient(133deg, #5fff9b 0%, #00b38b 100%);
  675. }
  676. .item-2 {
  677. background: linear-gradient(-50deg, #018ffd 0%, #27fcff 100%);
  678. }
  679. .item-3 {
  680. background: linear-gradient(-47deg, #f88721 0%, #fecd61 100%);
  681. }
  682. .item-4 {
  683. background: linear-gradient(-47deg, #018ffd 0%, #27fcff 100%);
  684. }
  685. .item-5 {
  686. background: linear-gradient(-44deg, #018ffd 0%, #27fcff 100%);
  687. }
  688. .item-6 {
  689. background: linear-gradient(-50deg, #f88721 0%, #fecd61 100%);
  690. }
  691. .item-7 {
  692. background: linear-gradient(129deg, #5fff9b 0%, #00b38b 100%);
  693. }
  694. .item-8 {
  695. background: linear-gradient(124deg, #b8f0f2 0%, #62aeb1 100%);
  696. }
  697. .item image {
  698. width: 56rpx;
  699. height: 56rpx;
  700. }
  701. .express-lane {
  702. font-size: 36rpx;
  703. font-weight: 400;
  704. color: #000000;
  705. padding-top: 30rpx;
  706. // line-height: 58rpx;
  707. }
  708. .express-lane .title {
  709. padding-left: 30rpx;
  710. margin: 0rpx 0 20rpx;
  711. font-size: 32rpx;
  712. font-weight: bold;
  713. }
  714. .lane {
  715. display: flex;
  716. justify-content: space-evenly;
  717. }
  718. .lane-item {
  719. width: 330rpx;
  720. height: 150rpx;
  721. border-radius: 20rpx;
  722. display: flex;
  723. justify-content: center;
  724. align-items: center;
  725. }
  726. .lane-item image {
  727. width: 120rpx;
  728. height: 100rpx;
  729. margin: 0 18rpx;
  730. }
  731. .lane-item .text {
  732. display: flex;
  733. flex-direction: column;
  734. justify-content: center;
  735. // align-items: center;
  736. color: #ffffff;
  737. flex: 1;
  738. }
  739. .lane-item .head {
  740. font-size: 30rpx;
  741. font-weight: bold;
  742. }
  743. .lane-item .decribe {
  744. font-size: 24rpx;
  745. }
  746. .lane-1 {
  747. background: var(--background);
  748. }
  749. .lane-2 {
  750. background: var(--background);
  751. }
  752. .news {
  753. padding: 30rpx 30rpx 0 30rpx;
  754. }
  755. .news .title {
  756. font-size: 32rpx;
  757. font-weight: bold;
  758. }
  759. .news .left-text {
  760. flex: 1;
  761. margin-right: 100rpx;
  762. }
  763. .news-box {
  764. background: #ffffff;
  765. border-radius: 20rpx;
  766. padding: 0 32rpx;
  767. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  768. margin: 20rpx 0 50rpx;
  769. }
  770. .news .tit {
  771. font-size: 26rpx;
  772. color: #172843;
  773. }
  774. .news .news-item {
  775. display: flex;
  776. border-bottom: 1px solid #dcdcdc;
  777. padding: 32rpx 0 15rpx;
  778. }
  779. .news .image-box image {
  780. width: 100rpx;
  781. height: 100rpx;
  782. border-radius: 10rpx;
  783. }
  784. .news .span {
  785. font-size: 22rpx;
  786. display: inline-block;
  787. text-align: center;
  788. background: #bae0f1;
  789. border-radius: 6rpx;
  790. color: #0a8f8a;
  791. padding: 4rpx 8rpx;
  792. }
  793. .news .more {
  794. font-size: 24rpx;
  795. text-align: center;
  796. color: #0a8f8a;
  797. padding: 22rpx 0;
  798. }
  799. .service {
  800. padding: 0 30rpx 50rpx 30rpx;
  801. }
  802. .service .title {
  803. font-size: 32rpx;
  804. font-weight: bold;
  805. }
  806. .service-box {
  807. background: #ffffff;
  808. border-radius: 20rpx;
  809. padding: 0 32rpx;
  810. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  811. display: flex;
  812. flex-direction: column;
  813. margin-top: 20rpx;
  814. }
  815. .service-item {
  816. display: flex;
  817. align-items: center;
  818. justify-content: center;
  819. padding: 22rpx 0;
  820. }
  821. .service-item .text {
  822. flex: 1;
  823. }
  824. .service image {
  825. width: 170rpx;
  826. height: 116rpx;
  827. margin-right: 26rpx;
  828. }
  829. .service .tit {
  830. font-size: 28rpx;
  831. font-weight: bold;
  832. color: #0d0f26;
  833. }
  834. .service .sub {
  835. font-size: 24rpx;
  836. color: #666666;
  837. padding-top: 10rpx;
  838. }
  839. .service .border {
  840. border-bottom: 1px solid #dcdcdc;
  841. }
  842. .mask {
  843. background: $uni-bg-color-mask;
  844. position: fixed;
  845. left: 0;
  846. top: 0;
  847. right: 0;
  848. bottom: 0;
  849. }
  850. .mask-content {
  851. background: $uni-bg-color;
  852. width: 570rpx;
  853. height: 480rpx;
  854. position: absolute;
  855. left: 50%;
  856. top: 50%;
  857. transform: translate(-50%, -50%);
  858. display: flex;
  859. flex-direction: column;
  860. border-radius: 20rpx;
  861. }
  862. .mask-close {
  863. text-align: right;
  864. }
  865. .mask-title {
  866. text-align: center;
  867. font-size: 32rpx;
  868. color: $uni-text-color-black;
  869. margin-bottom: 50rpx;
  870. }
  871. .mask-tab {
  872. display: flex;
  873. justify-content: space-evenly;
  874. }
  875. .icon-closed {
  876. width: 48rpx;
  877. height: 48rpx;
  878. margin: 24rpx 24rpx 0 0;
  879. }
  880. .tab-item {
  881. display: flex;
  882. flex-direction: column;
  883. justify-content: center;
  884. align-items: center;
  885. }
  886. .tab-tit {
  887. font-size: 32rpx;
  888. margin-top: 20rpx;
  889. color: #666;
  890. }
  891. .tab-item image {
  892. width: 160rpx;
  893. height: 160rpx;
  894. }
  895. .backlog-notice {
  896. margin: 50rpx 30rpx 0rpx;
  897. }
  898. .flow-path {
  899. padding: 20rpx 0rpx 20rpx;
  900. .scroll-view {
  901. white-space: nowrap;
  902. // position: sticky;
  903. top: 0;
  904. }
  905. .top-menu {
  906. display: flex;
  907. }
  908. .top-menu .tab {
  909. font-size: 28rpx;
  910. padding: 38rpx 30rpx;
  911. color: #666666;
  912. position: relative;
  913. }
  914. .top-menu .active .border {
  915. position: absolute;
  916. width: 70%;
  917. height: 16rpx;
  918. background: #00b38b;
  919. opacity: 0.3;
  920. bottom: 40rpx;
  921. z-index: -99;
  922. left: 15%;
  923. border-radius: 6rpx;
  924. }
  925. .top-menu .active {
  926. font-weight: bold;
  927. font-size: 32rpx;
  928. color: #0d0f26;
  929. }
  930. .top-menu .active::before {
  931. width: 100%;
  932. height: 16rpx;
  933. background: #00b38b;
  934. opacity: 0.3;
  935. }
  936. .flow-list {
  937. margin: 0rpx 30rpx;
  938. min-height: 700rpx;
  939. background: #ffffff;
  940. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  941. border-radius: 20rpx;
  942. padding: 55rpx 30rpx 30rpx;
  943. }
  944. }
  945. .description {
  946. overflow: hidden;
  947. -webkit-line-clamp: 2;
  948. text-overflow: ellipsis;
  949. display: -webkit-box;
  950. -webkit-box-orient: vertical;
  951. }
  952. </style>