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

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