Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

index.vue 26KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157
  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" v-if="state.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. <uni-notice-bar style="width: 100%;" scrollable single :text="state.notice"></uni-notice-bar>
  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" >
  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 title-h">
  64. 快速办理
  65. </view>
  66. <view class="express-lane">
  67. <view class="item keche" :style="{'--bgimg':`url(${fileURL}image/newHome/keche.png)`}">
  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" :style="{'--bgimg':`url(${fileURL}image/newHome/huoche.png)`}">
  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 class='title-h'>高速快讯</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" :style="{'--bgimg':`url(${fileURL}image/newHome/bottom-select.png)`}">
  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/newHome/close-dan.png`" class="icon-closed" @click="closeMask"></image>
  168. </view>
  169. <view class="mask-title">请选择ETC卡用户类型</view>
  170. <view class="mask-tab">
  171. <view class="tab-item" @click="toCreatOrder('1')">
  172. <image :src="`${fileURL}image/newHome/geren.png`" mode="aspectFill" class='img'></image>
  173. <view class="r-info">
  174. <view class="tab-tit">个人办理用户</view>
  175. <view class="tab-desc">个人办理用户</view>
  176. </view>
  177. </view>
  178. <view class="tab-item" @click="toCreatOrder('2')">
  179. <image :src="`${fileURL}image/newHome/danwei.png`" mode="aspectFill" class='img'></image>
  180. <view class="r-info">
  181. <view class="tab-tit">单位办理用户</view>
  182. <view class="tab-desc">单位办理用户</view>
  183. </view>
  184. </view>
  185. </view>
  186. </filter>
  187. </view>
  188. </view>
  189. </template>
  190. <script setup lang="ts">
  191. import {
  192. onMounted,
  193. ref, reactive
  194. } from "vue";
  195. import {
  196. onPageScroll,
  197. onLoad, onReachBottom, onReady
  198. } from "@dcloudio/uni-app";
  199. import flowPathList from "./components/flow-path-list.vue";
  200. import filter from '@/components/filter/filter.vue';
  201. import { requestNew} from "@/utils/network/request.js";
  202. import {
  203. setItem,
  204. } from "@/utils/storage";
  205. import {
  206. queryKey,
  207. querySwiper,
  208. infoQuery,
  209. queryHighMsg
  210. } from "@/utils/network/api.js";
  211. import {
  212. fileURL, fileURLList
  213. } from "@/datas/fileURL.js";
  214. import {
  215. navTo,
  216. msg,hasLogin,confirm
  217. } from "@/utils/utils";
  218. import {
  219. getCodeName
  220. } from "@/datas/queryKey.js";
  221. import { getCurrentInstance } from 'vue';
  222. const tools = require("../../static/etcUtil/tools.js");
  223. const instance = getCurrentInstance();
  224. const swiper = reactive({
  225. indicatorDots: false,
  226. autoplay: true,
  227. interval: 6000,
  228. duration: 500,
  229. easing: "default"
  230. })
  231. onLoad((options) => {
  232. console.log("wechatSignNo", options)
  233. getInfo();
  234. })
  235. onMounted(() => {
  236. const query = uni.createSelectorQuery().in(instance.proxy);
  237. query
  238. .select(".news-con")
  239. .boundingClientRect((data) => {
  240. console.log("得到布局位置信息", data);
  241. console.log("节点离页面顶部的距离为" + data.top);
  242. newTop.value = data.top
  243. })
  244. .exec();
  245. let systemInfo = uni.getSystemInfoSync()
  246. viewHeight.value = systemInfo.windowHeight
  247. statusBarHeight.value = systemInfo.statusBarHeight;
  248. const {
  249. top,
  250. height
  251. } = uni.getMenuButtonBoundingClientRect();
  252. barHeight.value = height ? height + (top - statusBarHeight.value) * 2 : 38;
  253. console.log(barHeight.value, statusBarHeight.value, systemInfo, '计算的顶部高度');
  254. getSwiper()
  255. })
  256. const statusBarHeight = ref(0)
  257. const viewHeight = ref(0) //可视区高度
  258. const barHeight = ref(0)
  259. const searchParams = ref('')
  260. const newTop = ref(0) //高速快讯距离顶部距离
  261. const isShowMask = ref(false);
  262. //搜索
  263. const onKeyInput = (event) => {
  264. searchParams.value = event.target.value;
  265. console.log('搜索内容', searchParams.value);
  266. }
  267. const navList = [{
  268. imgUrl: `${fileURL}image/newHome/kaqian.png`,
  269. title: "卡签信息查询",
  270. path: '/pages/bluetooth/bluetooth?routeType=4'
  271. }, {
  272. imgUrl: `${fileURL}image/newHome/jihuo.png`,
  273. title: "激活服务",
  274. path: '/subpackage/personal-center/install-activation-order'
  275. }, {
  276. imgUrl: `${fileURL}image/newHome/zhuxiao.png`,
  277. title: "设备注销",
  278. path: "",
  279. handlePath: () => {
  280. cardRecharge(3)
  281. }
  282. }, {
  283. imgUrl: `${fileURL}image/newHome/shenji.png`,
  284. title: "设备升级",
  285. path: `/subpackage/after-sale/equipment-upgrade/select-car`
  286. }, {
  287. imgUrl: `${fileURL}image/newHome/kefu.png`,
  288. title: "在线客服",
  289. path: `/subpackage/after-sale/onlineService`
  290. }, {
  291. imgUrl: `${fileURL}image/newHome/wangdian.png`,
  292. title: "网点查询",
  293. path: "/subpackage/after-sale/wangdian"
  294. }, {
  295. imgUrl: `${fileURL}image/newHome/yewu.png`,
  296. title: "业务指引",
  297. path: ""
  298. }, {
  299. imgUrl: `${fileURL}image/newHome/more.png`,
  300. title: "更多",
  301. path: `/pages/service/service`
  302. }]
  303. const handleNav = (item) => {
  304. console.log("item",item)
  305. if(item.title=='更多'){
  306. if (!hasLogin()) {
  307. confirm('您需要登录过后才能使用此功能', () => {
  308. uni.navigateTo({
  309. url: '/login/login',
  310. });
  311. }, '温馨提示', true, '去登录');
  312. } else {
  313. uni.switchTab({
  314. url:item.path
  315. })
  316. }
  317. }else{
  318. if (item.path) {
  319. navTo(item.path, true)
  320. } else if (item.handlePath) {
  321. item.handlePath()
  322. }
  323. }
  324. }
  325. const cardRecharge = (val) => {
  326. // #ifdef MP-ALIPAY
  327. if (val == 1 || val == 2 || val == 3) {
  328. msg("业务升级中,请前往九州ETC公众号进行办理。或拨打客服电话400-800-8787")
  329. }
  330. // #endif
  331. // #ifdef MP-WEIXIN
  332. if (val == 1) {
  333. navTo('/pages/recharge/recharge-pay', true)
  334. } else if (val == 2) {
  335. navTo('/subpackage/after-sale/rescind-carId/rescind-carId-select', true)
  336. } else if (val == 3) {
  337. navTo('/subpackage/after-sale/activation-once-again/select-car?type=2', true)
  338. }
  339. // #endif
  340. }
  341. const state = reactive({
  342. vanType: 0, //1客车 2货车
  343. userType: 1, //1个人 2单位
  344. notice: "",
  345. swiperList: [],
  346. swiperListArr: [],
  347. noticeList: [], //公告栏列表
  348. flowPathTabList: ["办理流程", "办理条件", "常见问题"],
  349. tabActive: "办理流程",
  350. flowList: [
  351. //办理流程数据
  352. {
  353. title: "01 产品选择",
  354. desc: "选择购买的发行产品",
  355. imgUrl: `${fileURL}image/newHome/1.png`,
  356. },
  357. {
  358. title: "02 信息校验",
  359. desc: "提交车牌号、车牌颜色、收货地址相关信息",
  360. imgUrl: `${fileURL}image/newHome/2.png`,
  361. },
  362. {
  363. title: "03 证件上传",
  364. desc: "上传身份证、行驶证等相关信息",
  365. imgUrl: `${fileURL}image/newHome/3.png`,
  366. },
  367. {
  368. title: "04 订单支付",
  369. desc: "支付完成订单",
  370. imgUrl: `${fileURL}image/newHome/4.png`,
  371. },
  372. {
  373. title: "05 签约代扣",
  374. desc: "选择签约账户并关联",
  375. imgUrl: `${fileURL}image/newHome/5.png`,
  376. },
  377. ],
  378. highMsgData: '',//高速快讯内容
  379. processeConditionText: "", //办理条件文本
  380. commonQuestionText: "", //常见问题文本
  381. commonQuestionArr: [], //常见问题数组
  382. isEnableSetGray: false
  383. });
  384. // 页面初次渲染完成时触发
  385. onReady(() => {
  386. quanKeyAction()
  387. })
  388. onMounted(() => {
  389. uni.getSystemInfo({
  390. success: (e : any) => {
  391. statusBarHeight.value = e.statusBarHeight;
  392. }
  393. })
  394. getSwiper()
  395. setTimeout(()=>{
  396. toCreatOrder('1')
  397. },200)
  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.vanType = 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. requestNew(infoQuery, options)
  435. .then((res) => {
  436. let data = res
  437. state.notice=data.text
  438. console.log(data, state.notice, '公告',state.notice=='无');
  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. requestNew(queryHighMsg, options).then((res) => {
  459. console.log("高速快讯查询接口", res);
  460. state.highMsgData = res.result.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. requestNew(infoQuery, options)
  484. .then((res) => {
  485. let data = res
  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. requestNew(infoQuery, options)
  504. .then((res) => {
  505. let data = res
  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. };
  535. requestNew(queryKey, options).then((res) => {
  536. const data =res
  537. console.log("枚举", data)
  538. setItem('key', data.dictTypeAndItem)
  539. })
  540. .catch((err) => {
  541. console.log(err);
  542. });
  543. }
  544. //获取轮播
  545. const getSwiper = () => {
  546. let options = {
  547. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  548. data: {
  549. }, //请求参数
  550. method: "POST", //提交方式(默认POST)
  551. showLoading: true, //是否显示加载中(默认显示)
  552. };
  553. //调用方式
  554. requestNew(querySwiper, options).then((res) => {
  555. const data = res
  556. console.log("轮播图", data)
  557. state.swiperList = data.swipers ? data.swipers : [],
  558. state.swiperListArr = state.swiperList.map(item => fileURLList + item.imgUrl)
  559. })
  560. .catch((err) => {
  561. console.log(err);
  562. });
  563. };
  564. const link = (item : any) => {
  565. console.log(item);
  566. if (item.type == 1) {
  567. const params = encodeURIComponent(JSON.stringify(item.hyperLink))
  568. tools.toUrl(`/subpackage/personal-center/webview?url=` + params);
  569. } else if (item.type == 2) {
  570. navTo(item.hyperLink)
  571. } else if (item.type == 3) {
  572. const param = encodeURIComponent(JSON.stringify(item))
  573. tools.toUrl(`/subpackage/orders/moreHighMsg/textDetails?item=` + param);
  574. } else if (item.type == 4) {
  575. uni.navigateToMiniProgram({
  576. appId: item.hyperLink,
  577. path: item.speedUrl,
  578. success(res) {
  579. console.log(res);
  580. },
  581. complete(res) {
  582. console.log(res);
  583. },
  584. fail(res) {
  585. console.log(res);
  586. // 未成功跳转到车主小程序
  587. },
  588. });
  589. }
  590. }
  591. </script>
  592. <style lang="scss" scoped>
  593. .container {
  594. height: 100%;
  595. background-color: #f2f5f7;
  596. position: relative;
  597. }
  598. .bg-img {
  599. width: 100%;
  600. position: absolute;
  601. z-index: 0;
  602. .icon {
  603. width: 100%;
  604. height: 750rpx;
  605. }
  606. }
  607. .content {
  608. position: relative;
  609. padding-bottom: 30rpx;
  610. }
  611. .header {
  612. height: 590rpx;
  613. .title {
  614. .title-txt {
  615. font-family: PingFangSC, PingFang SC;
  616. font-weight: bold;
  617. font-size: 32rpx;
  618. color: #FFFFFF;
  619. text-align: center;
  620. }
  621. }
  622. .search-box {
  623. margin: 10rpx 30rpx 0;
  624. position: relative;
  625. height: 80rpx;
  626. background: #1a394d;
  627. // border: 1px solid #DCDCDC;
  628. border-radius: 40rpx;
  629. display: flex;
  630. justify-content: center;
  631. align-items: center;
  632. box-sizing: border-box;
  633. flex: 1;
  634. .icon {
  635. width: 27rpx;
  636. height: 27rpx;
  637. margin-left: 26rpx;
  638. }
  639. .search {
  640. flex: 1;
  641. margin-right: 20rpx;
  642. height: 100%;
  643. padding: 0 10rpx;
  644. color: #fff;
  645. font-weight: 500;
  646. font-size: 26rpx;
  647. background: #1a394d;
  648. ::v-deep .input-placeholder {
  649. color: #fff !important;
  650. }
  651. }
  652. }
  653. }
  654. .nav {
  655. background-color: #fff;
  656. margin: 0 30rpx;
  657. width: 100%;
  658. width: 690rpx;
  659. height: 360rpx;
  660. background: #FFFFFF;
  661. border-radius: 12rpx;
  662. display: grid;
  663. grid-template-columns: repeat(4, 25%);
  664. grid-template-rows: repeat(2, 50%);
  665. // grid-gap: 10px;
  666. .item-box {
  667. display: flex;
  668. align-items: center;
  669. justify-content: center;
  670. flex-direction: column;
  671. .icon-img {
  672. height: 100rpx;
  673. width: 100rpx;
  674. border-radius: 50%;
  675. padding: 25rpx;
  676. background: #ECF1F4;
  677. box-sizing: border-box;
  678. .img {
  679. width: 100%;
  680. height: 100%;
  681. }
  682. }
  683. .b-txt {
  684. margin-top: 16rpx;
  685. font-size: 26rpx;
  686. color: #111111;
  687. }
  688. }
  689. }
  690. .notice {
  691. background-image: var(--bgimg);
  692. background-size: 100% 100%;
  693. background-repeat: no-repeat;
  694. height: 80rpx;
  695. width: 690rpx;
  696. margin: 24rpx 30rpx 0;
  697. display: flex;
  698. align-items: center;
  699. .l-img {
  700. width: 136rpx;
  701. height: 80rpx;
  702. margin-left: 20rpx;
  703. .img {
  704. height: 100%;
  705. width: 100%;
  706. }
  707. }
  708. .r-info {
  709. line-height: 80rpx;
  710. margin-left: 16rpx;
  711. font-size: 27rpx;
  712. color: #000;
  713. font-weight: 500;
  714. width: 400rpx;
  715. }
  716. }
  717. .supervision-con {
  718. box-sizing: border-box;
  719. height: 180rpx;
  720. width: 690rpx;
  721. margin: 24rpx 30rpx 0;
  722. border-radius: 12rpx;
  723. overflow: hidden;
  724. .swiper {
  725. height: 180rpx;
  726. width: 690rpx;
  727. }
  728. .swiper-item .img {
  729. overflow: hidden;
  730. border-radius: 12rpx;
  731. height: 180rpx !important;
  732. width: 690rpx;
  733. }
  734. .txt {
  735. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  736. font-weight: 400;
  737. font-size: 26rpx;
  738. color: #111111;
  739. }
  740. .phone {
  741. margin: 10rpx 0 10rpx;
  742. font-family: Arial, Arial;
  743. font-weight: normal;
  744. font-size: 38rpx;
  745. color: #B99A46;
  746. }
  747. .btn {
  748. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  749. font-weight: 400;
  750. font-size: 24rpx;
  751. color: #01243A;
  752. }
  753. }
  754. .title-name {
  755. margin: 24rpx 30rpx 0;
  756. }
  757. .title-h {
  758. font-family: PingFangSC, PingFang SC;
  759. font-weight: bold;
  760. font-size: 34rpx;
  761. color: #01243A;
  762. }
  763. .express-lane {
  764. margin: 22rpx 30rpx 0;
  765. display: flex;
  766. align-items: center;
  767. justify-content: space-between;
  768. .item {
  769. background-size: 100% 100%;
  770. background-repeat: no-repeat;
  771. width: 334rpx;
  772. height: 168rpx;
  773. text-align: right;
  774. display: flex;
  775. align-items: flex-end;
  776. justify-content: center;
  777. flex-direction: column;
  778. background-image: var(--bgimg);
  779. .item-con {
  780. margin-right: 53rpx;
  781. }
  782. .top-txt {
  783. font-family: PingFangSC, PingFang SC;
  784. font-size: 30rpx;
  785. color: #FFFFFF;
  786. }
  787. .btn {
  788. margin-top: 30rpx;
  789. background: #03385D;
  790. border-radius: 20rpx;
  791. font-family: PingFangSC, PingFang SC;
  792. font-size: 24rpx;
  793. color: #FFFFFF;
  794. height: 40rpx;
  795. width: 80rpx;
  796. line-height: 40rpx;
  797. text-align: center;
  798. }
  799. }
  800. .keche {
  801. .btn {
  802. background-color: #03385D;
  803. }
  804. }
  805. .huoche {
  806. margin-left: 22rpx;
  807. .btn {
  808. background-color: #C2A75F;
  809. }
  810. }
  811. }
  812. .news-con {
  813. margin: 39rpx 30rpx 0;
  814. .title-con {
  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: var(--bgimg);
  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: 14rpx;
  966. font-family: PingFangSC, PingFang SC;
  967. font-size: 28rpx;
  968. color: #222222;
  969. line-height: 38rpx;
  970. }
  971. }
  972. }
  973. .mask {
  974. background: $uni-bg-color-mask;
  975. position: fixed;
  976. left: 0;
  977. top: 0;
  978. right: 0;
  979. bottom: 0;
  980. }
  981. .mask-content {
  982. background: $uni-bg-color;
  983. width: 570rpx;
  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. margin-bottom: 50rpx;
  998. font-family: MicrosoftYaHei;
  999. font-size: 34rpx;
  1000. color: #666666;
  1001. }
  1002. .mask-tab {
  1003. // display: flex;
  1004. // justify-content: space-evenly;
  1005. margin: 0 40rpx;
  1006. }
  1007. .icon-closed {
  1008. width: 30rpx;
  1009. height: 30rpx;
  1010. margin: 24rpx 24rpx 0 0;
  1011. }
  1012. .tab-item {
  1013. padding: 20rpx 25rpx;
  1014. display: flex;
  1015. align-items: center;
  1016. background: #F7F7F7;
  1017. border-radius: 15rpx;
  1018. margin-bottom: 30rpx;
  1019. }
  1020. .r-info{
  1021. margin-left: 25rpx;
  1022. .tab-tit {
  1023. font-family: MicrosoftYaHei;
  1024. font-size: 28rpx;
  1025. color: #333333;
  1026. }
  1027. .tab-desc{
  1028. font-family: MicrosoftYaHei;
  1029. font-size: 24rpx;
  1030. color: #999999;
  1031. margin-top: 10rpx;
  1032. }
  1033. }
  1034. .tab-item .img {
  1035. width: 120rpx;
  1036. height: 120rpx;
  1037. }
  1038. .backlog-notice {
  1039. margin: 50rpx 30rpx 0rpx;
  1040. }
  1041. </style>