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

index.vue 26KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092
  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. // uni.navigateToMiniProgram({
  454. // appId: '2021004107608006', // 16 位
  455. // path: `/pages/recharge/recharge`,
  456. // envVersion: "develop",
  457. // success: function (res) {
  458. // console.log(res);
  459. // },
  460. // fail: function (err) {
  461. // console.log(err);
  462. // }
  463. // });
  464. };
  465. const closeMask = () => {
  466. isShowMask.value = false;
  467. };
  468. // 获取文本信息----用户协议
  469. const getInfo = () => {
  470. //参数说明
  471. let options = {
  472. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  473. data: {
  474. businessType: 'BROADCAST' //广播栏信息
  475. }, //请求参数
  476. method: "POST", //提交方式(默认POST)
  477. showLoading: true, //是否显示加载中(默认显示)
  478. };
  479. //调用方式
  480. request(infoQuery, options)
  481. .then((res) => {
  482. let data = stringToJson(res.bizContent)
  483. console.log(data);
  484. state.notice = data.text
  485. })
  486. .catch((err) => {
  487. console.log(err);
  488. });
  489. }
  490. //替换图片地址
  491. const strReplace = (str : string) => {
  492. return str.replace('http://192.168.100.63:8087', envs[process.env.NODE_ENV].baseUrl)
  493. }
  494. // 高速快讯查询接口
  495. const highMsg = () => {
  496. let options = {
  497. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  498. data: {
  499. pageNo: 1,
  500. pageSize: 2
  501. }, //请求参数
  502. method: "POST", //提交方式(默认POST)
  503. showLoading: true, //是否显示加载中(默认显示)
  504. };
  505. //调用方式
  506. request(queryHighMsg, options).then((res) => {
  507. console.log("高速快讯查询接口", stringToJson(res.bizContent));
  508. state.highMsgData = stringToJson(res.bizContent).data
  509. for (var i = 0; i < state.highMsgData.length; i++) {
  510. state.highMsgData[i]["copywriting"] = getCodeName('COPYWRITING', state.highMsgData[i]["copywriting"])
  511. if (state.highMsgData[i]["type"] == 3) {
  512. state.highMsgData[i]["title"] = state.highMsgData[i]["hyperLink"]
  513. }
  514. }
  515. }).catch((err) => { console.log(err) });
  516. }
  517. const link = (item : any) => {
  518. if (item.type == 1) {
  519. const params = encodeURIComponent(JSON.stringify(item.hyperLink))
  520. tools.toUrl(`/subpackage/personal-center/webview?url=` + params);
  521. } else if (item.type == 2) {
  522. navTo(item.hyperLink)
  523. } else if (item.type == 3) {
  524. const param = encodeURIComponent(JSON.stringify(item))
  525. tools.toUrl(`/subpackage/orders/moreHighMsg/textDetails?item=` + param);
  526. } else if (item.type == 4) {
  527. uni.navigateToMiniProgram({
  528. appId: item.hyperLink,
  529. path: item.speedUrl,
  530. success(res) {
  531. console.log(res);
  532. },
  533. complete(res) {
  534. console.log(res);
  535. },
  536. fail(res) {
  537. console.log(res);
  538. // 未成功跳转到车主小程序
  539. },
  540. });
  541. }
  542. }
  543. const processeCondition = () => {
  544. let options = {
  545. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  546. data: {
  547. businessType: 'PROCESSING_CONDITIONS' //办理条件
  548. }, //请求参数
  549. method: "POST", //提交方式(默认POST)
  550. showLoading: true, //是否显示加载中(默认显示)
  551. };
  552. //调用方式
  553. request(infoQuery, options)
  554. .then((res) => {
  555. let data = stringToJson(res.bizContent)
  556. console.log("办理条件", data)
  557. state.processeConditionText = data.text
  558. })
  559. .catch((err) => {
  560. console.log(err);
  561. });
  562. }
  563. const commonQuestion = () => {
  564. let options = {
  565. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  566. data: {
  567. businessType: 'COMMON_PROBLEM' //常见问题
  568. }, //请求参数
  569. method: "POST", //提交方式(默认POST)
  570. showLoading: true, //是否显示加载中(默认显示)
  571. };
  572. //调用方式
  573. request(infoQuery, options)
  574. .then((res) => {
  575. let data = stringToJson(res.bizContent)
  576. console.log("常见问题", data)
  577. state.commonQuestionText = data.text
  578. })
  579. .catch((err) => {
  580. console.log(err);
  581. });
  582. }
  583. // 代办事项
  584. const doSomething = () => {
  585. let options = {
  586. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  587. data: {
  588. "opId": getItem(StorageKeys.OpenId),
  589. "source": "WECHAT",
  590. "vehiclePlate": "",
  591. "tabIndex": 3 + '',
  592. "pageNo": 1,
  593. "pageSize": 100,
  594. "promotionModes": 1
  595. },
  596. method: "POST", //提交方式(默认POST)
  597. };
  598. //调用方式
  599. request(orderList, options)
  600. .then((res) => {
  601. let data = stringToJson(res.bizContent)
  602. let obj = {};
  603. obj["id"] = 1;
  604. obj['title'] = "您有" + data.data.length + "条未完成订单,前往处理"
  605. state.noticeList.push(obj)
  606. console.log("代办事项", data.data)
  607. })
  608. .catch((err) => {
  609. console.log(err);
  610. });
  611. }
  612. const goOrder = (index) => {
  613. uni.reLaunch({
  614. url: `../order/order?index=${index}`
  615. })
  616. }
  617. </script>
  618. <style>
  619. page {
  620. background: #eef7f7;
  621. }
  622. </style>
  623. <style lang="scss" scoped>
  624. .statusBar {
  625. width: 100%;
  626. position: sticky;
  627. background: linear-gradient(-90deg, #43a1e0 0%, #13e7c1 100%);
  628. top: 0;
  629. left: 0;
  630. z-index: 999;
  631. }
  632. .banner {
  633. position: relative;
  634. }
  635. .banner swiper {
  636. height: 470rpx;
  637. width: 750rpx;
  638. }
  639. .banner .notice {
  640. position: absolute;
  641. background: rgba(0, 0, 0, 0.28);
  642. border-radius: 30rpx;
  643. width: 500rpx;
  644. height: 60rpx;
  645. bottom: 46rpx;
  646. left: 125rpx;
  647. display: flex;
  648. justify-content: center;
  649. align-items: center;
  650. padding: 0 20rpx;
  651. box-sizing: border-box;
  652. ::v-deep .uni-noticebar {
  653. background: none !important;
  654. margin-bottom: 0;
  655. text {
  656. font-size: 24rpx !important;
  657. color: #ffffff !important;
  658. }
  659. }
  660. }
  661. .banner .notice .icon {
  662. width: 40rpx;
  663. height: 40rpx;
  664. margin: 10rpx;
  665. }
  666. .banner .notice .notice-text {
  667. font-size: 24rpx;
  668. color: #ffffff;
  669. flex: 1;
  670. }
  671. .swiper-item image {
  672. width: 100%;
  673. height: auto;
  674. }
  675. .nav {
  676. display: flex;
  677. flex-wrap: wrap;
  678. padding: 0 35rpx;
  679. font-size: 28rpx;
  680. }
  681. .nav .item-box {
  682. display: flex;
  683. flex-direction: column;
  684. justify-content: center;
  685. align-items: center;
  686. }
  687. .nav .item {
  688. width: 80rpx;
  689. height: 80rpx;
  690. border-radius: 30rpx;
  691. display: flex;
  692. justify-content: center;
  693. align-items: center;
  694. margin: 50rpx 45rpx 20rpx 45rpx;
  695. }
  696. .nav .text {
  697. font-size: 24rpx;
  698. color: #172843;
  699. }
  700. .item-1 {
  701. background: linear-gradient(133deg, #5fff9b 0%, #00b38b 100%);
  702. }
  703. .item-2 {
  704. background: linear-gradient(-50deg, #018ffd 0%, #27fcff 100%);
  705. }
  706. .item-3 {
  707. background: linear-gradient(-47deg, #f88721 0%, #fecd61 100%);
  708. }
  709. .item-4 {
  710. background: linear-gradient(-47deg, #018ffd 0%, #27fcff 100%);
  711. }
  712. .item-5 {
  713. background: linear-gradient(-44deg, #018ffd 0%, #27fcff 100%);
  714. }
  715. .item-6 {
  716. background: linear-gradient(-50deg, #f88721 0%, #fecd61 100%);
  717. }
  718. .item-7 {
  719. background: linear-gradient(129deg, #5fff9b 0%, #00b38b 100%);
  720. }
  721. .item-8 {
  722. background: linear-gradient(124deg, #b8f0f2 0%, #62aeb1 100%);
  723. }
  724. .item image {
  725. width: 56rpx;
  726. height: 56rpx;
  727. }
  728. .express-lane {
  729. font-size: 36rpx;
  730. font-weight: 400;
  731. color: #000000;
  732. padding-top: 30rpx;
  733. // line-height: 58rpx;
  734. }
  735. .express-lane .title {
  736. padding-left: 30rpx;
  737. margin: 0rpx 0 20rpx;
  738. font-size: 32rpx;
  739. font-weight: bold;
  740. }
  741. .lane {
  742. display: flex;
  743. justify-content: space-evenly;
  744. }
  745. .lane-item {
  746. width: 330rpx;
  747. height: 150rpx;
  748. border-radius: 20rpx;
  749. display: flex;
  750. justify-content: center;
  751. align-items: center;
  752. }
  753. .lane-item image {
  754. width: 120rpx;
  755. height: 100rpx;
  756. margin: 0 18rpx;
  757. }
  758. .lane-item .text {
  759. display: flex;
  760. flex-direction: column;
  761. justify-content: center;
  762. // align-items: center;
  763. color: #ffffff;
  764. flex: 1;
  765. }
  766. .lane-item .head {
  767. font-size: 30rpx;
  768. font-weight: bold;
  769. }
  770. .lane-item .decribe {
  771. font-size: 24rpx;
  772. }
  773. .lane-1 {
  774. background: var(--background);
  775. }
  776. .lane-2 {
  777. background: var(--background);
  778. }
  779. .news {
  780. padding: 30rpx 30rpx 0 30rpx;
  781. }
  782. .news .title {
  783. font-size: 32rpx;
  784. font-weight: bold;
  785. }
  786. .news .left-text {
  787. flex: 1;
  788. margin-right: 100rpx;
  789. }
  790. .news-box {
  791. background: #ffffff;
  792. border-radius: 20rpx;
  793. padding: 0 32rpx;
  794. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  795. margin: 20rpx 0 50rpx;
  796. }
  797. .news .tit {
  798. font-size: 26rpx;
  799. color: #172843;
  800. }
  801. .news .news-item {
  802. display: flex;
  803. border-bottom: 1px solid #dcdcdc;
  804. padding: 32rpx 0 15rpx;
  805. }
  806. .news .image-box image {
  807. width: 100rpx;
  808. height: 100rpx;
  809. border-radius: 10rpx;
  810. }
  811. .news .span {
  812. font-size: 22rpx;
  813. display: inline-block;
  814. text-align: center;
  815. background: #bae0f1;
  816. border-radius: 6rpx;
  817. color: #0a8f8a;
  818. padding: 4rpx 8rpx;
  819. }
  820. .news .more {
  821. font-size: 24rpx;
  822. text-align: center;
  823. color: #0a8f8a;
  824. padding: 22rpx 0;
  825. }
  826. .service {
  827. padding: 0 30rpx 50rpx 30rpx;
  828. }
  829. .service .title {
  830. font-size: 32rpx;
  831. font-weight: bold;
  832. }
  833. .service-box {
  834. background: #ffffff;
  835. border-radius: 20rpx;
  836. padding: 0 32rpx;
  837. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  838. display: flex;
  839. flex-direction: column;
  840. margin-top: 20rpx;
  841. }
  842. .service-item {
  843. display: flex;
  844. align-items: center;
  845. justify-content: center;
  846. padding: 22rpx 0;
  847. }
  848. .service-item .text {
  849. flex: 1;
  850. }
  851. .service image {
  852. width: 170rpx;
  853. height: 116rpx;
  854. margin-right: 26rpx;
  855. }
  856. .service .tit {
  857. font-size: 28rpx;
  858. font-weight: bold;
  859. color: #0d0f26;
  860. }
  861. .service .sub {
  862. font-size: 24rpx;
  863. color: #666666;
  864. padding-top: 10rpx;
  865. }
  866. .service .border {
  867. border-bottom: 1px solid #dcdcdc;
  868. }
  869. .mask {
  870. background: $uni-bg-color-mask;
  871. position: fixed;
  872. left: 0;
  873. top: 0;
  874. right: 0;
  875. bottom: 0;
  876. }
  877. .mask-content {
  878. background: $uni-bg-color;
  879. width: 570rpx;
  880. height: 480rpx;
  881. position: absolute;
  882. left: 50%;
  883. top: 50%;
  884. transform: translate(-50%, -50%);
  885. display: flex;
  886. flex-direction: column;
  887. border-radius: 20rpx;
  888. }
  889. .mask-close {
  890. text-align: right;
  891. }
  892. .mask-title {
  893. text-align: center;
  894. font-size: 32rpx;
  895. color: $uni-text-color-black;
  896. margin-bottom: 50rpx;
  897. }
  898. .mask-tab {
  899. display: flex;
  900. justify-content: space-evenly;
  901. }
  902. .icon-closed {
  903. width: 48rpx;
  904. height: 48rpx;
  905. margin: 24rpx 24rpx 0 0;
  906. }
  907. .tab-item {
  908. display: flex;
  909. flex-direction: column;
  910. justify-content: center;
  911. align-items: center;
  912. }
  913. .tab-tit {
  914. font-size: 32rpx;
  915. margin-top: 20rpx;
  916. color: #666;
  917. }
  918. .tab-item image {
  919. width: 160rpx;
  920. height: 160rpx;
  921. }
  922. .backlog-notice {
  923. margin: 50rpx 30rpx 0rpx;
  924. }
  925. .flow-path {
  926. padding: 20rpx 0rpx 20rpx;
  927. .scroll-view {
  928. white-space: nowrap;
  929. // position: sticky;
  930. top: 0;
  931. }
  932. .top-menu {
  933. display: flex;
  934. }
  935. .top-menu .tab {
  936. font-size: 28rpx;
  937. padding: 38rpx 30rpx;
  938. color: #666666;
  939. position: relative;
  940. }
  941. .top-menu .active .border {
  942. position: absolute;
  943. width: 70%;
  944. height: 16rpx;
  945. background: #00b38b;
  946. opacity: 0.3;
  947. bottom: 40rpx;
  948. z-index: -99;
  949. left: 15%;
  950. border-radius: 6rpx;
  951. }
  952. .top-menu .active {
  953. font-weight: bold;
  954. font-size: 32rpx;
  955. color: #0d0f26;
  956. }
  957. .top-menu .active::before {
  958. width: 100%;
  959. height: 16rpx;
  960. background: #00b38b;
  961. opacity: 0.3;
  962. }
  963. .flow-list {
  964. margin: 0rpx 30rpx;
  965. min-height: 700rpx;
  966. background: #ffffff;
  967. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  968. border-radius: 20rpx;
  969. padding: 55rpx 30rpx 30rpx;
  970. }
  971. }
  972. .description {
  973. overflow: hidden;
  974. -webkit-line-clamp: 2;
  975. text-overflow: ellipsis;
  976. display: -webkit-box;
  977. -webkit-box-orient: vertical;
  978. }
  979. </style>