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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899
  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 @click="carDetails(item)" :src="`${$imgUrl}che.png`" class="car-pic" mode="aspectFill"></image>
  179. <view class="car-info" @click="carDetails(item)">
  180. <view class="car-no"><text class="no">{{item.vehiclePlate}}</text><text class="color" :style="{ background: item.showColor}">{{item.color}}</text></view>
  181. <view class="card-no">卡号:{{item.cardId}}</view>
  182. <view class="card-no">签号:{{item.obuId}}</view>
  183. </view>
  184. <view class="btn-unbind" @click="del(item.vehicleId)">解除绑定</view>
  185. </view>
  186. <view>
  187. <view class="loading-more" v-if="state.carNumber>5"
  188. @click="$util.navTo('/subpackage/personal-center/vehicle-information', true)">加载更多~</view>
  189. </view>
  190. </view>
  191. <view class="menu">
  192. <view class="item" @click="$util.navTo('/subpackage/personal-center/setting/setting', true)">
  193. <view class="item-tit">
  194. <image :src="`${$imgUrl}user/icon-setting.png`" class="icon icon-2"></image>
  195. <text>设置与资料管理</text>
  196. </view>
  197. <view class="right-arrow">
  198. <view class="sub-tit">隐私、密码管理</view>
  199. <image :src="`${$imgUrl}user/icon-arrow.png`" class="arrow"></image>
  200. </view>
  201. </view>
  202. </view>
  203. </view>
  204. </view>
  205. </filter>
  206. </template>
  207. <script lang="ts" setup>
  208. import { reactive } from "vue";
  209. import { msg, navTo } from "@/utils/utils";
  210. import { onMounted, ref } from "vue";
  211. import { getItem, StorageKeys } from "@/utils/storage";
  212. import navBar from "../../components/nav-bar/nav-bar2.vue";
  213. import { onLoad, onShow, onPageScroll } from "@dcloudio/uni-app";
  214. import {
  215. userInfoIndex, selectCarInfo, delCarInfo, showEquityListApi
  216. } from "@/utils/network/api.js";
  217. import {
  218. request
  219. } from "@/utils/network/request.js";
  220. import {
  221. stringToJson
  222. } from "@/utils/network/encryption.js";
  223. import filter from '@/components/filter/filter.vue';
  224. import { vehiclePlateColor, vehiclePlateColorPai,getVehiclePlateColorPaiShow } from "@/datas/vehiclePlateColor.js";
  225. const height = ref(null);
  226. const top = ref(null);
  227. const margin = ref(null);
  228. const mobile = ref(null);
  229. const scrollTop = ref(0);
  230. const isBack = ref(false);
  231. const state = reactive({
  232. data: {
  233. opId: "",
  234. },
  235. accountInfoVo: {
  236. nickName: '',
  237. mobile: ''
  238. },
  239. monthFlowingVo: {
  240. duration: 0,
  241. mileage: 0,
  242. flowingNum: 0,
  243. num: 0,
  244. parkingLotMoney: 0,
  245. parkingLotNum: 0,
  246. money: 0,
  247. },
  248. list: '', //车辆信息
  249. carNumber: '',//车辆数量
  250. userVehicleInfoSumQueryVo: {
  251. vehicleSum: 0,
  252. orderStatus0: 0
  253. },//车数量 ,代办数量
  254. isTrajectory: false, //是否有轨迹
  255. equityNumber: 0,
  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 carDetails=(item)=>{
  268. const params = encodeURIComponent(JSON.stringify(item))
  269. uni.navigateTo({
  270. url:`/subpackage/personal-center/car-details?params=${params}`
  271. })
  272. }
  273. const goTrajectory = () => {
  274. if (state.isTrajectory) {
  275. uni.navigateTo({
  276. url: "/subpackage/personal-center/trajectory/trajectory"
  277. })
  278. } else {
  279. msg("暂无轨迹")
  280. }
  281. }
  282. //监听页面滚动
  283. onPageScroll((e) => {
  284. scrollTop.value = e.scrollTop;
  285. });
  286. onShow((option : any) => {
  287. state.data.opId = getItem(StorageKeys.OpenId);
  288. console.log("state.data.opId", state.data.opId)
  289. if (state.data.opId) {
  290. getUserInfo();
  291. showEquityListRequest(); //权益请求
  292. } else {
  293. state.userVehicleInfoSumQueryVo = {
  294. vehicleSum: 0,
  295. orderStatus0: 0
  296. }
  297. state.monthFlowingVo = {
  298. duration: 0,
  299. mileage: 0,
  300. flowingNum: 0,
  301. num: 0,
  302. parkingLotMoney: 0,
  303. parkingLotNum: 0,
  304. money: 0,
  305. },
  306. state.list = [],
  307. state.carNumber = 0
  308. }
  309. });
  310. // 查询车辆信息
  311. const queryCarMsg = () => {
  312. const options = {
  313. type: 2,
  314. data: {
  315. "openId": getItem('openId')
  316. },
  317. method: "POST",
  318. showLoading: true,
  319. };
  320. //调用方式
  321. request(selectCarInfo, options).then((res) => {
  322. const data = (stringToJson(res.bizContent).vehicleManages)
  323. for (var i = 0; i < data.length; i++) {
  324. for (var j = 0; j < vehiclePlateColorPai.length; j++) {
  325. if (data[i].vehiclePlateColor == vehiclePlateColorPai[j]['id']) {
  326. data[i].color = vehiclePlateColorPai[j]['color']
  327. data[i].showColor = vehiclePlateColorPai[j]['showColor']
  328. }
  329. }
  330. }
  331. state.carNumber = data.length
  332. state.list = data.slice(0, 5);
  333. console.log("state.list", state.list)
  334. })
  335. .catch((err) => {
  336. console.log('输出内容', err)
  337. });
  338. }
  339. const getUserInfo = () => {
  340. const options = {
  341. type: 2,
  342. data: {
  343. openId: state.data.opId
  344. },
  345. method: "POST",
  346. showLoading: true,
  347. };
  348. //调用方式
  349. request(userInfoIndex, options)
  350. .then((res) => {
  351. console.log('用户信息', res)
  352. let data = stringToJson(res.bizContent)
  353. state.accountInfoVo = data.accountInfoVo;
  354. if (data.monthFlowingVo && JSON.stringify(data.monthFlowingVo) != "{}") {
  355. state.monthFlowingVo = data.monthFlowingVo;
  356. state.isTrajectory = true;
  357. }
  358. state.userVehicleInfoSumQueryVo.vehicleSum = JSON.parse(JSON.stringify(data.userVehicleInfoSumQueryVo)).vehicleSum;
  359. state.userVehicleInfoSumQueryVo.orderStatus0 = JSON.parse(JSON.stringify(data.userVehicleInfoSumQueryVo)).orderStatus0;
  360. console.log("获取用户信息", data);
  361. queryCarMsg();
  362. })
  363. .catch((err) => {
  364. console.log(err);
  365. });
  366. }
  367. const del = (id) => {
  368. uni.showModal({
  369. title: '提示',
  370. content: '是否删除该条车辆信息',
  371. success: function (res) {
  372. if (res.confirm) {
  373. console.log('用户点击确定');
  374. let data = {
  375. vehicleId: id,
  376. openId: getItem('openId')
  377. }
  378. const options = {
  379. type: 2,
  380. data: data,
  381. method: "POST",
  382. showLoading: true,
  383. };
  384. request(delCarInfo, options).then((res) => {
  385. const data = stringToJson(res.bizContent);
  386. console.log(data)
  387. state.list = data.vehicleManages
  388. if (data.info == '成功.') {
  389. uni.showToast({
  390. title: "删除成功",
  391. icon: "none"
  392. })
  393. queryCarMsg();
  394. }
  395. });
  396. } else if (res.cancel) {
  397. console.log('用户点击取消');
  398. }
  399. }
  400. });
  401. }
  402. const goOrder = (index) => {
  403. uni.reLaunch({
  404. url: `../order/order?index=${index}`
  405. })
  406. }
  407. const goLogin = () => {
  408. if (!getItem('openId')) {
  409. uni.navigateTo({
  410. url: "/login/login"
  411. })
  412. }
  413. }
  414. const showEquityListRequest = () => {
  415. const options = {
  416. type: 2,
  417. data: {
  418. "openId": getItem(StorageKeys.OpenId),
  419. "pageNo": 100,
  420. "pageSize": 1,
  421. },
  422. method: 'POST',
  423. showLoading: true,
  424. }
  425. request(showEquityListApi, options).then((res) => {
  426. const data = stringToJson(res.bizContent);
  427. console.log("购买2", data)
  428. state.equityNumber = data.data.length
  429. })
  430. }
  431. const goEquity = () => {
  432. if (state.equityNumber) {
  433. navTo('/subpackage/after-sale/add-equity/equity-list')
  434. } else {
  435. msg("暂无购买权益记录")
  436. }
  437. }
  438. </script>
  439. <style>
  440. page {
  441. background: #eef7f7;
  442. }
  443. </style>
  444. <style scoped>
  445. .unlogin {
  446. filter: grayscale(100%);
  447. opacity: 0.7;
  448. }
  449. .wrapper {
  450. position: relative;
  451. background: #fff;
  452. }
  453. .bar {
  454. width: 100%;
  455. position: fixed;
  456. text-align: center;
  457. font-size: 32rpx;
  458. font-weight: bold;
  459. }
  460. .bg-head {
  461. width: 100%;
  462. position: absolute;
  463. z-index: -99;
  464. top: 0;
  465. left: 0;
  466. }
  467. .content {
  468. position: absolute;
  469. display: flex;
  470. flex-direction: column;
  471. width: 100%;
  472. }
  473. .head {
  474. display: flex;
  475. justify-content: space-between;
  476. align-items: center;
  477. width: 100%;
  478. box-sizing: border-box;
  479. padding: 40rpx 0 46rpx;
  480. }
  481. .head .avatar {
  482. display: flex;
  483. align-items: center;
  484. }
  485. .head .avatar image {
  486. width: 120rpx;
  487. height: 120rpx;
  488. border-radius: 80rpx;
  489. border: 12rpx solid rgba(255, 255, 255, 0.5);
  490. margin: 0 20rpx 0 30rpx;
  491. }
  492. .head .setting {
  493. display: flex;
  494. align-items: center;
  495. background: rgba(0, 179, 139, .1);
  496. border: 1px solid #fff;
  497. height: 60rpx;
  498. border-radius: 30rpx;
  499. padding: 0 34rpx;
  500. color: #fff;
  501. font-size: 28rpx;
  502. margin-right: 30rpx;
  503. }
  504. .head .setting image {
  505. width: 40rpx;
  506. height: 40rpx;
  507. margin-right: 6rpx;
  508. }
  509. .head .nickname {
  510. font-size: 36rpx;
  511. color: #000000;
  512. }
  513. .head .user-id {
  514. font-size: 26rpx;
  515. color: #000000;
  516. padding-top: 30rpx;
  517. display: flex;
  518. align-items: center;
  519. }
  520. .head .btn-change {
  521. font-size: 22rpx;
  522. height: 40rpx;
  523. padding: 0 20rpx;
  524. border: 1px solid #fff;
  525. color: #fff;
  526. box-sizing: border-box;
  527. border-radius: 20rpx;
  528. margin-left: 16rpx;
  529. background: rgba(0, 179, 139, .1);
  530. }
  531. .panel-box {
  532. display: flex;
  533. flex-direction: column;
  534. background: #fff;
  535. margin: 0 30rpx 30rpx;
  536. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  537. border-radius: 20rpx;
  538. padding: 30rpx 0;
  539. }
  540. .panel {
  541. display: flex;
  542. justify-content: space-evenly;
  543. padding: 30rpx 0;
  544. }
  545. .panel-item {
  546. display: flex;
  547. flex-direction: column;
  548. justify-content: center;
  549. align-items: center;
  550. font-size: 32rpx;
  551. }
  552. .panel-item .num {
  553. font-weight: bold;
  554. color: #454545;
  555. }
  556. .panel-item .txt {
  557. font-size: 26rpx;
  558. }
  559. .panel-item .type {
  560. color: #999;
  561. font-size: 26rpx;
  562. padding: 14rpx 0;
  563. }
  564. .panel-box .icon-notice {
  565. width: 48rpx;
  566. height: 48rpx;
  567. }
  568. .panel-box .notice {
  569. display: flex;
  570. font-size: 32rpx;
  571. margin: 0 30rpx;
  572. align-items: center;
  573. background: #f3f3f3;
  574. border-radius: 10rpx;
  575. padding: 0 14rpx;
  576. }
  577. .panel-box .notice .notice-content {
  578. height: 68rpx;
  579. line-height: 68rpx;
  580. padding: 0 12rpx;
  581. font-size: 28rpx;
  582. }
  583. .box .arrow {
  584. width: 14rpx;
  585. height: 26rpx;
  586. }
  587. .box {
  588. background: #ffffff;
  589. margin: 0 30rpx 30rpx;
  590. padding: 30rpx;
  591. border-radius: 20rpx;
  592. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  593. }
  594. .box .more {
  595. display: flex;
  596. font-size: 26rpx;
  597. color: #808080;
  598. align-items: center;
  599. }
  600. .box .more .more-text {
  601. padding-right: 12rpx;
  602. }
  603. .box .right-head {
  604. display: flex;
  605. justify-content: space-between;
  606. }
  607. .box .right-head .tit {
  608. font-size: 32rpx;
  609. /* font-weight: bold; */
  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: 60rpx;
  722. box-sizing: border-box;
  723. line-height: 60rpx;
  724. font-size: 24rpx;
  725. padding: 0 20rpx;
  726. background: rgba(0, 179, 139, .1);
  727. color: #00B38B;
  728. }
  729. .cars .car-pic {
  730. width: 120rpx;
  731. height: 120rpx;
  732. margin-right: 12rpx;
  733. }
  734. .cars .car-info {
  735. display: flex;
  736. flex-direction: column;
  737. flex: 1;
  738. color: #999;
  739. font-size: 22rpx;
  740. }
  741. .cars .car-no {
  742. font-size: 30rpx;
  743. color: #333;
  744. }
  745. .cars .card-no {
  746. margin-top: 14rpx;
  747. }
  748. .cars .sub-bind {
  749. display: flex;
  750. align-items: center;
  751. justify-content: space-between;
  752. border-top: 1px solid #F1F1F1;
  753. padding-top: 20rpx;
  754. }
  755. .cars .sub-bind .item-tit {
  756. display: flex;
  757. align-items: center;
  758. font-size: 26rpx;
  759. color: #333;
  760. }
  761. .cars .sub-bind .right-arrow {
  762. font-size: 22rpx;
  763. color: #ccc;
  764. display: flex;
  765. justify-content: center;
  766. align-items: center;
  767. }
  768. .cars .sub-bind .sub-tit {
  769. padding-right: 20rpx;
  770. }
  771. .menu {
  772. background: #ffffff;
  773. /* border-radius: 30rpx 30rpx 0 0; */
  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. /* border-bottom: 1px solid #dcdcdc; */
  793. padding: 20rpx 0;
  794. }
  795. .menu .item:first-child {
  796. margin-top: 10rpx;
  797. }
  798. .menu .item-tit {
  799. display: flex;
  800. align-items: center;
  801. font-size: 26rpx;
  802. color: #333;
  803. }
  804. .menu .right-arrow {
  805. font-size: 22rpx;
  806. color: #ccc;
  807. display: flex;
  808. justify-content: center;
  809. align-items: center;
  810. }
  811. .menu .sub-tit {
  812. padding-right: 20rpx;
  813. }
  814. .color {
  815. padding: 4rpx 8rpx;
  816. border-radius: 10rpx;
  817. color: white;
  818. display: inline-block;
  819. margin-left: 20rpx;
  820. font-size: 24rpx;
  821. }
  822. .loading-more {
  823. text-align: center;
  824. font-size: 28rpx;
  825. margin-bottom: 20rpx;
  826. color: #999;
  827. }
  828. </style>