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

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