選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

user.vue 20KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832
  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. </image>
  13. <view v-if="!state.data.opId" class="name" @click="$util.navTo('/login/login')">
  14. <view class="nickname">登录/注册</view>
  15. </view>
  16. <view v-else class="name">
  17. <view class="nickname">{{state.accountInfoVo.nickName}}</view>
  18. <view class="user-id">
  19. <view class="phone">{{state.accountInfoVo.mobile}}</view>
  20. <view @click="$util.navTo('/subpackage/personal-center/setting/change-phone', true)"
  21. class="btn-change">已关联</view>
  22. </view>
  23. </view>
  24. </view>
  25. <view class="setting" @click="$util.navTo('/subpackage/personal-center/setting/setting', true)">
  26. <!-- <image :src="`${$imgUrl}user/icon-setting.png`"></image> -->
  27. <text>签到</text>
  28. </view>
  29. </view>
  30. <view class="panel-box">
  31. <view class="panel">
  32. <view class="panel-item"
  33. @click="$util.navTo('/subpackage/personal-center/vehicle-information', true)">
  34. <view class="panel-text"><text class="num"
  35. v-if="state.carNumber">{{state.carNumber}}</text><text class="num"
  36. v-else>0</text><text class="txt">辆</text></view>
  37. <text class="type">车辆</text>
  38. </view>
  39. <!-- <view class="panel-item" @click="$util.navTo('/subpackage/personal-center/vehicle-information', true)">
  40. <view class="panel-text"><text class="num">{{state.userVehicleInfoSumQueryVo.vehicleSum}}</text><text class="txt">辆</text></view>
  41. <text class="type">车辆</text>
  42. </view> -->
  43. <view class="panel-item">
  44. <text class="num">{{state.userVehicleInfoSumQueryVo.orderStatus0}}</text>
  45. <text class="type">待办</text>
  46. </view>
  47. <view class="panel-item">
  48. <view class="panel-text"><text class="num">2</text><text class="txt">张</text></view>
  49. <text class="type">卡券</text>
  50. </view>
  51. <view class="panel-item">
  52. <view class="panel-text"><text class="num">2555</text><text class="txt">分</text></view>
  53. <text class="type">积分</text>
  54. </view>
  55. </view>
  56. <view class="notice">
  57. <image :src="`${$imgUrl}user/icon-tips.png`" class="icon-notice" mode="aspectFill"></image>
  58. <view class="notice-content">您有一笔成功交易,点击查看详情</view>
  59. </view>
  60. </view>
  61. <view class="rights box" v-if="false">
  62. <view class="right-head">
  63. <view class="tit">我的权益</view>
  64. <view class="more">
  65. <text class="more-text">查看全部</text>
  66. <image :src="`${$imgUrl}user/icon-arrow.png`" class="arrow"></image>
  67. </view>
  68. </view>
  69. <view class="rights-items">
  70. <view class="item">
  71. <image :src="`${$imgUrl}user/icon-car-2.png`" class="icon"></image>
  72. <text class="tit">我的通行</text>
  73. <text class="sub-tit">查询账单、轨迹</text>
  74. </view>
  75. <view class="item">
  76. <image :src="`${$imgUrl}user/icon-door.png`" class="icon"></image>
  77. <text class="tit">上门服务</text>
  78. <text class="sub-tit">8折优惠</text>
  79. </view>
  80. <view class="item">
  81. <image :src="`${$imgUrl}user/icon-obu.png`" class="icon"></image>
  82. <text class="tit">设备险</text>
  83. <text class="sub-tit">享50元更换</text>
  84. </view>
  85. <view class="item">
  86. <image :src="`${$imgUrl}user/icon-bao.png`" class="icon"></image>
  87. <text class="tit">微保驾乘险</text>
  88. <text class="sub-tit">最高享20万</text>
  89. </view>
  90. </view>
  91. </view>
  92. <view class="order box">
  93. <view class="right-head">
  94. <view class="tit">我的订单</view>
  95. <view class="more" @click="goOrder(0)">
  96. <text class="more-text">查看全部</text>
  97. <image :src="`${$imgUrl}user/icon-arrow.png`" class="arrow"></image>
  98. </view>
  99. </view>
  100. <view class="order-items">
  101. <view class="item" @click="goOrder(1)">
  102. <image :src="`${$imgUrl}user/icon-daifahuo.png`" class="icon"></image>
  103. <text class="tit">待发货</text>
  104. </view>
  105. <view class="item" @click="goOrder(2)">
  106. <image :src="`${$imgUrl}user/icon-daishouhuo.png`" class="icon"></image>
  107. <text class="tit">待收货</text>
  108. </view>
  109. <view class="item" @click="goOrder(3)">
  110. <image :src="`${$imgUrl}user/icon-daijihuo.png`" class="icon"></image>
  111. <text class="tit">待激活</text>
  112. </view>
  113. <view class="item" @click="goOrder(4)">
  114. <image :src="`${$imgUrl}user/icon-tuihuanhuo.png`" class="icon"></image>
  115. <text class="tit">退换货/退款</text>
  116. </view>
  117. </view>
  118. </view>
  119. <view class="go-through box">
  120. <view class="right-head">
  121. <view class="tit">本月通行</view>
  122. </view>
  123. <view class="pass">
  124. <view class="total m-top">
  125. <text>通行消费</text>
  126. <text>总消费</text>
  127. </view>
  128. <view class="amount m-top">
  129. <text>¥
  130. {{(state.monthFlowingVo.flowingNum ? state.monthFlowingVo.flowingNum : 0) /100}}</text>
  131. <text>¥
  132. {{(state.monthFlowingVo.flowingNum ? state.monthFlowingVo.flowingNum : 0)/100}}</text>
  133. </view>
  134. <view class="line m-top">
  135. <view class="line1"
  136. :style="{width: (state.monthFlowingVo.flowingNum ? state.monthFlowingVo.flowingNum : 0)*100/state.monthFlowingVo.money+'%'}">
  137. </view>
  138. <view class="line2"></view>
  139. </view>
  140. <view class="mileage">
  141. <view class="txt">
  142. <text class="tit">通行里程</text>
  143. <text class="val">{{state.monthFlowingVo.mileage}}km</text>
  144. </view>
  145. <view class="txt">
  146. <text class="tit">通行时长</text>
  147. <text class="val">{{state.monthFlowingVo.duration}}</text>
  148. </view>
  149. <view class="txt">
  150. <text class="tit ">通行次数</text>
  151. <text class="val">{{state.monthFlowingVo.num}}次</text>
  152. </view>
  153. </view>
  154. <view class="detail" @click="goTrajectory()">查看通行轨迹
  155. </view>
  156. </view>
  157. </view>
  158. <view class="cars box">
  159. <view class="right-head">
  160. <view class="tit">我的车辆</view>
  161. <view class="more"
  162. @click="$util.navTo('/subpackage/personal-center/vehicle-information', true)">
  163. <text class="more-text">查看全部</text>
  164. <image :src="`${$imgUrl}user/icon-arrow.png`" class="arrow"></image>
  165. </view>
  166. </view>
  167. <view class="car-item" v-for="(item,index) in state.list">
  168. <image :src="`${$imgUrl}che.png`" class="car-pic"></image>
  169. <view class="car-info">
  170. <view class="car-no"><text class="no">{{item.vehiclePlate}}</text><text class="color">{{item.color}}</text></view>
  171. <view class="card-no">卡号:{{item.cardId}}</view>
  172. <view class="card-no">签号:{{item.obuId}}</view>
  173. </view>
  174. <view class="btn-unbind" @click="del(item.vehicleId)">解除绑定</view>
  175. </view>
  176. <view class="sub-bind">
  177. <view class="item-tit">
  178. <image :src="`${$imgUrl}user/icon-car-3.png`" class="icon icon-2"></image>
  179. <text>我要关联车辆</text>
  180. </view>
  181. <view class="right-arrow"
  182. @click="$util.navTo('/subpackage/personal-center/setting/car-information/car-create', true)">
  183. <view class="sub-tit">增加未关联车辆</view>
  184. <image :src="`${$imgUrl}user/icon-arrow.png`" class="arrow"></image>
  185. </view>
  186. </view>
  187. </view>
  188. <view class="menu">
  189. <view class="item" @click="$util.navTo('/subpackage/personal-center/setting/setting', true)">
  190. <view class="item-tit">
  191. <image :src="`${$imgUrl}user/icon-setting.png`" class="icon icon-2"></image>
  192. <text>设置与资料管理</text>
  193. </view>
  194. <view class="right-arrow">
  195. <view class="sub-tit">隐私、密码管理</view>
  196. <image :src="`${$imgUrl}user/icon-arrow.png`" class="arrow"></image>
  197. </view>
  198. </view>
  199. </view>
  200. </view>
  201. </view>
  202. </filter>
  203. </template>
  204. <script lang="ts" setup>
  205. import { reactive } from "vue";
  206. import { msg, navTo } from "@/utils/utils";
  207. import { onMounted, ref } from "vue";
  208. import { getItem, StorageKeys } from "@/utils/storage";
  209. import navBar from "../../components/nav-bar/nav-bar2.vue";
  210. import { onLoad, onShow, onPageScroll } from "@dcloudio/uni-app";
  211. import {
  212. userInfoIndex, selectCarInfo, delCarInfo
  213. } from "@/utils/network/api.js";
  214. import {
  215. request
  216. } from "@/utils/network/request.js";
  217. import {
  218. stringToJson
  219. } from "@/utils/network/encryption.js";
  220. import filter from '@/components/filter/filter.vue';
  221. import { vehiclePlateColor, vehiclePlateColorPai} from "@/datas/vehiclePlateColor.js";
  222. const height = ref(null);
  223. const top = ref(null);
  224. const margin = ref(null);
  225. const mobile = ref(null);
  226. const scrollTop = ref(0);
  227. const isBack = ref(false);
  228. const state = reactive({
  229. data: {
  230. opId: "",
  231. },
  232. accountInfoVo: {
  233. nickName:'',
  234. mobile: ''
  235. },
  236. monthFlowingVo: {
  237. duration: 0,
  238. mileage: 0,
  239. flowingNum: 0,
  240. num: 0,
  241. parkingLotMoney: 0,
  242. parkingLotNum: 0,
  243. money: 0,
  244. },
  245. list: '', //车辆信息
  246. carNumber: '',//车辆数量
  247. userVehicleInfoSumQueryVo: {
  248. vehicleSum: 0,
  249. orderStatus0: 0
  250. },//车数量 ,代办数量
  251. isTrajectory:false, //是否有轨迹
  252. });
  253. onMounted(() => {
  254. const res = uni.getMenuButtonBoundingClientRect();
  255. height.value = res.height + "px";
  256. top.value = res.top + "px";
  257. margin.value = res.height + res.top;
  258. });
  259. onLoad((option : any) => {
  260. state.data.opId = getItem(StorageKeys.OpenId);
  261. mobile.value = getItem("mobile");
  262. });
  263. const goTrajectory=()=>{
  264. if(state.isTrajectory){
  265. uni.navigateTo({
  266. url:"/subpackage/personal-center/trajectory/trajectory"
  267. })
  268. }else{
  269. msg("暂无轨迹")
  270. }
  271. }
  272. //监听页面滚动
  273. onPageScroll((e) => {
  274. scrollTop.value = e.scrollTop;
  275. });
  276. onShow((option : any) => {
  277. state.data.opId = getItem(StorageKeys.OpenId);
  278. if (state.data.opId) {
  279. getUserInfo();
  280. }
  281. });
  282. // 查询车辆信息
  283. const queryCarMsg = () => {
  284. const options = {
  285. type: 2,
  286. data: {
  287. "openId": getItem('openId')
  288. },
  289. method: "POST",
  290. showLoading: true,
  291. };
  292. //调用方式
  293. request(selectCarInfo, options).then((res) => {
  294. const data = (stringToJson(res.bizContent).vehicleManages)
  295. for (var i = 0; i < data.length; i++) {
  296. for (var j = 0; j < vehiclePlateColorPai.length; j++) {
  297. if (data[i].vehiclePlateColor == vehiclePlateColorPai[j]['id']) {
  298. data[i].color = vehiclePlateColorPai[j]['color']
  299. }
  300. }
  301. }
  302. state.list = data;
  303. state.carNumber = data.length
  304. console.log("state.list", state.list)
  305. })
  306. .catch((err) => {
  307. console.log('输出内容', err)
  308. });
  309. }
  310. const getUserInfo = () => {
  311. const options = {
  312. type: 2,
  313. data: {
  314. openId: state.data.opId
  315. },
  316. method: "POST",
  317. // showLoading: true,
  318. };
  319. //调用方式
  320. request(userInfoIndex, options)
  321. .then((res) => {
  322. console.log('用户信息', res)
  323. let data = stringToJson(res.bizContent)
  324. state.accountInfoVo = data.accountInfoVo;
  325. if(data.monthFlowingVo && JSON.stringify(data.monthFlowingVo) != "{}"){
  326. state.monthFlowingVo = data.monthFlowingVo;
  327. state.isTrajectory=true;
  328. }
  329. state.userVehicleInfoSumQueryVo.vehicleSum = JSON.parse(JSON.stringify(data.userVehicleInfoSumQueryVo)).vehicleSum;
  330. state.userVehicleInfoSumQueryVo.orderStatus0 = JSON.parse(JSON.stringify(data.userVehicleInfoSumQueryVo)).orderStatus0;
  331. console.log("获取用户信息", data);
  332. queryCarMsg();
  333. })
  334. .catch((err) => {
  335. console.log(err);
  336. });
  337. }
  338. const del = (id) => {
  339. wx.showModal({
  340. title: '提示',
  341. content: '是否删除该条车辆信息',
  342. success: function (res) {
  343. if (res.confirm) {
  344. console.log('用户点击确定');
  345. let data = {
  346. vehicleId: id,
  347. openId: getItem('openId')
  348. }
  349. const options = {
  350. type: 2,
  351. data: data,
  352. method: "POST",
  353. showLoading: true,
  354. };
  355. request(delCarInfo, options).then((res) => {
  356. const data = stringToJson(res.bizContent);
  357. console.log(data)
  358. state.list = data.vehicleManages
  359. if (data.info == '成功.') {
  360. uni.showToast({
  361. title: "删除成功",
  362. icon: "none"
  363. })
  364. queryCarMsg();
  365. }
  366. });
  367. } else if (res.cancel) {
  368. console.log('用户点击取消');
  369. }
  370. }
  371. });
  372. }
  373. const goOrder=(index)=>{
  374. uni.reLaunch({
  375. url:`../order/order?index=${index}`
  376. })
  377. }
  378. </script>
  379. <style>
  380. page {
  381. background: #eef7f7;
  382. }
  383. </style>
  384. <style scoped>
  385. .unlogin {
  386. filter: grayscale(100%);
  387. opacity: 0.7;
  388. }
  389. .wrapper {
  390. position: relative;
  391. background: #fff;
  392. }
  393. .bar {
  394. width: 100%;
  395. position: fixed;
  396. text-align: center;
  397. font-size: 32rpx;
  398. font-weight: bold;
  399. }
  400. .bg-head {
  401. width: 100%;
  402. position: absolute;
  403. z-index: -99;
  404. top: 0;
  405. left: 0;
  406. }
  407. .content {
  408. position: absolute;
  409. display: flex;
  410. flex-direction: column;
  411. width: 100%;
  412. }
  413. .head {
  414. display: flex;
  415. justify-content: space-between;
  416. align-items: center;
  417. width: 100%;
  418. box-sizing: border-box;
  419. padding: 40rpx 0 46rpx;
  420. }
  421. .head .avatar {
  422. display: flex;
  423. align-items: center;
  424. }
  425. .head .avatar image {
  426. width: 120rpx;
  427. height: 120rpx;
  428. border-radius: 80rpx;
  429. border: 12rpx solid rgba(255, 255, 255, 0.5);
  430. margin: 0 20rpx 0 30rpx;
  431. }
  432. .head .setting {
  433. display: flex;
  434. align-items: center;
  435. background: rgba(0, 179, 139, .1);
  436. border: 1px solid #fff;
  437. height: 60rpx;
  438. border-radius: 30rpx;
  439. padding: 0 34rpx;
  440. color: #fff;
  441. font-size: 28rpx;
  442. margin-right: 30rpx;
  443. }
  444. .head .setting image {
  445. width: 40rpx;
  446. height: 40rpx;
  447. margin-right: 6rpx;
  448. }
  449. .head .nickname {
  450. font-size: 36rpx;
  451. color: #000000;
  452. }
  453. .head .user-id {
  454. font-size: 26rpx;
  455. color: #000000;
  456. padding-top: 30rpx;
  457. display: flex;
  458. align-items: center;
  459. }
  460. .head .btn-change {
  461. font-size: 22rpx;
  462. height: 40rpx;
  463. padding: 0 20rpx;
  464. border: 1px solid #fff;
  465. color: #fff;
  466. box-sizing: border-box;
  467. border-radius: 20rpx;
  468. margin-left: 16rpx;
  469. background: rgba(0, 179, 139, .1);
  470. }
  471. .panel-box {
  472. display: flex;
  473. flex-direction: column;
  474. background: #fff;
  475. margin: 0 30rpx 30rpx;
  476. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  477. border-radius: 20rpx;
  478. padding: 30rpx 0;
  479. }
  480. .panel {
  481. display: flex;
  482. justify-content: space-evenly;
  483. padding: 30rpx 0;
  484. }
  485. .panel-item {
  486. display: flex;
  487. flex-direction: column;
  488. justify-content: center;
  489. align-items: center;
  490. font-size: 32rpx;
  491. }
  492. .panel-item .num {
  493. font-weight: bold;
  494. color: #454545;
  495. }
  496. .panel-item .txt {
  497. font-size: 26rpx;
  498. }
  499. .panel-item .type {
  500. color: #999;
  501. font-size: 26rpx;
  502. padding: 14rpx 0;
  503. }
  504. .panel-box .icon-notice {
  505. width: 48rpx;
  506. height: 48rpx;
  507. }
  508. .panel-box .notice {
  509. display: flex;
  510. font-size: 32rpx;
  511. margin: 0 30rpx;
  512. align-items: center;
  513. background: #f3f3f3;
  514. border-radius: 10rpx;
  515. padding: 0 14rpx;
  516. }
  517. .panel-box .notice .notice-content {
  518. height: 68rpx;
  519. line-height: 68rpx;
  520. padding: 0 12rpx;
  521. font-size: 28rpx;
  522. }
  523. .box .arrow {
  524. width: 14rpx;
  525. height: 26rpx;
  526. }
  527. .box {
  528. background: #ffffff;
  529. margin: 0 30rpx 30rpx;
  530. padding: 30rpx;
  531. border-radius: 20rpx;
  532. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  533. }
  534. .box .more {
  535. display: flex;
  536. font-size: 26rpx;
  537. color: #808080;
  538. align-items: center;
  539. }
  540. .box .more .more-text {
  541. padding-right: 12rpx;
  542. }
  543. .box .right-head {
  544. display: flex;
  545. justify-content: space-between;
  546. }
  547. .box .right-head .tit {
  548. font-size: 32rpx;
  549. /* font-weight: bold; */
  550. }
  551. .rights .rights-items {
  552. display: flex;
  553. justify-content: space-evenly;
  554. padding: 30rpx 0;
  555. }
  556. .rights .item {
  557. display: flex;
  558. flex-direction: column;
  559. align-items: center;
  560. justify-content: center;
  561. }
  562. .rights .item .tit {
  563. font-size: 26rpx;
  564. color: #333;
  565. padding: 20rpx 0 10rpx 0;
  566. }
  567. .rights .item .sub-tit {
  568. font-size: 22rpx;
  569. color: #999;
  570. }
  571. .order .order-items {
  572. display: flex;
  573. justify-content: space-around;
  574. padding: 30rpx 0;
  575. }
  576. .order .item {
  577. display: flex;
  578. flex-direction: column;
  579. align-items: center;
  580. justify-content: center;
  581. }
  582. .order .item .tit {
  583. font-size: 26rpx;
  584. color: #333;
  585. padding: 20rpx 0 10rpx 0;
  586. }
  587. .box .icon {
  588. width: 56rpx;
  589. height: 56rpx;
  590. }
  591. .go-through .pass {
  592. display: flex;
  593. flex-direction: column;
  594. }
  595. .go-through .total {
  596. display: flex;
  597. justify-content: space-between;
  598. font-size: 26rpx;
  599. color: #999;
  600. }
  601. .go-through .amount {
  602. display: flex;
  603. justify-content: space-between;
  604. align-items: center;
  605. font-size: 28rpx;
  606. color: #333;
  607. }
  608. .go-through .line {
  609. display: flex;
  610. }
  611. .go-through .line1 {
  612. height: 8rpx;
  613. background: #00B38B;
  614. border-radius: 4rpx;
  615. }
  616. .go-through .line2 {
  617. height: 8rpx;
  618. background: #F1F1F1;
  619. border-radius: 0 4rpx 4rpx 0;
  620. flex: 1;
  621. }
  622. .go-through .mileage {
  623. display: flex;
  624. justify-content: space-evenly;
  625. align-items: center;
  626. text-align: center;
  627. margin: 32rpx 0;
  628. }
  629. .go-through .mileage .txt {
  630. display: flex;
  631. flex-direction: column;
  632. }
  633. .go-through .mileage .tit {
  634. font-size: 26rpx;
  635. color: #999;
  636. }
  637. .go-through .mileage .val {
  638. font-size: 28rpx;
  639. color: #333;
  640. margin-top: 16rpx;
  641. }
  642. .go-through .m-top {
  643. margin-top: 16rpx;
  644. }
  645. .go-through .detail {
  646. width: 100%;
  647. text-align: center;
  648. color: #00B38B;
  649. font-size: 24rpx;
  650. border-top: 1px solid #DCDCDC;
  651. padding-top: 24rpx;
  652. }
  653. .cars .car-item {
  654. display: flex;
  655. align-items: center;
  656. padding: 36rpx 0;
  657. }
  658. .cars .car-item .btn-unbind {
  659. border: 1px solid #00B38B;
  660. border-radius: 30rpx;
  661. height: 60rpx;
  662. box-sizing: border-box;
  663. line-height: 60rpx;
  664. font-size: 24rpx;
  665. padding: 0 20rpx;
  666. background: rgba(0, 179, 139, .1);
  667. color: #00B38B;
  668. }
  669. .cars .car-pic {
  670. width: 120rpx;
  671. height: 120rpx;
  672. margin-right: 12rpx;
  673. }
  674. .cars .car-info {
  675. display: flex;
  676. flex-direction: column;
  677. flex: 1;
  678. color: #999;
  679. font-size: 22rpx;
  680. }
  681. .cars .car-no {
  682. font-size: 30rpx;
  683. color: #333;
  684. }
  685. .cars .card-no {
  686. margin-top: 14rpx;
  687. }
  688. .cars .sub-bind {
  689. display: flex;
  690. align-items: center;
  691. justify-content: space-between;
  692. border-top: 1px solid #F1F1F1;
  693. padding-top: 20rpx;
  694. }
  695. .cars .sub-bind .item-tit {
  696. display: flex;
  697. align-items: center;
  698. font-size: 26rpx;
  699. color: #333;
  700. }
  701. .cars .sub-bind .right-arrow {
  702. font-size: 22rpx;
  703. color: #ccc;
  704. display: flex;
  705. justify-content: center;
  706. align-items: center;
  707. }
  708. .cars .sub-bind .sub-tit {
  709. padding-right: 20rpx;
  710. }
  711. .menu {
  712. background: #ffffff;
  713. /* border-radius: 30rpx 30rpx 0 0; */
  714. padding: 0 30rpx;
  715. margin: 0 30rpx 30rpx;
  716. border-radius: 20rpx;
  717. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  718. }
  719. .menu .arrow {
  720. width: 14rpx;
  721. height: 26rpx;
  722. }
  723. .menu .icon {
  724. width: 48rpx;
  725. height: 48rpx;
  726. margin-right: 10rpx;
  727. }
  728. .menu .item {
  729. display: flex;
  730. justify-content: space-between;
  731. align-items: center;
  732. /* border-bottom: 1px solid #dcdcdc; */
  733. padding: 20rpx 0;
  734. }
  735. .menu .item:first-child {
  736. margin-top: 10rpx;
  737. }
  738. .menu .item-tit {
  739. display: flex;
  740. align-items: center;
  741. font-size: 26rpx;
  742. color: #333;
  743. }
  744. .menu .right-arrow {
  745. font-size: 22rpx;
  746. color: #ccc;
  747. display: flex;
  748. justify-content: center;
  749. align-items: center;
  750. }
  751. .menu .sub-tit {
  752. padding-right: 20rpx;
  753. }
  754. .color{
  755. padding: 4rpx 8rpx;
  756. border-radius: 10rpx;
  757. color: white;
  758. background-color: rgb(6, 112, 255);
  759. display: inline-block;
  760. margin-left: 20rpx;
  761. font-size: 24rpx;
  762. }
  763. </style>