選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

index.vue 25KB

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