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

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