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.

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