index.vue 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585
  1. <template>
  2. <view class="">
  3. <view class="headers"></view>
  4. <view class="wab">
  5. <view class="wab_query">
  6. <view class="carset dis j-s a-c" v-if="carInfoList.length>0">
  7. <u-tabs ref="uTabs" name="licenseNo" :list="carInfoList" :current="carcurrent" @change="tabsChange"
  8. :height='60' font-size="34" gutter='20' inactive-color="#8482a9" :bar-width="40" :bold='true'
  9. style="font-weight: bold;letter-spacing: -1px;width:90%;padding-right:60px;"></u-tabs>
  10. <view class="icon dis j-s a-c">
  11. <view style="width: 1px; height: 20px;background-color: #999;"></view>
  12. <u-icon name="plus" size="30" label='添加车辆' color="#323136" label-color='#323136' @click="addcar"
  13. style="font-weight: bold;"></u-icon>
  14. </view>
  15. </view>
  16. <swiper v-if="carInfoList.length>0" class="swiper-box" :current="swiperCurrent" @change="swiperchange"
  17. @animationfinish="animationfinish">
  18. <swiper-item class="swiper-item" v-for="(carInfoItem,carInfoIndex) in carInfoList"
  19. :key="carInfoItem.id">
  20. <scroll-view scroll-y style="height: 100%;width: 100%;">
  21. <view class="dis f-c j-s a-s" style="height: 100%;width: 100%;">
  22. <view class="swipertop dis j-s a-c">
  23. <view class=" brand dis f-c ">
  24. <text>{{carInfoItem.vehicleBrand?carInfoItem.vehicleBrand:'未知品牌'}}</text>
  25. <view class="dis ">
  26. <u-icon name="level" label='已认证' color="#af7432" label-color='#af7432'
  27. label-size='24' size="24"
  28. style="font-weight: bold;background-color: #fff4e6;padding: 6px 10px;border-radius: 20px;margin-right: 12px;"></u-icon>
  29. <u-icon name="edit-pen" label='编辑车辆' color="#5e5b70" label-color='#5e5b70'
  30. label-size='24' size="24"
  31. style="font-weight: bold;background-color: #f8f8fa;padding: 6px 10px;border-radius: 20px;"
  32. @click="edit(carInfoItem)"></u-icon>
  33. </view>
  34. </view>
  35. <image src="../../static/icon/Group@2x.png" mode=""
  36. style="width: 50px;height: 50px;">
  37. </image>
  38. </view>
  39. <view class="swiperbtn dis j-s a-c">
  40. <view class="dis a-c j-c">
  41. <text v-if='carInfoItem.distanceTime'>距年检到期还剩</text>
  42. <text v-else-if='carInfoItem.overdueTime'>年检已逾期</text>
  43. <text v-if="carInfoItem.distanceTime"
  44. style="margin: 0 10px;">{{carInfoItem.distanceTime}}</text>
  45. <text v-else-if="carInfoItem.overdueTime"
  46. style="margin: 0 10px;">{{carInfoItem.overdueTime}}</text>
  47. <text>天</text>
  48. </view>
  49. <view
  50. style="width: 1px; height: 20px;background-color: #999;position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);">
  51. </view>
  52. <view class="dis a-c j-c">
  53. <text style="margin-right: 10px;">注册日期</text>
  54. <text>{{carInfoItem.registerTime}}</text>
  55. </view>
  56. </view>
  57. </view>
  58. </scroll-view>
  59. </swiper-item>
  60. </swiper>
  61. <view class="dis f-c carAddition" v-else>
  62. <view class="title">
  63. <text>添加爱车</text>
  64. <text>已有百万车主添加车辆信息</text>
  65. </view>
  66. <view class="banner dis a-c j-c">
  67. <image src="../../static/image/claim/banner.png" mode=""></image>
  68. <u-button type="success" @click="addcar" shape="circle" class="dis a-c j-s"
  69. style="position: absolute;"><u-icon name="plus" color="#plus" size="30"></u-icon>
  70. <text style="font-weight: bold;font-size: 15px;">点击添加</text>
  71. </u-button>
  72. </view>
  73. </view>
  74. </view>
  75. <view class="wab_data ">
  76. <view class="data_top">
  77. <view>
  78. <u-icon name="bookmark-fill" color="#E2E2E4" size="30" class="icon_photo">
  79. </u-icon>
  80. <text>支持办理</text>
  81. </view>
  82. <view style="padding: 30rpx;">
  83. <u-subsection :list="list" :current="current" height="60" :active-color="activeColor"
  84. @change="sectionChange"></u-subsection>
  85. </view>
  86. </view>
  87. </view>
  88. <view class="data_btn heng" :style="transform">
  89. <view class="data_flow">
  90. <view class="heng" style="padding: 0 40rpx;box-sizing: border-box;">
  91. <view class="shu">
  92. <view class="yuan heng1">
  93. <u-icon name="file-text-fill" color="#fff" size="40">
  94. </u-icon>
  95. </view>
  96. <text style="font-size: 12px;">一键下单</text>
  97. </view>
  98. <u-icon name="arrow-right" color="#69b3f0" size="20" style="margin-top: 30rpx;">
  99. </u-icon>
  100. <view class="shu">
  101. <view class="yuan heng1">
  102. <u-icon name="camera-fill" color="#fff" size="40">
  103. </u-icon>
  104. </view>
  105. <text style="font-size: 12px;">上门取车</text>
  106. </view>
  107. <u-icon name="arrow-right" color="#69b3f0" size="20" style="margin-top: 30rpx;">
  108. </u-icon>
  109. <view class="shu">
  110. <view class="yuan heng1">
  111. <u-icon name="rewind-right-fill" color="#fff" size="40">
  112. </u-icon>
  113. </view>
  114. <text style="font-size: 12px;">极速办理</text>
  115. </view>
  116. <u-icon name="arrow-right" color="#69b3f0" size="20" style="margin-top: 30rpx;">
  117. </u-icon>
  118. <view class="shu">
  119. <view class="yuan heng1">
  120. <u-icon name="email-fill" color="#fff" size="40">
  121. </u-icon>
  122. </view>
  123. <text style="font-size: 12px;">还车上门</text>
  124. </view>
  125. </view>
  126. <view class="data_condition dis f-c">
  127. <view class="info">
  128. <u-icon name="bookmark-fill" color="#E2E2E4" size="35" class="icon_photo">
  129. </u-icon>
  130. <text style="color: #5c5a68;margin-left: 10px;font-weight: bold;">服务说明</text>
  131. </view>
  132. <ul>
  133. <li style="text-indent: 0.4rem;">该服务仅包含上门取送车代办年检的人工费,不包含年检机构需要收取的车辆年检费用,</li>
  134. <li style="text-indent: 0.4rem;">脱检车辆不提供上门取车服务,请选择自驾到站代办</li>
  135. <li style="text-indent: 0.4rem;">每张服务券最多1辆车使用</li>
  136. <li style="text-indent: 0.4rem;">需您当天一次性体验完毕所有项目。如果首次年检未通过,二次年检时限为2个工作日(不含周末)</li>
  137. <li style="text-indent: 0.4rem;">代办过程中除办理年检所需费用和燃油费用需要客户承担以外,如停车费、过路费等由代送检单位承担。</li>
  138. </ul>
  139. <view class="info">
  140. <u-icon name="bookmark-fill" color="#E2E2E4" size="35" class="icon_photo">
  141. </u-icon>
  142. <text style="color: #5c5a68;margin-left: 10px;font-weight: bold;">服务流程</text>
  143. </view>
  144. <ul>
  145. <li style="text-indent: 0.4rem;">下单后代办商家将会与您取得联系,确认取送车地址和时间。(也可按短信提示主动联系商家)</li>
  146. <li style="text-indent: 0.4rem;">年检当天代办人员会到达指定取车地点</li>
  147. <li style="text-indent: 0.4rem;">交予车辆及交强险保单和行驶证正副本</li>
  148. <li style="text-indent: 0.4rem;">完成年检后,代办人员会将车辆送回指定地点并交还相关物料</li>
  149. </ul>
  150. <view class="info">
  151. <u-icon name="bookmark-fill" color="#E2E2E4" size="35" class="icon_photo">
  152. </u-icon>
  153. <text style="color: #5c5a68;margin-left: 10px;font-weight: bold;">适用车型</text>
  154. </view>
  155. <ul>
  156. <li style="text-indent: 0.4rem;">7座及以下非营运轿车(面包车、警车、货车、营运车、7座以上车辆除外)</li>
  157. <li style="text-indent: 0.4rem;margin-top: 20px;color: #5c5a68;font-weight: bold;">
  158. 注:本服务费用为代办年检的人工费不含年检费</li>
  159. </ul>
  160. </view>
  161. </view>
  162. <view class="data_flow">
  163. <view class="heng" style="padding: 0 40rpx;box-sizing: border-box;">
  164. <view class="shu">
  165. <view class="yuan heng1">
  166. <u-icon name="file-text-fill" color="#fff" size="40">
  167. </u-icon>
  168. </view>
  169. <text style="font-size: 12px;">一键下单</text>
  170. </view>
  171. <u-icon name="arrow-right" color="#69b3f0" size="20" style="margin-top: 30rpx;">
  172. </u-icon>
  173. <view class="shu">
  174. <view class="yuan heng1">
  175. <u-icon name="camera-fill" color="#fff" size="40">
  176. </u-icon>
  177. </view>
  178. <text style="font-size: 12px;">自驾到站</text>
  179. </view>
  180. <u-icon name="arrow-right" color="#69b3f0" size="20" style="margin-top: 30rpx;">
  181. </u-icon>
  182. <view class="shu">
  183. <view class="yuan heng1">
  184. <u-icon name="rewind-right-fill" color="#fff" size="40">
  185. </u-icon>
  186. </view>
  187. <text style="font-size: 12px;">专人代办</text>
  188. </view>
  189. <u-icon name="arrow-right" color="#69b3f0" size="20" style="margin-top: 30rpx;">
  190. </u-icon>
  191. <view class="shu">
  192. <view class="yuan heng1">
  193. <u-icon name="email-fill" color="#fff" size="40">
  194. </u-icon>
  195. </view>
  196. <text style="font-size: 12px;">完成年检</text>
  197. </view>
  198. </view>
  199. <view class="data_condition shu1">
  200. <view class="info">
  201. <u-icon name="bookmark-fill" color="#E2E2E4" size="35" class="icon_photo">
  202. </u-icon>
  203. <text style="color: #5c5a68;margin-left: 10px;font-weight: bold;">服务说明</text>
  204. </view>
  205. <ul>
  206. <li style="text-indent: 0.4rem;">该服务仅包含自驾到站代办年检的人工费,不包含年检机构需要收取的车辆年检费用</li>
  207. <li style="text-indent: 0.4rem;">每张服务券最多1辆车使用</li>
  208. <li style="text-indent: 0.4rem;">需您当天一次性体验完毕所有项目</li>
  209. </ul>
  210. <view class="info">
  211. <u-icon name="bookmark-fill" color="#E2E2E4" size="35" class="icon_photo">
  212. </u-icon>
  213. <text style="color: #5c5a68;margin-left: 10px;font-weight: bold;">服务流程</text>
  214. </view>
  215. <ul>
  216. <li style="text-indent: 0.4rem;">该服务需提前至少一至两个工作日预约,请提前拨打商家电话,进行预约及确认信息</li>
  217. <li style="text-indent: 0.4rem;">年检当天需携带交强险保单和行驶证正副本,驱车至指定年检站</li>
  218. <li style="text-indent: 0.4rem;">到站后您只需大厅等待,将有专人为您提供代办年检服务</li>
  219. <li style="text-indent: 0.4rem;">完成年检后,代办人员会将车辆和相关物料交还给您</li>
  220. </ul>
  221. <view class="info">
  222. <u-icon name="bookmark-fill" color="#E2E2E4" size="35" class="icon_photo">
  223. </u-icon>
  224. <text style="color: #5c5a68;margin-left: 10px;font-weight: bold;">适用车型</text>
  225. </view>
  226. <ul>
  227. <li style="text-indent: 0.4rem;">7座及以下非营运轿车(面包车、警车、货车、营运车、7座以上车辆除外)</li>
  228. <li style="text-indent: 0.4rem;margin-top: 20px;color: #5c5a68;font-weight: bold;">
  229. 注:本服务费用为代办年检的人工费不含年检费</li>
  230. </ul>
  231. </view>
  232. </view>
  233. </view>
  234. </view>
  235. <view class="shu color">
  236. <view class="heng1 " style="margin: 30px 0;font-size: 16px;">
  237. <text @click="issue()" style="cursor: pointer;">优惠券</text>
  238. <view style="width: 2rpx;height: 40rpx;margin: 0 50rpx;background-color: #E9EAEE;"></view>
  239. <text @click="order()" style="cursor: pointer;">我的订单</text>
  240. </view>
  241. <view class="shu">
  242. <view class="heng1">
  243. <view class="logo"></view>
  244. <view>本服务由晋掌柜提供</view>
  245. </view>
  246. <text>客服电话:020-62936789</text>
  247. </view>
  248. </view>
  249. <view class="flexd dis j-c a-c" @click="banli()">
  250. <text style="font-size: 36rpx;color: #fff;">上门取车待办</text>
  251. </view>
  252. </view>
  253. </template>
  254. <script>
  255. export default {
  256. data() {
  257. return {
  258. activeitemstyle: {},
  259. list: [{
  260. name: '上门取车介绍'
  261. },
  262. {
  263. name: '自驾到站介绍'
  264. },
  265. ],
  266. carInfoList: [], //
  267. swiperCurrent: 0,
  268. carcurrent: 0,
  269. current: 0,
  270. activeColor: this.$u.color['primary'],
  271. transform: "transform:translateX(0)",
  272. }
  273. },
  274. onShow() {
  275. this.getCarInfo();
  276. },
  277. onLoad() {
  278. this.getCarInfo();
  279. },
  280. methods: {
  281. async getCarInfo() {
  282. let res = await this.$http.post('/ser/carInfo/queryByUserId');
  283. if (res.code == '200') {
  284. this.carInfoList = res.data;
  285. }
  286. },
  287. animationfinish(e) {
  288. let current = e.detail.current;
  289. this.swiperCurrent = current;
  290. this.carcurrent = current;
  291. },
  292. swiperchange(e) {
  293. this.carcurrent = e.detail.current;
  294. },
  295. tabsChange(index) {
  296. this.swiperCurrent = index;
  297. },
  298. sectionChange(index) {
  299. this.current = index;
  300. if (index == 1) {
  301. this.transform = "transform:translateX(-55%)";
  302. } else if (index == 0) {
  303. this.transform = "transform:translateX(0)";
  304. }
  305. },
  306. addcar() {
  307. uni.navigateTo({
  308. url: "/pages/caragent/addcar"
  309. })
  310. },
  311. issue() {
  312. uni.navigateTo({
  313. url: "/pages/ticket/issue"
  314. })
  315. },
  316. order() {
  317. uni.navigateTo({
  318. url: "/pages/ticket/order"
  319. })
  320. },
  321. banli() {
  322. uni.navigateTo({
  323. url: "/pages/caragent/confirmorder?licenseNo=" + this.carInfoList[this.carcurrent].licenseNo +
  324. "&id=" + this.carInfoList[this.carcurrent].id,
  325. })
  326. },
  327. edit(item) {
  328. uni.navigateTo({
  329. url: `/pages/caragent/editcar?info=${JSON.stringify(item)}`,
  330. })
  331. }
  332. }
  333. }
  334. </script>
  335. <style lang="scss" scoped>
  336. .wab_query {
  337. width: 100%;
  338. height: auto;
  339. border-radius: 15rpx;
  340. background-color: #FFFFFF;
  341. box-shadow: 0 0 10px 0 #a8bbca;
  342. margin-top: -40px;
  343. padding: 10px 20px;
  344. .carset {
  345. border-bottom: 1px solid #f2f2f2;
  346. position: relative;
  347. .icon {
  348. width: 85px;
  349. height: auto;
  350. padding: 5px 0;
  351. background-color: #fff;
  352. z-index: 99;
  353. position: absolute;
  354. right: 0;
  355. top: 0;
  356. box-shadow: -20px 2px 20px #fff;
  357. }
  358. }
  359. .swiper-box {
  360. padding-top: 20px;
  361. box-sizing: border-box;
  362. height: 160px;
  363. .brand {
  364. >text {
  365. font-size: 18px;
  366. font-weight: bold;
  367. margin-bottom: 10px;
  368. }
  369. }
  370. .swiperbtn {
  371. width: 100%;
  372. height: 50px;
  373. position: relative;
  374. background-color: #f8f8fa;
  375. border-radius: 10px;
  376. padding: 0 10px;
  377. >view {
  378. text {
  379. color: #8985a0;
  380. font-size: 12px;
  381. }
  382. text:nth-child(2) {
  383. color: #000;
  384. font-size: 14px;
  385. font-weight: bold;
  386. }
  387. }
  388. }
  389. }
  390. }
  391. .ts {
  392. font-size: 40rpx;
  393. font-weight: bold;
  394. }
  395. .ts>text {
  396. color: #fc8908;
  397. margin: 0 10rpx;
  398. }
  399. .car {
  400. width: 100%;
  401. font-size: 40rpx;
  402. font-weight: bold;
  403. }
  404. .nianjian {
  405. width: 100%;
  406. display: flex;
  407. justify-content: space-between;
  408. align-items: center;
  409. }
  410. .nianjian>text {
  411. border: 2rpx solid #17A2B8;
  412. font-size: 20rpx;
  413. color: #007AFF;
  414. padding: 2rpx;
  415. box-sizing: border-box;
  416. }
  417. .flexd {
  418. height: 100rpx;
  419. position: fixed;
  420. left: 36rpx;
  421. right: 36rpx;
  422. bottom: 10rpx;
  423. border-radius: 60rpx;
  424. box-shadow: 0 0px 3px 0px #7d7d7d;
  425. background-color: #007BFF;
  426. }
  427. .color {
  428. margin-bottom: 150rpx;
  429. color: #696A6E;
  430. }
  431. .logo {
  432. width: 40rpx;
  433. height: 40rpx;
  434. border-radius: 50%;
  435. background-image: url(../../static/bigLogo.png);
  436. background-size: 100% 100%;
  437. }
  438. .data_condition {
  439. width: 100%;
  440. height: auto;
  441. background: #F5F9FC;
  442. margin-top: 40px;
  443. padding: 20rpx;
  444. box-sizing: border-box;
  445. .info {
  446. margin: 10px 0;
  447. }
  448. }
  449. .data_condition>ul>li {
  450. color: #8e89a7;
  451. }
  452. .yuan {
  453. width: 70rpx;
  454. height: 70rpx;
  455. border-radius: 50%;
  456. background-image: linear-gradient(#aad9f5, #69b3f0);
  457. }
  458. .headers {
  459. width: 100%;
  460. height: 240rpx;
  461. background-image: url(../../static/image/claim/claimtop.png);
  462. background-size: 100% 100%;
  463. }
  464. .wab {
  465. width: 100%;
  466. height: auto;
  467. padding: 0 36rpx 30rpx 36rpx;
  468. box-sizing: border-box;
  469. }
  470. .heng {
  471. display: flex;
  472. justify-content: space-between;
  473. align-items: flex-start;
  474. }
  475. .heng1 {
  476. display: flex;
  477. align-items: center;
  478. justify-content: center;
  479. }
  480. .shu {
  481. display: flex;
  482. flex-direction: column;
  483. justify-content: space-between;
  484. align-items: center;
  485. }
  486. .shu1 {
  487. display: flex;
  488. flex-direction: column;
  489. justify-content: space-between;
  490. }
  491. .wab_data {
  492. width: 100%;
  493. height: auto;
  494. padding: 60rpx 40rpx;
  495. box-sizing: border-box;
  496. }
  497. .data_top {
  498. font-size: 32rpx;
  499. color: #3F4D5A;
  500. }
  501. .data_btn {
  502. width: 220%;
  503. height: auto;
  504. transition: all 0.5s ease;
  505. }
  506. .data_flow {
  507. width: 45%;
  508. height: auto;
  509. }
  510. .carAddition {
  511. .banner {
  512. position: relative;
  513. height: 150px;
  514. image {
  515. width: 100%;
  516. height: 100%;
  517. opacity: 0.4;
  518. }
  519. }
  520. .title {
  521. width: 100%;
  522. border-bottom: 1px solid #f2f2f2;
  523. padding: 5px 0;
  524. text:first-child {
  525. color: #000;
  526. font-size: 14px;
  527. font-weight: bold;
  528. margin-right: 10px;
  529. }
  530. text:last-child {
  531. color: #333;
  532. font-size: 12px;
  533. }
  534. }
  535. }
  536. </style>