index.vue 17 KB

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