You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.vue 25KB

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