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.

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