index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916
  1. <template>
  2. <view class="pageBox">
  3. <view class="userOff" v-if="actionCartItem">
  4. <view class="navBox">
  5. <view class="flex topIconBox">
  6. <image @click="navTo('/pages/index/shopTab?type=1')" class="topIcon"
  7. src="../../../static/images/controller_witchShop.png" mode="widthFix"></image>
  8. <view v-if="actionCartItem" class="clamp padding-l-10 padding-r-10">
  9. {{actionCartItem.car_name||''}}
  10. </view>
  11. <image @click="navTo('/pages/index/notice')" class="topIcon"
  12. src="../../../static/images/controller_witchMessage.png" mode="widthFix">
  13. </image>
  14. <view class="topIconNum flex" v-if="notify>0">
  15. <text>
  16. {{notify}}
  17. </text>
  18. </view>
  19. </view>
  20. </view>
  21. <view class="actionBox">
  22. <image class="cartImg" :src="actionCartItem.image" mode="aspectFit"></image>
  23. <view class="timeBox" v-if="actionCartItem.day>0">
  24. <view style="border-radius: 20rpx;"
  25. class="rowContentBox flexCenter lineBorder padding-l-20 padding-r-20 padding-t-10 padding-b-10">
  26. <view class="tipMen"></view>
  27. <view class="dayBox" v-if="actionCartItem.car_operate">
  28. <view>
  29. {{actionCartItem.day}}
  30. </view>
  31. <view class="oldDay margin-t-10">
  32. 剩余天数
  33. </view>
  34. </view>
  35. <view class="dayBox" v-else>
  36. <view class="oldDay margin-t-10 font-color-red">
  37. 已欠费
  38. </view>
  39. </view>
  40. </view>
  41. </view>
  42. </view>
  43. <view class="content">
  44. <view class="contentButtom flexCenter">
  45. <view class="buttomBox flex">
  46. <view class="leftBox">
  47. <view class="buttom buttomLg ">
  48. <view @click="authSet" class="rowContentBox flexCenter lineBorder">
  49. <view class="tipMen"></view>
  50. <view class="centerTextBox">
  51. <view>
  52. <image class="tipIcon" src="../../../static/images/controller_shouquan.png"
  53. mode="aspectFit"></image>
  54. </view>
  55. <view class="margin-t-10">
  56. 授权
  57. </view>
  58. </view>
  59. </view>
  60. <view class="rightPaddingBg">
  61. </view>
  62. <view class="buttomPaddingBg">
  63. </view>
  64. </view>
  65. <view class="leftCenterButtom buttom" @click="navTo('/pages/user/money/recharge')">
  66. <view class="rowContentBox flexCenter lineBorder">
  67. <view class="tipMen"></view>
  68. <view>
  69. <view>
  70. </view>
  71. <view>
  72. </view>
  73. </view>
  74. </view>
  75. <view class="topBageBg"></view>
  76. <view class="bottomBageBg"></view>
  77. </view>
  78. <view class="buttomLg buttom">
  79. <view @click="navTo('/pages/user/reportForRepair/Report?id='+actionCartItem.car_number)"
  80. class="rowContentBox flexCenter lineBorder">
  81. <view class="tipMen"></view>
  82. <view class="centerTextBox">
  83. <view>
  84. <image class="tipIcon" src="../../../static/images/controller_baoxiu.png"
  85. mode="aspectFit"></image>
  86. </view>
  87. <view class="margin-t-10">
  88. 报修
  89. </view>
  90. </view>
  91. </view>
  92. <view class="topPaddingBg"></view>
  93. <view class="rightPaddingBg"></view>
  94. </view>
  95. </view>
  96. <view class="centerBgBox">
  97. <view class="centerBg lineBorder borderRadiusAll">
  98. <view class="borTopHide"></view>
  99. <view class="borBottomHide"></view>
  100. </view>
  101. <view class="bgGray borderRadiusAll"></view>
  102. <view class="contentOrg borderRadiusAll">
  103. <view class="contentOrgBg borderRadiusAll centerBox lineBorder2 flexCenter">
  104. <view class="centerBoxJb borderRadiusAll lineBorder2">
  105. <view class="boxBgJb borderRadiusAll flexCenter">
  106. <view class="flex-center">
  107. <view class="iconButtomBox borderRadiusAll flexCenter"
  108. :class="{greedBg:actionCartItem.status==1||actionCartItem.status==3||actionCartItem.status==4}"
  109. @click="tabCarStatus('tab',actionCartItem)">
  110. <view class="mr borderRadiusAll "></view>
  111. <view class="iconButtomJb">
  112. <view>
  113. <image class="img"
  114. src="../../../static/images/controller_qidong.png"
  115. mode="aspectFit"></image>
  116. </view>
  117. <view class="margin-t-10"
  118. v-if="actionCartItem.status==1||actionCartItem.status==3||actionCartItem.status==4">
  119. 启动
  120. </view>
  121. <view class="margin-t-10" v-else>
  122. 关闭
  123. </view>
  124. </view>
  125. </view>
  126. </view>
  127. </view>
  128. </view>
  129. <view class="line left"></view>
  130. <view class="line right"></view>
  131. <view @click="alertCartList" class="topButtomTipBox posbuttom flexCenter">
  132. <view class="centerTextBox">
  133. <view>
  134. <image class="tipIcon"
  135. src="../../../static/images/controller_huanche.png"
  136. mode="aspectFit"></image>
  137. </view>
  138. <view class="margin-t-10">
  139. 换车
  140. </view>
  141. </view>
  142. </view>
  143. <view class="rightButtomTipBox posbuttom flexCenter"
  144. @click="tabCarStatus('seek',actionCartItem)">
  145. <view class="centerTextBox">
  146. <view>
  147. <image class="tipIcon"
  148. src="../../../static/images/controller_xunche.png" mode="aspectFit">
  149. </image>
  150. </view>
  151. <view class="margin-t-10">
  152. 寻车
  153. </view>
  154. </view>
  155. </view>
  156. <view
  157. @click="openMap(actionCartItem.cartInfo.latitude,actionCartItem.cartInfo.longitude)"
  158. class="bottomButtomTipBox posbuttom flexCenter">
  159. <view class="centerTextBox">
  160. <view>
  161. <image class="tipIcon"
  162. src="../../../static/images/controller_dingwei.png"
  163. mode="aspectFit"></image>
  164. </view>
  165. <view class="margin-t-10">
  166. 定位
  167. </view>
  168. </view>
  169. </view>
  170. <view class="leftButtomTipBox posbuttom flexCenter"
  171. @click="tabCarStatus('unlock',actionCartItem)">
  172. <view class="centerTextBox">
  173. <view>
  174. <image class="tipIcon"
  175. src="../../../static/images/controller_kaisuo.png" mode="aspectFit">
  176. </image>
  177. </view>
  178. <view class="margin-t-10">
  179. 开座垫
  180. </view>
  181. </view>
  182. </view>
  183. </view>
  184. </view>
  185. </view>
  186. <view class="rightBox">
  187. <view class="rightButtom buttom flex">
  188. <view class="centerTextBox">
  189. <view>
  190. {{actionCartItem.bfb||0}}%
  191. </view>
  192. <view>
  193. <image class="tipIcon" src="../../../static/images/controller_dianchi.png"
  194. mode="aspectFit"></image>
  195. </view>
  196. </view>
  197. <view class="rightElectric flexCenter">
  198. <view class="electric" :class="{greedBg:actionCartItem.bfb>91}"></view>
  199. <view class="electric" :class="{greedBg:actionCartItem.bfb>83}"></view>
  200. <view class="electric" :class="{greedBg:actionCartItem.bfb>75}"></view>
  201. <view class="electric" :class="{greedBg:actionCartItem.bfb>66}"></view>
  202. <view class="electric" :class="{yellowBg:actionCartItem.bfb>58}"></view>
  203. <view class="electric" :class="{yellowBg:actionCartItem.bfb>50}"></view>
  204. <view class="electric" :class="{yellowBg:actionCartItem.bfb>41}"></view>
  205. <view class="electric" :class="{yellowBg:actionCartItem.bfb>33}"></view>
  206. <view class="electric" :class="{redGb:actionCartItem.bfb>24}"></view>
  207. <view class="electric" :class="{redGb:actionCartItem.bfb>16}"></view>
  208. <view class="electric" :class="{redGb:actionCartItem.bfb>8}"></view>
  209. <view class="electric" :class="{redGb:actionCartItem.bfb>0}"></view>
  210. </view>
  211. </view>
  212. <view class=" buttomLg buttom"
  213. @click="navTo('/pages/index/route?id='+actionCartItem.car_number)">
  214. <view class="topBageBg"></view>
  215. <view class="rowContentBox flexCenter lineBorder">
  216. <view class="tipMen"></view>
  217. <view class="centerTextBox margin-l-40 padding-l-30">
  218. <view>
  219. <image class="tipIcon" src="../../../static/images/controller_xincheng.png"
  220. mode="aspectFit"></image>
  221. </view>
  222. <view class="margin-t-10">
  223. 行程
  224. </view>
  225. </view>
  226. </view>
  227. <view class="topPaddingBg"></view>
  228. <view class="leftPaddingBg"></view>
  229. </view>
  230. </view>
  231. </view>
  232. </view>
  233. </view>
  234. </view>
  235. <uni-popup ref="popup" type="bottom" v-if="actionCartItem">
  236. <view class="cartListAlertButtom">
  237. <view class="cartTitle flex">
  238. <view>
  239. 请选择更换的车辆
  240. </view>
  241. <image @click="popupClose" class="exit" src="../../../static/images/goodsExit.png"
  242. mode="scaleToFill">
  243. </image>
  244. </view>
  245. <view class="actionCartBox">
  246. <view class="itemCart flex" :class="{action:item.id==actionCartItem.id}"
  247. v-for="(item,index) in myCartList" @click="changeCart(index)" :key='index'>
  248. <image class="cartImg" :src="item.image" mode="scaleToFill"></image>
  249. <view class="content">
  250. <view class="title clamp2" :class="{action:item.id==actionCartItem.id}">
  251. {{item.car_name||''}}
  252. </view>
  253. <view class="address margin-t-20" :class="{action:item.id==actionCartItem.id}">
  254. {{item.address||"暂无定位信息"}}
  255. </view>
  256. </view>
  257. </view>
  258. </view>
  259. <view style="height: 1px;"></view>
  260. </view>
  261. </uni-popup>
  262. <pageFoot></pageFoot>
  263. </view>
  264. </template>
  265. <script>
  266. import {
  267. mycar,
  268. getCarInfo,
  269. getcar_status,
  270. car_switch,
  271. getUserInfo
  272. } from '@/api/user.js';
  273. import {
  274. mapGetters
  275. } from 'vuex';
  276. import pageFoot from '@/components/pageFooter/index.vue';
  277. export default {
  278. props: {
  279. notify: {
  280. type: Number,
  281. default: 0
  282. },
  283. },
  284. components: {
  285. pageFoot
  286. },
  287. data() {
  288. return {
  289. chickedMyCart: 0, //默认选中的车辆
  290. // 我的车辆
  291. myCartList: [],
  292. ladingCart: false, //判断是否已经加载过我的车辆
  293. // #ifdef H5
  294. iconPath: '../../static/image/location.png', //定位图标地址
  295. // #endif
  296. // #ifndef H5
  297. iconPath: '../../../static/image/location.png', //定位图标地址
  298. // #endif
  299. timeOut: '', //用于存放调用定时获取对象数据
  300. reachangeAlert: false, //判断是否已经提示过充值
  301. };
  302. },
  303. watch: {
  304. reachange(newValue, oldValue) {
  305. if (newValue && (this.actionCartItem.auth_num != -1)) {
  306. uni.showModal({
  307. title: '错误',
  308. content: '您的余额已不足三天支付是否马上充值',
  309. cancelText: '关闭',
  310. confirmText: '马上充值',
  311. success: res => {
  312. if (res.confirm) {
  313. this.navTo('/pages/user/money/recharge');
  314. }
  315. },
  316. });
  317. }
  318. }
  319. },
  320. computed: {
  321. ...mapGetters(['userInfo']),
  322. actionCartItem() {
  323. if (this.myCartList[this.chickedMyCart]) {
  324. return this.myCartList[this.chickedMyCart]
  325. } else {
  326. return false
  327. }
  328. },
  329. reachange() {
  330. // 余额
  331. const a1 = +this.userInfo.now_money;
  332. if (!this.actionCartItem) {
  333. return false
  334. }
  335. // 三天内应该付的金额
  336. const a2 = this.actionCartItem.day_deducted * 3;
  337. if (a1 < a2 && !this.reachangeAlert && this.actionCartItem.day > 0) {
  338. // 处理已加载提示用户充值信息
  339. this.reachangeAlert = true;
  340. return (new Date()).getTime()
  341. } else {
  342. return false
  343. }
  344. }
  345. },
  346. created() {
  347. // this.getUserInfo();
  348. },
  349. };
  350. </script>
  351. <style lang="scss">
  352. $paddingJg:40rpx;
  353. // 按钮黑色背景
  354. $bgBlack:#161727;
  355. // 底色
  356. $contentBg:#373c5a;
  357. // 按钮包裹框背景颜色
  358. $maxBoxBg:#1f2136;
  359. .pageBox {
  360. height: 0;
  361. min-height: 100%;
  362. }
  363. .flexCenter {
  364. display: flex;
  365. justify-content: center;
  366. align-items: center;
  367. }
  368. .navBox {
  369. /* #ifdef APP */
  370. padding-top: var(--status-bar-height);
  371. padding-bottom: 30rpx;
  372. /* #endif */
  373. /* #ifdef H5 || MP */
  374. padding-top: 30rpx;
  375. padding-bottom: 30rpx;
  376. /* #endif */
  377. background-color: $contentBg;
  378. flex-shrink: 0;
  379. }
  380. .topIconBox {
  381. padding: 0 $paddingJg;
  382. position: relative;
  383. color: #FFFFFF;
  384. font-size: $uni-font-size-base + 2rpx;
  385. .topIconNum {
  386. position: absolute;
  387. top: -10rpx;
  388. right: 20rpx;
  389. font-size: $uni-font-size-sm;
  390. min-width: 30rpx;
  391. min-height: 30rpx;
  392. border-radius: 100rpx;
  393. background-color: $uni-color-error;
  394. padding: 5rpx;
  395. justify-content: center;
  396. }
  397. .topIcon {
  398. transform: rotateZ(-90deg);
  399. width: 45rpx;
  400. height: 45rpx;
  401. flex-shrink: 0;
  402. }
  403. }
  404. .userOff {
  405. display: flex;
  406. flex-direction: column;
  407. height: 100%;
  408. .actionBox {
  409. background-color: #0f1025;
  410. flex-shrink: 1;
  411. flex-grow: 1;
  412. text-align: center;
  413. height: 400rpx;
  414. position: relative;
  415. .cartImg {
  416. height: 100%;
  417. width: 100%;
  418. }
  419. .timeBox {
  420. position: absolute;
  421. color: #FFFFFF;
  422. right: 30rpx;
  423. top: 30rpx;
  424. font-size: $uni-font-size-base;
  425. font-weight: bold;
  426. .dayBox {
  427. z-index: 1;
  428. line-height: 1;
  429. }
  430. .oldDay {
  431. font-size: $uni-font-size-sm - 2rpx;
  432. color: $uni-border-color;
  433. }
  434. .tipMen {
  435. transform-origin: top left;
  436. margin-left: 0;
  437. }
  438. }
  439. }
  440. .content {
  441. flex-shrink: 0;
  442. flex-grow: 1;
  443. }
  444. .lineBorder {
  445. border: 1px solid #aaaec7;
  446. }
  447. .lineBorder2 {
  448. border: 1px solid #b7cbf2;
  449. }
  450. .rowContentBox {
  451. overflow: hidden;
  452. background-color: $contentBg;
  453. .tipMen {
  454. position: absolute;
  455. top: 0;
  456. left: 0;
  457. transform-origin: top left;
  458. margin-left: -40rpx;
  459. transform: rotateZ(-45deg);
  460. height: 100%;
  461. width: 100%;
  462. background-image: linear-gradient(to bottom, rgba(69, 75, 113, 1) 0%, transparent 100%);
  463. }
  464. }
  465. .rowContentBox,
  466. .centerBox {
  467. height: 100%;
  468. width: 100%;
  469. position: relative;
  470. }
  471. .contentButtom {
  472. width: 750rpx;
  473. height: 100%;
  474. background-color: $maxBoxBg;
  475. font-size: $uni-font-size-base;
  476. line-height: 1;
  477. .centerTextBox {
  478. text-align: center;
  479. margin-left: -70rpx;
  480. }
  481. .tipIcon {
  482. width: 46rpx;
  483. height: 46rpx;
  484. }
  485. .buttomBox {
  486. width: 750rpx;
  487. padding: 40rpx;
  488. color: #B2B9D3;
  489. .buttom {
  490. padding: 10rpx;
  491. background-color: $bgBlack;
  492. position: relative;
  493. .rightPaddingBg,
  494. .topPaddingBg,
  495. .leftPaddingBg,
  496. .buttomPaddingBg {
  497. position: absolute;
  498. background-color: $bgBlack;
  499. z-index: 11;
  500. }
  501. .topPaddingBg,
  502. .buttomPaddingBg {
  503. height: 12rpx;
  504. width: 180rpx;
  505. left: 0;
  506. }
  507. .rightPaddingBg,
  508. .leftPaddingBg {
  509. height: 180rpx;
  510. width: 10rpx;
  511. top: 0rpx;
  512. }
  513. .topPaddingBg {
  514. top: -1px;
  515. }
  516. .buttomPaddingBg {
  517. button: 0rpx;
  518. }
  519. .rightPaddingBg {
  520. right: 0rpx;
  521. }
  522. .leftPaddingBg {
  523. left: 0;
  524. }
  525. .topBageBg,
  526. .bottomBageBg {
  527. height: 30rpx;
  528. width: 180rpx;
  529. background-color: $maxBoxBg;
  530. position: absolute;
  531. z-index: 10;
  532. }
  533. .topBageBg {
  534. top: -30rpx;
  535. }
  536. .bottomBageBg {
  537. bottom: -30rpx;
  538. }
  539. }
  540. .centerBox {
  541. // background-image: linear-gradient(to bottom, #49548d 0%, transparent 100%);
  542. background-color: rgba($color: #49548d, $alpha: 0.5);
  543. box-shadow: 0px 0px 30rpx rgba($color: #5a6fdb, $alpha: 0.5) inset;
  544. }
  545. .buttomLg {
  546. width: 180rpx;
  547. height: 180rpx;
  548. }
  549. .leftBox {
  550. .leftCenterButtom {
  551. margin: 30rpx 0;
  552. width: 80rpx;
  553. height: 120rpx;
  554. background-size: 80rpx 120rpx;
  555. z-index: 99;
  556. .tipMen {
  557. margin-left: 0rpx;
  558. }
  559. }
  560. }
  561. .centerBgBox {
  562. flex-shrink: 1;
  563. position: relative;
  564. .borderRadiusAll {
  565. border-radius: 1000rpx;
  566. }
  567. .bgGray {
  568. position: absolute;
  569. top: 0;
  570. left: 0;
  571. background-color: $maxBoxBg;
  572. width: 530rpx;
  573. height: 530rpx;
  574. z-index: 20;
  575. left: -265rpx;
  576. top: -265rpx;
  577. }
  578. .contentOrg {
  579. position: absolute;
  580. background-color: $bgBlack;
  581. width: 480rpx;
  582. height: 480rpx;
  583. left: -240rpx;
  584. top: -240rpx;
  585. z-index: 99;
  586. padding: 20rpx;
  587. .contentOrgBg {
  588. width: 100%;
  589. height: 100%;
  590. position: relative;
  591. background-color: $contentBg;
  592. background-image: linear-gradient(to bottom, rgba($color: #454b71, $alpha: 1) 0%, transparent 25%, transparent 75%, rgba($color: #454b71, $alpha: 1) 100%);
  593. .posbuttom {
  594. position: absolute;
  595. .centerTextBox {
  596. margin: 0;
  597. }
  598. }
  599. .topButtomTipBox {
  600. top: 0;
  601. padding-bottom: 20rpx;
  602. }
  603. .bottomButtomTipBox {
  604. bottom: 0;
  605. padding-top: 20rpx;
  606. }
  607. .bottomButtomTipBox,
  608. .topButtomTipBox {
  609. width: 200rpx;
  610. height: 140rpx;
  611. margin: 0 auto;
  612. }
  613. .rightButtomTipBox,
  614. .leftButtomTipBox {
  615. width: 140rpx;
  616. height: 200rpx;
  617. }
  618. .rightButtomTipBox {
  619. padding-left: 20rpx;
  620. right: 0;
  621. }
  622. .leftButtomTipBox {
  623. padding-right: 20rpx;
  624. left: 0;
  625. }
  626. .line {
  627. position: absolute;
  628. width: calc(440rpx + 2px);
  629. height: 20rpx;
  630. border-top: 1px solid #b7cbf2;
  631. border-bottom: 1px solid #b7cbf2;
  632. border-left: 1px solid $bgBlack;
  633. border-right: 1px solid $bgBlack;
  634. background-color: $bgBlack;
  635. box-shadow: 0px 0px 30rpx rgba($color: #5a6fdb, $alpha: 0.5);
  636. &.left {
  637. transform: rotateZ(45deg);
  638. }
  639. &.right {
  640. transform: rotateZ(-45deg);
  641. }
  642. }
  643. .centerBoxJb {
  644. width: 200rpx;
  645. height: 200rpx;
  646. background-color: $bgBlack;
  647. box-shadow: 0px 0px 30rpx rgba($color: #5a6fdb, $alpha: 0.5);
  648. position: relative;
  649. .boxBgJb {
  650. background-color: $bgBlack;
  651. width: 100%;
  652. height: 100%;
  653. position: absolute;
  654. z-index: 1;
  655. .iconButtomBox {
  656. font-size: $uni-font-size-base;
  657. color: #FFFFFF;
  658. font-weight: bold;
  659. width: 160rpx;
  660. height: 160rpx;
  661. background-color: #DEDEDE;
  662. text-align: center;
  663. background-color: #F6C531;
  664. position: relative;
  665. &.greedBg {
  666. background-color: $uni-color-success;
  667. }
  668. .mr {
  669. position: absolute;
  670. height: 100%;
  671. width: 100%;
  672. background-image: linear-gradient(to bottom, rgba($color: #FFFFFF, $alpha: 0.2) 0%, rgba($color: #FFFFFF, $alpha: 0) 50%, rgba($color: #FFFFFF, $alpha: 0) 100%);
  673. box-shadow: 0px 0px 20rpx rgba($color: #FFFFFF, $alpha: 0.5) inset;
  674. }
  675. .iconButtomJb {
  676. .img {
  677. width: 75rpx;
  678. height: 75rpx;
  679. }
  680. }
  681. }
  682. }
  683. }
  684. }
  685. }
  686. .centerBg {
  687. position: absolute;
  688. left: -280rpx;
  689. top: -280rpx;
  690. background-color: $bgBlack;
  691. width: 560rpx;
  692. height: 560rpx;
  693. z-index: 10;
  694. .borTopHide {
  695. top: -10rpx;
  696. left: 120rpx;
  697. }
  698. .borBottomHide,
  699. .borTopHide {
  700. position: absolute;
  701. height: 100rpx;
  702. width: 316rpx;
  703. background-color: $maxBoxBg;
  704. }
  705. .borBottomHide {
  706. left: 120rpx;
  707. bottom: -10rpx;
  708. }
  709. }
  710. }
  711. .rightBox {
  712. flex-shrink: 0;
  713. .rightElectric {
  714. flex-direction: column;
  715. padding-right: 6rpx;
  716. .electric {
  717. width: 40rpx;
  718. height: 10rpx;
  719. // border-radius: 10rpx;
  720. background-color: $maxBoxBg;
  721. margin-bottom: 16rpx;
  722. // &:last-child{
  723. // border-bottom-left-radius: 10rpx;
  724. // border-bottom-right-radius: 10rpx;
  725. // }
  726. // &:first-child{
  727. // border-top-left-radius: 10rpx;
  728. // border-top-right-radius: 10rpx;
  729. // }
  730. &.greedBg {
  731. background-color: $uni-color-success;
  732. }
  733. &.yellowBg {
  734. background-color: #F6C531;
  735. }
  736. &.redGb {
  737. background-color: #DE2C2C;
  738. }
  739. }
  740. }
  741. .rightButtom {
  742. position: relative;
  743. z-index: 11;
  744. margin-bottom: 30rpx;
  745. width: 180rpx;
  746. height: 330rpx;
  747. padding-left: 30rpx;
  748. padding-top: 16rpx;
  749. align-items: flex-start;
  750. .centerTextBox {
  751. text-align: right;
  752. margin-left: 16rpx;
  753. }
  754. }
  755. }
  756. }
  757. }
  758. }
  759. .cartListAlertButtom {
  760. position: relative;
  761. padding-top: 20rpx;
  762. border-top-left-radius: 30rpx;
  763. border-top-right-radius: 30rpx;
  764. background-color: #FFFFFF;
  765. z-index: 999;
  766. /* #ifdef H5 */
  767. padding-bottom: var(--window-bottom);
  768. /* #endif */
  769. .actionCartBox {
  770. padding-bottom: 40rpx;
  771. .itemCart {
  772. background-color: #F3F6F8;
  773. margin: 0 30rpx 30rpx;
  774. padding: 0 30rpx;
  775. border-radius: 20rpx;
  776. height: 200rpx;
  777. text-align: left;
  778. &.action {
  779. background-color: $uni-color-success;
  780. }
  781. .cartImg {
  782. width: 120rpx;
  783. height: 120rpx;
  784. }
  785. .content {
  786. flex-grow: 1;
  787. padding-left: 20rpx;
  788. }
  789. .title {
  790. font-size: $uni-font-size-base;
  791. font-weight: bold;
  792. color: $uni-color-title;
  793. &.action {
  794. color: #FFFFFF;
  795. }
  796. }
  797. .address {
  798. line-height: 1;
  799. font-size: $uni-font-size-sm - 2rpx;
  800. color: $uni-border-color;
  801. &.action {
  802. color: #FFFFFF;
  803. }
  804. }
  805. }
  806. }
  807. .cartTitle {
  808. margin: 0 30rpx;
  809. margin-bottom: 30rpx;
  810. font-size: $uni-font-size-lg;
  811. font-weight: bold;
  812. .exit {
  813. width: 50rpx;
  814. height: 50rpx;
  815. }
  816. }
  817. }
  818. </style>