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.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145
  1. <template>
  2. <view class='container'>
  3. <view class="bg-img">
  4. <image :src="`${fileURL}image/newHome/header.png`" mode="scaleToFill" class="icon"></image>
  5. </view>
  6. <view class="content">
  7. <view class="header">
  8. <!-- <navBar :isBack='false' :title='首页'></navBar> -->
  9. <view class="title">
  10. <view :style="{ height: `${statusBarHeight}px` }"></view>
  11. <!-- 自定义导航栏高度 -->
  12. <view class='title-txt' :style="{
  13. height: `${barHeight}px`,
  14. 'line-height': `${barHeight}px`
  15. }">
  16. <text>首页</text>
  17. </view>
  18. </view>
  19. <view class="search-box">
  20. <image :src="`${fileURL}image/newHome/search.png`" class="icon" mode="aspectFill"></image>
  21. <input class="search" placeholder="办业务·搜一搜" @input="onKeyInput" />
  22. <!-- <u-input v-model="searchParams" type="text" :border="false" :height="80" placeholder-style='color: #fff;' /> -->
  23. </view>
  24. </view>
  25. <view class="nav">
  26. <view class="item-box" v-for='(item,index) in navList' :key='index' @click="handleNav(item)">
  27. <view class="icon-img">
  28. <image :src="item.imgUrl" mode="aspectFit" class='img'></image>
  29. </view>
  30. <view class="b-txt">
  31. {{item.title}}
  32. </view>
  33. </view>
  34. </view>
  35. <view class="notice" :style="{'--bgimg':`url(${fileURL}image/newHome/tongzhi.png)`}">
  36. <view class="l-img">
  37. <image :src="`${fileURL}image/newHome/tongzhi-l.png`" class='img' mode="aspectFit"></image>
  38. </view>
  39. <view class="r-info">
  40. <!-- <u-notice-bar mode="vertical" :list="state.noticeList" type="none" :volume-icon="false" :no-list-hidden='true'></u-notice-bar> -->
  41. {{state.notice}}
  42. </view>
  43. </view>
  44. <view class="supervision-con">
  45. <!-- <u-swiper :list="state.swiperListArr"></u-swiper> -->
  46. <swiper class="swiper" circular :indicator-dots="swiper.indicatorDots" :autoplay="swiper.autoplay"
  47. :interval="swiper.interval" :duration="swiper.duration" >
  48. <block v-if="state.swiperList.length >0" v-for="item in state.swiperList" :key="item.id">
  49. <swiper-item class="swiper-item" @click="link(item)">
  50. <image :src="fileURLList + item.imgUrl" mode="widthFix" class='img'></image>
  51. </swiper-item>
  52. </block>
  53. </swiper>
  54. <!-- <view class="txt">
  55. ETC服务监督电话
  56. </view>
  57. <view class="phone">
  58. 0851-883065555
  59. </view>
  60. <view class="btn">
  61. <text>立即拨打 ></text>
  62. </view> -->
  63. </view>
  64. <view class="title-name title-h">
  65. 快速办理
  66. </view>
  67. <view class="express-lane">
  68. <view class="item keche" :style="{'--bgimg':`url(${fileURL}image/newHome/keche.png)`}">
  69. <view class="item-con" @click="showMask(1)">
  70. <view class="top-txt">
  71. 客车用户
  72. </view>
  73. <view class="btn">
  74. 进入
  75. </view>
  76. </view>
  77. </view>
  78. <view class="item huoche" :style="{'--bgimg':`url(${fileURL}image/newHome/huoche.png)`}">
  79. <view class="item-con" @click="showMask(2)">
  80. <view class="top-txt">
  81. 货车用户
  82. </view>
  83. <view class="btn">
  84. 进入
  85. </view>
  86. </view>
  87. </view>
  88. </view>
  89. <view class="news-con">
  90. <view class="title-con">
  91. <text class='title-h'>高速快讯</text>
  92. <view class="r-more" @click="$util.navTo('/subpackage/orders/moreHighMsg/moreHighMsg',true)">
  93. <text class='txt'>更多</text>
  94. <image :src="`${fileURL}image/newHome/r-icon.png`" mode="aspectFit" class='icon'></image>
  95. </view>
  96. </view>
  97. <view class="news-box">
  98. <template v-if='state.highMsgData'>
  99. <view class="news-item" v-for="(item,index) in state.highMsgData" :key='index' @click="link(item)">
  100. <view class="l-img">
  101. <image :src="fileURLList + item.imgUrl" mode="aspectFill" class="img"></image>
  102. </view>
  103. <view class="r-txt">
  104. <view class="tit">
  105. {{item.title}}
  106. </view>
  107. <view class="b-time">
  108. {{item.updateTime}}
  109. </view>
  110. </view>
  111. </view>
  112. </template>
  113. <view class="empty-news" v-else>
  114. <u-empty text="暂无数据" mode="news" :icon-size='90' :font-size='24'></u-empty>
  115. </view>
  116. </view>
  117. </view>
  118. <!-- 办理流程 -->
  119. <view class="flow-path">
  120. <view class="top-menu">
  121. <view :class="item == state.tabActive ? 'tab active' : 'tab'" v-for="item in state.flowPathTabList"
  122. :key="item" @click="flowPathTabHandle(item)">
  123. <view class="txt">
  124. {{ item }}
  125. </view>
  126. <view class="border" :style="{'--bgimg':`url(${fileURL}image/newHome/bottom-select.png)`}">
  127. </view>
  128. </view>
  129. </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 tiaojian">
  137. <view class="title-top">
  138. <image :src="`${fileURL}image/newHome/tiaojian.png`" mode="scaleToFill" class="icon-img"></image>
  139. <view class="txt">
  140. 基本条件
  141. </view>
  142. <image :src="`${fileURL}image/newHome/tiaojianr.png`" mode="scaleToFill" class="icon-img"></image>
  143. </view>
  144. <view class="list-info"> {{state.processeConditionText}} </view>
  145. </view>
  146. </view>
  147. <view v-else-if="state.tabActive === '常见问题'">
  148. <view class="flow-list wenti">
  149. <view class="item-box" v-for='(item,index) in state.commonQuestionArr' :key='index'>
  150. <view class="l-icon">
  151. <image :src="`${fileURL}image/newHome/wenhao.png`" mode="scaleToFill" class="icon-img"></image>
  152. </view>
  153. <view class="txt">
  154. {{item}}
  155. </view>
  156. </view>
  157. <!-- <view class="list-info"> {{state.commonQuestionText}} </view> -->
  158. </view>
  159. </view>
  160. </view>
  161. </view>
  162. </view>
  163. <!-- ETC选择弹窗 -->
  164. <view class="mask" v-if="isShowMask">
  165. <view class="mask-content">
  166. <filter>
  167. <view class="mask-close">
  168. <image :src="fileURL + 'image/index/icon-close.png'" class="icon-closed" @click="closeMask"></image>
  169. </view>
  170. <view class="mask-title" :style="{ '--color': color }">选择ETC用户类型</view>
  171. <view class="mask-tab">
  172. <view class="tab-item active" @click="toCreatOrder('1')">
  173. <image :src="fileURL + 'image/index/icon-personal.png'" mode="aspectFill"></image>
  174. <text class="tab-tit on">个人办理</text>
  175. </view>
  176. <view class="tab-item" @click="toCreatOrder('2')">
  177. <image :src="fileURL + 'image/index/icon-unit.png'" mode="aspectFill"></image>
  178. <text class="tab-tit on">单位办理</text>
  179. </view>
  180. </view>
  181. </filter>
  182. </view>
  183. </view>
  184. </template>
  185. <script setup lang="ts">
  186. import {
  187. onMounted,
  188. ref, reactive
  189. } from "vue";
  190. import {
  191. onPageScroll,
  192. onLoad, onReachBottom, onReady
  193. } from "@dcloudio/uni-app";
  194. import flowPathList from "./components/flow-path-list.vue";
  195. import filter from '@/components/filter/filter.vue';
  196. import {
  197. request
  198. } from "@/utils/network/request.js";
  199. import {
  200. stringToJson
  201. } from "@/utils/network/encryption.js";
  202. import {
  203. useUserStore
  204. } from "@/stores/user";
  205. import {
  206. getItem,
  207. setItem,
  208. StorageKeys
  209. } from "@/utils/storage";
  210. import {
  211. queryKey,
  212. querySwiper,
  213. envs,
  214. infoQuery,
  215. queryHighMsg,
  216. orderList
  217. } from "@/utils/network/api.js";
  218. import {
  219. fileURL, fileURLList
  220. } from "@/datas/fileURL.js";
  221. import {
  222. navTo,
  223. msg,
  224. noticeUser
  225. } from "@/utils/utils";
  226. import {
  227. getCodeName
  228. } from "@/datas/queryKey.js";
  229. // import { jump } from "@/datas/9901Jump.js";
  230. // import navBar from "@/components/nav-bar/nav-bar2.vue";
  231. import { getCurrentInstance } from 'vue';
  232. const tools = require("../../static/etcUtil/tools.js");
  233. const instance = getCurrentInstance();
  234. const swiper = reactive({
  235. indicatorDots: false,
  236. autoplay: true,
  237. interval: 6000,
  238. duration: 500,
  239. easing: "default"
  240. })
  241. onLoad((options) => {
  242. console.log("wechatSignNo", options)
  243. getInfo();
  244. })
  245. onMounted(() => {
  246. const query = uni.createSelectorQuery().in(instance.proxy);
  247. query
  248. .select(".news-con")
  249. .boundingClientRect((data) => {
  250. console.log("得到布局位置信息", data);
  251. console.log("节点离页面顶部的距离为" + data.top);
  252. newTop.value = data.top
  253. })
  254. .exec();
  255. let systemInfo = uni.getSystemInfoSync()
  256. viewHeight.value = systemInfo.windowHeight
  257. statusBarHeight.value = systemInfo.statusBarHeight;
  258. const {
  259. top,
  260. height
  261. } = uni.getMenuButtonBoundingClientRect();
  262. barHeight.value = height ? height + (top - statusBarHeight.value) * 2 : 38;
  263. console.log(barHeight.value, statusBarHeight.value, systemInfo, '计算的顶部高度');
  264. getSwiper()
  265. })
  266. const statusBarHeight = ref(0)
  267. const viewHeight = ref(0) //可视区高度
  268. const barHeight = ref(0)
  269. const searchParams = ref('')
  270. const newTop = ref(0) //高速快讯距离顶部距离
  271. const isShowMask = ref(false);
  272. //搜索
  273. const onKeyInput = (event) => {
  274. searchParams.value = event.target.value;
  275. console.log('搜索内容', searchParams.value);
  276. }
  277. const navList = [{
  278. imgUrl: `${fileURL}image/newHome/kaqian.png`,
  279. title: "卡签信息查询",
  280. path: '/pages/bluetooth/bluetooth?routeType=4'
  281. }, {
  282. imgUrl: `${fileURL}image/newHome/jihuo.png`,
  283. title: "激活服务",
  284. path: '/subpackage/personal-center/install-activation-order'
  285. }, {
  286. imgUrl: `${fileURL}image/newHome/zhuxiao.png`,
  287. title: "设备注销",
  288. path: "",
  289. handlePath: () => {
  290. cardRecharge(3)
  291. }
  292. }, {
  293. imgUrl: `${fileURL}image/newHome/shenji.png`,
  294. title: "设备升级",
  295. path: `/subpackage/after-sale/equipment-upgrade/select-car`
  296. }, {
  297. imgUrl: `${fileURL}image/newHome/kefu.png`,
  298. title: "在线客服",
  299. path: `/subpackage/after-sale/onlineService`
  300. }, {
  301. imgUrl: `${fileURL}image/newHome/wangdian.png`,
  302. title: "网点查询",
  303. path: ""
  304. }, {
  305. imgUrl: `${fileURL}image/newHome/yewu.png`,
  306. title: "业务指引",
  307. path: ""
  308. }, {
  309. imgUrl: `${fileURL}image/newHome/more.png`,
  310. title: "更多",
  311. path: `/pages/service/service`
  312. }]
  313. const handleNav = (item) => {
  314. if (item.path) {
  315. navTo(item.path, true)
  316. } else if (item.handlePath) {
  317. item.handlePath()
  318. }
  319. }
  320. const cardRecharge = (val) => {
  321. // #ifdef MP-ALIPAY
  322. if (val == 1 || val == 2 || val == 3) {
  323. msg("业务升级中,请前往九州ETC公众号进行办理。或拨打客服电话400-800-8787")
  324. }
  325. // #endif
  326. // #ifdef MP-WEIXIN
  327. if (val == 1) {
  328. navTo('/pages/recharge/recharge-pay', true)
  329. } else if (val == 2) {
  330. navTo('/subpackage/after-sale/rescind-carId/rescind-carId-select', true)
  331. } else if (val == 3) {
  332. navTo('/subpackage/after-sale/activation-once-again/select-car?type=2', true)
  333. }
  334. // #endif
  335. }
  336. const state = reactive({
  337. vanType: 0, //1客车 2货车
  338. userType: 1, //1个人 2单位
  339. notice: "",
  340. swiperList: [],
  341. swiperListArr: [],
  342. noticeList: [], //公告栏列表
  343. flowPathTabList: ["办理流程", "办理条件", "常见问题"],
  344. tabActive: "办理流程",
  345. flowList: [
  346. //办理流程数据
  347. {
  348. title: "01 产品选择",
  349. desc: "选择购买的发行产品",
  350. imgUrl: `${fileURL}image/newHome/1.png`,
  351. },
  352. {
  353. title: "02 信息校验",
  354. desc: "提交车牌号、车牌颜色、收货地址相关信息",
  355. imgUrl: `${fileURL}image/newHome/2.png`,
  356. },
  357. {
  358. title: "03 证件上传",
  359. desc: "上传身份证、行驶证等相关信息",
  360. imgUrl: `${fileURL}image/newHome/3.png`,
  361. },
  362. {
  363. title: "04 订单支付",
  364. desc: "支付完成订单",
  365. imgUrl: `${fileURL}image/newHome/4.png`,
  366. },
  367. {
  368. title: "05 签约代扣",
  369. desc: "选择签约账户并关联",
  370. imgUrl: `${fileURL}image/newHome/5.png`,
  371. },
  372. ],
  373. highMsgData: '',//高速快讯内容
  374. processeConditionText: "", //办理条件文本
  375. commonQuestionText: "", //常见问题文本
  376. commonQuestionArr: [], //常见问题数组
  377. isEnableSetGray: false
  378. });
  379. // 页面初次渲染完成时触发
  380. onReady(() => {
  381. setTimeout(() => {
  382. quanKeyAction()
  383. }, 5000)
  384. })
  385. onMounted(() => {
  386. uni.getSystemInfo({
  387. success: (e : any) => {
  388. statusBarHeight.value = e.statusBarHeight;
  389. }
  390. })
  391. getSwiper()
  392. });
  393. onReachBottom(() => {
  394. highMsg(); //高速快讯
  395. })
  396. // const tip = () => {
  397. // const params = encodeURIComponent(JSON.stringify("https://webzeus.hltgz.com/throughBilManager/index"))
  398. // tools.toUrl(`/subpackage/personal-center/webview?url=` + params);
  399. // }
  400. //办理流程tab选择
  401. const flowPathTabHandle = (tab) => {
  402. state.tabActive = tab;
  403. if (tab == "办理条件") {
  404. processeCondition();//办理条件
  405. } else if (tab == "常见问题") {
  406. commonQuestion();
  407. }
  408. };
  409. const showMask = (val : any) => {
  410. state.vanType = val; //1 客车 2货车
  411. isShowMask.value = true;
  412. };
  413. const closeMask = () => {
  414. isShowMask.value = false;
  415. };
  416. // 获取文本信息----用户协议
  417. const getInfo = () => {
  418. //参数说明
  419. let options = {
  420. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  421. data: {
  422. businessType: 'BROADCAST' //广播栏信息
  423. }, //请求参数
  424. method: "POST", //提交方式(默认POST)
  425. showLoading: true, //是否显示加载中(默认显示)
  426. };
  427. //调用方式
  428. request(infoQuery, options)
  429. .then((res) => {
  430. let data = stringToJson(res.bizContent)
  431. state.notice = data.text
  432. state.noticeList = [data.text || '暂无公告', '平明送客楚山孤',]
  433. console.log(data, state.noticeList, '公告');
  434. })
  435. .catch((err) => {
  436. console.log(err, '错误');
  437. });
  438. }
  439. let newLock = false
  440. // 高速快讯查询接口
  441. const highMsg = () => {
  442. newLock = true
  443. let options = {
  444. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  445. data: {
  446. pageNo: 1,
  447. pageSize: 2
  448. }, //请求参数
  449. method: "POST", //提交方式(默认POST)
  450. showLoading: true, //是否显示加载中(默认显示)
  451. };
  452. //调用方式
  453. request(queryHighMsg, options).then((res) => {
  454. console.log("高速快讯查询接口", stringToJson(res.bizContent));
  455. state.highMsgData = stringToJson(res.bizContent).data.slice(0, 4)
  456. for (var i = 0; i < state.highMsgData.length; i++) {
  457. state.highMsgData[i]["copywriting"] = getCodeName('COPYWRITING', state.highMsgData[i]["copywriting"])
  458. state.highMsgData[i]["updateTime"] = state.highMsgData[i]["updateTime"].replace('T', ' ')
  459. if (state.highMsgData[i]["type"] == 3) {
  460. state.highMsgData[i]["title"] = state.highMsgData[i]["hyperLink"]
  461. }
  462. }
  463. state.highMsgData.sort(function (a, b) {
  464. return a.sequence - b.sequence//正序
  465. })
  466. }).catch((err) => { console.log(err) });
  467. }
  468. const processeCondition = () => {
  469. let options = {
  470. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  471. data: {
  472. businessType: 'PROCESSING_CONDITIONS' //办理条件
  473. }, //请求参数
  474. method: "POST", //提交方式(默认POST)
  475. showLoading: true, //是否显示加载中(默认显示)
  476. };
  477. //调用方式
  478. request(infoQuery, options)
  479. .then((res) => {
  480. let data = stringToJson(res.bizContent)
  481. console.log("办理条件", data)
  482. state.processeConditionText = data.text
  483. })
  484. .catch((err) => {
  485. console.log(err);
  486. });
  487. }
  488. const commonQuestion = () => {
  489. let options = {
  490. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  491. data: {
  492. businessType: 'COMMON_PROBLEM' //常见问题
  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.commonQuestionText = data.text
  503. state.commonQuestionArr = data.text.split('。').filter(item => item)
  504. })
  505. .catch((err) => {
  506. console.log(err);
  507. });
  508. }
  509. //监听页面滚动
  510. onPageScroll((e) => {
  511. let h = viewHeight.value + e.scrollTop
  512. if (h >= newTop.value - 50 && !newLock) {
  513. highMsg()
  514. }
  515. });
  516. const toCreatOrder = (val : number) => {
  517. console.log(typeof (val));
  518. state.userType = val;
  519. navTo(`/subpackage/orders/choice-product?vanType=${state.vanType}&&userType=${state.userType}`)
  520. closeMask();
  521. };
  522. //全量枚举值查询
  523. const quanKeyAction = () => {
  524. var data = {};
  525. const options = {
  526. type: 2,
  527. data: data,
  528. method: "POST",
  529. showLoading: true,
  530. };
  531. request(queryKey, options).then((res) => {
  532. console.log(stringToJson(res.bizContent));
  533. const data = stringToJson(res.bizContent)
  534. console.log("枚举", data)
  535. setItem('key', data.dictTypeAndItem)
  536. })
  537. .catch((err) => {
  538. console.log(err);
  539. });
  540. }
  541. //获取轮播
  542. const getSwiper = () => {
  543. let options = {
  544. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  545. data: {
  546. }, //请求参数
  547. method: "POST", //提交方式(默认POST)
  548. showLoading: true, //是否显示加载中(默认显示)
  549. };
  550. //调用方式
  551. request(querySwiper, options).then((res) => {
  552. console.log(stringToJson(res.bizContent));
  553. const data = stringToJson(res.bizContent)
  554. console.log("轮播图", data)
  555. state.swiperList = data.swipers ? data.swipers : [],
  556. state.swiperListArr = state.swiperList.map(item => fileURLList + item.imgUrl)
  557. })
  558. .catch((err) => {
  559. console.log(err);
  560. });
  561. };
  562. const link = (item : any) => {
  563. console.log(item);
  564. if (item.type == 1) {
  565. const params = encodeURIComponent(JSON.stringify(item.hyperLink))
  566. tools.toUrl(`/subpackage/personal-center/webview?url=` + params);
  567. } else if (item.type == 2) {
  568. navTo(item.hyperLink)
  569. } else if (item.type == 3) {
  570. const param = encodeURIComponent(JSON.stringify(item))
  571. tools.toUrl(`/subpackage/orders/moreHighMsg/textDetails?item=` + param);
  572. } else if (item.type == 4) {
  573. uni.navigateToMiniProgram({
  574. appId: item.hyperLink,
  575. path: item.speedUrl,
  576. success(res) {
  577. console.log(res);
  578. },
  579. complete(res) {
  580. console.log(res);
  581. },
  582. fail(res) {
  583. console.log(res);
  584. // 未成功跳转到车主小程序
  585. },
  586. });
  587. }
  588. }
  589. </script>
  590. <style lang="scss" scoped>
  591. .container {
  592. height: 100%;
  593. background-color: #f2f5f7;
  594. position: relative;
  595. }
  596. .bg-img {
  597. width: 100%;
  598. position: absolute;
  599. z-index: 0;
  600. .icon {
  601. width: 100%;
  602. height: 750rpx;
  603. }
  604. }
  605. .content {
  606. position: relative;
  607. padding-bottom: 30rpx;
  608. }
  609. .header {
  610. height: 590rpx;
  611. .title {
  612. .title-txt {
  613. font-family: PingFangSC, PingFang SC;
  614. font-weight: bold;
  615. font-size: 32rpx;
  616. color: #FFFFFF;
  617. text-align: center;
  618. }
  619. }
  620. .search-box {
  621. margin: 10rpx 30rpx 0;
  622. position: relative;
  623. height: 80rpx;
  624. background: #1a394d;
  625. // border: 1px solid #DCDCDC;
  626. border-radius: 40rpx;
  627. display: flex;
  628. justify-content: center;
  629. align-items: center;
  630. box-sizing: border-box;
  631. flex: 1;
  632. .icon {
  633. width: 27rpx;
  634. height: 27rpx;
  635. margin-left: 26rpx;
  636. }
  637. .search {
  638. flex: 1;
  639. margin-right: 20rpx;
  640. height: 100%;
  641. padding: 0 10rpx;
  642. color: #fff;
  643. font-weight: 500;
  644. font-size: 26rpx;
  645. background: #1a394d;
  646. ::v-deep .input-placeholder {
  647. color: #fff !important;
  648. }
  649. }
  650. }
  651. }
  652. .nav {
  653. background-color: #fff;
  654. margin: 0 30rpx;
  655. width: 100%;
  656. width: 690rpx;
  657. height: 360rpx;
  658. background: #FFFFFF;
  659. border-radius: 12rpx;
  660. display: grid;
  661. grid-template-columns: repeat(4, 25%);
  662. grid-template-rows: repeat(2, 50%);
  663. // grid-gap: 10px;
  664. .item-box {
  665. display: flex;
  666. align-items: center;
  667. justify-content: center;
  668. flex-direction: column;
  669. .icon-img {
  670. height: 100rpx;
  671. width: 100rpx;
  672. border-radius: 50%;
  673. padding: 25rpx;
  674. background: #ECF1F4;
  675. box-sizing: border-box;
  676. .img {
  677. width: 100%;
  678. height: 100%;
  679. }
  680. }
  681. .b-txt {
  682. margin-top: 16rpx;
  683. font-size: 26rpx;
  684. color: #111111;
  685. }
  686. }
  687. }
  688. .notice {
  689. background-image: var(--bgimg);
  690. background-size: 100% 100%;
  691. background-repeat: no-repeat;
  692. height: 80rpx;
  693. width: 690rpx;
  694. margin: 24rpx 30rpx 0;
  695. display: flex;
  696. align-items: center;
  697. .l-img {
  698. width: 136rpx;
  699. height: 80rpx;
  700. margin-left: 20rpx;
  701. .img {
  702. height: 100%;
  703. width: 100%;
  704. }
  705. }
  706. .r-info {
  707. line-height: 80rpx;
  708. margin-left: 16rpx;
  709. font-size: 27rpx;
  710. color: #000;
  711. font-weight: 500;
  712. }
  713. }
  714. .supervision-con {
  715. box-sizing: border-box;
  716. height: 180rpx;
  717. width: 690rpx;
  718. margin: 24rpx 30rpx 0;
  719. // background-image: url(https://qtzl.etcjz.cn/default-bucket/image/newHome/phone.png);
  720. // background-size: 100% 100%;
  721. // background-repeat: no-repeat;
  722. // padding: 35rpx 0 0 52rpx;
  723. // background: #FFFFFF;
  724. border-radius: 12rpx;
  725. overflow: hidden;
  726. .swiper {
  727. height: 180rpx;
  728. width: 690rpx;
  729. }
  730. .swiper-item .img {
  731. overflow: hidden;
  732. border-radius: 12rpx;
  733. height: 180rpx !important;
  734. width: 690rpx;
  735. }
  736. .txt {
  737. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  738. font-weight: 400;
  739. font-size: 26rpx;
  740. color: #111111;
  741. }
  742. .phone {
  743. margin: 10rpx 0 10rpx;
  744. font-family: Arial, Arial;
  745. font-weight: normal;
  746. font-size: 38rpx;
  747. color: #B99A46;
  748. }
  749. .btn {
  750. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  751. font-weight: 400;
  752. font-size: 24rpx;
  753. color: #01243A;
  754. }
  755. }
  756. .title-name {
  757. margin: 24rpx 30rpx 0;
  758. }
  759. .title-h {
  760. font-family: PingFangSC, PingFang SC;
  761. font-weight: bold;
  762. font-size: 34rpx;
  763. color: #01243A;
  764. }
  765. .express-lane {
  766. margin: 22rpx 30rpx 0;
  767. display: flex;
  768. align-items: center;
  769. justify-content: space-between;
  770. .item {
  771. background-size: 100% 100%;
  772. background-repeat: no-repeat;
  773. width: 334rpx;
  774. height: 168rpx;
  775. text-align: right;
  776. display: flex;
  777. align-items: flex-end;
  778. justify-content: center;
  779. flex-direction: column;
  780. background-image: var(--bgimg);
  781. .item-con {
  782. margin-right: 53rpx;
  783. }
  784. .top-txt {
  785. font-family: PingFangSC, PingFang SC;
  786. font-size: 30rpx;
  787. color: #FFFFFF;
  788. }
  789. .btn {
  790. margin-top: 30rpx;
  791. background: #03385D;
  792. border-radius: 20rpx;
  793. font-family: PingFangSC, PingFang SC;
  794. font-size: 24rpx;
  795. color: #FFFFFF;
  796. height: 40rpx;
  797. width: 80rpx;
  798. line-height: 40rpx;
  799. text-align: center;
  800. }
  801. }
  802. .keche {
  803. .btn {
  804. background-color: #03385D;
  805. }
  806. }
  807. .huoche {
  808. margin-left: 22rpx;
  809. .btn {
  810. background-color: #C2A75F;
  811. }
  812. }
  813. }
  814. .news-con {
  815. margin: 39rpx 30rpx 0;
  816. .title-con {
  817. display: flex;
  818. align-items: center;
  819. justify-content: space-between;
  820. .r-more {
  821. width: 100rpx;
  822. height: 44rpx;
  823. border-radius: 22rpx;
  824. border: 1rpx solid #01243A;
  825. display: flex;
  826. align-items: center;
  827. justify-content: center;
  828. .txt {
  829. font-family: PingFangSC, PingFang SC;
  830. font-weight: bold;
  831. font-size: 24rpx;
  832. color: #01243A;
  833. }
  834. .icon {
  835. width: 10rpx;
  836. height: 100%;
  837. margin-left: 5rpx;
  838. }
  839. }
  840. }
  841. .empty-news {}
  842. .news-box {
  843. border-radius: 12rpx;
  844. background-color: #fff;
  845. margin-top: 22rpx;
  846. padding: 0 20rpx;
  847. .news-item {
  848. padding: 20rpx 0;
  849. display: flex;
  850. &:nth-child(n+2) {
  851. border-top: 1rpx solid #eee;
  852. }
  853. .l-img {
  854. width: 180rpx;
  855. height: 135rpx;
  856. .img {
  857. height: 100%;
  858. width: 100%;
  859. }
  860. }
  861. .r-txt {
  862. margin-left: 20rpx;
  863. display: flex;
  864. flex-direction: column;
  865. justify-content: space-between;
  866. .tit {
  867. font-family: PingFangSC, PingFang SC;
  868. font-weight: bold;
  869. font-size: 30rpx;
  870. color: #111111;
  871. }
  872. .b-time {
  873. font-family: PingFangSC, PingFang SC;
  874. font-size: 24rpx;
  875. color: #999999;
  876. }
  877. }
  878. }
  879. }
  880. }
  881. .flow-path {
  882. margin: 31rpx 30rpx 0;
  883. .top-menu {
  884. display: flex;
  885. .tab {
  886. font-family: MicrosoftYaHeiUI;
  887. font-size: 28rpx;
  888. color: #5A5E61;
  889. margin-right: 39rpx;
  890. position: relative;
  891. &.active {
  892. font-size: 34rpx;
  893. color: #01243A;
  894. .border {
  895. position: relative;
  896. }
  897. .border::after {
  898. content: "";
  899. background-image: var(--bgimg);
  900. background-repeat: no-repeat;
  901. background-size: 100% 100%;
  902. position: absolute;
  903. bottom: 0;
  904. left: 0;
  905. width: 100%;
  906. height: 16rpx;
  907. }
  908. }
  909. .txt {
  910. position: relative;
  911. z-index: 2;
  912. }
  913. }
  914. }
  915. .flow-list {
  916. margin-top: 30rpx;
  917. background-color: #fff;
  918. border-radius: 12rpx;
  919. padding: 20rpx;
  920. }
  921. .tiaojian {
  922. .title-top {
  923. display: flex;
  924. justify-content: center;
  925. align-items: center;
  926. padding-bottom: 20rpx;
  927. .txt {
  928. margin: 0 24rpx;
  929. font-family: MicrosoftYaHei;
  930. font-size: 30rpx;
  931. color: #01243A;
  932. }
  933. .icon-img {
  934. width: 16rpx;
  935. height: 20rpx;
  936. }
  937. }
  938. }
  939. .list-info {
  940. font-family: MicrosoftYaHeiUI;
  941. font-size: 26rpx;
  942. color: #222222;
  943. }
  944. .wenti {
  945. .item-box:nth-child(n+2) {
  946. border-top: 1rpx solid #E8E8E8;
  947. }
  948. .item-box {
  949. display: flex;
  950. padding: 15rpx 0;
  951. }
  952. .l-icon {
  953. flex-shrink: 0;
  954. width: 38rpx;
  955. height: 38rpx;
  956. display: flex;
  957. align-items: center;
  958. justify-content: center;
  959. background-color: #c2a75f;
  960. border-radius: 50%;
  961. .icon-img {
  962. width: 14rpx;
  963. height: 24rpx;
  964. }
  965. }
  966. .txt {
  967. margin-left: 14rpx;
  968. font-family: PingFangSC, PingFang SC;
  969. font-size: 28rpx;
  970. color: #222222;
  971. line-height: 38rpx;
  972. }
  973. }
  974. }
  975. .mask {
  976. background: $uni-bg-color-mask;
  977. position: fixed;
  978. left: 0;
  979. top: 0;
  980. right: 0;
  981. bottom: 0;
  982. }
  983. .mask-content {
  984. background: $uni-bg-color;
  985. width: 570rpx;
  986. height: 480rpx;
  987. position: absolute;
  988. left: 50%;
  989. top: 50%;
  990. transform: translate(-50%, -50%);
  991. display: flex;
  992. flex-direction: column;
  993. border-radius: 20rpx;
  994. }
  995. .mask-close {
  996. text-align: right;
  997. }
  998. .mask-title {
  999. text-align: center;
  1000. font-size: 32rpx;
  1001. color: $uni-text-color-black;
  1002. margin-bottom: 50rpx;
  1003. }
  1004. .mask-tab {
  1005. display: flex;
  1006. justify-content: space-evenly;
  1007. }
  1008. .icon-closed {
  1009. width: 48rpx;
  1010. height: 48rpx;
  1011. margin: 24rpx 24rpx 0 0;
  1012. }
  1013. .tab-item {
  1014. display: flex;
  1015. flex-direction: column;
  1016. justify-content: center;
  1017. align-items: center;
  1018. }
  1019. .tab-tit {
  1020. font-size: 32rpx;
  1021. margin-top: 20rpx;
  1022. color: #666;
  1023. }
  1024. .tab-item image {
  1025. width: 160rpx;
  1026. height: 160rpx;
  1027. }
  1028. .backlog-notice {
  1029. margin: 50rpx 30rpx 0rpx;
  1030. }
  1031. </style>