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.

index.vue 26KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159
  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">
  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">
  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">
  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">
  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. type: 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. // 页面初次渲染完成时触发
  386. onReady(() => {
  387. setTimeout(() => {
  388. quanKeyAction()
  389. }, 5000)
  390. })
  391. onMounted(() => {
  392. uni.getSystemInfo({
  393. success: (e : any) => {
  394. statusBarHeight.value = e.statusBarHeight;
  395. }
  396. })
  397. getSwiper()
  398. });
  399. onReachBottom(() => {
  400. highMsg(); //高速快讯
  401. })
  402. // const tip = () => {
  403. // const params = encodeURIComponent(JSON.stringify("https://webzeus.hltgz.com/throughBilManager/index"))
  404. // tools.toUrl(`/subpackage/personal-center/webview?url=` + params);
  405. // }
  406. //办理流程tab选择
  407. const flowPathTabHandle = (tab) => {
  408. state.tabActive = tab;
  409. if (tab == "办理条件") {
  410. processeCondition();//办理条件
  411. } else if (tab == "常见问题") {
  412. commonQuestion();
  413. }
  414. };
  415. const showMask = (val : any) => {
  416. state.type = val; //1 客车 2货车
  417. isShowMask.value = true;
  418. };
  419. const closeMask = () => {
  420. isShowMask.value = false;
  421. };
  422. // 获取文本信息----用户协议
  423. const getInfo = () => {
  424. //参数说明
  425. let options = {
  426. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  427. data: {
  428. businessType: 'BROADCAST' //广播栏信息
  429. }, //请求参数
  430. method: "POST", //提交方式(默认POST)
  431. showLoading: true, //是否显示加载中(默认显示)
  432. };
  433. //调用方式
  434. request(infoQuery, options)
  435. .then((res) => {
  436. let data = stringToJson(res.bizContent)
  437. state.notice = data.text
  438. state.noticeList = [data.text || '暂无公告', '平明送客楚山孤',]
  439. console.log(data, state.noticeList, '公告');
  440. })
  441. .catch((err) => {
  442. console.log(err, '错误');
  443. });
  444. }
  445. let newLock = false
  446. // 高速快讯查询接口
  447. const highMsg = () => {
  448. newLock = true
  449. let options = {
  450. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  451. data: {
  452. pageNo: 1,
  453. pageSize: 2
  454. }, //请求参数
  455. method: "POST", //提交方式(默认POST)
  456. showLoading: true, //是否显示加载中(默认显示)
  457. };
  458. //调用方式
  459. request(queryHighMsg, options).then((res) => {
  460. console.log("高速快讯查询接口", stringToJson(res.bizContent));
  461. state.highMsgData = stringToJson(res.bizContent).data.slice(0, 4)
  462. for (var i = 0; i < state.highMsgData.length; i++) {
  463. state.highMsgData[i]["copywriting"] = getCodeName('COPYWRITING', state.highMsgData[i]["copywriting"])
  464. state.highMsgData[i]["updateTime"] = state.highMsgData[i]["updateTime"].replace('T', ' ')
  465. if (state.highMsgData[i]["type"] == 3) {
  466. state.highMsgData[i]["title"] = state.highMsgData[i]["hyperLink"]
  467. }
  468. }
  469. state.highMsgData.sort(function (a, b) {
  470. return a.sequence - b.sequence//正序
  471. })
  472. }).catch((err) => { console.log(err) });
  473. }
  474. const processeCondition = () => {
  475. let options = {
  476. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  477. data: {
  478. businessType: 'PROCESSING_CONDITIONS' //办理条件
  479. }, //请求参数
  480. method: "POST", //提交方式(默认POST)
  481. showLoading: true, //是否显示加载中(默认显示)
  482. };
  483. //调用方式
  484. request(infoQuery, options)
  485. .then((res) => {
  486. let data = stringToJson(res.bizContent)
  487. console.log("办理条件", data)
  488. state.processeConditionText = data.text
  489. })
  490. .catch((err) => {
  491. console.log(err);
  492. });
  493. }
  494. const commonQuestion = () => {
  495. let options = {
  496. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  497. data: {
  498. businessType: 'COMMON_PROBLEM' //常见问题
  499. }, //请求参数
  500. method: "POST", //提交方式(默认POST)
  501. showLoading: true, //是否显示加载中(默认显示)
  502. };
  503. //调用方式
  504. request(infoQuery, options)
  505. .then((res) => {
  506. let data = stringToJson(res.bizContent)
  507. console.log("常见问题", data)
  508. state.commonQuestionText = data.text
  509. state.commonQuestionArr = data.text.split('。').filter(item => item)
  510. })
  511. .catch((err) => {
  512. console.log(err);
  513. });
  514. }
  515. //监听页面滚动
  516. onPageScroll((e) => {
  517. let h = viewHeight.value + e.scrollTop
  518. if (h >= newTop.value - 50 && !newLock) {
  519. highMsg()
  520. }
  521. });
  522. const toCreatOrder = (val : number) => {
  523. console.log(typeof (val));
  524. state.userType = val;
  525. navTo(`/subpackage/orders/choice-product?type=${state.type}&&userType=${state.userType}`)
  526. closeMask();
  527. };
  528. //全量枚举值查询
  529. const quanKeyAction = () => {
  530. var data = {};
  531. const options = {
  532. type: 2,
  533. data: data,
  534. method: "POST",
  535. showLoading: true,
  536. };
  537. request(queryKey, options).then((res) => {
  538. console.log(stringToJson(res.bizContent));
  539. const data = stringToJson(res.bizContent)
  540. console.log("枚举", data)
  541. setItem('key', data.dictTypeAndItem)
  542. })
  543. .catch((err) => {
  544. console.log(err);
  545. });
  546. }
  547. onReady(() => {
  548. setTimeout(() => {
  549. quanKeyAction()
  550. }, 5000)
  551. })
  552. //获取轮播
  553. const getSwiper = () => {
  554. let options = {
  555. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  556. data: {
  557. }, //请求参数
  558. method: "POST", //提交方式(默认POST)
  559. showLoading: true, //是否显示加载中(默认显示)
  560. };
  561. //调用方式
  562. request(querySwiper, options).then((res) => {
  563. console.log(stringToJson(res.bizContent));
  564. const data = stringToJson(res.bizContent)
  565. console.log("轮播图", data)
  566. state.swiperList = data.swipers ? data.swipers : [],
  567. state.swiperListArr = state.swiperList.map(item => fileURLList + item.imgUrl)
  568. })
  569. .catch((err) => {
  570. console.log(err);
  571. });
  572. };
  573. const link = (item : any) => {
  574. console.log(item);
  575. if (item.type == 1) {
  576. const params = encodeURIComponent(JSON.stringify(item.hyperLink))
  577. tools.toUrl(`/subpackage/personal-center/webview?url=` + params);
  578. } else if (item.type == 2) {
  579. navTo(item.hyperLink)
  580. } else if (item.type == 3) {
  581. const param = encodeURIComponent(JSON.stringify(item))
  582. tools.toUrl(`/subpackage/orders/moreHighMsg/textDetails?item=` + param);
  583. } else if (item.type == 4) {
  584. uni.navigateToMiniProgram({
  585. appId: item.hyperLink,
  586. path: item.speedUrl,
  587. success(res) {
  588. console.log(res);
  589. },
  590. complete(res) {
  591. console.log(res);
  592. },
  593. fail(res) {
  594. console.log(res);
  595. // 未成功跳转到车主小程序
  596. },
  597. });
  598. }
  599. }
  600. </script>
  601. <style lang="scss" scoped>
  602. .container {
  603. height: 100%;
  604. background-color: #f2f5f7;
  605. position: relative;
  606. }
  607. .bg-img {
  608. width: 100%;
  609. position: absolute;
  610. z-index: 0;
  611. .icon {
  612. width: 100%;
  613. height: 750rpx;
  614. }
  615. }
  616. .content {
  617. position: relative;
  618. padding-bottom: 30rpx;
  619. }
  620. .header {
  621. height: 590rpx;
  622. .title {
  623. .title-txt {
  624. font-family: PingFangSC, PingFang SC;
  625. font-weight: bold;
  626. font-size: 32rpx;
  627. color: #FFFFFF;
  628. text-align: center;
  629. }
  630. }
  631. .search-box {
  632. margin: 10rpx 30rpx 0;
  633. position: relative;
  634. height: 80rpx;
  635. background: #1a394d;
  636. // border: 1px solid #DCDCDC;
  637. border-radius: 40rpx;
  638. display: flex;
  639. justify-content: center;
  640. align-items: center;
  641. box-sizing: border-box;
  642. flex: 1;
  643. .icon {
  644. width: 27rpx;
  645. height: 27rpx;
  646. margin-left: 26rpx;
  647. }
  648. .search {
  649. flex: 1;
  650. margin-right: 20rpx;
  651. height: 100%;
  652. padding: 0 10rpx;
  653. color: #fff;
  654. font-weight: 500;
  655. font-size: 26rpx;
  656. background: #1a394d;
  657. ::v-deep .input-placeholder {
  658. color: #fff !important;
  659. }
  660. }
  661. }
  662. }
  663. .nav {
  664. background-color: #fff;
  665. margin: 0 30rpx;
  666. width: 100%;
  667. width: 690rpx;
  668. height: 360rpx;
  669. background: #FFFFFF;
  670. border-radius: 12rpx;
  671. display: grid;
  672. grid-template-columns: repeat(4, 25%);
  673. grid-template-rows: repeat(2, 50%);
  674. // grid-gap: 10px;
  675. .item-box {
  676. display: flex;
  677. align-items: center;
  678. justify-content: center;
  679. flex-direction: column;
  680. .icon-img {
  681. height: 100rpx;
  682. width: 100rpx;
  683. border-radius: 50%;
  684. padding: 25rpx;
  685. background: #ECF1F4;
  686. box-sizing: border-box;
  687. .img {
  688. width: 100%;
  689. height: 100%;
  690. }
  691. }
  692. .b-txt {
  693. margin-top: 16rpx;
  694. font-size: 26rpx;
  695. color: #111111;
  696. }
  697. }
  698. }
  699. .notice {
  700. background: url(https://qtzl.etcjz.cn/default-bucket/image/newHome/tongzhi.png);
  701. background-size: 100% 100%;
  702. background-repeat: no-repeat;
  703. height: 80rpx;
  704. width: 690rpx;
  705. margin: 24rpx 30rpx 0;
  706. display: flex;
  707. align-items: center;
  708. .l-img {
  709. width: 136rpx;
  710. height: 80rpx;
  711. margin-left: 20rpx;
  712. .img {
  713. height: 100%;
  714. width: 100%;
  715. }
  716. }
  717. .r-info {
  718. margin-left: 16rpx;
  719. font-size: 28rpx;
  720. color: #000;
  721. font-weight: 500;
  722. }
  723. }
  724. .supervision-con {
  725. box-sizing: border-box;
  726. height: 180rpx;
  727. width: 690rpx;
  728. margin: 24rpx 30rpx 0;
  729. // background-image: url(https://qtzl.etcjz.cn/default-bucket/image/newHome/phone.png);
  730. // background-size: 100% 100%;
  731. // background-repeat: no-repeat;
  732. // padding: 35rpx 0 0 52rpx;
  733. // background: #FFFFFF;
  734. border-radius: 12rpx;
  735. overflow: hidden;
  736. .swiper {
  737. height: 180rpx;
  738. width: 690rpx;
  739. }
  740. .swiper-item .img {
  741. overflow: hidden;
  742. border-radius: 12rpx;
  743. height: 180rpx !important;
  744. width: 690rpx;
  745. }
  746. .txt {
  747. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  748. font-weight: 400;
  749. font-size: 26rpx;
  750. color: #111111;
  751. }
  752. .phone {
  753. margin: 10rpx 0 10rpx;
  754. font-family: Arial, Arial;
  755. font-weight: normal;
  756. font-size: 38rpx;
  757. color: #B99A46;
  758. }
  759. .btn {
  760. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  761. font-weight: 400;
  762. font-size: 24rpx;
  763. color: #01243A;
  764. }
  765. }
  766. .title-name {
  767. margin: 24rpx 30rpx 0;
  768. }
  769. .title-h {
  770. font-family: PingFangSC, PingFang SC;
  771. font-weight: bold;
  772. font-size: 34rpx;
  773. color: #01243A;
  774. }
  775. .express-lane {
  776. margin: 22rpx 30rpx 0;
  777. display: flex;
  778. align-items: center;
  779. justify-content: space-between;
  780. .item {
  781. background-size: 100% 100%;
  782. background-repeat: no-repeat;
  783. width: 334rpx;
  784. height: 168rpx;
  785. text-align: right;
  786. display: flex;
  787. align-items: flex-end;
  788. justify-content: center;
  789. flex-direction: column;
  790. .item-con {
  791. margin-right: 53rpx;
  792. }
  793. .top-txt {
  794. font-family: PingFangSC, PingFang SC;
  795. font-size: 30rpx;
  796. color: #FFFFFF;
  797. }
  798. .btn {
  799. margin-top: 30rpx;
  800. background: #03385D;
  801. border-radius: 20rpx;
  802. font-family: PingFangSC, PingFang SC;
  803. font-size: 24rpx;
  804. color: #FFFFFF;
  805. height: 40rpx;
  806. width: 80rpx;
  807. line-height: 40rpx;
  808. text-align: center;
  809. }
  810. }
  811. .keche {
  812. background-image: url(https://qtzl.etcjz.cn/default-bucket/image/newHome/keche.png);
  813. .btn {
  814. background-color: #03385D;
  815. }
  816. }
  817. .huoche {
  818. margin-left: 22rpx;
  819. background-image: url(https://qtzl.etcjz.cn/default-bucket/image/newHome/huoche.png);
  820. .btn {
  821. background-color: #C2A75F;
  822. }
  823. }
  824. }
  825. .news-con {
  826. margin: 39rpx 30rpx 0;
  827. .title-con {
  828. display: flex;
  829. align-items: center;
  830. justify-content: space-between;
  831. .r-more {
  832. width: 100rpx;
  833. height: 44rpx;
  834. border-radius: 22rpx;
  835. border: 1rpx solid #01243A;
  836. display: flex;
  837. align-items: center;
  838. justify-content: center;
  839. .txt {
  840. font-family: PingFangSC, PingFang SC;
  841. font-weight: bold;
  842. font-size: 24rpx;
  843. color: #01243A;
  844. }
  845. .icon {
  846. width: 10rpx;
  847. height: 100%;
  848. margin-left: 5rpx;
  849. }
  850. }
  851. }
  852. .empty-news {}
  853. .news-box {
  854. border-radius: 12rpx;
  855. background-color: #fff;
  856. margin-top: 22rpx;
  857. padding: 0 20rpx;
  858. .news-item {
  859. padding: 20rpx 0;
  860. display: flex;
  861. &:nth-child(n+2) {
  862. border-top: 1rpx solid #eee;
  863. }
  864. .l-img {
  865. width: 180rpx;
  866. height: 135rpx;
  867. .img {
  868. height: 100%;
  869. width: 100%;
  870. }
  871. }
  872. .r-txt {
  873. margin-left: 20rpx;
  874. display: flex;
  875. flex-direction: column;
  876. justify-content: space-between;
  877. .tit {
  878. font-family: PingFangSC, PingFang SC;
  879. font-weight: bold;
  880. font-size: 30rpx;
  881. color: #111111;
  882. }
  883. .b-time {
  884. font-family: PingFangSC, PingFang SC;
  885. font-size: 24rpx;
  886. color: #999999;
  887. }
  888. }
  889. }
  890. }
  891. }
  892. .flow-path {
  893. margin: 31rpx 30rpx 0;
  894. .top-menu {
  895. display: flex;
  896. .tab {
  897. font-family: MicrosoftYaHeiUI;
  898. font-size: 28rpx;
  899. color: #5A5E61;
  900. margin-right: 39rpx;
  901. position: relative;
  902. &.active {
  903. font-size: 34rpx;
  904. color: #01243A;
  905. .border {
  906. position: relative;
  907. }
  908. .border::after {
  909. content: "";
  910. background-image: url(https://qtzl.etcjz.cn/default-bucket/image/newHome/bottom-select.png);
  911. background-repeat: no-repeat;
  912. background-size: 100% 100%;
  913. position: absolute;
  914. bottom: 0;
  915. left: 0;
  916. width: 100%;
  917. height: 16rpx;
  918. }
  919. }
  920. .txt {
  921. position: relative;
  922. z-index: 2;
  923. }
  924. }
  925. }
  926. .flow-list {
  927. margin-top: 30rpx;
  928. background-color: #fff;
  929. border-radius: 12rpx;
  930. padding: 20rpx;
  931. }
  932. .tiaojian {
  933. .title-top {
  934. display: flex;
  935. justify-content: center;
  936. align-items: center;
  937. padding-bottom: 20rpx;
  938. .txt {
  939. margin: 0 24rpx;
  940. font-family: MicrosoftYaHei;
  941. font-size: 30rpx;
  942. color: #01243A;
  943. }
  944. .icon-img {
  945. width: 16rpx;
  946. height: 20rpx;
  947. }
  948. }
  949. }
  950. .list-info {
  951. font-family: MicrosoftYaHeiUI;
  952. font-size: 26rpx;
  953. color: #222222;
  954. }
  955. .wenti {
  956. .item-box:nth-child(n+2) {
  957. border-top: 1rpx solid #E8E8E8;
  958. }
  959. .item-box {
  960. display: flex;
  961. padding: 15rpx 0;
  962. }
  963. .l-icon {
  964. flex-shrink: 0;
  965. width: 38rpx;
  966. height: 38rpx;
  967. display: flex;
  968. align-items: center;
  969. justify-content: center;
  970. background-color: #c2a75f;
  971. border-radius: 50%;
  972. .icon-img {
  973. width: 14rpx;
  974. height: 24rpx;
  975. }
  976. }
  977. .txt {
  978. margin-left: 14rpx;
  979. font-family: PingFangSC, PingFang SC;
  980. font-size: 28rpx;
  981. color: #222222;
  982. line-height: 38rpx;
  983. }
  984. }
  985. }
  986. .mask {
  987. background: $uni-bg-color-mask;
  988. position: fixed;
  989. left: 0;
  990. top: 0;
  991. right: 0;
  992. bottom: 0;
  993. }
  994. .mask-content {
  995. background: $uni-bg-color;
  996. width: 570rpx;
  997. height: 480rpx;
  998. position: absolute;
  999. left: 50%;
  1000. top: 50%;
  1001. transform: translate(-50%, -50%);
  1002. display: flex;
  1003. flex-direction: column;
  1004. border-radius: 20rpx;
  1005. }
  1006. .mask-close {
  1007. text-align: right;
  1008. }
  1009. .mask-title {
  1010. text-align: center;
  1011. font-size: 32rpx;
  1012. color: $uni-text-color-black;
  1013. margin-bottom: 50rpx;
  1014. }
  1015. .mask-tab {
  1016. display: flex;
  1017. justify-content: space-evenly;
  1018. }
  1019. .icon-closed {
  1020. width: 48rpx;
  1021. height: 48rpx;
  1022. margin: 24rpx 24rpx 0 0;
  1023. }
  1024. .tab-item {
  1025. display: flex;
  1026. flex-direction: column;
  1027. justify-content: center;
  1028. align-items: center;
  1029. }
  1030. .tab-tit {
  1031. font-size: 32rpx;
  1032. margin-top: 20rpx;
  1033. color: #666;
  1034. }
  1035. .tab-item image {
  1036. width: 160rpx;
  1037. height: 160rpx;
  1038. }
  1039. .backlog-notice {
  1040. margin: 50rpx 30rpx 0rpx;
  1041. }
  1042. </style>