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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910
  1. <template>
  2. <navBar title="九州ETC" :scrollTop="scrollTop" :isBack="isBack" navbgClass="nav-bgXin" fontColor='#fff'></navBar>
  3. <filter>
  4. <view class="wrapper">
  5. <image :src="`${$imgUrl}myImage/headbg.png`" class="bg-head" mode="widthFix"></image>
  6. <view class="content" :style="{ top: margin + 'px' }">
  7. <view class="head" :style="{ marinTop: margin + 'px' }">
  8. <view class="avatar">
  9. <image :src="`${$imgUrl}myImage/touxiang.png`" :class="!state.data.opId ? 'unlogin' : ''" @click="goLogin">
  10. </image>
  11. <view v-if="!state.data.opId" class="name" @click="$util.navTo('/login/login')">
  12. <view class="nickname">登录/注册</view>
  13. </view>
  14. <view v-else class="name">
  15. <view class="nickname">{{state.accountInfoVo.nickName || state.accountInfoVo.userName}}</view>
  16. <view class="user-id">
  17. <view class="phone">{{state.accountInfoVo.mobile}}</view>
  18. <view v-if="false" @click="$util.navTo('/subpackage/personal-center/setting/change-phone', true)"
  19. class="btn-change">已关联</view>
  20. </view>
  21. </view>
  22. </view>
  23. <!-- <view v-if="false" class="setting" @click="$util.navTo('/subpackage/personal-center/setting/setting', true)">
  24. <text>签到</text>
  25. </view> -->
  26. <view class="r-setting" @click="$util.navTo('/subpackage/personal-center/setting/setting', true)">
  27. <image :src="`${$imgUrl}myImage/shezhi.png`" class="img" mode="widthFix"></image>
  28. </view>
  29. </view>
  30. <view class="my-equity" :style="{'--bgimg':`url(${$imgUrl}myImage/quanuyikuang.png)`}">
  31. <view class="l-con">
  32. <image :src="`${$imgUrl}myImage/quanyi.png`" class="equity-icon" mode="widthFix"></image>
  33. <view class="txt">
  34. 我的权益
  35. </view>
  36. </view>
  37. <view class="r-icon" @click="goEquity()">
  38. <image :src="`${$imgUrl}myImage/quanyixiayi.png`" class="r-img" mode="widthFix"></image>
  39. </view>
  40. </view>
  41. <view class="info-content">
  42. <view class="order box">
  43. <view class="right-head">
  44. <view class="tit">我的订单</view>
  45. <view class="more" @click="goOrder(0)">
  46. <text class="more-text">查看全部</text>
  47. <image :src="`${$imgUrl}myImage/wdexiayi.png`" class="arrow"></image>
  48. </view>
  49. </view>
  50. <view class="order-items">
  51. <view class="item" @click="goOrder(1)">
  52. <view style="position: relative;">
  53. <image :src="`${$imgUrl}myImage/icon1.png`" class="icon" mode="widthFix"></image>
  54. <view v-if='state.orderInfoSumQueryVo.orderStep8>0' class="rtop-badge bgVar"
  55. :style="{'--bgimg':`url(${$imgUrl}myImage/r-badge.png)`}">
  56. {{state.orderInfoSumQueryVo.orderStep8}}
  57. </view>
  58. </view>
  59. <text class="tit">待发货</text>
  60. </view>
  61. <view class="item" @click="goOrder(2)">
  62. <view style="position: relative;">
  63. <image :src="`${$imgUrl}myImage/icon2.png`" class="icon" mode="widthFix"></image>
  64. <view v-if='state.orderInfoSumQueryVo.orderStep9>0' class="rtop-badge bgVar"
  65. :style="{'--bgimg':`url(${$imgUrl}myImage/r-badge.png)`}">
  66. {{state.orderInfoSumQueryVo.orderStep9}}
  67. </view>
  68. </view>
  69. <text class="tit">待收货</text>
  70. </view>
  71. <view class="item" @click="goOrder(3)">
  72. <view style="position: relative;">
  73. <image :src="`${$imgUrl}myImage/icon3.png`" class="icon" mode="widthFix"></image>
  74. <view class="rtop-badge bgVar" v-if='state.orderInfoSumQueryVo.orderStep10>0'
  75. :style="{'--bgimg':`url(${$imgUrl}myImage/r-badge.png)`}">
  76. {{state.orderInfoSumQueryVo.orderStep10}}
  77. </view>
  78. </view>
  79. <text class="tit">待激活</text>
  80. </view>
  81. <view class="item" @click="goOrder(4)">
  82. <view style="position: relative;">
  83. <image :src="`${$imgUrl}myImage/icon4.png`" class="icon" mode="widthFix"></image>
  84. <view v-if='state.orderInfoSumQueryVo.orderStep12>0' class="rtop-badge bgVar"
  85. :style="{'--bgimg':`url(${$imgUrl}myImage/r-badge.png)`}">
  86. {{state.orderInfoSumQueryVo.orderStep12}}
  87. </view>
  88. </view>
  89. <text class="tit">退换货/退款</text>
  90. </view>
  91. </view>
  92. </view>
  93. <view class="go-through box" v-if="source=='WECHAT'">
  94. <view class="right-head">
  95. <view class="tit">本月通行</view>
  96. <view class="more" @click="goTrajectory()">
  97. <text class="more-text">查看通行轨迹</text>
  98. <image :src="`${$imgUrl}myImage/wdexiayi.png`" class="arrow"></image>
  99. </view>
  100. </view>
  101. <view class="pass">
  102. <view class="total m-top">
  103. <text>通行消费</text>
  104. <text>总金额</text>
  105. </view>
  106. <view class="amount m-top">
  107. <text>¥
  108. {{state.monthFlowingVo.flowingNum }}</text>
  109. <text>¥
  110. {{state.monthFlowingVo.money }}</text>
  111. </view>
  112. <view class="line m-top">
  113. <view class="line1"
  114. :style="{width: (state.monthFlowingVo.flowingNum ? state.monthFlowingVo.flowingNum : 0)*100/state.monthFlowingVo.money+'%'}">
  115. </view>
  116. <view class="line2"></view>
  117. </view>
  118. <view class="mileage">
  119. <view class="box-items" :style="{'--bgimg':`url(${$imgUrl}myImage/tongxing1.png)`}">
  120. <view class="t-name">
  121. <image :src="`${$imgUrl}myImage/licheng-icon.png`" class="tongxing-icon"></image>
  122. <text class="tit">通行里程</text>
  123. </view>
  124. <view class="b-info">
  125. <text class="val">{{state.monthFlowingVo.mileage}}</text>
  126. <text class="unit">km</text>
  127. </view>
  128. </view>
  129. <view class="box-items" :style="{'--bgimg':`url(${$imgUrl}myImage/tongxing2.png)`}">
  130. <view class="t-name">
  131. <image :src="`${$imgUrl}myImage/shichang-icon.png`" class="tongxing-icon"></image>
  132. <text class="tit">通行时长</text>
  133. </view>
  134. <view class="b-info">
  135. <text class="val">{{state.monthFlowingVo.duration}}</text>
  136. <!-- <text class="unit">km</text> -->
  137. </view>
  138. </view>
  139. <view class="box-items" :style="{'--bgimg':`url(${$imgUrl}myImage/tongxing3.png)`}">
  140. <view class="t-name">
  141. <image :src="`${$imgUrl}myImage/cishu-icon.png`" class="tongxing-icon"></image>
  142. <text class="tit">通行次数</text>
  143. </view>
  144. <view class="b-info">
  145. <text class="val">{{state.monthFlowingVo.num}}</text>
  146. <text class="unit">次</text>
  147. </view>
  148. </view>
  149. </view>
  150. </view>
  151. </view>
  152. <view class="cars box">
  153. <view class="right-head">
  154. <view class="tit">我的车辆</view>
  155. <view class="more" @click="$util.navTo('/subpackage/personal-center/vehicle-information', true)">
  156. <text class="more-text">查看全部</text>
  157. <image :src="`${$imgUrl}myImage/wdexiayi.png`" class="arrow"></image>
  158. </view>
  159. </view>
  160. <view class="car-item" v-for="(item,index) in state.list">
  161. <image @click="carDetails(item)" :src="`${$imgUrl}myImage/car.png`" class="car-pic" mode="widthFix">
  162. </image>
  163. <view class="car-info" @click="carDetails(item)">
  164. <view class="car-no">
  165. <text class="no">{{item.vehiclePlate}}</text>
  166. <text class="color" :style="{ background: item.showColor}">{{item.color}}</text>
  167. </view>
  168. <view class="card-no">卡号:{{item.cardId}}</view>
  169. <view class="card-no">签号:{{item.obuId}}</view>
  170. </view>
  171. <view class="btn-unbind" @click="del(item.vehicleId)">解除绑定</view>
  172. </view>
  173. <view @click="$util.navTo('/subpackage/personal-center/setting/car-information/car-create', true)"
  174. class='add-related' :style="{'--bgimg':`url(${$imgUrl}myImage/guanlianbg.png)`}">
  175. <image :src="`${$imgUrl}myImage/guanlian.png`" class="add-img" mode="widthFix">
  176. </image>
  177. <text>增加未关联车辆</text>
  178. </view>
  179. </view>
  180. </view>
  181. </view>
  182. </view>
  183. </filter>
  184. </template>
  185. <script lang="ts" setup>
  186. import { reactive } from "vue";
  187. import { msg, navTo } from "@/utils/utils";
  188. import { onMounted, ref } from "vue";
  189. import { getItem, StorageKeys } from "@/utils/storage";
  190. import navBar from "../../components/nav-bar/nav-bar2.vue";
  191. import { onLoad, onShow, onPageScroll } from "@dcloudio/uni-app";
  192. import {
  193. userInfoIndex, selectCarInfo, delCarInfo, showEquityListApi
  194. } from "@/utils/network/api.js";
  195. import {
  196. request
  197. } from "@/utils/network/request.js";
  198. import {
  199. stringToJson
  200. } from "@/utils/network/encryption.js";
  201. import filter from '@/components/filter/filter.vue';
  202. import { source } from "@/utils/network/difference";
  203. import { vehiclePlateColor, vehiclePlateColorPai, getVehiclePlateColorPaiShow } from "@/datas/vehiclePlateColor.js";
  204. const height = ref(null);
  205. const top = ref(null);
  206. const margin = ref(null);
  207. const mobile = ref(null);
  208. const scrollTop = ref(0);
  209. const isBack = ref(false);
  210. const state = reactive({
  211. data: {
  212. opId: "",
  213. },
  214. accountInfoVo: {
  215. nickName: '',
  216. mobile: ''
  217. },
  218. monthFlowingVo: {
  219. duration: 0,
  220. mileage: 0,
  221. flowingNum: 0,
  222. num: 0,
  223. parkingLotMoney: 0,
  224. parkingLotNum: 0,
  225. money: 0,
  226. },
  227. list: '', //车辆信息
  228. carNumber: '',//车辆数量
  229. userVehicleInfoSumQueryVo: {
  230. vehicleSum: 0,
  231. orderStatus0: 0
  232. },//车数量 ,代办数量
  233. isTrajectory: false, //是否有轨迹
  234. equityNumber: 0,
  235. orderInfoSumQueryVo: {
  236. orderStep8: "0",//待发货
  237. orderStep9: "0",//待收货
  238. orderStep10: "0",//待激活
  239. orderStep12: "0",//换货/退货
  240. }
  241. });
  242. onMounted(() => {
  243. const res = uni.getMenuButtonBoundingClientRect();
  244. height.value = res.height + "px";
  245. top.value = res.top + "px";
  246. margin.value = res.height + res.top;
  247. });
  248. onLoad((option : any) => {
  249. state.data.opId = getItem(StorageKeys.OpenId);
  250. mobile.value = getItem("mobile");
  251. });
  252. const carDetails = (item) => {
  253. const params = encodeURIComponent(JSON.stringify(item))
  254. uni.navigateTo({
  255. url: `/subpackage/personal-center/car-details?params=${params}`
  256. })
  257. }
  258. const goTrajectory = () => {
  259. if (state.isTrajectory) {
  260. uni.navigateTo({
  261. url: "/subpackage/personal-center/trajectory/trajectory"
  262. })
  263. } else {
  264. msg("暂无轨迹")
  265. }
  266. }
  267. //监听页面滚动
  268. onPageScroll((e) => {
  269. scrollTop.value = e.scrollTop;
  270. });
  271. onShow((option : any) => {
  272. state.data.opId = getItem(StorageKeys.OpenId);
  273. console.log("state.data.opId", state.data.opId)
  274. if (state.data.opId) {
  275. getUserInfo();
  276. showEquityListRequest(); //权益请求
  277. } else {
  278. state.userVehicleInfoSumQueryVo = {
  279. vehicleSum: 0,
  280. orderStatus0: 0
  281. }
  282. state.monthFlowingVo = {
  283. duration: 0,
  284. mileage: 0,
  285. flowingNum: 0,
  286. num: 0,
  287. parkingLotMoney: 0,
  288. parkingLotNum: 0,
  289. money: 0,
  290. }
  291. state.orderInfoSumQueryVo = {
  292. orderStep8: "0",//待发货
  293. orderStep9: "0",//待收货
  294. orderStep10: "0",//待激活
  295. orderStep12: "0",//换货/退货
  296. }
  297. state.list = []
  298. state.carNumber = 0
  299. }
  300. });
  301. // 查询车辆信息
  302. const queryCarMsg = () => {
  303. const options = {
  304. type: 2,
  305. data: {
  306. "openId": getItem('openId')
  307. },
  308. method: "POST",
  309. showLoading: true,
  310. };
  311. //调用方式
  312. request(selectCarInfo, options).then((res) => {
  313. const data = (stringToJson(res.bizContent).vehicleManages)
  314. for (var i = 0; i < data.length; i++) {
  315. for (var j = 0; j < vehiclePlateColorPai.length; j++) {
  316. if (data[i].vehiclePlateColor == vehiclePlateColorPai[j]['id']) {
  317. data[i].color = vehiclePlateColorPai[j]['color']
  318. data[i].showColor = vehiclePlateColorPai[j]['showColor']
  319. }
  320. }
  321. }
  322. state.carNumber = data.length
  323. state.list = data.slice(0, 5);
  324. console.log("state.list", state.list)
  325. })
  326. .catch((err) => {
  327. console.log('输出内容', err)
  328. });
  329. }
  330. const getUserInfo = () => {
  331. const options = {
  332. type: 2,
  333. data: {
  334. openId: state.data.opId
  335. },
  336. method: "POST",
  337. showLoading: true,
  338. };
  339. //调用方式
  340. request(userInfoIndex, options)
  341. .then((res) => {
  342. console.log('用户信息', res)
  343. let data = stringToJson(res.bizContent)
  344. state.accountInfoVo = data.accountInfoVo;
  345. if (data.monthFlowingVo && JSON.stringify(data.monthFlowingVo) != "{}") {
  346. state.monthFlowingVo = data.monthFlowingVo;
  347. state.isTrajectory = true;
  348. }
  349. state.orderInfoSumQueryVo = JSON.parse(JSON.stringify(data.orderInfoSumQueryVo))
  350. state.userVehicleInfoSumQueryVo.vehicleSum = JSON.parse(JSON.stringify(data.userVehicleInfoSumQueryVo)).vehicleSum;
  351. state.userVehicleInfoSumQueryVo.orderStatus0 = JSON.parse(JSON.stringify(data.userVehicleInfoSumQueryVo)).orderStatus0;
  352. console.log("获取用户信息", data);
  353. queryCarMsg();
  354. })
  355. .catch((err) => {
  356. console.log(err);
  357. });
  358. }
  359. const del = (id) => {
  360. uni.showModal({
  361. title: '提示',
  362. content: '是否删除该条车辆信息',
  363. success: function (res) {
  364. if (res.confirm) {
  365. console.log('用户点击确定');
  366. let data = {
  367. vehicleId: id,
  368. openId: getItem('openId')
  369. }
  370. const options = {
  371. type: 2,
  372. data: data,
  373. method: "POST",
  374. showLoading: true,
  375. };
  376. request(delCarInfo, options).then((res) => {
  377. const data = stringToJson(res.bizContent);
  378. console.log(data)
  379. state.list = data.vehicleManages
  380. if (data.info == '成功.') {
  381. uni.showToast({
  382. title: "删除成功",
  383. icon: "none"
  384. })
  385. queryCarMsg();
  386. }
  387. });
  388. } else if (res.cancel) {
  389. console.log('用户点击取消');
  390. }
  391. }
  392. });
  393. }
  394. const goOrder = (index) => {
  395. uni.reLaunch({
  396. url: `../order/order?index=${index}`
  397. })
  398. }
  399. const goLogin = () => {
  400. if (!getItem('openId')) {
  401. uni.navigateTo({
  402. url: "/login/login"
  403. })
  404. }
  405. }
  406. const showEquityListRequest = () => {
  407. const options = {
  408. type: 2,
  409. data: {
  410. "openId": getItem(StorageKeys.OpenId),
  411. "pageNo": 1,
  412. "pageSize": 100,
  413. },
  414. method: 'POST',
  415. showLoading: true,
  416. }
  417. request(showEquityListApi, options).then((res) => {
  418. const data = stringToJson(res.bizContent);
  419. console.log("购买2", data)
  420. state.equityNumber = data.data.length
  421. })
  422. }
  423. const goEquity = () => {
  424. // if (state.equityNumber) {
  425. // navTo('/subpackage/after-sale/add-equity/equity-list') //潘兵写的权益
  426. navTo('/subpackage/service/equityList/equityList')
  427. // } else {
  428. // msg("暂无购买权益记录")
  429. // }
  430. }
  431. </script>
  432. <style>
  433. page {
  434. background: #eef7f7;
  435. }
  436. </style>
  437. <style scoped lang='scss'>
  438. .unlogin {
  439. filter: grayscale(100%);
  440. opacity: 0.7;
  441. }
  442. .bgVar {
  443. background-image: var(--bgimg);
  444. background-repeat: no-repeat;
  445. background-size: 100% 100%;
  446. }
  447. .wrapper {
  448. position: relative;
  449. background-color: #f6f9fc;
  450. }
  451. .bar {
  452. width: 100%;
  453. position: fixed;
  454. text-align: center;
  455. font-size: 32rpx;
  456. font-weight: bold;
  457. }
  458. .bg-head {
  459. width: 100%;
  460. position: absolute;
  461. z-index: 1;
  462. top: 0;
  463. left: 0;
  464. }
  465. .content {
  466. position: relative;
  467. display: flex;
  468. flex-direction: column;
  469. width: 100%;
  470. z-index: 2;
  471. }
  472. .head {
  473. display: flex;
  474. justify-content: space-between;
  475. align-items: center;
  476. width: 100%;
  477. box-sizing: border-box;
  478. padding: 40rpx 0 46rpx;
  479. }
  480. .head .avatar {
  481. display: flex;
  482. align-items: center;
  483. justify-content: space-between;
  484. }
  485. .head .avatar image {
  486. width: 141rpx;
  487. height: 141rpx;
  488. /* border-radius: 80rpx; */
  489. margin: 0 20rpx 0 30rpx;
  490. }
  491. .head .setting {
  492. display: flex;
  493. align-items: center;
  494. background: rgba(0, 179, 139, .1);
  495. border: 1px solid #fff;
  496. height: 60rpx;
  497. border-radius: 30rpx;
  498. padding: 0 34rpx;
  499. color: #fff;
  500. font-size: 28rpx;
  501. margin-right: 30rpx;
  502. }
  503. .head .setting image {
  504. width: 40rpx;
  505. height: 40rpx;
  506. margin-right: 6rpx;
  507. }
  508. .head .r-setting {
  509. width: 80rpx;
  510. height: 80rpx;
  511. background: #345061;
  512. display: flex;
  513. align-items: center;
  514. justify-content: center;
  515. border-radius: 50%;
  516. margin-right: 50rpx;
  517. .img {
  518. width: 40rpx;
  519. height: 39rpx;
  520. }
  521. }
  522. .head .nickname {
  523. font-size: 36rpx;
  524. color: #fff;
  525. }
  526. .head .user-id {
  527. font-size: 26rpx;
  528. color: #fff;
  529. padding-top: 20rpx;
  530. display: flex;
  531. align-items: center;
  532. }
  533. .head .btn-change {
  534. font-size: 22rpx;
  535. height: 40rpx;
  536. padding: 0 20rpx;
  537. border: 1px solid #fff;
  538. color: #fff;
  539. box-sizing: border-box;
  540. border-radius: 20rpx;
  541. margin-left: 16rpx;
  542. background: rgba(0, 179, 139, .1);
  543. }
  544. .my-equity {
  545. position: relative;
  546. z-index: 20;
  547. margin: 0 50rpx;
  548. background-image: var(--bgimg);
  549. background-repeat: no-repeat;
  550. background-size: 100% 100%;
  551. width: 650rpx;
  552. height: 94rpx;
  553. display: flex;
  554. align-items: center;
  555. justify-content: space-between;
  556. .l-con {
  557. margin-left: 30rpx;
  558. display: flex;
  559. align-items: center;
  560. .equity-icon {
  561. width: 54rpx;
  562. height: 54rpx;
  563. }
  564. .txt {
  565. font-family: NotoSansHans, NotoSansHans;
  566. font-size: 28rpx;
  567. color: #01253C;
  568. margin-left: 19rpx;
  569. }
  570. }
  571. .r-icon {
  572. margin-right: 30rpx;
  573. width: 32rpx;
  574. height: 32rpx;
  575. .r-img {
  576. width: 32rpx;
  577. height: 32rpx;
  578. }
  579. }
  580. }
  581. .info-content {
  582. transform: translateY(-10rpx);
  583. }
  584. .box .arrow {
  585. width: 10rpx;
  586. height: 18rpx;
  587. }
  588. .box {
  589. background: #ffffff;
  590. margin: 0 30rpx 30rpx;
  591. padding: 30rpx 20rpx;
  592. border-radius: 20rpx;
  593. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.9);
  594. }
  595. .box .more {
  596. display: flex;
  597. align-items: center;
  598. font-family: NotoSansHans, NotoSansHans;
  599. font-size: 24rpx;
  600. color: #004576;
  601. }
  602. .box .more .more-text {
  603. padding-right: 12rpx;
  604. }
  605. .box .right-head {
  606. display: flex;
  607. justify-content: space-between;
  608. }
  609. .box .right-head .tit {
  610. font-size: 32rpx;
  611. font-family: MicrosoftYaHei;
  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 10rpx;
  637. .rtop-badge {
  638. position: absolute;
  639. right: 0;
  640. width: 34rpx;
  641. height: 34rpx;
  642. top: 0;
  643. transform: translate(50%, -50%);
  644. line-height: 34rpx;
  645. text-align: center;
  646. font-family: SourceHanSansSC, SourceHanSansSC;
  647. font-weight: 400;
  648. font-size: 20rpx;
  649. color: #FFFFFF;
  650. }
  651. }
  652. .order .item {
  653. display: flex;
  654. flex-direction: column;
  655. align-items: center;
  656. justify-content: center;
  657. }
  658. .order .item .tit {
  659. font-size: 26rpx;
  660. color: #333;
  661. padding: 20rpx 0 10rpx 0;
  662. }
  663. .box .icon {
  664. width: 50rpx;
  665. height: 50rpx;
  666. }
  667. .go-through .pass {
  668. display: flex;
  669. flex-direction: column;
  670. }
  671. .go-through .total {
  672. display: flex;
  673. justify-content: space-between;
  674. font-size: 26rpx;
  675. color: #666;
  676. }
  677. .go-through .amount {
  678. display: flex;
  679. justify-content: space-between;
  680. align-items: center;
  681. font-family: NotoSansHans, NotoSansHans;
  682. font-size: 32rpx;
  683. color: #333333;
  684. font-weight: 400;
  685. }
  686. .go-through .line {
  687. display: flex;
  688. }
  689. .go-through .line1 {
  690. height: 14rpx;
  691. background: #005B9C;
  692. border-radius: 7rpx;
  693. }
  694. .go-through .line2 {
  695. height: 14rpx;
  696. background: #E5ECEF;
  697. border-radius: 7rpx;
  698. flex: 1;
  699. }
  700. .go-through .mileage {
  701. display: flex;
  702. justify-content: space-around;
  703. align-items: center;
  704. text-align: center;
  705. margin: 32rpx 0;
  706. .box-items {
  707. background-image: var(--bgimg);
  708. background-repeat: no-repeat;
  709. background-size: 100% 100%;
  710. padding: 20rpx 30rpx;
  711. .t-name {
  712. display: flex;
  713. .tongxing-icon {
  714. width: 29rpx;
  715. height: 29rpx;
  716. }
  717. .tit {
  718. font-size: 26rpx;
  719. color: #666666;
  720. line-height: 29rpx;
  721. margin-left: 5rpx;
  722. }
  723. }
  724. .b-info {
  725. padding-top: 20rpx;
  726. .val {
  727. font-size: 32rpx;
  728. color: #333333;
  729. }
  730. .unit {
  731. font-size: 24rpx;
  732. color: #666666;
  733. margin-left: 5rpx;
  734. }
  735. }
  736. }
  737. }
  738. .go-through .mileage .txt {
  739. display: flex;
  740. flex-direction: column;
  741. }
  742. .go-through .mileage .tit {
  743. font-size: 26rpx;
  744. color: #999;
  745. }
  746. .go-through .mileage .val {
  747. font-size: 28rpx;
  748. color: #333;
  749. margin-top: 16rpx;
  750. }
  751. .go-through .m-top {
  752. margin-top: 16rpx;
  753. }
  754. .go-through .detail {
  755. width: 100%;
  756. text-align: center;
  757. color: #00B38B;
  758. font-size: 24rpx;
  759. border-top: 1px solid #DCDCDC;
  760. padding-top: 24rpx;
  761. }
  762. .cars .car-item {
  763. display: flex;
  764. align-items: center;
  765. padding-top: 36rpx;
  766. }
  767. .cars .car-item .btn-unbind {
  768. font-weight: 400;
  769. border-radius: 30rpx;
  770. font-family: NotoSansHans, NotoSansHans;
  771. line-height: 30px;
  772. text-align: center;
  773. font-size: 24rpx;
  774. width: 130rpx;
  775. height: 60rpx;
  776. background: #004372;
  777. color: #fff;
  778. margin-bottom: 10rpx;
  779. }
  780. .cars .car-pic {
  781. width: 120rpx;
  782. height: 110rpx;
  783. margin-right: 20rpx;
  784. }
  785. .cars .car-info {
  786. display: flex;
  787. flex-direction: column;
  788. color: #999;
  789. font-size: 22rpx;
  790. width: 56%;
  791. }
  792. .cars .car-no {
  793. font-size: 30rpx;
  794. color: #333;
  795. }
  796. .cars .card-no {
  797. margin-top: 10rpx;
  798. font-size: 22rpx;
  799. color: #999999;
  800. }
  801. .cars .add-related {
  802. background-image: var(--bgimg);
  803. background-repeat: no-repeat;
  804. background-size: 100% 100%;
  805. height: 80rpx;
  806. display: flex;
  807. align-items: center;
  808. justify-content: center;
  809. font-family: NotoSansHans, NotoSansHans;
  810. font-weight: 400;
  811. font-size: 26rpx;
  812. color: #CCB375;
  813. margin-top: 30rpx;
  814. .add-img {
  815. margin-right: 10rpx;
  816. width: 36rpx;
  817. height: 36rpx;
  818. }
  819. }
  820. .color {
  821. padding: 4rpx 8rpx;
  822. border-radius: 10rpx;
  823. color: white;
  824. display: inline-block;
  825. margin-left: 20rpx;
  826. font-size: 24rpx;
  827. }
  828. .loading-more {
  829. text-align: center;
  830. font-size: 28rpx;
  831. margin-bottom: 20rpx;
  832. color: #999;
  833. }
  834. </style>
  835. <style>
  836. page {
  837. background-color: #f6f9fc;
  838. }
  839. </style>