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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144
  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. };
  530. request(queryKey, options).then((res) => {
  531. console.log(stringToJson(res.bizContent));
  532. const data = stringToJson(res.bizContent)
  533. console.log("枚举", data)
  534. setItem('key', data.dictTypeAndItem)
  535. })
  536. .catch((err) => {
  537. console.log(err);
  538. });
  539. }
  540. //获取轮播
  541. const getSwiper = () => {
  542. let options = {
  543. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  544. data: {
  545. }, //请求参数
  546. method: "POST", //提交方式(默认POST)
  547. showLoading: true, //是否显示加载中(默认显示)
  548. };
  549. //调用方式
  550. request(querySwiper, options).then((res) => {
  551. console.log(stringToJson(res.bizContent));
  552. const data = stringToJson(res.bizContent)
  553. console.log("轮播图", data)
  554. state.swiperList = data.swipers ? data.swipers : [],
  555. state.swiperListArr = state.swiperList.map(item => fileURLList + item.imgUrl)
  556. })
  557. .catch((err) => {
  558. console.log(err);
  559. });
  560. };
  561. const link = (item : any) => {
  562. console.log(item);
  563. if (item.type == 1) {
  564. const params = encodeURIComponent(JSON.stringify(item.hyperLink))
  565. tools.toUrl(`/subpackage/personal-center/webview?url=` + params);
  566. } else if (item.type == 2) {
  567. navTo(item.hyperLink)
  568. } else if (item.type == 3) {
  569. const param = encodeURIComponent(JSON.stringify(item))
  570. tools.toUrl(`/subpackage/orders/moreHighMsg/textDetails?item=` + param);
  571. } else if (item.type == 4) {
  572. uni.navigateToMiniProgram({
  573. appId: item.hyperLink,
  574. path: item.speedUrl,
  575. success(res) {
  576. console.log(res);
  577. },
  578. complete(res) {
  579. console.log(res);
  580. },
  581. fail(res) {
  582. console.log(res);
  583. // 未成功跳转到车主小程序
  584. },
  585. });
  586. }
  587. }
  588. </script>
  589. <style lang="scss" scoped>
  590. .container {
  591. height: 100%;
  592. background-color: #f2f5f7;
  593. position: relative;
  594. }
  595. .bg-img {
  596. width: 100%;
  597. position: absolute;
  598. z-index: 0;
  599. .icon {
  600. width: 100%;
  601. height: 750rpx;
  602. }
  603. }
  604. .content {
  605. position: relative;
  606. padding-bottom: 30rpx;
  607. }
  608. .header {
  609. height: 590rpx;
  610. .title {
  611. .title-txt {
  612. font-family: PingFangSC, PingFang SC;
  613. font-weight: bold;
  614. font-size: 32rpx;
  615. color: #FFFFFF;
  616. text-align: center;
  617. }
  618. }
  619. .search-box {
  620. margin: 10rpx 30rpx 0;
  621. position: relative;
  622. height: 80rpx;
  623. background: #1a394d;
  624. // border: 1px solid #DCDCDC;
  625. border-radius: 40rpx;
  626. display: flex;
  627. justify-content: center;
  628. align-items: center;
  629. box-sizing: border-box;
  630. flex: 1;
  631. .icon {
  632. width: 27rpx;
  633. height: 27rpx;
  634. margin-left: 26rpx;
  635. }
  636. .search {
  637. flex: 1;
  638. margin-right: 20rpx;
  639. height: 100%;
  640. padding: 0 10rpx;
  641. color: #fff;
  642. font-weight: 500;
  643. font-size: 26rpx;
  644. background: #1a394d;
  645. ::v-deep .input-placeholder {
  646. color: #fff !important;
  647. }
  648. }
  649. }
  650. }
  651. .nav {
  652. background-color: #fff;
  653. margin: 0 30rpx;
  654. width: 100%;
  655. width: 690rpx;
  656. height: 360rpx;
  657. background: #FFFFFF;
  658. border-radius: 12rpx;
  659. display: grid;
  660. grid-template-columns: repeat(4, 25%);
  661. grid-template-rows: repeat(2, 50%);
  662. // grid-gap: 10px;
  663. .item-box {
  664. display: flex;
  665. align-items: center;
  666. justify-content: center;
  667. flex-direction: column;
  668. .icon-img {
  669. height: 100rpx;
  670. width: 100rpx;
  671. border-radius: 50%;
  672. padding: 25rpx;
  673. background: #ECF1F4;
  674. box-sizing: border-box;
  675. .img {
  676. width: 100%;
  677. height: 100%;
  678. }
  679. }
  680. .b-txt {
  681. margin-top: 16rpx;
  682. font-size: 26rpx;
  683. color: #111111;
  684. }
  685. }
  686. }
  687. .notice {
  688. background-image: var(--bgimg);
  689. background-size: 100% 100%;
  690. background-repeat: no-repeat;
  691. height: 80rpx;
  692. width: 690rpx;
  693. margin: 24rpx 30rpx 0;
  694. display: flex;
  695. align-items: center;
  696. .l-img {
  697. width: 136rpx;
  698. height: 80rpx;
  699. margin-left: 20rpx;
  700. .img {
  701. height: 100%;
  702. width: 100%;
  703. }
  704. }
  705. .r-info {
  706. line-height: 80rpx;
  707. margin-left: 16rpx;
  708. font-size: 27rpx;
  709. color: #000;
  710. font-weight: 500;
  711. }
  712. }
  713. .supervision-con {
  714. box-sizing: border-box;
  715. height: 180rpx;
  716. width: 690rpx;
  717. margin: 24rpx 30rpx 0;
  718. // background-image: url(https://qtzl.etcjz.cn/default-bucket/image/newHome/phone.png);
  719. // background-size: 100% 100%;
  720. // background-repeat: no-repeat;
  721. // padding: 35rpx 0 0 52rpx;
  722. // background: #FFFFFF;
  723. border-radius: 12rpx;
  724. overflow: hidden;
  725. .swiper {
  726. height: 180rpx;
  727. width: 690rpx;
  728. }
  729. .swiper-item .img {
  730. overflow: hidden;
  731. border-radius: 12rpx;
  732. height: 180rpx !important;
  733. width: 690rpx;
  734. }
  735. .txt {
  736. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  737. font-weight: 400;
  738. font-size: 26rpx;
  739. color: #111111;
  740. }
  741. .phone {
  742. margin: 10rpx 0 10rpx;
  743. font-family: Arial, Arial;
  744. font-weight: normal;
  745. font-size: 38rpx;
  746. color: #B99A46;
  747. }
  748. .btn {
  749. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  750. font-weight: 400;
  751. font-size: 24rpx;
  752. color: #01243A;
  753. }
  754. }
  755. .title-name {
  756. margin: 24rpx 30rpx 0;
  757. }
  758. .title-h {
  759. font-family: PingFangSC, PingFang SC;
  760. font-weight: bold;
  761. font-size: 34rpx;
  762. color: #01243A;
  763. }
  764. .express-lane {
  765. margin: 22rpx 30rpx 0;
  766. display: flex;
  767. align-items: center;
  768. justify-content: space-between;
  769. .item {
  770. background-size: 100% 100%;
  771. background-repeat: no-repeat;
  772. width: 334rpx;
  773. height: 168rpx;
  774. text-align: right;
  775. display: flex;
  776. align-items: flex-end;
  777. justify-content: center;
  778. flex-direction: column;
  779. background-image: var(--bgimg);
  780. .item-con {
  781. margin-right: 53rpx;
  782. }
  783. .top-txt {
  784. font-family: PingFangSC, PingFang SC;
  785. font-size: 30rpx;
  786. color: #FFFFFF;
  787. }
  788. .btn {
  789. margin-top: 30rpx;
  790. background: #03385D;
  791. border-radius: 20rpx;
  792. font-family: PingFangSC, PingFang SC;
  793. font-size: 24rpx;
  794. color: #FFFFFF;
  795. height: 40rpx;
  796. width: 80rpx;
  797. line-height: 40rpx;
  798. text-align: center;
  799. }
  800. }
  801. .keche {
  802. .btn {
  803. background-color: #03385D;
  804. }
  805. }
  806. .huoche {
  807. margin-left: 22rpx;
  808. .btn {
  809. background-color: #C2A75F;
  810. }
  811. }
  812. }
  813. .news-con {
  814. margin: 39rpx 30rpx 0;
  815. .title-con {
  816. display: flex;
  817. align-items: center;
  818. justify-content: space-between;
  819. .r-more {
  820. width: 100rpx;
  821. height: 44rpx;
  822. border-radius: 22rpx;
  823. border: 1rpx solid #01243A;
  824. display: flex;
  825. align-items: center;
  826. justify-content: center;
  827. .txt {
  828. font-family: PingFangSC, PingFang SC;
  829. font-weight: bold;
  830. font-size: 24rpx;
  831. color: #01243A;
  832. }
  833. .icon {
  834. width: 10rpx;
  835. height: 100%;
  836. margin-left: 5rpx;
  837. }
  838. }
  839. }
  840. .empty-news {}
  841. .news-box {
  842. border-radius: 12rpx;
  843. background-color: #fff;
  844. margin-top: 22rpx;
  845. padding: 0 20rpx;
  846. .news-item {
  847. padding: 20rpx 0;
  848. display: flex;
  849. &:nth-child(n+2) {
  850. border-top: 1rpx solid #eee;
  851. }
  852. .l-img {
  853. width: 180rpx;
  854. height: 135rpx;
  855. .img {
  856. height: 100%;
  857. width: 100%;
  858. }
  859. }
  860. .r-txt {
  861. margin-left: 20rpx;
  862. display: flex;
  863. flex-direction: column;
  864. justify-content: space-between;
  865. .tit {
  866. font-family: PingFangSC, PingFang SC;
  867. font-weight: bold;
  868. font-size: 30rpx;
  869. color: #111111;
  870. }
  871. .b-time {
  872. font-family: PingFangSC, PingFang SC;
  873. font-size: 24rpx;
  874. color: #999999;
  875. }
  876. }
  877. }
  878. }
  879. }
  880. .flow-path {
  881. margin: 31rpx 30rpx 0;
  882. .top-menu {
  883. display: flex;
  884. .tab {
  885. font-family: MicrosoftYaHeiUI;
  886. font-size: 28rpx;
  887. color: #5A5E61;
  888. margin-right: 39rpx;
  889. position: relative;
  890. &.active {
  891. font-size: 34rpx;
  892. color: #01243A;
  893. .border {
  894. position: relative;
  895. }
  896. .border::after {
  897. content: "";
  898. background-image: var(--bgimg);
  899. background-repeat: no-repeat;
  900. background-size: 100% 100%;
  901. position: absolute;
  902. bottom: 0;
  903. left: 0;
  904. width: 100%;
  905. height: 16rpx;
  906. }
  907. }
  908. .txt {
  909. position: relative;
  910. z-index: 2;
  911. }
  912. }
  913. }
  914. .flow-list {
  915. margin-top: 30rpx;
  916. background-color: #fff;
  917. border-radius: 12rpx;
  918. padding: 20rpx;
  919. }
  920. .tiaojian {
  921. .title-top {
  922. display: flex;
  923. justify-content: center;
  924. align-items: center;
  925. padding-bottom: 20rpx;
  926. .txt {
  927. margin: 0 24rpx;
  928. font-family: MicrosoftYaHei;
  929. font-size: 30rpx;
  930. color: #01243A;
  931. }
  932. .icon-img {
  933. width: 16rpx;
  934. height: 20rpx;
  935. }
  936. }
  937. }
  938. .list-info {
  939. font-family: MicrosoftYaHeiUI;
  940. font-size: 26rpx;
  941. color: #222222;
  942. }
  943. .wenti {
  944. .item-box:nth-child(n+2) {
  945. border-top: 1rpx solid #E8E8E8;
  946. }
  947. .item-box {
  948. display: flex;
  949. padding: 15rpx 0;
  950. }
  951. .l-icon {
  952. flex-shrink: 0;
  953. width: 38rpx;
  954. height: 38rpx;
  955. display: flex;
  956. align-items: center;
  957. justify-content: center;
  958. background-color: #c2a75f;
  959. border-radius: 50%;
  960. .icon-img {
  961. width: 14rpx;
  962. height: 24rpx;
  963. }
  964. }
  965. .txt {
  966. margin-left: 14rpx;
  967. font-family: PingFangSC, PingFang SC;
  968. font-size: 28rpx;
  969. color: #222222;
  970. line-height: 38rpx;
  971. }
  972. }
  973. }
  974. .mask {
  975. background: $uni-bg-color-mask;
  976. position: fixed;
  977. left: 0;
  978. top: 0;
  979. right: 0;
  980. bottom: 0;
  981. }
  982. .mask-content {
  983. background: $uni-bg-color;
  984. width: 570rpx;
  985. height: 480rpx;
  986. position: absolute;
  987. left: 50%;
  988. top: 50%;
  989. transform: translate(-50%, -50%);
  990. display: flex;
  991. flex-direction: column;
  992. border-radius: 20rpx;
  993. }
  994. .mask-close {
  995. text-align: right;
  996. }
  997. .mask-title {
  998. text-align: center;
  999. font-size: 32rpx;
  1000. color: $uni-text-color-black;
  1001. margin-bottom: 50rpx;
  1002. }
  1003. .mask-tab {
  1004. display: flex;
  1005. justify-content: space-evenly;
  1006. }
  1007. .icon-closed {
  1008. width: 48rpx;
  1009. height: 48rpx;
  1010. margin: 24rpx 24rpx 0 0;
  1011. }
  1012. .tab-item {
  1013. display: flex;
  1014. flex-direction: column;
  1015. justify-content: center;
  1016. align-items: center;
  1017. }
  1018. .tab-tit {
  1019. font-size: 32rpx;
  1020. margin-top: 20rpx;
  1021. color: #666;
  1022. }
  1023. .tab-item image {
  1024. width: 160rpx;
  1025. height: 160rpx;
  1026. }
  1027. .backlog-notice {
  1028. margin: 50rpx 30rpx 0rpx;
  1029. }
  1030. </style>