您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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