detail.vue 24 KB

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