detail.vue 24 KB

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