Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861
  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 class="sub-bind">
  181. <view class="item-tit">
  182. <image :src="`${$imgUrl}user/icon-car-3.png`" class="icon icon-2"></image>
  183. <text>我要关联车辆</text>
  184. </view>
  185. <view class="right-arrow"
  186. @click="$util.navTo('/subpackage/personal-center/setting/car-information/car-create', true)">
  187. <view class="sub-tit">增加未关联车辆</view>
  188. <image :src="`${$imgUrl}user/icon-arrow.png`" class="arrow"></image>
  189. </view>
  190. </view>
  191. </view>
  192. <view class="menu">
  193. <view class="item" @click="$util.navTo('/subpackage/personal-center/setting/setting', true)">
  194. <view class="item-tit">
  195. <image :src="`${$imgUrl}user/icon-setting.png`" class="icon icon-2"></image>
  196. <text>设置与资料管理</text>
  197. </view>
  198. <view class="right-arrow">
  199. <view class="sub-tit">隐私、密码管理</view>
  200. <image :src="`${$imgUrl}user/icon-arrow.png`" class="arrow"></image>
  201. </view>
  202. </view>
  203. </view>
  204. </view>
  205. </view>
  206. </filter>
  207. </template>
  208. <script lang="ts" setup>
  209. import { reactive } from "vue";
  210. import { msg, navTo } from "@/utils/utils";
  211. import { onMounted, ref } from "vue";
  212. import { getItem, StorageKeys } from "@/utils/storage";
  213. import navBar from "../../components/nav-bar/nav-bar2.vue";
  214. import { onLoad, onShow, onPageScroll } from "@dcloudio/uni-app";
  215. import {
  216. userInfoIndex, selectCarInfo, delCarInfo
  217. } from "@/utils/network/api.js";
  218. import {
  219. request
  220. } from "@/utils/network/request.js";
  221. import {
  222. stringToJson
  223. } from "@/utils/network/encryption.js";
  224. import filter from '@/components/filter/filter.vue';
  225. import { vehiclePlateColor, vehiclePlateColorPai } from "@/datas/vehiclePlateColor.js";
  226. const height = ref(null);
  227. const top = ref(null);
  228. const margin = ref(null);
  229. const mobile = ref(null);
  230. const scrollTop = ref(0);
  231. const isBack = ref(false);
  232. const state = reactive({
  233. data: {
  234. opId: "",
  235. },
  236. accountInfoVo: {
  237. nickName: '',
  238. mobile: ''
  239. },
  240. monthFlowingVo: {
  241. duration: 0,
  242. mileage: 0,
  243. flowingNum: 0,
  244. num: 0,
  245. parkingLotMoney: 0,
  246. parkingLotNum: 0,
  247. money: 0,
  248. },
  249. list: '', //车辆信息
  250. carNumber: '',//车辆数量
  251. userVehicleInfoSumQueryVo: {
  252. vehicleSum: 0,
  253. orderStatus0: 0
  254. },//车数量 ,代办数量
  255. isTrajectory: false, //是否有轨迹
  256. });
  257. onMounted(() => {
  258. const res = uni.getMenuButtonBoundingClientRect();
  259. height.value = res.height + "px";
  260. top.value = res.top + "px";
  261. margin.value = res.height + res.top;
  262. });
  263. onLoad((option : any) => {
  264. state.data.opId = getItem(StorageKeys.OpenId);
  265. mobile.value = getItem("mobile");
  266. });
  267. const goTrajectory = () => {
  268. if (state.isTrajectory) {
  269. uni.navigateTo({
  270. url: "/subpackage/personal-center/trajectory/trajectory"
  271. })
  272. } else {
  273. msg("暂无轨迹")
  274. }
  275. }
  276. //监听页面滚动
  277. onPageScroll((e) => {
  278. scrollTop.value = e.scrollTop;
  279. });
  280. onShow((option : any) => {
  281. state.data.opId = getItem(StorageKeys.OpenId);
  282. console.log("state.data.opId", state.data.opId)
  283. if (state.data.opId) {
  284. getUserInfo();
  285. } else {
  286. state.userVehicleInfoSumQueryVo = {
  287. vehicleSum: 0,
  288. orderStatus0: 0
  289. }
  290. state.monthFlowingVo = {
  291. duration: 0,
  292. mileage: 0,
  293. flowingNum: 0,
  294. num: 0,
  295. parkingLotMoney: 0,
  296. parkingLotNum: 0,
  297. money: 0,
  298. },
  299. state.list = [],
  300. state.carNumber = 0
  301. }
  302. });
  303. // 查询车辆信息
  304. const queryCarMsg = () => {
  305. const options = {
  306. type: 2,
  307. data: {
  308. "openId": getItem('openId')
  309. },
  310. method: "POST",
  311. showLoading: true,
  312. };
  313. //调用方式
  314. request(selectCarInfo, options).then((res) => {
  315. const data = (stringToJson(res.bizContent).vehicleManages)
  316. for (var i = 0; i < data.length; i++) {
  317. for (var j = 0; j < vehiclePlateColorPai.length; j++) {
  318. if (data[i].vehiclePlateColor == vehiclePlateColorPai[j]['id']) {
  319. data[i].color = vehiclePlateColorPai[j]['color']
  320. }
  321. }
  322. }
  323. state.list = data;
  324. state.carNumber = data.length
  325. console.log("state.list", state.list)
  326. })
  327. .catch((err) => {
  328. console.log('输出内容', err)
  329. });
  330. }
  331. const getUserInfo = () => {
  332. const options = {
  333. type: 2,
  334. data: {
  335. openId: state.data.opId
  336. },
  337. method: "POST",
  338. showLoading: true,
  339. };
  340. //调用方式
  341. request(userInfoIndex, options)
  342. .then((res) => {
  343. console.log('用户信息', res)
  344. let data = stringToJson(res.bizContent)
  345. state.accountInfoVo = data.accountInfoVo;
  346. if (data.monthFlowingVo && JSON.stringify(data.monthFlowingVo) != "{}") {
  347. state.monthFlowingVo = data.monthFlowingVo;
  348. state.isTrajectory = true;
  349. }
  350. state.userVehicleInfoSumQueryVo.vehicleSum = JSON.parse(JSON.stringify(data.userVehicleInfoSumQueryVo)).vehicleSum;
  351. state.userVehicleInfoSumQueryVo.orderStatus0 = JSON.parse(JSON.stringify(data.userVehicleInfoSumQueryVo)).orderStatus0;
  352. console.log("获取用户信息", data);
  353. queryCarMsg();
  354. })
  355. .catch((err) => {
  356. console.log(err);
  357. });
  358. }
  359. const del = (id) => {
  360. uni.showModal({
  361. title: '提示',
  362. content: '是否删除该条车辆信息',
  363. success: function (res) {
  364. if (res.confirm) {
  365. console.log('用户点击确定');
  366. let data = {
  367. vehicleId: id,
  368. openId: getItem('openId')
  369. }
  370. const options = {
  371. type: 2,
  372. data: data,
  373. method: "POST",
  374. showLoading: true,
  375. };
  376. request(delCarInfo, options).then((res) => {
  377. const data = stringToJson(res.bizContent);
  378. console.log(data)
  379. state.list = data.vehicleManages
  380. if (data.info == '成功.') {
  381. uni.showToast({
  382. title: "删除成功",
  383. icon: "none"
  384. })
  385. queryCarMsg();
  386. }
  387. });
  388. } else if (res.cancel) {
  389. console.log('用户点击取消');
  390. }
  391. }
  392. });
  393. }
  394. const goOrder = (index) => {
  395. uni.reLaunch({
  396. url: `../order/order?index=${index}`
  397. })
  398. }
  399. const goLogin = () => {
  400. if (!getItem('openId')) {
  401. uni.navigateTo({
  402. url: "/login/login"
  403. })
  404. }
  405. }
  406. </script>
  407. <style>
  408. page {
  409. background: #eef7f7;
  410. }
  411. </style>
  412. <style scoped>
  413. .unlogin {
  414. filter: grayscale(100%);
  415. opacity: 0.7;
  416. }
  417. .wrapper {
  418. position: relative;
  419. background: #fff;
  420. }
  421. .bar {
  422. width: 100%;
  423. position: fixed;
  424. text-align: center;
  425. font-size: 32rpx;
  426. font-weight: bold;
  427. }
  428. .bg-head {
  429. width: 100%;
  430. position: absolute;
  431. z-index: -99;
  432. top: 0;
  433. left: 0;
  434. }
  435. .content {
  436. position: absolute;
  437. display: flex;
  438. flex-direction: column;
  439. width: 100%;
  440. }
  441. .head {
  442. display: flex;
  443. justify-content: space-between;
  444. align-items: center;
  445. width: 100%;
  446. box-sizing: border-box;
  447. padding: 40rpx 0 46rpx;
  448. }
  449. .head .avatar {
  450. display: flex;
  451. align-items: center;
  452. }
  453. .head .avatar image {
  454. width: 120rpx;
  455. height: 120rpx;
  456. border-radius: 80rpx;
  457. border: 12rpx solid rgba(255, 255, 255, 0.5);
  458. margin: 0 20rpx 0 30rpx;
  459. }
  460. .head .setting {
  461. display: flex;
  462. align-items: center;
  463. background: rgba(0, 179, 139, .1);
  464. border: 1px solid #fff;
  465. height: 60rpx;
  466. border-radius: 30rpx;
  467. padding: 0 34rpx;
  468. color: #fff;
  469. font-size: 28rpx;
  470. margin-right: 30rpx;
  471. }
  472. .head .setting image {
  473. width: 40rpx;
  474. height: 40rpx;
  475. margin-right: 6rpx;
  476. }
  477. .head .nickname {
  478. font-size: 36rpx;
  479. color: #000000;
  480. }
  481. .head .user-id {
  482. font-size: 26rpx;
  483. color: #000000;
  484. padding-top: 30rpx;
  485. display: flex;
  486. align-items: center;
  487. }
  488. .head .btn-change {
  489. font-size: 22rpx;
  490. height: 40rpx;
  491. padding: 0 20rpx;
  492. border: 1px solid #fff;
  493. color: #fff;
  494. box-sizing: border-box;
  495. border-radius: 20rpx;
  496. margin-left: 16rpx;
  497. background: rgba(0, 179, 139, .1);
  498. }
  499. .panel-box {
  500. display: flex;
  501. flex-direction: column;
  502. background: #fff;
  503. margin: 0 30rpx 30rpx;
  504. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  505. border-radius: 20rpx;
  506. padding: 30rpx 0;
  507. }
  508. .panel {
  509. display: flex;
  510. justify-content: space-evenly;
  511. padding: 30rpx 0;
  512. }
  513. .panel-item {
  514. display: flex;
  515. flex-direction: column;
  516. justify-content: center;
  517. align-items: center;
  518. font-size: 32rpx;
  519. }
  520. .panel-item .num {
  521. font-weight: bold;
  522. color: #454545;
  523. }
  524. .panel-item .txt {
  525. font-size: 26rpx;
  526. }
  527. .panel-item .type {
  528. color: #999;
  529. font-size: 26rpx;
  530. padding: 14rpx 0;
  531. }
  532. .panel-box .icon-notice {
  533. width: 48rpx;
  534. height: 48rpx;
  535. }
  536. .panel-box .notice {
  537. display: flex;
  538. font-size: 32rpx;
  539. margin: 0 30rpx;
  540. align-items: center;
  541. background: #f3f3f3;
  542. border-radius: 10rpx;
  543. padding: 0 14rpx;
  544. }
  545. .panel-box .notice .notice-content {
  546. height: 68rpx;
  547. line-height: 68rpx;
  548. padding: 0 12rpx;
  549. font-size: 28rpx;
  550. }
  551. .box .arrow {
  552. width: 14rpx;
  553. height: 26rpx;
  554. }
  555. .box {
  556. background: #ffffff;
  557. margin: 0 30rpx 30rpx;
  558. padding: 30rpx;
  559. border-radius: 20rpx;
  560. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  561. }
  562. .box .more {
  563. display: flex;
  564. font-size: 26rpx;
  565. color: #808080;
  566. align-items: center;
  567. }
  568. .box .more .more-text {
  569. padding-right: 12rpx;
  570. }
  571. .box .right-head {
  572. display: flex;
  573. justify-content: space-between;
  574. }
  575. .box .right-head .tit {
  576. font-size: 32rpx;
  577. /* font-weight: bold; */
  578. }
  579. .rights .rights-items {
  580. display: flex;
  581. justify-content: space-evenly;
  582. padding: 30rpx 0;
  583. }
  584. .rights .item {
  585. display: flex;
  586. flex-direction: column;
  587. align-items: center;
  588. justify-content: center;
  589. }
  590. .rights .item .tit {
  591. font-size: 26rpx;
  592. color: #333;
  593. padding: 20rpx 0 10rpx 0;
  594. }
  595. .rights .item .sub-tit {
  596. font-size: 22rpx;
  597. color: #999;
  598. }
  599. .order .order-items {
  600. display: flex;
  601. justify-content: space-around;
  602. padding: 30rpx 0;
  603. }
  604. .order .item {
  605. display: flex;
  606. flex-direction: column;
  607. align-items: center;
  608. justify-content: center;
  609. }
  610. .order .item .tit {
  611. font-size: 26rpx;
  612. color: #333;
  613. padding: 20rpx 0 10rpx 0;
  614. }
  615. .box .icon {
  616. width: 56rpx;
  617. height: 56rpx;
  618. }
  619. .go-through .pass {
  620. display: flex;
  621. flex-direction: column;
  622. }
  623. .go-through .total {
  624. display: flex;
  625. justify-content: space-between;
  626. font-size: 26rpx;
  627. color: #999;
  628. }
  629. .go-through .amount {
  630. display: flex;
  631. justify-content: space-between;
  632. align-items: center;
  633. font-size: 28rpx;
  634. color: #333;
  635. }
  636. .go-through .line {
  637. display: flex;
  638. }
  639. .go-through .line1 {
  640. height: 8rpx;
  641. background: #00B38B;
  642. border-radius: 4rpx;
  643. }
  644. .go-through .line2 {
  645. height: 8rpx;
  646. background: #F1F1F1;
  647. border-radius: 0 4rpx 4rpx 0;
  648. flex: 1;
  649. }
  650. .go-through .mileage {
  651. display: flex;
  652. justify-content: space-evenly;
  653. align-items: center;
  654. text-align: center;
  655. margin: 32rpx 0;
  656. }
  657. .go-through .mileage .txt {
  658. display: flex;
  659. flex-direction: column;
  660. }
  661. .go-through .mileage .tit {
  662. font-size: 26rpx;
  663. color: #999;
  664. }
  665. .go-through .mileage .val {
  666. font-size: 28rpx;
  667. color: #333;
  668. margin-top: 16rpx;
  669. }
  670. .go-through .m-top {
  671. margin-top: 16rpx;
  672. }
  673. .go-through .detail {
  674. width: 100%;
  675. text-align: center;
  676. color: #00B38B;
  677. font-size: 24rpx;
  678. border-top: 1px solid #DCDCDC;
  679. padding-top: 24rpx;
  680. }
  681. .cars .car-item {
  682. display: flex;
  683. align-items: center;
  684. padding: 36rpx 0;
  685. }
  686. .cars .car-item .btn-unbind {
  687. border: 1px solid #00B38B;
  688. border-radius: 30rpx;
  689. height: 60rpx;
  690. box-sizing: border-box;
  691. line-height: 60rpx;
  692. font-size: 24rpx;
  693. padding: 0 20rpx;
  694. background: rgba(0, 179, 139, .1);
  695. color: #00B38B;
  696. }
  697. .cars .car-pic {
  698. width: 120rpx;
  699. height: 120rpx;
  700. margin-right: 12rpx;
  701. }
  702. .cars .car-info {
  703. display: flex;
  704. flex-direction: column;
  705. flex: 1;
  706. color: #999;
  707. font-size: 22rpx;
  708. }
  709. .cars .car-no {
  710. font-size: 30rpx;
  711. color: #333;
  712. }
  713. .cars .card-no {
  714. margin-top: 14rpx;
  715. }
  716. .cars .sub-bind {
  717. display: flex;
  718. align-items: center;
  719. justify-content: space-between;
  720. border-top: 1px solid #F1F1F1;
  721. padding-top: 20rpx;
  722. }
  723. .cars .sub-bind .item-tit {
  724. display: flex;
  725. align-items: center;
  726. font-size: 26rpx;
  727. color: #333;
  728. }
  729. .cars .sub-bind .right-arrow {
  730. font-size: 22rpx;
  731. color: #ccc;
  732. display: flex;
  733. justify-content: center;
  734. align-items: center;
  735. }
  736. .cars .sub-bind .sub-tit {
  737. padding-right: 20rpx;
  738. }
  739. .menu {
  740. background: #ffffff;
  741. /* border-radius: 30rpx 30rpx 0 0; */
  742. padding: 0 30rpx;
  743. margin: 0 30rpx 30rpx;
  744. border-radius: 20rpx;
  745. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  746. }
  747. .menu .arrow {
  748. width: 14rpx;
  749. height: 26rpx;
  750. }
  751. .menu .icon {
  752. width: 48rpx;
  753. height: 48rpx;
  754. margin-right: 10rpx;
  755. }
  756. .menu .item {
  757. display: flex;
  758. justify-content: space-between;
  759. align-items: center;
  760. /* border-bottom: 1px solid #dcdcdc; */
  761. padding: 20rpx 0;
  762. }
  763. .menu .item:first-child {
  764. margin-top: 10rpx;
  765. }
  766. .menu .item-tit {
  767. display: flex;
  768. align-items: center;
  769. font-size: 26rpx;
  770. color: #333;
  771. }
  772. .menu .right-arrow {
  773. font-size: 22rpx;
  774. color: #ccc;
  775. display: flex;
  776. justify-content: center;
  777. align-items: center;
  778. }
  779. .menu .sub-tit {
  780. padding-right: 20rpx;
  781. }
  782. .color {
  783. padding: 4rpx 8rpx;
  784. border-radius: 10rpx;
  785. color: white;
  786. background-color: rgb(6, 112, 255);
  787. display: inline-block;
  788. margin-left: 20rpx;
  789. font-size: 24rpx;
  790. }
  791. </style>