Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

index.vue 27KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197
  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" >
  47. <image :src="fileURLList + item.imgUrl" mode="widthFix" class='img' @click="call()"></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. console.log("点击")
  605. uni.makePhoneCall({
  606. phoneNumber: '0851-88306555' //仅为示例,并非真实的电话号码
  607. })
  608. }
  609. </script>
  610. <style lang="scss" scoped>
  611. .container {
  612. height: 100%;
  613. background-color: #f2f5f7;
  614. position: relative;
  615. }
  616. .bg-img {
  617. width: 100%;
  618. position: absolute;
  619. z-index: 0;
  620. .icon {
  621. width: 100%;
  622. height: 750rpx;
  623. }
  624. }
  625. .content {
  626. position: relative;
  627. padding-bottom: 30rpx;
  628. }
  629. .header {
  630. height: 590rpx;
  631. .title {
  632. .title-txt {
  633. font-family: PingFangSC, PingFang SC;
  634. font-weight: bold;
  635. font-size: 32rpx;
  636. color: #FFFFFF;
  637. text-align: center;
  638. }
  639. }
  640. .search-box {
  641. margin: 10rpx 30rpx 0;
  642. position: relative;
  643. height: 80rpx;
  644. background: #1a394d;
  645. // border: 1px solid #DCDCDC;
  646. border-radius: 40rpx;
  647. display: flex;
  648. justify-content: center;
  649. align-items: center;
  650. box-sizing: border-box;
  651. flex: 1;
  652. .icon {
  653. width: 27rpx;
  654. height: 27rpx;
  655. margin-left: 26rpx;
  656. }
  657. .search {
  658. flex: 1;
  659. margin-right: 20rpx;
  660. height: 100%;
  661. padding: 0 10rpx;
  662. color: #fff;
  663. font-weight: 500;
  664. font-size: 26rpx;
  665. background: #1a394d;
  666. ::v-deep .input-placeholder {
  667. color: #fff !important;
  668. }
  669. }
  670. }
  671. }
  672. .nav {
  673. background-color: #fff;
  674. margin: 0 30rpx;
  675. width: 100%;
  676. width: 690rpx;
  677. height: 360rpx;
  678. background: #FFFFFF;
  679. border-radius: 12rpx;
  680. display: grid;
  681. grid-template-columns: repeat(4, 25%);
  682. grid-template-rows: repeat(2, 50%);
  683. // grid-gap: 10px;
  684. .item-box {
  685. display: flex;
  686. align-items: center;
  687. justify-content: center;
  688. flex-direction: column;
  689. .icon-img {
  690. height: 100rpx;
  691. width: 100rpx;
  692. border-radius: 50%;
  693. padding: 25rpx;
  694. background: #ECF1F4;
  695. box-sizing: border-box;
  696. .img {
  697. width: 100%;
  698. height: 100%;
  699. }
  700. }
  701. .b-txt {
  702. margin-top: 16rpx;
  703. font-size: 26rpx;
  704. color: #111111;
  705. }
  706. }
  707. }
  708. .notice {
  709. background-image: var(--bgimg);
  710. background-size: 100% 100%;
  711. background-repeat: no-repeat;
  712. height: 80rpx;
  713. width: 690rpx;
  714. margin: 24rpx 30rpx 0;
  715. display: flex;
  716. align-items: center;
  717. .l-img {
  718. width: 136rpx;
  719. height: 80rpx;
  720. margin-left: 20rpx;
  721. .img {
  722. height: 100%;
  723. width: 100%;
  724. }
  725. }
  726. .r-info {
  727. line-height: 80rpx;
  728. margin-left: 16rpx;
  729. font-size: 27rpx;
  730. color: #000;
  731. font-weight: 500;
  732. width: 400rpx;
  733. }
  734. }
  735. .supervision-con {
  736. box-sizing: border-box;
  737. height: 180rpx;
  738. width: 690rpx;
  739. margin: 24rpx 30rpx 0;
  740. border-radius: 12rpx;
  741. overflow: hidden;
  742. .swiper {
  743. height: 180rpx;
  744. width: 690rpx;
  745. }
  746. .swiper-item .img {
  747. overflow: hidden;
  748. border-radius: 12rpx;
  749. height: 180rpx !important;
  750. width: 690rpx;
  751. }
  752. .txt {
  753. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  754. font-weight: 400;
  755. font-size: 26rpx;
  756. color: #111111;
  757. }
  758. .phone {
  759. margin: 10rpx 0 10rpx;
  760. font-family: Arial, Arial;
  761. font-weight: normal;
  762. font-size: 38rpx;
  763. color: #B99A46;
  764. }
  765. .btn {
  766. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  767. font-weight: 400;
  768. font-size: 24rpx;
  769. color: #01243A;
  770. }
  771. }
  772. .title-name {
  773. margin: 24rpx 30rpx 0;
  774. }
  775. .title-h {
  776. font-family: PingFangSC, PingFang SC;
  777. font-weight: bold;
  778. font-size: 34rpx;
  779. color: #01243A;
  780. }
  781. .express-lane {
  782. margin: 22rpx 30rpx 0;
  783. display: flex;
  784. align-items: center;
  785. justify-content: space-between;
  786. .item {
  787. background-size: 100% 100%;
  788. background-repeat: no-repeat;
  789. width: 334rpx;
  790. height: 168rpx;
  791. text-align: right;
  792. display: flex;
  793. align-items: flex-end;
  794. justify-content: center;
  795. flex-direction: column;
  796. background-image: var(--bgimg);
  797. .item-con {
  798. margin-right: 53rpx;
  799. }
  800. .top-txt {
  801. font-family: PingFangSC, PingFang SC;
  802. font-size: 30rpx;
  803. color: #FFFFFF;
  804. }
  805. .btn {
  806. margin-top: 30rpx;
  807. background: #03385D;
  808. border-radius: 20rpx;
  809. font-family: PingFangSC, PingFang SC;
  810. font-size: 24rpx;
  811. color: #FFFFFF;
  812. height: 40rpx;
  813. width: 80rpx;
  814. line-height: 40rpx;
  815. text-align: center;
  816. }
  817. }
  818. .keche {
  819. .btn {
  820. background-color: #03385D;
  821. }
  822. }
  823. .huoche {
  824. margin-left: 22rpx;
  825. .btn {
  826. background-color: #C2A75F;
  827. }
  828. }
  829. }
  830. .news-con {
  831. margin: 39rpx 30rpx 0;
  832. .title-con {
  833. display: flex;
  834. align-items: center;
  835. justify-content: space-between;
  836. .r-more {
  837. width: 100rpx;
  838. height: 44rpx;
  839. border-radius: 22rpx;
  840. border: 1rpx solid #01243A;
  841. display: flex;
  842. align-items: center;
  843. justify-content: center;
  844. .txt {
  845. font-family: PingFangSC, PingFang SC;
  846. font-weight: bold;
  847. font-size: 24rpx;
  848. color: #01243A;
  849. }
  850. .icon {
  851. width: 10rpx;
  852. height: 100%;
  853. margin-left: 5rpx;
  854. }
  855. }
  856. }
  857. .empty-news {}
  858. .news-box {
  859. border-radius: 12rpx;
  860. background-color: #fff;
  861. margin-top: 22rpx;
  862. padding: 0 20rpx;
  863. .news-item {
  864. padding: 20rpx 0;
  865. display: flex;
  866. &:nth-child(n+2) {
  867. border-top: 1rpx solid #eee;
  868. }
  869. .l-img {
  870. width: 180rpx;
  871. height: 135rpx;
  872. .img {
  873. height: 100%;
  874. width: 100%;
  875. }
  876. }
  877. .r-txt {
  878. margin-left: 20rpx;
  879. display: flex;
  880. flex-direction: column;
  881. justify-content: space-between;
  882. .tit {
  883. font-family: PingFangSC, PingFang SC;
  884. font-weight: bold;
  885. font-size: 30rpx;
  886. color: #111111;
  887. }
  888. .b-time {
  889. font-family: PingFangSC, PingFang SC;
  890. font-size: 24rpx;
  891. color: #999999;
  892. }
  893. }
  894. }
  895. }
  896. }
  897. .flow-path {
  898. margin: 31rpx 30rpx 0;
  899. .top-menu {
  900. display: flex;
  901. .tab {
  902. font-family: MicrosoftYaHeiUI;
  903. font-size: 28rpx;
  904. color: #5A5E61;
  905. margin-right: 39rpx;
  906. position: relative;
  907. &.active {
  908. font-size: 34rpx;
  909. color: #01243A;
  910. .border {
  911. position: relative;
  912. }
  913. .border::after {
  914. content: "";
  915. background-image: var(--bgimg);
  916. background-repeat: no-repeat;
  917. background-size: 100% 100%;
  918. position: absolute;
  919. bottom: 0;
  920. left: 0;
  921. width: 100%;
  922. height: 16rpx;
  923. }
  924. }
  925. .txt {
  926. position: relative;
  927. z-index: 2;
  928. }
  929. }
  930. }
  931. .flow-list {
  932. margin-top: 30rpx;
  933. background-color: #fff;
  934. border-radius: 12rpx;
  935. padding: 20rpx;
  936. }
  937. .tiaojian {
  938. .title-top {
  939. display: flex;
  940. justify-content: center;
  941. align-items: center;
  942. padding-bottom: 20rpx;
  943. .txt {
  944. margin: 0 24rpx;
  945. font-family: MicrosoftYaHei;
  946. font-size: 30rpx;
  947. color: #01243A;
  948. }
  949. .icon-img {
  950. width: 16rpx;
  951. height: 20rpx;
  952. }
  953. }
  954. .item{
  955. font-size: 26rpx;
  956. color: #222222;
  957. display: flex;
  958. margin-bottom: 16rpx;
  959. font-family: MicrosoftYaHeiUI;
  960. .tu{
  961. background-image: var(--bgimg);
  962. background-size: 100% 100%;
  963. background-repeat: no-repeat;
  964. height: 44rpx;
  965. width: 44rpx;
  966. display: flex;
  967. align-items: center;
  968. text-align: center;
  969. color: white;
  970. justify-content: center;
  971. margin-right: 10rpx;
  972. flex-shrink: 0;
  973. font-size: 22rpx;
  974. }
  975. }
  976. }
  977. .list-info {
  978. font-family: MicrosoftYaHeiUI;
  979. font-size: 26rpx;
  980. color: #222222;
  981. }
  982. .wenti {
  983. .item-box:nth-child(n+2) {
  984. border-top: 1rpx solid #E8E8E8;
  985. }
  986. .item-box {
  987. display: flex;
  988. padding: 15rpx 0;
  989. }
  990. .l-icon {
  991. flex-shrink: 0;
  992. width: 38rpx;
  993. height: 38rpx;
  994. display: flex;
  995. align-items: center;
  996. justify-content: center;
  997. background-color: #c2a75f;
  998. border-radius: 50%;
  999. .icon-img {
  1000. width: 14rpx;
  1001. height: 24rpx;
  1002. }
  1003. }
  1004. .txt {
  1005. margin-left: 14rpx;
  1006. font-family: PingFangSC, PingFang SC;
  1007. font-size: 28rpx;
  1008. color: #222222;
  1009. line-height: 38rpx;
  1010. }
  1011. }
  1012. }
  1013. .mask {
  1014. background: $uni-bg-color-mask;
  1015. position: fixed;
  1016. left: 0;
  1017. top: 0;
  1018. right: 0;
  1019. bottom: 0;
  1020. z-index: 999;
  1021. }
  1022. .mask-content {
  1023. background: #fff;
  1024. width: 570rpx;
  1025. position: absolute;
  1026. left: 50%;
  1027. top: 50%;
  1028. transform: translate(-50%, -50%);
  1029. display: flex;
  1030. flex-direction: column;
  1031. border-radius: 20rpx;
  1032. z-index:999;
  1033. }
  1034. .mask-close {
  1035. text-align: right;
  1036. }
  1037. .mask-title {
  1038. text-align: center;
  1039. margin-bottom: 50rpx;
  1040. font-family: MicrosoftYaHei;
  1041. font-size: 34rpx;
  1042. color: #666666;
  1043. }
  1044. .mask-tab {
  1045. // display: flex;
  1046. // justify-content: space-evenly;
  1047. margin: 0 40rpx;
  1048. }
  1049. .icon-closed {
  1050. width: 30rpx;
  1051. height: 30rpx;
  1052. margin: 24rpx 24rpx 0 0;
  1053. }
  1054. .tab-item {
  1055. padding: 20rpx 25rpx;
  1056. display: flex;
  1057. align-items: center;
  1058. background: #F7F7F7;
  1059. border-radius: 15rpx;
  1060. margin-bottom: 30rpx;
  1061. }
  1062. .r-info{
  1063. margin-left: 25rpx;
  1064. .tab-tit {
  1065. font-family: MicrosoftYaHei;
  1066. font-size: 28rpx;
  1067. color: #333333;
  1068. }
  1069. .tab-desc{
  1070. font-family: MicrosoftYaHei;
  1071. font-size: 24rpx;
  1072. color: #999999;
  1073. margin-top: 10rpx;
  1074. }
  1075. }
  1076. .tab-item .img {
  1077. width: 120rpx;
  1078. height: 120rpx;
  1079. }
  1080. .backlog-notice {
  1081. margin: 50rpx 30rpx 0rpx;
  1082. }
  1083. </style>