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

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