您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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