You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

user.vue 20KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898
  1. <template>
  2. <navBar title="九州ETC" :scrollTop="scrollTop" :isBack="isBack" navbgClass="nav-bgXin" fontColor='#fff'></navBar>
  3. <filter>
  4. <view class="wrapper">
  5. <image :src="`${$imgUrl}myImage/headbg.png`" class="bg-head" mode="widthFix"></image>
  6. <view class="content" :style="{ top: margin + 'px' }">
  7. <view class="head" :style="{ marinTop: margin + 'px' }">
  8. <view class="avatar">
  9. <image :src="`${$imgUrl}myImage/touxiang.png`" :class="!state.data.opId ? 'unlogin' : ''" @click="goLogin">
  10. </image>
  11. <view v-if="!state.data.opId" class="name" @click="$util.navTo('/login/login')">
  12. <view class="nickname">登录/注册</view>
  13. </view>
  14. <view v-else class="name">
  15. <view class="nickname">{{state.accountInfoVo.nickName || state.accountInfoVo.userName}}</view>
  16. <view class="user-id">
  17. <view class="phone">{{state.accountInfoVo.mobile}}</view>
  18. <view v-if="false" @click="$util.navTo('/subpackage/personal-center/setting/change-phone', true)"
  19. class="btn-change">已关联</view>
  20. </view>
  21. </view>
  22. </view>
  23. <view class="r-setting" @click="$util.navTo('/subpackage/personal-center/setting/setting', true)">
  24. <image :src="`${$imgUrl}myImage/shezhi.png`" class="img" mode="widthFix"></image>
  25. </view>
  26. </view>
  27. <view class="my-equity" :style="{'--bgimg':`url(${$imgUrl}myImage/quanuyikuang.png)`}" @click="myEtcAccount">
  28. <view class="l-con">
  29. <image :src="`${$imgUrl}myImage/myETC.png`" class="equity-icon" mode="widthFix"></image>
  30. <view class="txt">
  31. 我的ETC账户
  32. </view>
  33. </view>
  34. <view class="r-icon1" >
  35. <image :src="`${$imgUrl}myImage/quanyixiayi.png`" class="r-img1" mode="widthFix"></image>
  36. </view>
  37. </view>
  38. <view class="my-equity userName" :style="{'--bgimg':`url(${$imgUrl}myImage/loginBg.png)`,'height': '120rpx' ,'margin-top':' -30rpx',
  39. 'z-index': -1,'padding-top': '17rpx','boxSizing':'border-box' }" v-if="state.customerObj">
  40. <view class="l-con">
  41. <image :src="`${$imgUrl}myImage/person.png`" class="equity-icon" mode="widthFix"></image>
  42. <view class="txt">
  43. {{state.customerObj.userName}}
  44. </view>
  45. </view>
  46. <view style="margin-right: 26rpx;">
  47. {{state.customerObj.vehicleCount?state.customerObj.vehicleCount:'无'}}辆车
  48. </view>
  49. </view>
  50. <view class="info-content">
  51. <view class="order box">
  52. <view class="list_item" @click="$util.navTo('/subpackage/personal-center/real-name-authentication', true)">
  53. <view class="l-con">
  54. <image :src="`${$imgUrl}myImage/basicInformation.png`" class="equity-icon" mode="widthFix"></image>
  55. <view class="txt">
  56. 基本信息
  57. </view>
  58. </view>
  59. <view class="r-icon">
  60. <text>请进行实名认证</text>
  61. <image :src="`${$imgUrl}myImage/myIcon.png`" class="r-img" mode="widthFix"></image>
  62. </view>
  63. </view>
  64. <view class="list_item" @click="$util.navTo(`/subpackage/after-sale/activation-once-again/select-car?type=38`, true)">
  65. <view class="l-con">
  66. <image :src="`${$imgUrl}myImage/myCar.png`" class="equity-icon" mode="widthFix"></image>
  67. <view class="txt">
  68. 我的车辆
  69. </view>
  70. </view>
  71. <view class="r-icon" >
  72. <image :src="`${$imgUrl}myImage/myIcon.png`" class="r-img" mode="widthFix"></image>
  73. </view>
  74. </view>
  75. <view class="list_item" @click="goOrder(0)">
  76. <view class="l-con">
  77. <image :src="`${$imgUrl}myImage/etcOrder.png`" class="equity-icon" mode="widthFix"></image>
  78. <view class="txt">
  79. ETC订单
  80. </view>
  81. </view>
  82. <view class="r-icon" >
  83. <image :src="`${$imgUrl}myImage/myIcon.png`" class="r-img" mode="widthFix"></image>
  84. </view>
  85. </view>
  86. <view class="list_item">
  87. <view class="l-con">
  88. <image :src="`${$imgUrl}myImage/afterOrder.png`" class="equity-icon" mode="widthFix"></image>
  89. <view class="txt">
  90. 售后订单
  91. </view>
  92. </view>
  93. <view class="r-icon" >
  94. <image :src="`${$imgUrl}myImage/myIcon.png`" class="r-img" mode="widthFix"></image>
  95. </view>
  96. </view>
  97. <view class="list_item" @click="goEquity()">
  98. <view class="l-con">
  99. <image :src="`${$imgUrl}myImage/quanyi.png`" class="equity-icon" mode="widthFix"></image>
  100. <view class="txt">
  101. 我的权益
  102. </view>
  103. </view>
  104. <view class="r-icon" >
  105. <image :src="`${$imgUrl}myImage/myIcon.png`" class="r-img" mode="widthFix"></image>
  106. </view>
  107. </view>
  108. <view class="list_item" @click="$util.navTo(`/subpackage/orders/invoiceApply/invoice-header-list?manage=1`, true)">
  109. <view class="l-con">
  110. <image :src="`${$imgUrl}myImage/invoiceHeader.png`" class="equity-icon" mode="widthFix"></image>
  111. <view class="txt">
  112. 发票抬头
  113. </view>
  114. </view>
  115. <view class="r-icon" >
  116. <image :src="`${$imgUrl}myImage/myIcon.png`" class="r-img" mode="widthFix"></image>
  117. </view>
  118. </view>
  119. <view class="list_item" @click="$util.navTo(`/subpackage/personal-center/setting/addressManager`, true)">
  120. <view class="l-con">
  121. <image :src="`${$imgUrl}myImage/addressManager.png`" class="equity-icon" mode="widthFix"></image>
  122. <view class="txt">
  123. 收货地址
  124. </view>
  125. </view>
  126. <view class="r-icon" >
  127. <image :src="`${$imgUrl}myImage/myIcon.png`" class="r-img" mode="widthFix"></image>
  128. </view>
  129. </view>
  130. </view>
  131. </view>
  132. </view>
  133. </view>
  134. </filter>
  135. </template>
  136. <script lang="ts" setup>
  137. import { reactive } from "vue";
  138. import { msg, navTo } from "@/utils/utils";
  139. import { onMounted, ref } from "vue";
  140. import { getItem, StorageKeys } from "@/utils/storage";
  141. import navBar from "../../components/nav-bar/nav-bar2.vue";
  142. import { onLoad, onShow, onPageScroll } from "@dcloudio/uni-app";
  143. import {
  144. userInfoIndex, queryVehicleBind, vehicleUnBind, showEquityListApi,orderinfosumquery
  145. } from "@/utils/network/api.js";
  146. import {
  147. request,requestNew
  148. } from "@/utils/network/request.js";
  149. import filter from '@/components/filter/filter.vue';
  150. import { source } from "@/utils/network/difference";
  151. import { vehiclePlateColor, vehiclePlateColorPai, getVehiclePlateColorPaiShow } from "@/datas/vehiclePlateColor.js";
  152. const height = ref(null);
  153. const top = ref(null);
  154. const margin = ref(null);
  155. const mobile = ref(null);
  156. const scrollTop = ref(0);
  157. const isBack = ref(false);
  158. const state = reactive({
  159. data: {
  160. opId: "",
  161. },
  162. accountInfoVo: {
  163. nickName: '',
  164. mobile: '',
  165. userName:''
  166. },
  167. monthFlowingVo: {
  168. duration: 0,
  169. mileage: 0,
  170. flowingNum: 0,
  171. num: 0,
  172. parkingLotMoney: 0,
  173. parkingLotNum: 0,
  174. money: 0,
  175. },
  176. list: '', //车辆信息
  177. carNumber: '',//车辆数量
  178. userVehicleInfoSumQueryVo: {
  179. vehicleSum: 0,
  180. orderStatus0: 0
  181. },//车数量 ,代办数量
  182. isTrajectory: false, //是否有轨迹
  183. equityNumber: 0,
  184. orderInfoSumQueryVo: {
  185. orderStep8: "0",//待发货
  186. orderStep9: "0",//待收货
  187. orderStep10: "0",//待激活
  188. orderStep12: "0",//换货/退货
  189. },
  190. customerObj:{}
  191. });
  192. onMounted(() => {
  193. const res = uni.getMenuButtonBoundingClientRect();
  194. height.value = res.height + "px";
  195. top.value = res.top + "px";
  196. margin.value = res.height + res.top;
  197. });
  198. onLoad((option : any) => {
  199. state.data.opId = getItem(StorageKeys.OpenId);
  200. console.log("state.data.opId",state.data.opId)
  201. mobile.value = getItem("mobile");
  202. });
  203. const carDetails = (vehicleId) => {
  204. uni.navigateTo({
  205. url: `/subpackage/personal-center/vehicle-change/car-details?vehicleId=${vehicleId}`
  206. })
  207. }
  208. const myEtcAccount=()=>{
  209. navTo(`/subpackage/personal-center/my-etc-account`)
  210. }
  211. const goTrajectory = () => {
  212. if (state.isTrajectory) {
  213. uni.navigateTo({
  214. url: "/subpackage/personal-center/trajectory/trajectory"
  215. })
  216. } else {
  217. msg("暂无轨迹")
  218. }
  219. }
  220. //监听页面滚动
  221. onPageScroll((e) => {
  222. scrollTop.value = e.scrollTop;
  223. });
  224. onShow((option : any) => {
  225. state.data.opId = getItem(StorageKeys.OpenId);
  226. console.log("state.data.opId", state.data.opId)
  227. if (state.data.opId) {
  228. getUserInfo();
  229. } else {
  230. state.userVehicleInfoSumQueryVo = {
  231. vehicleSum: 0,
  232. orderStatus0: 0
  233. }
  234. state.monthFlowingVo = {
  235. duration: 0,
  236. mileage: 0,
  237. flowingNum: 0,
  238. num: 0,
  239. parkingLotMoney: 0,
  240. parkingLotNum: 0,
  241. money: 0,
  242. }
  243. state.orderInfoSumQueryVo = {
  244. orderStep8: "0",//待发货
  245. orderStep9: "0",//待收货
  246. orderStep10: "0",//待激活
  247. orderStep12: "0",//换货/退货
  248. }
  249. state.list = []
  250. state.carNumber = 0
  251. }
  252. state.customerObj=getItem('customerObj')
  253. });
  254. // 查询车辆信息
  255. const queryCarMsg = () => {
  256. const options = {
  257. type: 2,
  258. data: {},
  259. method: "POST",
  260. showLoading: true,
  261. };
  262. //调用方式
  263. requestNew(queryVehicleBind, options).then((res) => {
  264. const data = res.result;
  265. for (var i = 0; i < data.length; i++) {
  266. for (var j = 0; j < vehiclePlateColorPai.length; j++) {
  267. if (data[i].vehiclePlateColor == vehiclePlateColorPai[j]['id']) {
  268. data[i].color = vehiclePlateColorPai[j]['color']
  269. data[i].showColor = vehiclePlateColorPai[j]['showColor']
  270. }
  271. }
  272. }
  273. state.carNumber = data.length
  274. state.list = data.slice(0, 5);
  275. console.log("state.list", state.list)
  276. })
  277. .catch((err) => {
  278. console.log('输出内容', err)
  279. });
  280. }
  281. const getUserInfo = () => {
  282. const options = {
  283. type: 2,
  284. data: {
  285. openId: state.data.opId
  286. },
  287. method: "POST",
  288. showLoading: true,
  289. };
  290. //调用方式
  291. requestNew(userInfoIndex, options)
  292. .then((res) => {
  293. console.log('用户信息', res)
  294. let data =res
  295. state.accountInfoVo =data.accountInfoVo;
  296. console.log('用户信息1', state.accountInfoVo,state.accountInfoVo.mobile)
  297. if (data.monthFlowingVo && data.monthFlowingVo != "{}") {
  298. state.monthFlowingVo = data.monthFlowingVo;
  299. state.isTrajectory = true;
  300. }
  301. console.log("获取用户信息", data);
  302. queryCarMsg();
  303. // 个人订单信息数据查询(待发货,待收货,待激活,退换货)
  304. orderinfosumqueryQ()
  305. })
  306. .catch((err) => {
  307. console.log(err);
  308. });
  309. }
  310. const del = (id) => {
  311. uni.showModal({
  312. title: '提示',
  313. content: '是否删除该条车辆信息',
  314. success: function (res) {
  315. if (res.confirm) {
  316. console.log('用户点击确定');
  317. const options = {
  318. type: 2,
  319. data: {
  320. id
  321. },
  322. method: "POST",
  323. showLoading: true,
  324. };
  325. requestNew(vehicleUnBind, options).then((res) => {
  326. const data = res;
  327. console.log(data)
  328. uni.showToast({
  329. title: "删除成功",
  330. icon: "none"
  331. })
  332. queryCarMsg();
  333. });
  334. } else if (res.cancel) {
  335. console.log('用户点击取消');
  336. }
  337. }
  338. });
  339. }
  340. const goOrder = (index) => {
  341. navTo(`../order/order?index=${index}`)
  342. }
  343. const goLogin = () => {
  344. if (!getItem('openId')) {
  345. uni.navigateTo({
  346. url: "/login/login"
  347. })
  348. }
  349. }
  350. const goEquity = () => {
  351. navTo('/subpackage/service/equityList/equityList')
  352. }
  353. const orderinfosumqueryQ = () => {
  354. const options = {
  355. type: 2,
  356. data: {},
  357. method: "POST",
  358. showLoading: true,
  359. };
  360. //调用方式
  361. requestNew(orderinfosumquery, options).then((res) => {
  362. console.log("orderinfosumquery", res)
  363. state.orderInfoSumQueryVo=res
  364. })
  365. .catch((err) => {
  366. console.log('输出内容', err)
  367. });
  368. }
  369. </script>
  370. <style>
  371. page {
  372. background: #eef7f7;
  373. }
  374. </style>
  375. <style scoped lang='scss'>
  376. .unlogin {
  377. filter: grayscale(100%);
  378. opacity: 0.7;
  379. }
  380. .bgVar {
  381. background-image: var(--bgimg);
  382. background-repeat: no-repeat;
  383. background-size: 100% 100%;
  384. }
  385. .wrapper {
  386. position: relative;
  387. background-color: #f6f9fc;
  388. }
  389. .bar {
  390. width: 100%;
  391. position: fixed;
  392. text-align: center;
  393. font-size: 32rpx;
  394. font-weight: bold;
  395. }
  396. .bg-head {
  397. width: 100%;
  398. position: absolute;
  399. z-index: 1;
  400. top: 0;
  401. left: 0;
  402. }
  403. .content {
  404. position: relative;
  405. display: flex;
  406. flex-direction: column;
  407. width: 100%;
  408. z-index: 2;
  409. }
  410. .head {
  411. display: flex;
  412. justify-content: space-between;
  413. align-items: center;
  414. width: 100%;
  415. box-sizing: border-box;
  416. padding: 40rpx 0 46rpx;
  417. }
  418. .head .avatar {
  419. display: flex;
  420. align-items: center;
  421. justify-content: space-between;
  422. }
  423. .head .avatar image {
  424. width: 141rpx;
  425. height: 141rpx;
  426. /* border-radius: 80rpx; */
  427. margin: 0 20rpx 0 30rpx;
  428. }
  429. .head .setting {
  430. display: flex;
  431. align-items: center;
  432. background: rgba(0, 179, 139, .1);
  433. border: 1px solid #fff;
  434. height: 60rpx;
  435. border-radius: 30rpx;
  436. padding: 0 34rpx;
  437. color: #fff;
  438. font-size: 28rpx;
  439. margin-right: 30rpx;
  440. }
  441. .head .setting image {
  442. width: 40rpx;
  443. height: 40rpx;
  444. margin-right: 6rpx;
  445. }
  446. .head .r-setting {
  447. width: 80rpx;
  448. height: 80rpx;
  449. background: #345061;
  450. display: flex;
  451. align-items: center;
  452. justify-content: center;
  453. border-radius: 50%;
  454. margin-right: 50rpx;
  455. .img {
  456. width: 40rpx;
  457. height: 39rpx;
  458. }
  459. }
  460. .head .nickname {
  461. font-size: 36rpx;
  462. color: #fff;
  463. }
  464. .head .user-id {
  465. font-size: 26rpx;
  466. color: #fff;
  467. padding-top: 20rpx;
  468. display: flex;
  469. align-items: center;
  470. }
  471. .head .btn-change {
  472. font-size: 22rpx;
  473. height: 40rpx;
  474. padding: 0 20rpx;
  475. border: 1px solid #fff;
  476. color: #fff;
  477. box-sizing: border-box;
  478. border-radius: 20rpx;
  479. margin-left: 16rpx;
  480. background: rgba(0, 179, 139, .1);
  481. }
  482. .list_item {
  483. position: relative;
  484. z-index: 20;
  485. margin: 0 30rpx;
  486. height: 94rpx;
  487. display: flex;
  488. align-items: center;
  489. justify-content: space-between;
  490. border-bottom: 1rpx solid #DFDFDF;
  491. .l-con {
  492. display: flex;
  493. align-items: center;
  494. .equity-icon {
  495. width: 46rpx;
  496. height: 46rpx;
  497. }
  498. .txt {
  499. font-family: NotoSansHans, NotoSansHans;
  500. font-size: 28rpx;
  501. color: #01253C;
  502. margin-left: 19rpx;
  503. }
  504. }
  505. .r-icon {
  506. height: 32rpx;
  507. display: flex;
  508. align-items: center;
  509. color: rgb(177, 177, 177);
  510. font-size: 28rpx;
  511. .r-img {
  512. width: 32rpx;
  513. height: 32rpx;
  514. }
  515. }
  516. }
  517. .box>view:last-child{
  518. border: none;
  519. }
  520. .my-equity {
  521. position: relative;
  522. z-index: 20;
  523. margin: 0 auto;
  524. background-image: var(--bgimg);
  525. background-repeat: no-repeat;
  526. background-size: 100% 100%;
  527. width: 700rpx;
  528. height: 94rpx;
  529. display: flex;
  530. align-items: center;
  531. justify-content: space-between;
  532. .l-con {
  533. margin-left: 30rpx;
  534. display: flex;
  535. align-items: center;
  536. .equity-icon {
  537. width: 54rpx;
  538. height: 54rpx;
  539. }
  540. .txt {
  541. font-family: NotoSansHans, NotoSansHans;
  542. font-size: 28rpx;
  543. color: #01253C;
  544. margin-left: 19rpx;
  545. }
  546. }
  547. .r-icon {
  548. margin-right: 30rpx;
  549. width: 36rpx;
  550. height: 36rpx;
  551. .r-img {
  552. width: 36rpx;
  553. height: 36rpx;
  554. }
  555. }
  556. .r-icon1 {
  557. margin-right: 30rpx;
  558. width: 32rpx;
  559. height: 32rpx;
  560. .r-img1 {
  561. width: 32rpx;
  562. height: 32rpx;
  563. }
  564. }
  565. }
  566. .info-content {
  567. transform: translateY(-10rpx);
  568. margin-top: 30rpx;
  569. }
  570. .box .arrow {
  571. width: 10rpx;
  572. height: 18rpx;
  573. }
  574. .box {
  575. background: #ffffff;
  576. margin: 0 30rpx 30rpx;
  577. border-radius: 20rpx;
  578. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.9);
  579. }
  580. .box .more {
  581. display: flex;
  582. align-items: center;
  583. font-family: NotoSansHans, NotoSansHans;
  584. font-size: 24rpx;
  585. color: #004576;
  586. }
  587. .box .more .more-text {
  588. padding-right: 12rpx;
  589. }
  590. .box .right-head {
  591. display: flex;
  592. justify-content: space-between;
  593. }
  594. .box .right-head .tit {
  595. font-size: 32rpx;
  596. font-family: MicrosoftYaHei;
  597. }
  598. .rights .rights-items {
  599. display: flex;
  600. justify-content: space-evenly;
  601. padding: 30rpx 0;
  602. }
  603. .rights .item {
  604. display: flex;
  605. flex-direction: column;
  606. align-items: center;
  607. justify-content: center;
  608. }
  609. .rights .item .tit {
  610. font-size: 26rpx;
  611. color: #333;
  612. padding: 20rpx 0 10rpx 0;
  613. }
  614. .rights .item .sub-tit {
  615. font-size: 22rpx;
  616. color: #999;
  617. }
  618. .order .order-items {
  619. display: flex;
  620. justify-content: space-around;
  621. padding: 30rpx 0 10rpx;
  622. .rtop-badge {
  623. position: absolute;
  624. right: 0;
  625. width: 34rpx;
  626. height: 34rpx;
  627. top: 0;
  628. transform: translate(50%, -50%);
  629. line-height: 34rpx;
  630. text-align: center;
  631. font-family: SourceHanSansSC, SourceHanSansSC;
  632. font-weight: 400;
  633. font-size: 20rpx;
  634. color: #FFFFFF;
  635. }
  636. }
  637. .order .item {
  638. display: flex;
  639. flex-direction: column;
  640. align-items: center;
  641. justify-content: center;
  642. }
  643. .order .item .tit {
  644. font-size: 26rpx;
  645. color: #333;
  646. padding: 20rpx 0 10rpx 0;
  647. }
  648. .box .icon {
  649. width: 50rpx;
  650. height: 50rpx;
  651. }
  652. .go-through .pass {
  653. display: flex;
  654. flex-direction: column;
  655. }
  656. .go-through .total {
  657. display: flex;
  658. justify-content: space-between;
  659. font-size: 26rpx;
  660. color: #666;
  661. }
  662. .go-through .amount {
  663. display: flex;
  664. justify-content: space-between;
  665. align-items: center;
  666. font-family: NotoSansHans, NotoSansHans;
  667. font-size: 32rpx;
  668. color: #333333;
  669. font-weight: 400;
  670. }
  671. .go-through .line {
  672. display: flex;
  673. }
  674. .go-through .line1 {
  675. height: 14rpx;
  676. background: #005B9C;
  677. border-radius: 7rpx;
  678. }
  679. .go-through .line2 {
  680. height: 14rpx;
  681. background: #E5ECEF;
  682. border-radius: 7rpx;
  683. flex: 1;
  684. }
  685. .go-through .mileage {
  686. display: flex;
  687. justify-content: space-around;
  688. align-items: center;
  689. text-align: center;
  690. margin: 32rpx 0;
  691. .box-items {
  692. background-image: var(--bgimg);
  693. background-repeat: no-repeat;
  694. background-size: 100% 100%;
  695. padding: 20rpx 30rpx;
  696. .t-name {
  697. display: flex;
  698. .tongxing-icon {
  699. width: 29rpx;
  700. height: 29rpx;
  701. }
  702. .tit {
  703. font-size: 26rpx;
  704. color: #666666;
  705. line-height: 29rpx;
  706. margin-left: 5rpx;
  707. }
  708. }
  709. .b-info {
  710. padding-top: 20rpx;
  711. .val {
  712. font-size: 32rpx;
  713. color: #333333;
  714. }
  715. .unit {
  716. font-size: 24rpx;
  717. color: #666666;
  718. margin-left: 5rpx;
  719. }
  720. }
  721. }
  722. }
  723. .go-through .mileage .txt {
  724. display: flex;
  725. flex-direction: column;
  726. }
  727. .go-through .mileage .tit {
  728. font-size: 26rpx;
  729. color: #999;
  730. }
  731. .go-through .mileage .val {
  732. font-size: 28rpx;
  733. color: #333;
  734. margin-top: 16rpx;
  735. }
  736. .go-through .m-top {
  737. margin-top: 16rpx;
  738. }
  739. .go-through .detail {
  740. width: 100%;
  741. text-align: center;
  742. color: #00B38B;
  743. font-size: 24rpx;
  744. border-top: 1px solid #DCDCDC;
  745. padding-top: 24rpx;
  746. }
  747. .cars .car-item {
  748. display: flex;
  749. align-items: center;
  750. padding-top: 36rpx;
  751. }
  752. .cars .car-item .btn-unbind {
  753. font-weight: 400;
  754. border-radius: 30rpx;
  755. font-family: NotoSansHans, NotoSansHans;
  756. line-height:60rpx;
  757. text-align: center;
  758. font-size: 24rpx;
  759. width: 130rpx;
  760. height: 60rpx;
  761. background: #004372;
  762. color: #fff;
  763. margin-bottom: 10rpx;
  764. }
  765. .cars .car-pic {
  766. width: 120rpx;
  767. height: 110rpx;
  768. margin-right: 20rpx;
  769. }
  770. .cars .car-info {
  771. display: flex;
  772. flex-direction: column;
  773. color: #999;
  774. font-size: 22rpx;
  775. width: 56%;
  776. }
  777. .cars .car-no {
  778. font-size: 30rpx;
  779. color: #333;
  780. }
  781. .cars .card-no {
  782. margin-top: 10rpx;
  783. font-size: 22rpx;
  784. color: #999999;
  785. }
  786. .cars .add-related {
  787. background-image: var(--bgimg);
  788. background-repeat: no-repeat;
  789. background-size: 100% 100%;
  790. height: 80rpx;
  791. display: flex;
  792. align-items: center;
  793. justify-content: center;
  794. font-family: NotoSansHans, NotoSansHans;
  795. font-weight: 400;
  796. font-size: 26rpx;
  797. color: #CCB375;
  798. margin-top: 30rpx;
  799. .add-img {
  800. margin-right: 10rpx;
  801. width: 36rpx;
  802. height: 36rpx;
  803. }
  804. }
  805. .color {
  806. padding: 4rpx 8rpx;
  807. border-radius: 10rpx;
  808. color: white;
  809. display: inline-block;
  810. margin-left: 20rpx;
  811. font-size: 24rpx;
  812. }
  813. .loading-more {
  814. text-align: center;
  815. font-size: 28rpx;
  816. margin-bottom: 20rpx;
  817. color: #999;
  818. }
  819. </style>
  820. <style>
  821. page {
  822. background-color: #f6f9fc;
  823. }
  824. </style>