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.

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