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 27KB

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