Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

index.vue 25KB

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