detail.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857
  1. <template>
  2. <view v-if="!isLoading" class="container">
  3. <view class="header">
  4. <!-- 订单状态 -->
  5. <view class="order-status">
  6. <view class="status-icon">
  7. <!-- 进行中的订单 -->
  8. <block v-if="order.order_status == OrderStatusEnum.NORMAL.value">
  9. <!-- 待支付 -->
  10. <block v-if="order.pay_status == PayStatusEnum.PENDING.value">
  11. <image class="image" src="/static/order/status/wait_pay.png" mode="aspectFit"></image>
  12. </block>
  13. <!-- 待发货 -->
  14. <block v-else-if="order.delivery_status == DeliveryStatusEnum.NOT_DELIVERED.value">
  15. <image class="image" src="/static/order/status/wait_deliver.png" mode="aspectFit"></image>
  16. </block>
  17. <!-- 待收货 -->
  18. <block v-else-if="order.receipt_status == ReceiptStatusEnum.NOT_RECEIVED.value">
  19. <image class="image" src="/static/order/status/wait_receipt.png" mode="aspectFit"></image>
  20. </block>
  21. </block>
  22. <!-- 已完成 -->
  23. <block v-if="order.order_status == OrderStatusEnum.COMPLETED.value">
  24. <image class="image" src="/static/order/status/received.png" mode="aspectFit"></image>
  25. </block>
  26. <!-- 已取消/待取消 -->
  27. <block v-if="order.order_status == OrderStatusEnum.CANCELLED.value || order.order_status == OrderStatusEnum.APPLY_CANCEL.value">
  28. <image class="image" src="/static/order/status/close.png" mode="aspectFit"></image>
  29. </block>
  30. </view>
  31. <view class="status-text">
  32. <text>{{ order.state_text }}</text>
  33. </view>
  34. </view>
  35. <!-- 下一步操作 -->
  36. <view class="next-action" v-if="order.order_status == OrderStatusEnum.NORMAL.value">
  37. <view v-if="order.pay_status == PayStatusEnum.PENDING.value" class="action-btn" @click="onPay()">去支付</view>
  38. <view v-if="order.delivery_status == DeliveryStatusEnum.DELIVERED.value && order.receipt_status == ReceiptStatusEnum.NOT_RECEIVED.value"
  39. class="action-btn" @click="onReceipt(order.order_id)">确认收货</view>
  40. </view>
  41. </view>
  42. <!-- 快递配送:配送地址 -->
  43. <view class="delivery-address i-card">
  44. <view class="link-man">
  45. <text class="name">{{ order.address.name }}</text>
  46. <text class="phone">{{ order.address.phone }}</text>
  47. </view>
  48. <view class="address">
  49. <text class="region" v-for="(region, idx) in order.address.region" :key="idx">{{ region }}</text>
  50. <text class="detail">{{ order.address.detail }}</text>
  51. </view>
  52. </view>
  53. <!-- 物流信息 -->
  54. <view v-if="order.delivery_type == DeliveryTypeEnum.EXPRESS.value && order.delivery_status == DeliveryStatusEnum.DELIVERED.value && order.express"
  55. class="express i-card" @click="handleTargetExpress()">
  56. <view class="main">
  57. <view class="info-item">
  58. <view class="item-lable">物流公司</view>
  59. <view class="item-content">
  60. <text>{{ order.express.express_name }}</text>
  61. </view>
  62. </view>
  63. <view class="info-item">
  64. <view class="item-lable">物流单号</view>
  65. <view class="item-content">
  66. <text>{{ order.express_no }}</text>
  67. <view class="act-copy" @click.stop="handleCopy(order.express_no)">
  68. <text>复制</text>
  69. </view>
  70. </view>
  71. </view>
  72. </view>
  73. <view class="right-arrow">
  74. <text class="iconfont icon-arrow-right"></text>
  75. </view>
  76. </view>
  77. <!-- 商品列表 -->
  78. <view class="goods-list i-card">
  79. <view class="goods-item" v-for="(goods, idx) in order.goods" :key="idx">
  80. <view class="goods-main" @click="handleTargetGoods(goods.goods_id)">
  81. <!-- 商品图片 -->
  82. <view class="goods-image">
  83. <image class="image" :src="goods.goods_image" mode="scaleToFill"></image>
  84. </view>
  85. <!-- 商品信息 -->
  86. <view class="goods-content">
  87. <view class="goods-title"><text class="twoline-hide">{{ goods.goods_name }}</text></view>
  88. <view class="goods-props clearfix">
  89. <view class="goods-props-item" v-for="(props, idx) in goods.goods_props" :key="idx">
  90. <text>{{ props.value.name }}</text>
  91. </view>
  92. </view>
  93. </view>
  94. <!-- 交易信息 -->
  95. <view class="goods-trade">
  96. <view class="goods-price">
  97. <text class="unit">¥</text>
  98. <text class="value">{{ goods.is_user_grade ? goods.grade_goods_price : goods.goods_price }}</text>
  99. </view>
  100. <view class="goods-num">
  101. <text>×{{ goods.total_num }}</text>
  102. </view>
  103. </view>
  104. </view>
  105. <!-- 商品售后 -->
  106. <view class="goods-refund">
  107. <text v-if="goods.refund" class="stata-text">已申请售后</text>
  108. <view v-else-if="order.isAllowRefund" class="action-btn" @click.stop="handleApplyRefund(goods.order_goods_id)">申请售后</view>
  109. </view>
  110. </view>
  111. </view>
  112. <!-- 订单信息 -->
  113. <view class="order-info i-card">
  114. <view class="info-item">
  115. <view class="item-lable">订单编号</view>
  116. <view class="item-content">
  117. <text>{{ order.order_no }}</text>
  118. <view class="act-copy" @click="handleCopy(order.order_no)">
  119. <text>复制</text>
  120. </view>
  121. </view>
  122. </view>
  123. <view class="info-item">
  124. <view class="item-lable">下单时间</view>
  125. <view class="item-content">
  126. <text>{{ order.create_time }}</text>
  127. </view>
  128. </view>
  129. <view class="info-item">
  130. <view class="item-lable">买家留言</view>
  131. <view class="item-content">
  132. <text>{{ order.buyer_remark ? order.buyer_remark : '--' }}</text>
  133. </view>
  134. </view>
  135. </view>
  136. <!-- 结算信息 -->
  137. <view class="trade-info i-card">
  138. <view class="info-item">
  139. <view class="item-lable">订单金额</view>
  140. <view class="item-content">
  141. <text>¥{{ order.total_price }}</text>
  142. </view>
  143. </view>
  144. <view v-if="order.coupon_money > 0" class="info-item">
  145. <view class="item-lable">优惠券抵扣</view>
  146. <view class="item-content">
  147. <text>-¥{{ order.coupon_money }}</text>
  148. </view>
  149. </view>
  150. <view v-if="order.points_money > 0" class="info-item">
  151. <view class="item-lable">{{ setting.points_name }}抵扣</view>
  152. <view class="item-content">
  153. <text>-¥{{ order.points_money }}</text>
  154. </view>
  155. </view>
  156. <view class="info-item">
  157. <view class="item-lable">运费</view>
  158. <view class="item-content">
  159. <text>+¥{{ order.express_price }}</text>
  160. </view>
  161. </view>
  162. <view v-if="order.update_price.value != '0.00'" class="info-item">
  163. <view class="item-lable">后台改价</view>
  164. <view class="item-content">
  165. <text>{{ order.update_price.symbol }}</text>
  166. <text>¥{{ order.update_price.value }}</text>
  167. </view>
  168. </view>
  169. <view class="divider"></view>
  170. <view class="trade-total">
  171. <text class="lable">实付款</text>
  172. <view class="goods-price">
  173. <text class="unit">¥</text>
  174. <text class="value">{{ order.pay_price }}</text>
  175. </view>
  176. </view>
  177. </view>
  178. <!-- 底部操作按钮 -->
  179. <view v-if="order.order_status != OrderStatusEnum.CANCELLED.value" class="footer-fixed">
  180. <view class="btn-wrapper">
  181. <!-- 未支付取消订单 -->
  182. <block v-if="order.pay_status == PayStatusEnum.PENDING.value">
  183. <view class="btn-item" @click="onCancel(order.order_id)">取消</view>
  184. </block>
  185. <!-- 已支付进行中的订单 -->
  186. <block v-if="order.order_status != OrderStatusEnum.APPLY_CANCEL.value">
  187. <block v-if="order.pay_status == PayStatusEnum.SUCCESS.value && order.delivery_status == DeliveryStatusEnum.NOT_DELIVERED.value">
  188. <view class="btn-item" @click="onCancel(order.order_id)">申请取消</view>
  189. </block>
  190. </block>
  191. <!-- 已申请取消 -->
  192. <view v-else class="f-28 col-8">取消申请中</view>
  193. <!-- 未支付的订单 -->
  194. <block v-if="order.pay_status == PayStatusEnum.PENDING.value">
  195. <view class="btn-item active" @click="onPay()">去支付</view>
  196. </block>
  197. <!-- 确认收货 -->
  198. <block v-if="order.delivery_status == DeliveryStatusEnum.DELIVERED.value && order.receipt_status == ReceiptStatusEnum.NOT_RECEIVED.value">
  199. <view class="btn-item active" @click="onReceipt(order.order_id)">确认收货</view>
  200. </block>
  201. <!-- 订单评价 -->
  202. <block v-if="order.order_status == OrderStatusEnum.COMPLETED.value && order.is_comment == 0">
  203. <view class="btn-item" @click="handleTargetComment(order.order_id)">评价</view>
  204. </block>
  205. </view>
  206. </view>
  207. <!-- 支付方式弹窗 -->
  208. <u-popup v-model="showPayPopup" mode="bottom" border-radius="26" :closeable="true">
  209. <view class="pay-popup">
  210. <view class="title">请选择支付方式</view>
  211. <view class="pop-content">
  212. <!-- 微信支付 -->
  213. <!-- #ifdef MP-WEIXIN -->
  214. <view class="pay-item dis-flex flex-x-between" @click="onSelectPayType(PayTypeEnum.WECHAT.value)">
  215. <view class="item-left dis-flex flex-y-center">
  216. <view class="item-left_icon wechat">
  217. <text class="iconfont icon-wechat-pay"></text>
  218. </view>
  219. <view class="item-left_text">
  220. <text>{{ PayTypeEnum.WECHAT.name }}</text>
  221. </view>
  222. </view>
  223. </view>
  224. <!-- #endif -->
  225. <!-- 余额支付 -->
  226. <view class="pay-item dis-flex flex-x-between" @click="onSelectPayType(PayTypeEnum.BALANCE.value)">
  227. <view class="item-left dis-flex flex-y-center">
  228. <view class="item-left_icon balance">
  229. <text class="iconfont icon-balance-pay"></text>
  230. </view>
  231. <view class="item-left_text">
  232. <text>{{ PayTypeEnum.BALANCE.name }}</text>
  233. </view>
  234. </view>
  235. </view>
  236. </view>
  237. </view>
  238. </u-popup>
  239. </view>
  240. </template>
  241. <script>
  242. import {
  243. DeliveryStatusEnum,
  244. DeliveryTypeEnum,
  245. OrderStatusEnum,
  246. PayStatusEnum,
  247. PayTypeEnum,
  248. ReceiptStatusEnum
  249. } from '@/common/enum/order'
  250. import * as OrderApi from '@/api/order'
  251. import { wxPayment } from '@/core/app'
  252. export default {
  253. data() {
  254. return {
  255. // 枚举类
  256. DeliveryStatusEnum,
  257. DeliveryTypeEnum,
  258. OrderStatusEnum,
  259. PayStatusEnum,
  260. PayTypeEnum,
  261. ReceiptStatusEnum,
  262. // 当前订单ID
  263. orderId: null,
  264. // 加载中
  265. isLoading: true,
  266. // 当前订单详情
  267. order: {},
  268. // 当前设置
  269. setting: {},
  270. // 支付方式弹窗
  271. showPayPopup: false
  272. }
  273. },
  274. /**
  275. * 生命周期函数--监听页面加载
  276. */
  277. onLoad({ orderId }) {
  278. // 当前订单ID
  279. this.orderId = orderId
  280. // 获取当前订单信息
  281. this.getOrderDetail()
  282. },
  283. methods: {
  284. // 获取当前订单信息
  285. getOrderDetail() {
  286. const app = this
  287. app.isLoading = true
  288. OrderApi.detail(app.orderId)
  289. .then(result => {
  290. app.order = result.data.order
  291. app.setting = result.data.setting
  292. app.isLoading = false
  293. })
  294. },
  295. // 复制指定内容
  296. handleCopy(value) {
  297. const app = this
  298. uni.setClipboardData({
  299. data: value,
  300. success() {
  301. app.$toast('复制成功')
  302. }
  303. })
  304. },
  305. // 跳转到物流跟踪页面
  306. handleTargetExpress() {
  307. this.$navTo('pages/order/express/index', { orderId: this.orderId })
  308. },
  309. // 跳转到商品详情页面
  310. handleTargetGoods(goodsId) {
  311. this.$navTo('pages/goods/detail', { goodsId })
  312. },
  313. // 跳转到申请售后页面
  314. handleApplyRefund(orderGoodsId) {
  315. this.$navTo('pages/refund/apply', { orderGoodsId })
  316. },
  317. // 取消订单
  318. onCancel(orderId) {
  319. const app = this
  320. uni.showModal({
  321. title: '友情提示',
  322. content: '确认要取消该订单吗?',
  323. success(o) {
  324. if (o.confirm) {
  325. OrderApi.cancel(orderId)
  326. .then(result => {
  327. // 显示成功信息
  328. app.$toast(result.message)
  329. // 刷新当前订单数据
  330. app.getOrderDetail()
  331. })
  332. }
  333. }
  334. });
  335. },
  336. // 确认收货
  337. onReceipt(orderId) {
  338. const app = this
  339. uni.showModal({
  340. title: '友情提示',
  341. content: '确认收到商品了吗?',
  342. success(o) {
  343. if (o.confirm) {
  344. OrderApi.receipt(orderId)
  345. .then(result => {
  346. // 显示成功信息
  347. app.$success(result.message)
  348. // 刷新当前订单数据
  349. app.getOrderDetail()
  350. })
  351. }
  352. }
  353. });
  354. },
  355. // 点击去支付
  356. onPay() {
  357. // 显示支付方式弹窗
  358. this.showPayPopup = true
  359. },
  360. // 选择支付方式
  361. onSelectPayType(payType) {
  362. const app = this
  363. // 隐藏支付方式弹窗
  364. this.showPayPopup = false
  365. // 发起支付请求
  366. OrderApi.pay(app.orderId, payType)
  367. .then(result => app.onSubmitCallback(result))
  368. .catch(err => err)
  369. },
  370. // 订单提交成功后回调
  371. onSubmitCallback(result) {
  372. const app = this
  373. // 发起微信支付
  374. if (result.data.pay_type == PayTypeEnum.WECHAT.value) {
  375. wxPayment(result.data.payment)
  376. .then(() => {
  377. app.$success('支付成功')
  378. setTimeout(() => {
  379. app.getOrderDetail()
  380. }, 1500)
  381. })
  382. .catch(err => {
  383. app.$error('订单未支付')
  384. })
  385. .finally(() => {
  386. app.disabled = false
  387. })
  388. }
  389. // 余额支付
  390. if (result.data.pay_type == PayTypeEnum.BALANCE.value) {
  391. app.$success('支付成功')
  392. app.disabled = false
  393. setTimeout(() => {
  394. // 刷新当前订单数据
  395. app.getOrderDetail()
  396. }, 1500)
  397. }
  398. },
  399. // 跳转到订单评价页
  400. handleTargetComment(orderId) {
  401. this.$navTo('pages/order/comment/index', { orderId })
  402. },
  403. },
  404. }
  405. </script>
  406. <style>
  407. page {
  408. background: #f4f4f4;
  409. }
  410. </style>
  411. <style lang="scss" scoped>
  412. .container {
  413. padding-bottom: constant(env(safe-area-inset-bottom) + 106rpx + 6rpx);
  414. padding-bottom: calc(env(safe-area-inset-bottom) + 106rpx + 6rpx);
  415. }
  416. // 页面顶部
  417. .header {
  418. display: flex;
  419. justify-content: space-between;
  420. background-color: #e8c269;
  421. height: 280rpx;
  422. padding: 56rpx 30rpx 0 30rpx;
  423. .order-status {
  424. display: flex;
  425. align-items: center;
  426. height: 128rpx;
  427. .status-icon {
  428. width: 128rpx;
  429. height: 128rpx;
  430. .image {
  431. display: block;
  432. width: 100%;
  433. height: 100%;
  434. }
  435. }
  436. .status-text {
  437. padding-left: 20rpx;
  438. color: #fff;
  439. font-size: 38rpx;
  440. font-weight: bold;
  441. }
  442. }
  443. .next-action {
  444. display: flex;
  445. align-items: center;
  446. height: 128rpx;
  447. .action-btn {
  448. min-width: 152rpx;
  449. height: 56rpx;
  450. padding: 0 30rpx;
  451. line-height: 56rpx;
  452. background-color: #fff;
  453. text-align: center;
  454. border-radius: 28rpx;
  455. border-color: rgb(102, 102, 102);
  456. cursor: pointer;
  457. user-select: none;
  458. color: #c7a157;
  459. }
  460. }
  461. }
  462. // 通栏卡片
  463. .i-card {
  464. background: #fff;
  465. padding: 24rpx 24rpx;
  466. width: 94%;
  467. box-shadow: 0 1rpx 5rpx 0px rgba(0, 0, 0, 0.05);
  468. margin: 0 auto 20rpx auto;
  469. border-radius: 20rpx;
  470. }
  471. // 收货地址
  472. .delivery-address {
  473. margin-top: -50rpx;
  474. .link-man {
  475. line-height: 46rpx;
  476. color: #333;
  477. .name {
  478. margin-right: 10rpx;
  479. }
  480. }
  481. .address {
  482. margin-top: 12rpx;
  483. color: #999;
  484. font-size: 24rpx;
  485. .detail {
  486. margin-left: 6rpx;
  487. }
  488. }
  489. }
  490. // 物流公司
  491. .express {
  492. display: flex;
  493. align-items: center;
  494. .main {
  495. flex: 1;
  496. }
  497. .info-item {
  498. display: flex;
  499. margin-bottom: 24rpx;
  500. &:last-child {
  501. margin-bottom: 0;
  502. }
  503. .item-lable {
  504. display: flex;
  505. align-items: center;
  506. font-size: 24rpx;
  507. color: #999;
  508. margin-right: 30rpx;
  509. }
  510. .item-content {
  511. flex: 1;
  512. display: flex;
  513. align-items: center;
  514. font-size: 26rpx;
  515. color: #333;
  516. .act-copy {
  517. margin-left: 20rpx;
  518. padding: 2rpx 20rpx;
  519. font-size: 22rpx;
  520. color: #666;
  521. border: 1rpx solid #c1c1c1;
  522. border-radius: 16rpx;
  523. }
  524. }
  525. }
  526. // 右侧箭头
  527. .right-arrow {
  528. margin-left: 16rpx;
  529. // color: #777;
  530. font-size: 26rpx;
  531. }
  532. }
  533. // 商品列表
  534. .goods-list {
  535. // 商品项
  536. .goods-item {
  537. margin-bottom: 40rpx;
  538. &:last-child {
  539. margin-bottom: 0;
  540. }
  541. // 商品信息
  542. .goods-main {
  543. display: flex;
  544. }
  545. // 商品图片
  546. .goods-image {
  547. width: 180rpx;
  548. height: 180rpx;
  549. .image {
  550. display: block;
  551. width: 100%;
  552. height: 100%;
  553. border-radius: 8rpx;
  554. }
  555. }
  556. // 商品内容
  557. .goods-content {
  558. flex: 1;
  559. padding-left: 16rpx;
  560. padding-top: 16rpx;
  561. .goods-title {
  562. font-size: 26rpx;
  563. max-height: 76rpx;
  564. }
  565. .goods-props {
  566. margin-top: 14rpx;
  567. height: 40rpx;
  568. color: #ababab;
  569. font-size: 24rpx;
  570. overflow: hidden;
  571. .goods-props-item {
  572. display: inline-block;
  573. margin-right: 14rpx;
  574. padding: 4rpx 16rpx;
  575. border-radius: 12rpx;
  576. background-color: #F5F5F5;
  577. width: auto;
  578. }
  579. }
  580. }
  581. // 交易信息
  582. .goods-trade {
  583. padding-top: 16rpx;
  584. width: 150rpx;
  585. text-align: right;
  586. color: $uni-text-color-grey;
  587. font-size: 26rpx;
  588. .goods-price {
  589. vertical-align: bottom;
  590. margin-bottom: 16rpx;
  591. .unit {
  592. margin-right: -2rpx;
  593. font-size: 24rpx;
  594. }
  595. }
  596. }
  597. // 商品售后
  598. .goods-refund {
  599. display: flex;
  600. justify-content: flex-end;
  601. .stata-text {
  602. font-size: 24rpx;
  603. color: #999;
  604. }
  605. .action-btn {
  606. border-radius: 28rpx;
  607. padding: 8rpx 26rpx;
  608. font-size: 24rpx;
  609. color: #383838;
  610. border: 1rpx solid #a8a8a8;
  611. }
  612. }
  613. }
  614. }
  615. // 订单信息
  616. .order-info {
  617. .info-item {
  618. display: flex;
  619. margin-bottom: 24rpx;
  620. &:last-child {
  621. margin-bottom: 0;
  622. }
  623. .item-lable {
  624. display: flex;
  625. align-items: center;
  626. font-size: 24rpx;
  627. color: #999;
  628. margin-right: 30rpx;
  629. }
  630. .item-content {
  631. flex: 1;
  632. display: flex;
  633. align-items: center;
  634. font-size: 26rpx;
  635. color: #333;
  636. .act-copy {
  637. margin-left: 20rpx;
  638. padding: 2rpx 20rpx;
  639. font-size: 22rpx;
  640. color: #666;
  641. border: 1rpx solid #c1c1c1;
  642. border-radius: 16rpx;
  643. }
  644. }
  645. }
  646. }
  647. // 交易信息
  648. .trade-info {
  649. .info-item {
  650. display: flex;
  651. margin-bottom: 24rpx;
  652. .item-lable {
  653. font-size: 24rpx;
  654. color: #999;
  655. margin-right: 24rpx;
  656. }
  657. .item-content {
  658. flex: 1;
  659. font-size: 26rpx;
  660. color: #333;
  661. text-align: right;
  662. }
  663. }
  664. .divider {
  665. height: 1rpx;
  666. background: #f1f1f1;
  667. margin-bottom: 24rpx;
  668. }
  669. .trade-total {
  670. display: flex;
  671. justify-content: flex-end;
  672. .goods-price {
  673. margin-left: 12rpx;
  674. vertical-align: bottom;
  675. color: $uni-text-color-active;
  676. .unit {
  677. margin-right: -2rpx;
  678. font-size: 24rpx;
  679. }
  680. }
  681. }
  682. }
  683. /* 底部操作栏 */
  684. .footer-fixed {
  685. position: fixed;
  686. bottom: var(--window-bottom);
  687. left: 0;
  688. right: 0;
  689. z-index: 11;
  690. box-shadow: 0 -4rpx 40rpx 0 rgba(151, 151, 151, 0.24);
  691. background: #fff;
  692. // 设置ios刘海屏底部横线安全区域
  693. padding-bottom: constant(safe-area-inset-bottom);
  694. padding-bottom: env(safe-area-inset-bottom);
  695. .btn-wrapper {
  696. height: 106rpx;
  697. display: flex;
  698. align-items: center;
  699. justify-content: flex-end;
  700. padding: 0 30rpx;
  701. }
  702. .btn-item {
  703. min-width: 164rpx;
  704. border-radius: 28rpx;
  705. padding: 10rpx 24rpx;
  706. font-size: 28rpx;
  707. color: #383838;
  708. text-align: center;
  709. border: 1rpx solid #a8a8a8;
  710. margin-left: 24rpx;
  711. &.active {
  712. color: #fff;
  713. border: none;
  714. background: linear-gradient(to right, #f9211c, #ff6335);
  715. }
  716. }
  717. }
  718. // 弹出层-支付方式
  719. .pay-popup {
  720. padding: 24rpx;
  721. .title {
  722. font-size: 30rpx;
  723. margin-bottom: 50rpx;
  724. font-weight: bold;
  725. text-align: center;
  726. }
  727. .pop-content {
  728. min-height: 260rpx;
  729. padding: 0 10rpx;
  730. .pay-item {
  731. padding: 20rpx 35rpx;
  732. font-size: 28rpx;
  733. border-bottom: 1rpx solid #f1f1f1;
  734. &:last-child {
  735. border-bottom: none;
  736. }
  737. .item-left_icon {
  738. margin-right: 20rpx;
  739. font-size: 32rpx;
  740. &.wechat {
  741. color: #00c800;
  742. }
  743. &.balance {
  744. color: #ff9700;
  745. }
  746. }
  747. }
  748. }
  749. }
  750. //
  751. </style>