Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

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