Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

2 роки тому
2 роки тому
1 рік тому
2 роки тому
1 рік тому
2 роки тому
1 рік тому
2 роки тому
1 рік тому
2 роки тому
2 роки тому
2 роки тому
1 рік тому
2 роки тому
2 роки тому
1 рік тому
2 роки тому
1 рік тому
2 роки тому
2 роки тому
1 рік тому
2 роки тому
1 рік тому
2 роки тому
1 рік тому
2 роки тому
2 роки тому
1 рік тому
2 роки тому
1 рік тому
2 роки тому
2 роки тому
2 роки тому
1 рік тому
2 роки тому
2 роки тому
2 роки тому
1 рік тому
2 роки тому
2 роки тому
2 роки тому
1 рік тому
2 роки тому
2 роки тому
2 роки тому
1 рік тому
2 роки тому
2 роки тому
2 роки тому
1 рік тому
1 рік тому
2 роки тому
2 роки тому
2 роки тому
1 рік тому
2 роки тому
2 роки тому
2 роки тому
1 рік тому
2 роки тому
2 роки тому
2 роки тому
2 роки тому
2 роки тому
2 роки тому
2 роки тому
1 рік тому
2 роки тому
1 рік тому
2 роки тому
2 роки тому
2 роки тому
2 роки тому
1 рік тому
2 роки тому
2 роки тому
1 рік тому
2 роки тому
2 роки тому
1 рік тому
2 роки тому
2 роки тому
2 роки тому
1 рік тому
2 роки тому
2 роки тому
2 роки тому
2 роки тому
2 роки тому
2 роки тому
2 роки тому
1 рік тому
2 роки тому
1 рік тому
2 роки тому
2 роки тому
2 роки тому
2 роки тому
2 роки тому
2 роки тому
2 роки тому
2 роки тому
2 роки тому
2 роки тому
2 роки тому
2 роки тому
2 роки тому
2 роки тому
2 роки тому
2 роки тому
1 рік тому
2 роки тому
2 роки тому
2 роки тому
2 роки тому
2 роки тому
2 роки тому
2 роки тому
2 роки тому
2 роки тому
1 рік тому
2 роки тому
1 рік тому
2 роки тому
2 роки тому
1 рік тому
1 рік тому
2 роки тому
1 рік тому
1 рік тому
1 рік тому
1 рік тому
1 рік тому
1 рік тому
1 рік тому
2 роки тому
2 роки тому
1 рік тому
1 рік тому
2 роки тому
1 рік тому
2 роки тому
2 роки тому
2 роки тому
2 роки тому
1 рік тому
1 рік тому
1 рік тому
1 рік тому
2 роки тому
2 роки тому
1 рік тому
2 роки тому
1 рік тому
2 роки тому
1 рік тому
1 рік тому
1 рік тому
1 рік тому
1 рік тому
2 роки тому
1 рік тому
2 роки тому
2 роки тому
2 роки тому
2 роки тому
1 рік тому
1 рік тому
2 роки тому
2 роки тому
1 рік тому
1 рік тому
1 рік тому
1 рік тому
1 рік тому
1 рік тому
2 роки тому
1 рік тому
1 рік тому
1 рік тому
1 рік тому
1 рік тому
1 рік тому
1 рік тому
1 рік тому
2 роки тому
1 рік тому
1 рік тому
1 рік тому
1 рік тому
2 роки тому
2 роки тому
2 роки тому
2 роки тому
2 роки тому
2 роки тому
2 роки тому
1 рік тому
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113
  1. <template>
  2. <filter>
  3. <!-- <view class="statusBar" :style="{height:statusBarHeight+'px'}" v-show="isShowBar"></view> -->
  4. <view class="wrapper">
  5. <!-- Banner -->
  6. <view class="banner">
  7. <swiper class="swiper" circular :indicator-dots="swiper.indicatorDots" :autoplay="swiper.autoplay"
  8. :interval="swiper.interval" :duration="swiper.duration"
  9. indicator-active-color="rgba(0, 179, 139, 1)" :easing-function="swiper.easing">
  10. <!-- <block v-if="state.swiperList.length >0" v-for="item in state.swiperList" :key="item.id">
  11. <swiper-item class="swiper-item" @click="gotoLink(item)">
  12. <image :src="item.imgUrl?strReplace(item.imgUrl):fileURL + 'image/index/banner-1.png'"
  13. mode="widthFix"></image>
  14. </swiper-item>
  15. </block> -->
  16. <block >
  17. <swiper-item class="swiper-item">
  18. <image :src="fileURL + 'image/index/banner-1.png'" mode="widthFix"></image>
  19. </swiper-item>
  20. </block>
  21. </swiper>
  22. <view class="notice">
  23. <image class="icon" :src="fileURL + 'image/index/icon-notice.png'" lazy-load="false"
  24. mode="aspectFill">
  25. </image>
  26. <!-- <text class="notice-text">{{state.notice}}</text> -->
  27. <uni-notice-bar style="width: 100%;" scrollable single :text="state.notice">
  28. </uni-notice-bar>
  29. </view>
  30. </view>
  31. <!-- 按钮导航 -->
  32. <view class="nav">
  33. <view class="item-box" @click="$util.navTo('/pages/recharge/select-car',true)">
  34. <view class="item item-1">
  35. <image :src="fileURL + 'image/index/item-1.png'" mode="aspectFill" />
  36. </view>
  37. <view class="text">储值卡充值</view>
  38. </view>
  39. <view class="item-box" @click="$util.navTo('/subpackage/personal-center/search/select-car',true)">
  40. <view class="item item-2">
  41. <image :src="fileURL + 'image/index/item-2.png'" mode="aspectFill" />
  42. </view>
  43. <view class="text">账单查询</view>
  44. </view>
  45. <!-- <view class="item-box" @click="$util.navTo('/subpackage/orders/Invoice-mannager',true)">
  46. <view class="item item-3">
  47. <image :src="fileURL + 'image/index/item-3.png'" mode="aspectFill" />
  48. </view>
  49. <view class="text">通行发票</view>
  50. </view> -->
  51. <view class="item-box" @click="$util.navTo('/subpackage/after-sale/activation-once-again/select-car',true)">
  52. <view class="item item-3">
  53. <image :src="fileURL + '20230511/24e179d44e2d4e5687339bff_obucxjh.png'" mode="aspectFill" />
  54. </view>
  55. <view class="text">重新激活</view>
  56. </view>
  57. <view class="item-box"
  58. @click="$util.navTo('/subpackage/personal-center/install-activation-order',true)">
  59. <view class="item item-4">
  60. <image :src="fileURL + 'image/index/item-4.png'" mode="aspectFill" />
  61. </view>
  62. <view class="text">设备激活</view>
  63. </view>
  64. <view class="item-box"
  65. @click="$util.navTo('/subpackage/after-sale/card-loss-reporting/select-car',true)">
  66. <view class="item item-5">
  67. <image :src="fileURL + 'image/index/item-5.png'" mode="aspectFill" />
  68. </view>
  69. <view class="text">设备遗失</view>
  70. </view>
  71. <!-- <view class="item-box" @click="$util.navTo('/subpackage/after-sale/rescind-carId/rescind-carId-select',true)"> -->
  72. <view class="item-box"
  73. @click="$util.navTo('/subpackage/after-sale/rescind-carId/rescind-carId-select',true)">
  74. <view class="item item-6">
  75. <image :src="fileURL + 'image/index/item-6.png'" mode="aspectFill" />
  76. </view>
  77. <view class="text">解除车牌占用</view>
  78. </view>
  79. <view class="item-box"
  80. @click="$util.navTo(`/subpackage/personal-center/setting/personal-information/corrections`,true)">
  81. <view class="item item-7">
  82. <image :src="fileURL + 'image/index/item-7.png'" mode="aspectFill" />
  83. </view>
  84. <view class="text">基础信息变更</view>
  85. </view>
  86. <view class="item-box" @click="$util.navTo(`/pages/service/service`,true)">
  87. <view class="item item-8">
  88. <image :src="fileURL + 'image/index/item-more.png'" mode="aspectFill" />
  89. </view>
  90. <view class="text">更多</view>
  91. </view>
  92. </view>
  93. <!-- 消息滚动显示 -->
  94. <view v-if="false" class="backlog-notice">
  95. <notice-bar :noticeList="state.noticeList" @noticeClick="goOrder(3)"></notice-bar>
  96. </view>
  97. <!--快速办理通道 -->
  98. <view class="express-lane">
  99. <view class="title">快速办理通道</view>
  100. <view class="lane">
  101. <view class="lane-item lane-1" :style="{ '--background': bgOrange }" @click="showMask(1)">
  102. <image :src="fileURL + 'image/index/icon-car.png'" mode="aspectFill"></image>
  103. <view class="text">
  104. <text class="head">客车通道</text>
  105. <text class="decribe">业务内容简介</text>
  106. </view>
  107. </view>
  108. <view class="lane-item lane-2" :style="{ '--background': bgBlue }" @click="showMask(2)">
  109. <image :src="fileURL + 'image/index/icon-truck.png'" mode="aspectFill"></image>
  110. <view class="text">
  111. <text class="head">货车通道</text>
  112. <text class="decribe">业务内容简介</text>
  113. </view>
  114. </view>
  115. </view>
  116. </view>
  117. <!-- 办理流程 -->
  118. <view class="flow-path">
  119. <scroll-view scroll-x="true" class="scroll-view">
  120. <view class="top-menu">
  121. <view :class="item == state.tabActive ? 'tab active' : 'tab'"
  122. v-for="item in state.flowPathTabList" :key="item" @click="flowPathTabHandle(item)">
  123. <view class="border"></view>{{ item }}
  124. </view>
  125. </view>
  126. </scroll-view>
  127. <view v-if="state.tabActive === '办理流程'">
  128. <view class="flow-list">
  129. <flow-path-list :options="state.flowList"></flow-path-list>
  130. </view>
  131. </view>
  132. <view v-else-if="state.tabActive === '办理条件'">
  133. <view class="flow-list as-gravity-center"> {{state.processeConditionText}} </view>
  134. </view>
  135. <view v-else-if="state.tabActive === '常见问题'">
  136. <view class="flow-list as-gravity-center"> {{state.commonQuestionText}} </view>
  137. </view>
  138. </view>
  139. </view>
  140. <!-- 高速快讯 -->
  141. <view class="news">
  142. <view class="title">高速快讯</view>
  143. <view class="news-box">
  144. <view class="news-item" v-for="(item,index) in state.highMsgData" :key='index' @click="link(item)">
  145. <view class="left-text">
  146. <view class="tit description">{{item.title}}</view>
  147. <view class="span">{{item.copywriting}}</view>
  148. </view>
  149. <view class="image-box">
  150. <image :src="fileURL + item.imgUrl" mode="aspectFill"></image>
  151. </view>
  152. </view>
  153. <view v-if="state.highMsgData.length!=0" class="more"
  154. @click="$util.navTo('/subpackage/orders/moreHighMsg/moreHighMsg',true)">查看更多</view>
  155. </view>
  156. </view>
  157. <!-- 专区服务 -->
  158. <view class="service">
  159. <view class="title">专区服务</view>
  160. <view class="service-box">
  161. <view class="service-item border" @click="$util.msg('该功能正在开发中,敬请期待!')">
  162. <image :src="fileURL + 'image/index/truck-point.png'" mode="aspectFill"></image>
  163. <view class="text">
  164. <view class="tit">货车积分返利</view>
  165. <view class="sub">海量商品任你选择</view>
  166. </view>
  167. </view>
  168. <view class="service-item" @click="$util.msg('该功能正在开发中,敬请期待!')">
  169. <image :src="fileURL + 'image/index/parking-bill.png'" mode="aspectFill"></image>
  170. <view class="text">
  171. <view class="tit">停车场账单查询</view>
  172. <view class="sub">消费明细一目了然{{ title }}</view>
  173. </view>
  174. </view>
  175. </view>
  176. </view>
  177. </filter>
  178. <!-- ETC选择弹窗 -->
  179. <view class="mask" v-if="isShowMask">
  180. <view class="mask-content">
  181. <filter>
  182. <view class="mask-close">
  183. <image :src="fileURL + 'image/index/icon-close.png'" class="icon-closed" @click="closeMask"></image>
  184. </view>
  185. <view class="mask-title" :style="{ '--color': color }">选择ETC用户类型</view>
  186. <view class="mask-tab">
  187. <view class="tab-item active" @click="toCreatOrder('1')">
  188. <image :src="fileURL + 'image/index/icon-personal.png'" mode="aspectFill"></image>
  189. <text class="tab-tit on">个人办理</text>
  190. </view>
  191. <view class="tab-item" @click="toCreatOrder('2')">
  192. <image :src="fileURL + 'image/index/icon-unit.png'" mode="aspectFill"></image>
  193. <text class="tab-tit on">单位办理</text>
  194. </view>
  195. </view>
  196. </filter>
  197. </view>
  198. </view>
  199. </template>
  200. <script setup lang="ts">
  201. import {
  202. onMounted,
  203. ref
  204. } from "vue";
  205. import {
  206. onPageScroll,
  207. onLoad
  208. } from "@dcloudio/uni-app";
  209. import flowPathList from "./components/flow-path-list.vue";
  210. import filter from '@/components/filter/filter.vue';
  211. import {
  212. request
  213. } from "@/utils/network/request.js";
  214. import {
  215. stringToJson
  216. } from "@/utils/network/encryption.js";
  217. import {
  218. useUserStore
  219. } from "@/stores/user";
  220. import {
  221. getItem,
  222. setItem,
  223. StorageKeys
  224. } from "@/utils/storage";
  225. import {
  226. queryKey,
  227. querySwiper,
  228. envs,
  229. infoQuery,
  230. queryHighMsg,
  231. orderList
  232. } from "@/utils/network/api.js";
  233. import {
  234. reactive
  235. } from "vue";
  236. import {
  237. fileURL
  238. } from "@/datas/fileURL.js";
  239. import {
  240. navTo,
  241. confirm
  242. } from "@/utils/utils";
  243. import {
  244. getCodeName
  245. } from "@/datas/queryKey.js";
  246. const bgOrange = `url(${fileURL}image/index/bg-orange.png) center center no-repeat`;
  247. const bgBlue = `url(${fileURL}image/index/bg-blue.png) center center no-repeat`;
  248. const list = reactive(["您有一条待办事项,还未办理完成"])
  249. const swiper = reactive({
  250. indicatorDots: true,
  251. autoplay: true,
  252. interval: 2000,
  253. duration: 1000,
  254. easing: "easeInOutCubic"
  255. })
  256. const state = reactive({
  257. type: 0, //0客车 1货车
  258. userType: 1, //1个人 2单位
  259. notice: "",
  260. swiperList: [],
  261. noticeList: [
  262. //公告栏列表
  263. // {
  264. // title: "您有{}条未完成订单,前往处理",
  265. // id: 1,
  266. // },
  267. // {
  268. // title: "XXX刚刚申请了公交车发行",
  269. // id: 2,
  270. // },
  271. // {
  272. // title: "您还有一条订单已经发货了",
  273. // id: 3,
  274. // },
  275. // {
  276. // title: "订单等您确认收货",
  277. // id: 4,
  278. // },
  279. // {
  280. // title: "最新的新闻资讯请点击哈哈哈哈哈哈哈假的假的假的假的基督教",
  281. // id: 5,
  282. // },
  283. ],
  284. flowPathTabList: ["办理流程", "办理条件", "常见问题"],
  285. tabActive: "办理流程",
  286. flowList: [
  287. //办理流程数据
  288. {
  289. title: "第一步:信息校验:",
  290. desc: "提交车牌号、车牌颜色、收货地址相关信息",
  291. },
  292. {
  293. title: "第二步:证件上传:",
  294. desc: "上传身份证、行驶证等相关信息",
  295. },
  296. {
  297. title: "第三步:签约代扣:",
  298. desc: "选择签约账户并关联",
  299. },
  300. {
  301. title: "第四步:产品选择:",
  302. desc: "选择购买的发行产品",
  303. },
  304. {
  305. title: "第五步:订单完成:",
  306. desc: "支付完成订单",
  307. },
  308. ],
  309. highMsgData: '',//高速快讯内容
  310. processeConditionText: "", //办理条件文本
  311. commonQuestionText: "", //常见问题文本
  312. });
  313. const isShowMask = ref(false);
  314. const isShowBar = ref(false)
  315. const userStore = useUserStore();
  316. const type = 0;
  317. const title = ref("我是测试");
  318. const statusBarHeight = ref(0)
  319. //监听页面滚动
  320. onPageScroll((e) => {
  321. if (e.scrollTop > statusBarHeight.value) {
  322. isShowBar.value = true;
  323. } else {
  324. isShowBar.value = false;
  325. }
  326. });
  327. onLoad(() => {
  328. uni.login({
  329. success: function (res) {
  330. console.log('输出内容========', res)
  331. }
  332. })
  333. // //调用方式
  334. // request('eeb51c66bcda48dc9dbb5997323a11ed', {}).then((res) => {
  335. // console.log("====", stringToJson(res.bizContent));
  336. // uni.requestSubscribeMessage({
  337. // tmplIds: [''],
  338. // success: function(res){
  339. // console.log('输出内容========',res)
  340. // },
  341. // fail: function(res){
  342. // console.log('内容========',res)
  343. // }
  344. // })
  345. // })
  346. // .catch((err) => {});
  347. getInfo();
  348. quanKeyAction().then((val : any) => {
  349. setItem('key', val.dictTypeAndItem)
  350. })
  351. highMsg(); //高速快讯
  352. processeCondition();//办理条件
  353. commonQuestion();
  354. // doSomething();//代办事项
  355. })
  356. onMounted(() => {
  357. uni.getSystemInfo({
  358. success: (e : any) => {
  359. // console.log(e.statusBarHeight);
  360. statusBarHeight.value = e.statusBarHeight;
  361. }
  362. })
  363. getSwiper()
  364. // console.log(credentialType);
  365. //参数说明
  366. // let code = "30" //请求编码
  367. // let options = {
  368. // type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  369. // data: {
  370. // opId: getItem("openId"),
  371. // source: "WECHAT",
  372. // tabIndex: "0",
  373. // }, //请求参数
  374. // method: "POST", //提交方式(默认POST)
  375. // showLoading: true, //是否显示加载中(默认显示)
  376. // };
  377. //调用方式
  378. // request(searchOrder, options)
  379. // .then((res) => {
  380. // console.log(stringToJson(res.bizContent));
  381. // // stringToJson(res.bizContent)
  382. // })
  383. // .catch((err) => {
  384. // console.log(err);
  385. // });
  386. });
  387. //获取轮播
  388. const getSwiper = () => {
  389. let options = {
  390. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  391. data: {
  392. // opId: getItem("openId"),
  393. // source: "WECHAT",
  394. // tabIndex: "0",
  395. }, //请求参数
  396. method: "POST", //提交方式(默认POST)
  397. showLoading: true, //是否显示加载中(默认显示)
  398. };
  399. //调用方式
  400. request(querySwiper, options).then((res) => {
  401. console.log(stringToJson(res.bizContent));
  402. const data = stringToJson(res.bizContent)
  403. console.log("轮播图", data)
  404. state.swiperList = data.swipers ? data.swipers : []
  405. })
  406. .catch((err) => {
  407. console.log(err);
  408. });
  409. };
  410. //轮播跳转
  411. const gotoLink = (item : any) => {
  412. console.log("555555555555555555", item);
  413. };
  414. //办理流程tab选择
  415. const flowPathTabHandle = (tab) => {
  416. state.tabActive = tab;
  417. };
  418. //安装激活
  419. const goActivation = () => {
  420. uni.navigateTo({
  421. url: "/pages/order/order",
  422. });
  423. };
  424. const goToRecharge = () => {
  425. console.log("执行点击事件");
  426. console.log('321')
  427. uni.navigateTo({
  428. url: "/pages/recharge/select-car",
  429. });
  430. };
  431. //全量枚举值查询
  432. const quanKeyAction = (val : any) => {
  433. var data = {
  434. };
  435. const options = {
  436. type: 2,
  437. data: data,
  438. method: "POST",
  439. showLoading: true,
  440. };
  441. return new Promise(async (resolve, reject) => {
  442. const res = await request(queryKey, options);
  443. const data = stringToJson(res.bizContent);
  444. resolve(data);
  445. }).catch((error) => {
  446. reject(error);
  447. });
  448. }
  449. const toCreatOrder = (val : number) => {
  450. console.log(typeof (val));
  451. state.userType = val;
  452. // if (val === 1) {
  453. // // navTo(`/orders/essential-information?type=${state.type}&&userType=${state.userType}`)
  454. // uni.navigateTo({
  455. // url: `/subpackage/orders/essential-information?type=${state.type}&&userType=${state.userType}`
  456. // })
  457. // } else {
  458. // // navTo(`/orders/essential-information?type=${state.type}&&userType=${state.userType}`)
  459. // uni.navigateTo({
  460. // url: `/subpackage/orders/essential-information?type=${state.type}&&userType=${state.userType}`
  461. // })
  462. // }
  463. navTo(`/subpackage/orders/choice-product?type=${state.type}&&userType=${state.userType}`)
  464. closeMask();
  465. };
  466. const showMask = (val : any) => {
  467. state.type = val; //1 客车 2货车
  468. isShowMask.value = true;
  469. };
  470. const closeMask = () => {
  471. isShowMask.value = false;
  472. };
  473. // 获取文本信息----用户协议
  474. const getInfo = () => {
  475. //参数说明
  476. let options = {
  477. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  478. data: {
  479. businessType: 'BROADCAST' //广播栏信息
  480. }, //请求参数
  481. method: "POST", //提交方式(默认POST)
  482. showLoading: true, //是否显示加载中(默认显示)
  483. };
  484. //调用方式
  485. request(infoQuery, options)
  486. .then((res) => {
  487. let data = stringToJson(res.bizContent)
  488. console.log(data);
  489. state.notice = data.text
  490. })
  491. .catch((err) => {
  492. console.log(err);
  493. });
  494. }
  495. //替换图片地址
  496. const strReplace = (str : string) => {
  497. return str.replace('http://192.168.100.63:8087', envs[process.env.NODE_ENV].baseUrl)
  498. }
  499. // 高速快讯查询接口
  500. const highMsg = () => {
  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. request(queryHighMsg, options).then((res) => {
  512. console.log("高速快讯查询接口", stringToJson(res.bizContent));
  513. state.highMsgData = stringToJson(res.bizContent).data
  514. for (var i = 0; i < state.highMsgData.length; i++) {
  515. state.highMsgData[i]["copywriting"] = getCodeName('COPYWRITING', state.highMsgData[i]["copywriting"])
  516. if (state.highMsgData[i]["type"] == 3) {
  517. state.highMsgData[i]["title"] = state.highMsgData[i]["hyperLink"]
  518. }
  519. }
  520. })
  521. .catch((err) => { console.log(err) });
  522. }
  523. const link = (item) => {
  524. console.log("item", item)
  525. if (item.type == 1) {
  526. const params = encodeURIComponent(JSON.stringify(item.hyperLink))
  527. uni.navigateTo({
  528. url: `/subpackage/personal-center/webview?url=` + params
  529. })
  530. } else if (item.type == 2) {
  531. navTo(item.hyperLink)
  532. } else if (item.type == 3) {
  533. const param = encodeURIComponent(JSON.stringify(item))
  534. uni.navigateTo({
  535. url: `/subpackage/orders/moreHighMsg/textDetails?item=` + param
  536. })
  537. } else if (item.type == 4) {
  538. uni.navigateToMiniProgram({
  539. appId: item.hyperLink,
  540. path: item.speedUrl,
  541. success(res) {
  542. console.log(res);
  543. },
  544. complete(res) {
  545. console.log(res);
  546. },
  547. fail(res) {
  548. console.log(res);
  549. // 未成功跳转到车主小程序
  550. },
  551. });
  552. }
  553. }
  554. const processeCondition = () => {
  555. let options = {
  556. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  557. data: {
  558. businessType: 'PROCESSING_CONDITIONS' //办理条件
  559. }, //请求参数
  560. method: "POST", //提交方式(默认POST)
  561. showLoading: true, //是否显示加载中(默认显示)
  562. };
  563. //调用方式
  564. request(infoQuery, options)
  565. .then((res) => {
  566. let data = stringToJson(res.bizContent)
  567. console.log("办理条件", data)
  568. state.processeConditionText = data.text
  569. })
  570. .catch((err) => {
  571. console.log(err);
  572. });
  573. }
  574. const commonQuestion = () => {
  575. let options = {
  576. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  577. data: {
  578. businessType: 'COMMON_PROBLEM' //常见问题
  579. }, //请求参数
  580. method: "POST", //提交方式(默认POST)
  581. showLoading: true, //是否显示加载中(默认显示)
  582. };
  583. //调用方式
  584. request(infoQuery, options)
  585. .then((res) => {
  586. let data = stringToJson(res.bizContent)
  587. console.log("常见问题", data)
  588. state.commonQuestionText = data.text
  589. })
  590. .catch((err) => {
  591. console.log(err);
  592. });
  593. }
  594. // 代办事项
  595. const doSomething = () => {
  596. let options = {
  597. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  598. data: {
  599. "opId": getItem(StorageKeys.OpenId),
  600. "source": "WECHAT",
  601. "vehiclePlate": "",
  602. "tabIndex": 3 + '',
  603. "pageNo": 1,
  604. "pageSize": 100,
  605. "promotionModes": 1
  606. },
  607. method: "POST", //提交方式(默认POST)
  608. };
  609. //调用方式
  610. request(orderList, options)
  611. .then((res) => {
  612. let data = stringToJson(res.bizContent)
  613. let obj = {};
  614. obj["id"] = 1;
  615. obj['title'] = "您有" + data.data.length + "条未完成订单,前往处理"
  616. state.noticeList.push(obj)
  617. console.log("代办事项", data.data)
  618. })
  619. .catch((err) => {
  620. console.log(err);
  621. });
  622. }
  623. const goOrder = (index) => {
  624. uni.reLaunch({
  625. url: `../order/order?index=${index}`
  626. })
  627. }
  628. </script>
  629. <style>
  630. page {
  631. background: #eef7f7;
  632. }
  633. </style>
  634. <style lang="scss" scoped>
  635. .statusBar {
  636. width: 100%;
  637. position: sticky;
  638. background: linear-gradient(-90deg, #43a1e0 0%, #13e7c1 100%);
  639. top: 0;
  640. left: 0;
  641. z-index: 999;
  642. }
  643. .banner {
  644. position: relative;
  645. }
  646. .banner swiper {
  647. height: 470rpx;
  648. width: 750rpx;
  649. }
  650. .banner .notice {
  651. position: absolute;
  652. background: rgba(0, 0, 0, 0.28);
  653. border-radius: 30rpx;
  654. width: 500rpx;
  655. height: 60rpx;
  656. bottom: 46rpx;
  657. left: 125rpx;
  658. display: flex;
  659. justify-content: center;
  660. align-items: center;
  661. padding: 0 20rpx;
  662. box-sizing: border-box;
  663. ::v-deep .uni-noticebar {
  664. background: none !important;
  665. margin-bottom: 0;
  666. text {
  667. font-size: 24rpx !important;
  668. color: #ffffff !important;
  669. }
  670. }
  671. }
  672. .banner .notice .icon {
  673. width: 40rpx;
  674. height: 40rpx;
  675. margin: 10rpx;
  676. }
  677. .banner .notice .notice-text {
  678. font-size: 24rpx;
  679. color: #ffffff;
  680. flex: 1;
  681. }
  682. .swiper-item image {
  683. width: 100%;
  684. height: auto;
  685. }
  686. .nav {
  687. display: flex;
  688. flex-wrap: wrap;
  689. padding: 0 35rpx;
  690. font-size: 28rpx;
  691. }
  692. .nav .item-box {
  693. display: flex;
  694. flex-direction: column;
  695. justify-content: center;
  696. align-items: center;
  697. }
  698. .nav .item {
  699. width: 80rpx;
  700. height: 80rpx;
  701. border-radius: 30rpx;
  702. display: flex;
  703. justify-content: center;
  704. align-items: center;
  705. margin: 50rpx 45rpx 20rpx 45rpx;
  706. }
  707. .nav .text {
  708. font-size: 24rpx;
  709. color: #172843;
  710. }
  711. .item-1 {
  712. background: linear-gradient(133deg, #5fff9b 0%, #00b38b 100%);
  713. }
  714. .item-2 {
  715. background: linear-gradient(-50deg, #018ffd 0%, #27fcff 100%);
  716. }
  717. .item-3 {
  718. background: linear-gradient(-47deg, #f88721 0%, #fecd61 100%);
  719. }
  720. .item-4 {
  721. background: linear-gradient(-47deg, #018ffd 0%, #27fcff 100%);
  722. }
  723. .item-5 {
  724. background: linear-gradient(-44deg, #018ffd 0%, #27fcff 100%);
  725. }
  726. .item-6 {
  727. background: linear-gradient(-50deg, #f88721 0%, #fecd61 100%);
  728. }
  729. .item-7 {
  730. background: linear-gradient(129deg, #5fff9b 0%, #00b38b 100%);
  731. }
  732. .item-8 {
  733. background: linear-gradient(124deg, #b8f0f2 0%, #62aeb1 100%);
  734. }
  735. .item image {
  736. width: 56rpx;
  737. height: 56rpx;
  738. }
  739. .express-lane {
  740. font-size: 36rpx;
  741. font-weight: 400;
  742. color: #000000;
  743. padding-top: 30rpx;
  744. // line-height: 58rpx;
  745. }
  746. .express-lane .title {
  747. padding-left: 30rpx;
  748. margin: 0rpx 0 20rpx;
  749. font-size: 32rpx;
  750. font-weight: bold;
  751. }
  752. .lane {
  753. display: flex;
  754. justify-content: space-evenly;
  755. }
  756. .lane-item {
  757. width: 330rpx;
  758. height: 150rpx;
  759. border-radius: 20rpx;
  760. display: flex;
  761. justify-content: center;
  762. align-items: center;
  763. }
  764. .lane-item image {
  765. width: 120rpx;
  766. height: 100rpx;
  767. margin: 0 18rpx;
  768. }
  769. .lane-item .text {
  770. display: flex;
  771. flex-direction: column;
  772. justify-content: center;
  773. // align-items: center;
  774. color: #ffffff;
  775. flex: 1;
  776. }
  777. .lane-item .head {
  778. font-size: 30rpx;
  779. font-weight: bold;
  780. }
  781. .lane-item .decribe {
  782. font-size: 24rpx;
  783. }
  784. .lane-1 {
  785. background: var(--background);
  786. }
  787. .lane-2 {
  788. background: var(--background);
  789. }
  790. .news {
  791. padding: 30rpx 30rpx 0 30rpx;
  792. }
  793. .news .title {
  794. font-size: 32rpx;
  795. font-weight: bold;
  796. }
  797. .news .left-text {
  798. flex: 1;
  799. margin-right: 100rpx;
  800. }
  801. .news-box {
  802. background: #ffffff;
  803. border-radius: 20rpx;
  804. padding: 0 32rpx;
  805. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  806. margin: 20rpx 0 50rpx;
  807. }
  808. .news .tit {
  809. font-size: 26rpx;
  810. color: #172843;
  811. }
  812. .news .news-item {
  813. display: flex;
  814. border-bottom: 1px solid #dcdcdc;
  815. padding: 32rpx 0 15rpx;
  816. }
  817. .news .image-box image {
  818. width: 100rpx;
  819. height: 100rpx;
  820. border-radius: 10rpx;
  821. }
  822. .news .span {
  823. font-size: 22rpx;
  824. display: inline-block;
  825. text-align: center;
  826. background: #bae0f1;
  827. border-radius: 6rpx;
  828. color: #0a8f8a;
  829. padding: 4rpx 8rpx;
  830. }
  831. .news .more {
  832. font-size: 24rpx;
  833. text-align: center;
  834. color: #0a8f8a;
  835. padding: 22rpx 0;
  836. }
  837. .service {
  838. padding: 0 30rpx 50rpx 30rpx;
  839. }
  840. .service .title {
  841. font-size: 32rpx;
  842. font-weight: bold;
  843. }
  844. .service-box {
  845. background: #ffffff;
  846. border-radius: 20rpx;
  847. padding: 0 32rpx;
  848. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  849. display: flex;
  850. flex-direction: column;
  851. margin-top: 20rpx;
  852. }
  853. .service-item {
  854. display: flex;
  855. align-items: center;
  856. justify-content: center;
  857. padding: 22rpx 0;
  858. }
  859. .service-item .text {
  860. flex: 1;
  861. }
  862. .service image {
  863. width: 170rpx;
  864. height: 116rpx;
  865. margin-right: 26rpx;
  866. }
  867. .service .tit {
  868. font-size: 28rpx;
  869. font-weight: bold;
  870. color: #0d0f26;
  871. }
  872. .service .sub {
  873. font-size: 24rpx;
  874. color: #666666;
  875. padding-top: 10rpx;
  876. }
  877. .service .border {
  878. border-bottom: 1px solid #dcdcdc;
  879. }
  880. .mask {
  881. background: $uni-bg-color-mask;
  882. position: fixed;
  883. left: 0;
  884. top: 0;
  885. right: 0;
  886. bottom: 0;
  887. }
  888. .mask-content {
  889. background: $uni-bg-color;
  890. width: 570rpx;
  891. height: 480rpx;
  892. position: absolute;
  893. left: 50%;
  894. top: 50%;
  895. transform: translate(-50%, -50%);
  896. display: flex;
  897. flex-direction: column;
  898. border-radius: 20rpx;
  899. }
  900. .mask-close {
  901. text-align: right;
  902. }
  903. .mask-title {
  904. text-align: center;
  905. font-size: 32rpx;
  906. color: $uni-text-color-black;
  907. margin-bottom: 50rpx;
  908. }
  909. .mask-tab {
  910. display: flex;
  911. justify-content: space-evenly;
  912. }
  913. .icon-closed {
  914. width: 48rpx;
  915. height: 48rpx;
  916. margin: 24rpx 24rpx 0 0;
  917. }
  918. .tab-item {
  919. display: flex;
  920. flex-direction: column;
  921. justify-content: center;
  922. align-items: center;
  923. }
  924. .tab-tit {
  925. font-size: 32rpx;
  926. margin-top: 20rpx;
  927. color: #666;
  928. }
  929. .tab-item image {
  930. width: 160rpx;
  931. height: 160rpx;
  932. }
  933. .backlog-notice {
  934. margin: 50rpx 30rpx 0rpx;
  935. }
  936. .flow-path {
  937. padding: 20rpx 0rpx 20rpx;
  938. .scroll-view {
  939. white-space: nowrap;
  940. // position: sticky;
  941. top: 0;
  942. }
  943. .top-menu {
  944. display: flex;
  945. }
  946. .top-menu .tab {
  947. font-size: 28rpx;
  948. padding: 38rpx 30rpx;
  949. color: #666666;
  950. position: relative;
  951. }
  952. .top-menu .active .border {
  953. position: absolute;
  954. width: 70%;
  955. height: 16rpx;
  956. background: #00b38b;
  957. opacity: 0.3;
  958. bottom: 40rpx;
  959. z-index: -99;
  960. left: 15%;
  961. border-radius: 6rpx;
  962. }
  963. .top-menu .active {
  964. font-weight: bold;
  965. font-size: 32rpx;
  966. color: #0d0f26;
  967. }
  968. .top-menu .active::before {
  969. width: 100%;
  970. height: 16rpx;
  971. background: #00b38b;
  972. opacity: 0.3;
  973. }
  974. .flow-list {
  975. margin: 0rpx 30rpx;
  976. min-height: 700rpx;
  977. background: #ffffff;
  978. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  979. border-radius: 20rpx;
  980. padding: 55rpx 30rpx 30rpx;
  981. }
  982. }
  983. .description {
  984. overflow: hidden;
  985. -webkit-line-clamp: 2;
  986. text-overflow: ellipsis;
  987. display: -webkit-box;
  988. -webkit-box-orient: vertical;
  989. }
  990. </style>