index.vue 16 KB

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