Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

index.vue 26KB

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