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 21KB

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