Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

user.vue 21KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894
  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. <view class="more" @click="$util.navTo(`/subpackage/after-sale/activation-once-again/select-car?type=38`, true)">
  157. <text class="more-text">查看全部</text>
  158. <image :src="`${$imgUrl}myImage/wdexiayi.png`" class="arrow"></image>
  159. </view>
  160. </view>
  161. <view class="car-item" v-for="(item,index) in state.list">
  162. <image @click="carDetails(item)" :src="`${$imgUrl}myImage/car.png`" class="car-pic" mode="widthFix">
  163. </image>
  164. <view class="car-info" @click="carDetails(item)">
  165. <view class="car-no">
  166. <text class="no">{{item.vehiclePlate}}</text>
  167. <text class="color" :style="{ background: item.showColor}">{{item.color}}</text>
  168. </view>
  169. <view class="card-no" v-if="item.cardId">卡号:{{item.cardId}}</view>
  170. <view class="card-no" v-if="item.obuId">签号:{{item.obuId}}</view>
  171. </view>
  172. <view class="btn-unbind" @click="del(item.id)">解除绑定</view>
  173. </view>
  174. <view @click="$util.navTo('/subpackage/after-sale/blacklist-query/addCar', true)"
  175. class='add-related' :style="{'--bgimg':`url(${$imgUrl}myImage/guanlianbg.png)`}">
  176. <image :src="`${$imgUrl}myImage/guanlian.png`" class="add-img" mode="widthFix">
  177. </image>
  178. <text>增加未关联车辆</text>
  179. </view>
  180. </view>
  181. </view>
  182. </view>
  183. </view>
  184. </filter>
  185. </template>
  186. <!-- <view @click="$util.navTo('/subpackage/personal-center/setting/car-information/car-create', true)" -->
  187. <script lang="ts" setup>
  188. import { reactive } from "vue";
  189. import { msg, navTo } from "@/utils/utils";
  190. import { onMounted, ref } from "vue";
  191. import { getItem, StorageKeys } from "@/utils/storage";
  192. import navBar from "../../components/nav-bar/nav-bar2.vue";
  193. import { onLoad, onShow, onPageScroll } from "@dcloudio/uni-app";
  194. import {
  195. userInfoIndex, queryVehicleBind, vehicleUnBind, showEquityListApi,orderinfosumquery
  196. } from "@/utils/network/api.js";
  197. import {
  198. request,requestNew
  199. } from "@/utils/network/request.js";
  200. import filter from '@/components/filter/filter.vue';
  201. import { source } from "@/utils/network/difference";
  202. import { vehiclePlateColor, vehiclePlateColorPai, getVehiclePlateColorPaiShow } from "@/datas/vehiclePlateColor.js";
  203. const height = ref(null);
  204. const top = ref(null);
  205. const margin = ref(null);
  206. const mobile = ref(null);
  207. const scrollTop = ref(0);
  208. const isBack = ref(false);
  209. const state = reactive({
  210. data: {
  211. opId: "",
  212. },
  213. accountInfoVo: {
  214. nickName: '',
  215. mobile: '',
  216. userName:''
  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. console.log("state.data.opId",state.data.opId)
  251. mobile.value = getItem("mobile");
  252. });
  253. const carDetails = (item) => {
  254. const params = encodeURIComponent(JSON.stringify(item))
  255. uni.navigateTo({
  256. url: `/subpackage/personal-center/car-details?params=${params}`
  257. })
  258. }
  259. const goTrajectory = () => {
  260. if (state.isTrajectory) {
  261. uni.navigateTo({
  262. url: "/subpackage/personal-center/trajectory/trajectory"
  263. })
  264. } else {
  265. msg("暂无轨迹")
  266. }
  267. }
  268. //监听页面滚动
  269. onPageScroll((e) => {
  270. scrollTop.value = e.scrollTop;
  271. });
  272. onShow((option : any) => {
  273. state.data.opId = getItem(StorageKeys.OpenId);
  274. console.log("state.data.opId", state.data.opId)
  275. if (state.data.opId) {
  276. getUserInfo();
  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. method: "POST",
  307. showLoading: true,
  308. };
  309. //调用方式
  310. requestNew(queryVehicleBind, options).then((res) => {
  311. const data = res.result;
  312. for (var i = 0; i < data.length; i++) {
  313. for (var j = 0; j < vehiclePlateColorPai.length; j++) {
  314. if (data[i].vehiclePlateColor == vehiclePlateColorPai[j]['id']) {
  315. data[i].color = vehiclePlateColorPai[j]['color']
  316. data[i].showColor = vehiclePlateColorPai[j]['showColor']
  317. }
  318. }
  319. }
  320. state.carNumber = data.length
  321. state.list = data.slice(0, 5);
  322. console.log("state.list", state.list)
  323. })
  324. .catch((err) => {
  325. console.log('输出内容', err)
  326. });
  327. }
  328. const getUserInfo = () => {
  329. const options = {
  330. type: 2,
  331. data: {
  332. openId: state.data.opId
  333. },
  334. method: "POST",
  335. showLoading: true,
  336. };
  337. //调用方式
  338. requestNew(userInfoIndex, options)
  339. .then((res) => {
  340. console.log('用户信息', res)
  341. let data =res
  342. state.accountInfoVo =data.accountInfoVo;
  343. console.log('用户信息1', state.accountInfoVo,state.accountInfoVo.mobile)
  344. if (data.monthFlowingVo && data.monthFlowingVo != "{}") {
  345. state.monthFlowingVo = data.monthFlowingVo;
  346. state.isTrajectory = true;
  347. }
  348. console.log("获取用户信息", data);
  349. queryCarMsg();
  350. // 个人订单信息数据查询(待发货,待收货,待激活,退换货)
  351. orderinfosumqueryQ()
  352. })
  353. .catch((err) => {
  354. console.log(err);
  355. });
  356. }
  357. const del = (id) => {
  358. uni.showModal({
  359. title: '提示',
  360. content: '是否删除该条车辆信息',
  361. success: function (res) {
  362. if (res.confirm) {
  363. console.log('用户点击确定');
  364. const options = {
  365. type: 2,
  366. data: {
  367. id
  368. },
  369. method: "POST",
  370. showLoading: true,
  371. };
  372. requestNew(vehicleUnBind, options).then((res) => {
  373. const data = res;
  374. console.log(data)
  375. uni.showToast({
  376. title: "删除成功",
  377. icon: "none"
  378. })
  379. queryCarMsg();
  380. });
  381. } else if (res.cancel) {
  382. console.log('用户点击取消');
  383. }
  384. }
  385. });
  386. }
  387. const goOrder = (index) => {
  388. navTo(`../order/order?index=${index}`)
  389. }
  390. const goLogin = () => {
  391. if (!getItem('openId')) {
  392. uni.navigateTo({
  393. url: "/login/login"
  394. })
  395. }
  396. }
  397. const goEquity = () => {
  398. navTo('/subpackage/service/equityList/equityList')
  399. }
  400. const orderinfosumqueryQ = () => {
  401. const options = {
  402. type: 2,
  403. data: {},
  404. method: "POST",
  405. showLoading: true,
  406. };
  407. //调用方式
  408. requestNew(orderinfosumquery, options).then((res) => {
  409. console.log("orderinfosumquery", res)
  410. state.orderInfoSumQueryVo=res
  411. })
  412. .catch((err) => {
  413. console.log('输出内容', err)
  414. });
  415. }
  416. </script>
  417. <style>
  418. page {
  419. background: #eef7f7;
  420. }
  421. </style>
  422. <style scoped lang='scss'>
  423. .unlogin {
  424. filter: grayscale(100%);
  425. opacity: 0.7;
  426. }
  427. .bgVar {
  428. background-image: var(--bgimg);
  429. background-repeat: no-repeat;
  430. background-size: 100% 100%;
  431. }
  432. .wrapper {
  433. position: relative;
  434. background-color: #f6f9fc;
  435. }
  436. .bar {
  437. width: 100%;
  438. position: fixed;
  439. text-align: center;
  440. font-size: 32rpx;
  441. font-weight: bold;
  442. }
  443. .bg-head {
  444. width: 100%;
  445. position: absolute;
  446. z-index: 1;
  447. top: 0;
  448. left: 0;
  449. }
  450. .content {
  451. position: relative;
  452. display: flex;
  453. flex-direction: column;
  454. width: 100%;
  455. z-index: 2;
  456. }
  457. .head {
  458. display: flex;
  459. justify-content: space-between;
  460. align-items: center;
  461. width: 100%;
  462. box-sizing: border-box;
  463. padding: 40rpx 0 46rpx;
  464. }
  465. .head .avatar {
  466. display: flex;
  467. align-items: center;
  468. justify-content: space-between;
  469. }
  470. .head .avatar image {
  471. width: 141rpx;
  472. height: 141rpx;
  473. /* border-radius: 80rpx; */
  474. margin: 0 20rpx 0 30rpx;
  475. }
  476. .head .setting {
  477. display: flex;
  478. align-items: center;
  479. background: rgba(0, 179, 139, .1);
  480. border: 1px solid #fff;
  481. height: 60rpx;
  482. border-radius: 30rpx;
  483. padding: 0 34rpx;
  484. color: #fff;
  485. font-size: 28rpx;
  486. margin-right: 30rpx;
  487. }
  488. .head .setting image {
  489. width: 40rpx;
  490. height: 40rpx;
  491. margin-right: 6rpx;
  492. }
  493. .head .r-setting {
  494. width: 80rpx;
  495. height: 80rpx;
  496. background: #345061;
  497. display: flex;
  498. align-items: center;
  499. justify-content: center;
  500. border-radius: 50%;
  501. margin-right: 50rpx;
  502. .img {
  503. width: 40rpx;
  504. height: 39rpx;
  505. }
  506. }
  507. .head .nickname {
  508. font-size: 36rpx;
  509. color: #fff;
  510. }
  511. .head .user-id {
  512. font-size: 26rpx;
  513. color: #fff;
  514. padding-top: 20rpx;
  515. display: flex;
  516. align-items: center;
  517. }
  518. .head .btn-change {
  519. font-size: 22rpx;
  520. height: 40rpx;
  521. padding: 0 20rpx;
  522. border: 1px solid #fff;
  523. color: #fff;
  524. box-sizing: border-box;
  525. border-radius: 20rpx;
  526. margin-left: 16rpx;
  527. background: rgba(0, 179, 139, .1);
  528. }
  529. .my-equity {
  530. position: relative;
  531. z-index: 20;
  532. margin: 0 50rpx;
  533. background-image: var(--bgimg);
  534. background-repeat: no-repeat;
  535. background-size: 100% 100%;
  536. width: 650rpx;
  537. height: 94rpx;
  538. display: flex;
  539. align-items: center;
  540. justify-content: space-between;
  541. .l-con {
  542. margin-left: 30rpx;
  543. display: flex;
  544. align-items: center;
  545. .equity-icon {
  546. width: 54rpx;
  547. height: 54rpx;
  548. }
  549. .txt {
  550. font-family: NotoSansHans, NotoSansHans;
  551. font-size: 28rpx;
  552. color: #01253C;
  553. margin-left: 19rpx;
  554. }
  555. }
  556. .r-icon {
  557. margin-right: 30rpx;
  558. width: 32rpx;
  559. height: 32rpx;
  560. .r-img {
  561. width: 32rpx;
  562. height: 32rpx;
  563. }
  564. }
  565. }
  566. .info-content {
  567. transform: translateY(-10rpx);
  568. }
  569. .box .arrow {
  570. width: 10rpx;
  571. height: 18rpx;
  572. }
  573. .box {
  574. background: #ffffff;
  575. margin: 0 30rpx 30rpx;
  576. padding: 30rpx 20rpx;
  577. border-radius: 20rpx;
  578. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.9);
  579. }
  580. .box .more {
  581. display: flex;
  582. align-items: center;
  583. font-family: NotoSansHans, NotoSansHans;
  584. font-size: 24rpx;
  585. color: #004576;
  586. }
  587. .box .more .more-text {
  588. padding-right: 12rpx;
  589. }
  590. .box .right-head {
  591. display: flex;
  592. justify-content: space-between;
  593. }
  594. .box .right-head .tit {
  595. font-size: 32rpx;
  596. font-family: MicrosoftYaHei;
  597. }
  598. .rights .rights-items {
  599. display: flex;
  600. justify-content: space-evenly;
  601. padding: 30rpx 0;
  602. }
  603. .rights .item {
  604. display: flex;
  605. flex-direction: column;
  606. align-items: center;
  607. justify-content: center;
  608. }
  609. .rights .item .tit {
  610. font-size: 26rpx;
  611. color: #333;
  612. padding: 20rpx 0 10rpx 0;
  613. }
  614. .rights .item .sub-tit {
  615. font-size: 22rpx;
  616. color: #999;
  617. }
  618. .order .order-items {
  619. display: flex;
  620. justify-content: space-around;
  621. padding: 30rpx 0 10rpx;
  622. .rtop-badge {
  623. position: absolute;
  624. right: 0;
  625. width: 34rpx;
  626. height: 34rpx;
  627. top: 0;
  628. transform: translate(50%, -50%);
  629. line-height: 34rpx;
  630. text-align: center;
  631. font-family: SourceHanSansSC, SourceHanSansSC;
  632. font-weight: 400;
  633. font-size: 20rpx;
  634. color: #FFFFFF;
  635. }
  636. }
  637. .order .item {
  638. display: flex;
  639. flex-direction: column;
  640. align-items: center;
  641. justify-content: center;
  642. }
  643. .order .item .tit {
  644. font-size: 26rpx;
  645. color: #333;
  646. padding: 20rpx 0 10rpx 0;
  647. }
  648. .box .icon {
  649. width: 50rpx;
  650. height: 50rpx;
  651. }
  652. .go-through .pass {
  653. display: flex;
  654. flex-direction: column;
  655. }
  656. .go-through .total {
  657. display: flex;
  658. justify-content: space-between;
  659. font-size: 26rpx;
  660. color: #666;
  661. }
  662. .go-through .amount {
  663. display: flex;
  664. justify-content: space-between;
  665. align-items: center;
  666. font-family: NotoSansHans, NotoSansHans;
  667. font-size: 32rpx;
  668. color: #333333;
  669. font-weight: 400;
  670. }
  671. .go-through .line {
  672. display: flex;
  673. }
  674. .go-through .line1 {
  675. height: 14rpx;
  676. background: #005B9C;
  677. border-radius: 7rpx;
  678. }
  679. .go-through .line2 {
  680. height: 14rpx;
  681. background: #E5ECEF;
  682. border-radius: 7rpx;
  683. flex: 1;
  684. }
  685. .go-through .mileage {
  686. display: flex;
  687. justify-content: space-around;
  688. align-items: center;
  689. text-align: center;
  690. margin: 32rpx 0;
  691. .box-items {
  692. background-image: var(--bgimg);
  693. background-repeat: no-repeat;
  694. background-size: 100% 100%;
  695. padding: 20rpx 30rpx;
  696. .t-name {
  697. display: flex;
  698. .tongxing-icon {
  699. width: 29rpx;
  700. height: 29rpx;
  701. }
  702. .tit {
  703. font-size: 26rpx;
  704. color: #666666;
  705. line-height: 29rpx;
  706. margin-left: 5rpx;
  707. }
  708. }
  709. .b-info {
  710. padding-top: 20rpx;
  711. .val {
  712. font-size: 32rpx;
  713. color: #333333;
  714. }
  715. .unit {
  716. font-size: 24rpx;
  717. color: #666666;
  718. margin-left: 5rpx;
  719. }
  720. }
  721. }
  722. }
  723. .go-through .mileage .txt {
  724. display: flex;
  725. flex-direction: column;
  726. }
  727. .go-through .mileage .tit {
  728. font-size: 26rpx;
  729. color: #999;
  730. }
  731. .go-through .mileage .val {
  732. font-size: 28rpx;
  733. color: #333;
  734. margin-top: 16rpx;
  735. }
  736. .go-through .m-top {
  737. margin-top: 16rpx;
  738. }
  739. .go-through .detail {
  740. width: 100%;
  741. text-align: center;
  742. color: #00B38B;
  743. font-size: 24rpx;
  744. border-top: 1px solid #DCDCDC;
  745. padding-top: 24rpx;
  746. }
  747. .cars .car-item {
  748. display: flex;
  749. align-items: center;
  750. padding-top: 36rpx;
  751. }
  752. .cars .car-item .btn-unbind {
  753. font-weight: 400;
  754. border-radius: 30rpx;
  755. font-family: NotoSansHans, NotoSansHans;
  756. line-height:60rpx;
  757. text-align: center;
  758. font-size: 24rpx;
  759. width: 130rpx;
  760. height: 60rpx;
  761. background: #004372;
  762. color: #fff;
  763. margin-bottom: 10rpx;
  764. }
  765. .cars .car-pic {
  766. width: 120rpx;
  767. height: 110rpx;
  768. margin-right: 20rpx;
  769. }
  770. .cars .car-info {
  771. display: flex;
  772. flex-direction: column;
  773. color: #999;
  774. font-size: 22rpx;
  775. width: 56%;
  776. }
  777. .cars .car-no {
  778. font-size: 30rpx;
  779. color: #333;
  780. }
  781. .cars .card-no {
  782. margin-top: 10rpx;
  783. font-size: 22rpx;
  784. color: #999999;
  785. }
  786. .cars .add-related {
  787. background-image: var(--bgimg);
  788. background-repeat: no-repeat;
  789. background-size: 100% 100%;
  790. height: 80rpx;
  791. display: flex;
  792. align-items: center;
  793. justify-content: center;
  794. font-family: NotoSansHans, NotoSansHans;
  795. font-weight: 400;
  796. font-size: 26rpx;
  797. color: #CCB375;
  798. margin-top: 30rpx;
  799. .add-img {
  800. margin-right: 10rpx;
  801. width: 36rpx;
  802. height: 36rpx;
  803. }
  804. }
  805. .color {
  806. padding: 4rpx 8rpx;
  807. border-radius: 10rpx;
  808. color: white;
  809. display: inline-block;
  810. margin-left: 20rpx;
  811. font-size: 24rpx;
  812. }
  813. .loading-more {
  814. text-align: center;
  815. font-size: 28rpx;
  816. margin-bottom: 20rpx;
  817. color: #999;
  818. }
  819. </style>
  820. <style>
  821. page {
  822. background-color: #f6f9fc;
  823. }
  824. </style>