Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

index.vue 26KB

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