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

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