index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877
  1. <template>
  2. <view class="order-detail">
  3. <!-- 订单状态 -->
  4. <view class="status-section" :class="getStatusClass()">
  5. <view class="status-bg-pattern"></view>
  6. <view class="logistics-btn" v-if="[3,4].includes(order.status) && order.expressCode">
  7. <button class="custom-logistics-btn" @click="viewLogistics">
  8. <image src="/static/images/order/wuliu.png" mode="aspectFit" class="logistics-icon"></image>
  9. <text>查看物流</text>
  10. </button>
  11. </view>
  12. <view class="status-content">
  13. <view class="status-icon">
  14. <image :src="getStatusImage()" mode="aspectFit" class="status-img"></image>
  15. </view>
  16. <view class="status-info">
  17. <view class="status-text">{{getStatusText()}}</view>
  18. <view class="status-desc">{{getStatusDesc()}}</view>
  19. </view>
  20. </view>
  21. </view>
  22. <!-- 收货地址和物流信息 -->
  23. <view class="address-section">
  24. <view class="section-header">
  25. <view class="header-icon">
  26. <uni-icons type="map-pin-ellipse" size="25" color="#a4d5d9"></uni-icons>
  27. </view>
  28. <text class="header-text">收货信息</text>
  29. </view>
  30. <view class="address-content">
  31. <view class="user-info">
  32. <text class="name">{{order.name}}</text>
  33. <text class="phone">{{order.mobile}}</text>
  34. </view>
  35. <view class="address">
  36. {{order.province}}{{order.city}}{{order.area}}{{order.address}}
  37. </view>
  38. <!-- 物流信息 -->
  39. <view class="logistics-info" v-if="order.expressCompany && order.expressCode">
  40. <view class="divider"></view>
  41. <view class="logistics-item">
  42. <text class="label">快递公司</text>
  43. <text class="value">{{order.expressCompany}}</text>
  44. </view>
  45. <view class="logistics-item">
  46. <text class="label">快递单号</text>
  47. <view class="value-copy">
  48. <text class="value">{{order.expressCode}}</text>
  49. <button class="copy-btn" @click="copyExpressCode">复制</button>
  50. </view>
  51. </view>
  52. <view class="logistics-item" v-if="order.shipTime">
  53. <text class="label">发货时间</text>
  54. <text class="value">{{order.shipTime}}</text>
  55. </view>
  56. </view>
  57. </view>
  58. </view>
  59. <!-- 商品信息 -->
  60. <view class="product-section">
  61. <view class="section-header">
  62. <view class="header-icon">
  63. <uni-icons type="gift-filled" size="25" color="#a4d5d9"></uni-icons>
  64. </view>
  65. <text class="header-text">商品信息</text>
  66. </view>
  67. <view class="product-list">
  68. <view v-for="(item, index) in orderListVos" :key="index" class="product-item">
  69. <view class="product-image-wrapper" @tap="goDetail(item)">
  70. <image :src="item.productImage" mode="aspectFill" class="product-image"></image>
  71. </view>
  72. <view class="product-info" @tap="goDetail(item)">
  73. <view class="product-name">{{item.productName}}</view>
  74. <view class="product-spec" v-if="item.skuName">{{item.skuName}}</view>
  75. <view class="product-price-count">
  76. <view class="price-info">
  77. <text class="price">¥{{item.unitPrice}}</text>
  78. <text class="subtotal">小计:¥{{item.subtotalAmount}}</text>
  79. </view>
  80. <text class="count">x{{item.quantity}}</text>
  81. </view>
  82. </view>
  83. </view>
  84. </view>
  85. </view>
  86. <!-- 金额信息 -->
  87. <view class="amount-section">
  88. <view class="section-header">
  89. <view class="header-icon">
  90. <u-icon name="file-text-fill" size="25" color="#a4d5d9"></u-icon>
  91. </view>
  92. <text class="header-text">金额信息</text>
  93. </view>
  94. <view class="amount-content">
  95. <view class="amount-item">
  96. <text>商品总额</text>
  97. <text class="price">¥{{getTotalProductPrice()}}</text>
  98. </view>
  99. <view class="amount-item total">
  100. <text>实付款</text>
  101. <text class="price">¥{{order.paymentPrice}}</text>
  102. </view>
  103. </view>
  104. </view>
  105. <!-- 订单信息 -->
  106. <view class="order-info">
  107. <view class="section-header">
  108. <view class="header-icon">
  109. <uni-icons type="calendar-filled" size="25" color="#a4d5d9"></uni-icons>
  110. </view>
  111. <text class="header-text">订单信息</text>
  112. </view>
  113. <view class="info-content">
  114. <view class="info-item">
  115. <text class="label">订单编号:</text>
  116. <text class="value">{{order.orderCode}}</text>
  117. </view>
  118. <view class="info-item">
  119. <text class="label">创建时间:</text>
  120. <text class="value">{{order.createTime}}</text>
  121. </view>
  122. <view class="info-item">
  123. <text class="label">支付方式:</text>
  124. <text class="value">微信支付</text>
  125. </view>
  126. <view class="info-item" v-if="order.payTime">
  127. <text class="label">支付时间:</text>
  128. <text class="value">{{order.payTime}}</text>
  129. </view>
  130. <view class="info-item" v-if="order.shipTime">
  131. <text class="label">发货时间:</text>
  132. <text class="value">{{order.shipTime}}</text>
  133. </view>
  134. <view class="info-item" v-if="order.confirmTime">
  135. <text class="label">确认收货:</text>
  136. <text class="value">{{order.confirmTime}}</text>
  137. </view>
  138. <view class="info-item" v-if="order.remark">
  139. <text class="label">订单备注:</text>
  140. <text class="value">{{order.remark}}</text>
  141. </view>
  142. </view>
  143. </view>
  144. <!-- 底部按钮 -->
  145. <view class="bottom-btns">
  146. <template v-if="order.status === 1">
  147. <u-button type="primary" size="large" @click="cancelOrder" color="#999"
  148. class="action-btn">取消订单</u-button>
  149. <u-button type="primary" size="large" @click="payOrder" color="#D93025"
  150. class="action-btn primary">立即支付</u-button>
  151. </template>
  152. <template v-if="order.status === 2">
  153. <!-- 待发货状态不显示任何按钮 -->
  154. </template>
  155. <template v-if="order.status === 3">
  156. <u-button type="primary" size="large" @click="confirmReceive" color="#D93025"
  157. class="action-btn primary">确认收货</u-button>
  158. </template>
  159. <template v-if="order.status === 4">
  160. <u-button type="primary" size="large" @click="goToScore" color="#FF9500" class="action-btn"
  161. v-if="!order.isEvaluate">评价</u-button>
  162. <u-button type="primary" size="large" @click="buyAgain" color="#007AFF"
  163. class="action-btn">再次购买</u-button>
  164. </template>
  165. </view>
  166. </view>
  167. </template>
  168. <script>
  169. import {
  170. orderDetail,
  171. confirmReceipt,
  172. cancelOrder
  173. } from '@/config/api.js';
  174. export default {
  175. data() {
  176. return {
  177. orderId: '',
  178. order: {
  179. id: '',
  180. createTime: '',
  181. status: 1,
  182. orderCode: '',
  183. payCode: '',
  184. remark: '',
  185. paymentPrice: 0,
  186. payType: 1,
  187. payTime: '',
  188. addressId: '',
  189. name: '',
  190. mobile: '',
  191. province: '',
  192. city: '',
  193. area: '',
  194. address: '',
  195. expressCompany: '',
  196. expressCode: '',
  197. shipTime: '',
  198. confirmTime: '',
  199. isAfter: 0,
  200. isEvaluate: 0
  201. },
  202. orderListVos: []
  203. }
  204. },
  205. onLoad(options) {
  206. if (options.id) {
  207. this.orderId = options.id
  208. this.getOrderDetail()
  209. }
  210. },
  211. methods: {
  212. async getOrderDetail() {
  213. try {
  214. const res = await orderDetail({
  215. id: this.orderId
  216. })
  217. if (res.success && res.data) {
  218. this.order = res.data.order
  219. this.orderListVos = res.data.orderListVos || []
  220. }
  221. } catch (e) {
  222. this.$u.toast('获取订单详情失败')
  223. }
  224. },
  225. // 获取状态文本
  226. getStatusText() {
  227. const statusMap = {
  228. 1: '待付款',
  229. 2: '待发货',
  230. 3: '待收货',
  231. 4: '已完成'
  232. }
  233. return statusMap[this.order.status] || '未知状态'
  234. },
  235. // 获取状态描述
  236. getStatusDesc() {
  237. const descMap = {
  238. 1: '请尽快完成支付,超时订单将自动取消',
  239. 2: '商家正在为您准备商品,请耐心等待',
  240. 3: '商品正在配送中,请注意查收',
  241. 4: '订单已完成,感谢您的购买'
  242. }
  243. return descMap[this.order.status] || ''
  244. },
  245. // 获取状态图片
  246. getStatusImage() {
  247. const imageMap = {
  248. 1: '/static/images/order/daifukuan.png',
  249. 2: '/static/images/order/daifahuo.png',
  250. 3: '/static/images/order/daishouhuo.png',
  251. 4: '/static/images/order/yiwancheng.png'
  252. }
  253. return imageMap[this.order.status] || imageMap[1]
  254. },
  255. // 获取状态样式类
  256. getStatusClass() {
  257. const classMap = {
  258. 1: 'status-waiting',
  259. 2: 'status-processing',
  260. 3: 'status-shipping',
  261. 4: 'status-completed'
  262. }
  263. return classMap[this.order.status] || 'status-waiting'
  264. },
  265. // 计算商品总价
  266. getTotalProductPrice() {
  267. try {
  268. const total = this.orderListVos.reduce((sum, item) => {
  269. const amount = parseFloat(item.subtotalAmount) || 0;
  270. return sum + amount;
  271. }, 0);
  272. return total.toFixed(2);
  273. } catch (e) {
  274. return '0.00';
  275. }
  276. },
  277. async cancelOrder() {
  278. try {
  279. // 确认对话框
  280. const result = await new Promise((resolve) => {
  281. uni.showModal({
  282. title: '提示',
  283. content: '确定要取消这个订单吗?',
  284. confirmText: '确定',
  285. cancelText: '取消',
  286. success: (res) => {
  287. resolve(res.confirm);
  288. }
  289. });
  290. });
  291. if (!result) {
  292. return;
  293. }
  294. // 调用取消订单接口
  295. const response = await cancelOrder({
  296. id: this.orderId
  297. });
  298. if (response.code === 200) {
  299. this.$u.toast('取消订单成功');
  300. // 重新获取订单详情
  301. this.getOrderDetail();
  302. } else {
  303. this.$u.toast(response.msg || '取消订单失败');
  304. }
  305. } catch (e) {
  306. console.error('取消订单失败:', e);
  307. this.$u.toast('取消订单失败');
  308. }
  309. },
  310. payOrder() {
  311. uni.navigateTo({
  312. url: '/packageOrder/pages/payment/index?id=' + this.orderId
  313. })
  314. },
  315. viewLogistics() {
  316. uni.navigateTo({
  317. url: '/packageOrder/pages/logistics/index?id=' + this.orderId
  318. })
  319. },
  320. async confirmReceive() {
  321. try {
  322. let res = await confirmReceipt({
  323. id: this.orderId
  324. })
  325. if (res.code == 200) {
  326. uni.showToast({
  327. title: "确认收货成功",
  328. icon: 'success',
  329. duration: 1000
  330. })
  331. setTimeout(() => {
  332. this.getOrderDetail()
  333. }, 500)
  334. }
  335. } catch (e) {
  336. this.$u.toast('确认收货失败')
  337. }
  338. },
  339. goToScore() {
  340. uni.navigateTo({
  341. url: '/packageOrder/pages/score/index?orderId=' + this.order.id
  342. })
  343. },
  344. buyAgain() {
  345. const product = this.orderListVos[0]
  346. uni.navigateTo({
  347. url: '/packageShop/pages/detail/index?id=' + product.productId
  348. })
  349. },
  350. goDetail(item) {
  351. uni.navigateTo({
  352. url: '/packageShop/pages/detail/index?id=' + item.productId
  353. })
  354. },
  355. async deleteOrder() {
  356. try {
  357. await this.$api.order.delete(this.orderId)
  358. this.$u.toast('删除订单成功')
  359. uni.navigateBack()
  360. } catch (e) {
  361. this.$u.toast('删除订单失败')
  362. }
  363. },
  364. // 复制快递单号
  365. copyExpressCode() {
  366. uni.setClipboardData({
  367. data: this.order.expressCode,
  368. success: () => {
  369. uni.showToast({
  370. title: '复制成功',
  371. icon: 'success',
  372. duration: 1500
  373. })
  374. }
  375. })
  376. }
  377. }
  378. }
  379. </script>
  380. <style lang="scss" scoped>
  381. .order-detail {
  382. min-height: 100vh;
  383. background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  384. padding-bottom: 160rpx;
  385. .status-section {
  386. padding: 60rpx 30rpx;
  387. position: relative;
  388. overflow: hidden;
  389. .logistics-btn {
  390. position: absolute;
  391. top: 20rpx;
  392. right: 20rpx;
  393. z-index: 2;
  394. .custom-logistics-btn {
  395. background: rgba(255, 255, 255, 0.9);
  396. border: none;
  397. padding: 16rpx 32rpx;
  398. border-radius: 40rpx;
  399. font-size: 28rpx;
  400. display: flex;
  401. align-items: center;
  402. color: #333;
  403. font-weight: 500;
  404. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.15);
  405. transition: all 0.3s ease;
  406. .logistics-icon {
  407. width: 36rpx;
  408. height: 36rpx;
  409. margin-right: 8rpx;
  410. }
  411. &:active {
  412. transform: scale(0.95);
  413. background: rgba(255, 255, 255, 1);
  414. }
  415. }
  416. }
  417. &::before {
  418. content: '';
  419. position: absolute;
  420. top: 0;
  421. left: 0;
  422. right: 0;
  423. bottom: 0;
  424. background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  425. }
  426. &.status-waiting {
  427. background: linear-gradient(135deg, #FF6B6B 0%, #D93025 100%);
  428. }
  429. &.status-processing {
  430. background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
  431. }
  432. &.status-shipping {
  433. background: linear-gradient(135deg, #45B7D1 0%, #96C93D 100%);
  434. }
  435. &.status-completed {
  436. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  437. }
  438. .status-bg-pattern {
  439. position: absolute;
  440. top: 0;
  441. left: 0;
  442. width: 100%;
  443. height: 100%;
  444. background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAwIiBoZWlnaHQ9IjEwMDAiPgo8cmVjdCB3aWR0aD0iMTAwMCIgaGVpZ2h0PSIxMDAwIiBmaWxsPSIjZmZmIi8+Cjwvc3ZnPgo=');
  445. background-size: 200% 200%;
  446. opacity: 0.1;
  447. z-index: -1;
  448. }
  449. .status-content {
  450. position: relative;
  451. z-index: 1;
  452. display: flex;
  453. align-items: center;
  454. color: #fff;
  455. .status-icon {
  456. margin-right: 30rpx;
  457. width: 120rpx;
  458. height: 120rpx;
  459. display: flex;
  460. align-items: center;
  461. justify-content: center;
  462. .status-img {
  463. width: 100%;
  464. height: 100%;
  465. }
  466. }
  467. .status-info {
  468. flex: 1;
  469. .status-text {
  470. font-size: 40rpx;
  471. font-weight: bold;
  472. margin-bottom: 10rpx;
  473. }
  474. .status-desc {
  475. font-size: 26rpx;
  476. opacity: 0.9;
  477. line-height: 1.4;
  478. }
  479. }
  480. }
  481. }
  482. .section-header {
  483. display: flex;
  484. align-items: center;
  485. margin-bottom: 20rpx;
  486. .header-icon {
  487. margin-right: 15rpx;
  488. }
  489. .header-text {
  490. font-size: 32rpx;
  491. font-weight: bold;
  492. color: #333;
  493. margin-left: 15rpx;
  494. }
  495. }
  496. .address-section {
  497. background: #fff;
  498. padding: 30rpx;
  499. margin: 20rpx;
  500. border-radius: 20rpx;
  501. box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.08);
  502. border: 1rpx solid rgba(217, 48, 37, 0.1);
  503. .address-content {
  504. .user-info {
  505. margin-bottom: 15rpx;
  506. .name {
  507. font-size: 32rpx;
  508. font-weight: bold;
  509. color: #333;
  510. margin-right: 20rpx;
  511. }
  512. .phone {
  513. font-size: 28rpx;
  514. color: #666;
  515. }
  516. }
  517. .address {
  518. font-size: 28rpx;
  519. color: #333;
  520. line-height: 1.5;
  521. margin-bottom: 20rpx;
  522. }
  523. .logistics-info {
  524. .divider {
  525. height: 1rpx;
  526. background: #f0f0f0;
  527. margin: 20rpx 0;
  528. }
  529. .logistics-item {
  530. display: flex;
  531. align-items: center;
  532. margin-bottom: 16rpx;
  533. &:last-child {
  534. margin-bottom: 0;
  535. }
  536. .label {
  537. width: 140rpx;
  538. font-size: 26rpx;
  539. color: #666;
  540. }
  541. .value {
  542. flex: 1;
  543. font-size: 26rpx;
  544. color: #333;
  545. }
  546. .value-copy {
  547. flex: 1;
  548. display: flex;
  549. align-items: center;
  550. justify-content: space-between;
  551. .value {
  552. flex: 1;
  553. margin-right: 20rpx;
  554. }
  555. .copy-btn {
  556. font-size: 24rpx;
  557. color: #007AFF;
  558. background: rgba(0, 122, 255, 0.1);
  559. padding: 6rpx 20rpx;
  560. border-radius: 30rpx;
  561. border: none;
  562. line-height: 1.5;
  563. &:active {
  564. background: rgba(0, 122, 255, 0.2);
  565. }
  566. }
  567. }
  568. }
  569. }
  570. }
  571. }
  572. .product-section {
  573. background: #fff;
  574. padding: 30rpx;
  575. margin: 0 20rpx 20rpx;
  576. border-radius: 20rpx;
  577. box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.08);
  578. border: 1rpx solid rgba(0, 0, 0, 0.05);
  579. .product-list {
  580. .product-item {
  581. display: flex;
  582. padding: 25rpx 0;
  583. border-bottom: 1rpx solid #f0f0f0;
  584. &:last-child {
  585. border-bottom: none;
  586. }
  587. .product-image-wrapper {
  588. width: 180rpx;
  589. height: 180rpx;
  590. border-radius: 16rpx;
  591. overflow: hidden;
  592. margin-right: 25rpx;
  593. box-shadow: 0 4rpx 15rpx rgba(0, 0, 0, 0.15);
  594. position: relative;
  595. &::after {
  596. content: '';
  597. position: absolute;
  598. top: 0;
  599. left: 0;
  600. right: 0;
  601. bottom: 0;
  602. background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  603. pointer-events: none;
  604. }
  605. }
  606. .product-image {
  607. width: 100%;
  608. height: 100%;
  609. }
  610. .product-info {
  611. flex: 1;
  612. display: flex;
  613. flex-direction: column;
  614. justify-content: space-between;
  615. .product-name {
  616. font-size: 30rpx;
  617. color: #333;
  618. font-weight: 500;
  619. line-height: 1.4;
  620. margin-bottom: 10rpx;
  621. }
  622. .product-spec {
  623. font-size: 24rpx;
  624. color: #666;
  625. background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  626. padding: 6rpx 12rpx;
  627. border-radius: 12rpx;
  628. border: 1rpx solid rgba(0, 0, 0, 0.05);
  629. }
  630. .product-price-count {
  631. display: flex;
  632. justify-content: space-between;
  633. align-items: flex-end;
  634. .price-info {
  635. display: flex;
  636. flex-direction: column;
  637. align-items: flex-start;
  638. flex: 1;
  639. }
  640. .price {
  641. font-size: 34rpx;
  642. color: #D93025;
  643. font-weight: bold;
  644. margin-bottom: 8rpx;
  645. }
  646. .subtotal {
  647. font-size: 24rpx;
  648. color: #666;
  649. background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  650. padding: 4rpx 8rpx;
  651. border-radius: 8rpx;
  652. }
  653. .count {
  654. font-size: 26rpx;
  655. color: #666;
  656. background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  657. padding: 8rpx 16rpx;
  658. border-radius: 16rpx;
  659. white-space: nowrap;
  660. border: 1rpx solid rgba(0, 0, 0, 0.05);
  661. font-weight: 500;
  662. }
  663. }
  664. }
  665. }
  666. }
  667. }
  668. .logistics-section {
  669. background: #fff;
  670. padding: 30rpx;
  671. margin: 0 20rpx 20rpx;
  672. border-radius: 20rpx;
  673. box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.08);
  674. border: 1rpx solid rgba(0, 122, 255, 0.1);
  675. .logistics-content {
  676. .logistics-item {
  677. display: flex;
  678. margin-bottom: 15rpx;
  679. &:last-child {
  680. margin-bottom: 0;
  681. }
  682. .label {
  683. width: 160rpx;
  684. font-size: 28rpx;
  685. color: #666;
  686. }
  687. .value {
  688. flex: 1;
  689. font-size: 28rpx;
  690. color: #333;
  691. }
  692. }
  693. }
  694. }
  695. .order-info {
  696. background: #fff;
  697. padding: 30rpx;
  698. margin: 0 20rpx;
  699. border-radius: 20rpx;
  700. box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.08);
  701. border: 1rpx solid rgba(0, 0, 0, 0.05);
  702. .info-content {
  703. .info-item {
  704. display: flex;
  705. margin-bottom: 20rpx;
  706. &:last-child {
  707. margin-bottom: 0;
  708. }
  709. .label {
  710. width: 160rpx;
  711. font-size: 28rpx;
  712. color: #666;
  713. }
  714. .value {
  715. flex: 1;
  716. font-size: 28rpx;
  717. color: #646464;
  718. }
  719. }
  720. }
  721. }
  722. .amount-section {
  723. background: #fff;
  724. padding: 30rpx;
  725. margin: 0 20rpx 20rpx;
  726. border-radius: 20rpx;
  727. box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.08);
  728. border: 1rpx solid rgba(217, 48, 37, 0.1);
  729. .amount-content {
  730. .amount-item {
  731. display: flex;
  732. justify-content: space-between;
  733. margin-bottom: 20rpx;
  734. font-size: 28rpx;
  735. color: #666;
  736. &.total {
  737. margin-top: 30rpx;
  738. padding-top: 30rpx;
  739. border-top: 1rpx solid #f0f0f0;
  740. color: #333;
  741. font-weight: bold;
  742. font-size: 32rpx;
  743. }
  744. .price {
  745. color: #D93025;
  746. font-weight: bold;
  747. }
  748. }
  749. }
  750. }
  751. .bottom-btns {
  752. position: fixed;
  753. left: 0;
  754. right: 0;
  755. bottom: 0;
  756. background: #fff;
  757. padding: 30rpx;
  758. display: flex;
  759. justify-content: space-between;
  760. gap: 20rpx;
  761. box-shadow: 0 -8rpx 30rpx rgba(0, 0, 0, 0.12);
  762. border-top: 1rpx solid #f0f0f0;
  763. .action-btn {
  764. flex: 1;
  765. border-radius: 50rpx;
  766. font-weight: 600;
  767. font-size: 32rpx;
  768. height: 88rpx;
  769. line-height: 88rpx;
  770. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.15);
  771. transition: all 0.3s ease;
  772. &:active {
  773. transform: translateY(2rpx);
  774. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.2);
  775. }
  776. }
  777. .primary {
  778. background: linear-gradient(135deg, #D93025 0%, #FF6B6B 100%);
  779. color: #fff;
  780. box-shadow: 0 4rpx 15rpx rgba(217, 48, 37, 0.3);
  781. }
  782. }
  783. }
  784. </style>