You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
1.6 KiB

  1. <template>
  2. <view class="order-info-card">
  3. <view class="card-title">
  4. <text>其他信息</text>
  5. </view>
  6. <view class="info-content">
  7. <view class="info-item">
  8. <text class="info-label">订单编号:</text>
  9. <text class="info-value">{{orderInfo.orderNumber}}</text>
  10. </view>
  11. <view class="info-item">
  12. <text class="info-label">下单时间:</text>
  13. <text class="info-value">{{orderInfo.orderTime}}</text>
  14. </view>
  15. <view class="info-item" v-if="orderInfo.paymentTime">
  16. <text class="info-label">支付时间:</text>
  17. <text class="info-value">{{orderInfo.paymentTime}}</text>
  18. </view>
  19. </view>
  20. </view>
  21. </template>
  22. <script>
  23. export default {
  24. props: {
  25. orderInfo: {
  26. type: Object,
  27. default: () => ({
  28. orderNumber: '',
  29. orderTime: '',
  30. paymentTime: ''
  31. })
  32. }
  33. }
  34. }
  35. </script>
  36. <style lang="scss" scoped>
  37. .order-info-card {
  38. background-color: #FFFFFF;
  39. border-radius: 20rpx;
  40. padding: 30rpx;
  41. margin-bottom: 20rpx;
  42. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  43. }
  44. .card-title {
  45. font-size: 32rpx;
  46. font-weight: bold;
  47. color: #333;
  48. margin-bottom: 20rpx;
  49. display: flex;
  50. align-items: center;
  51. &::before {
  52. content: '';
  53. display: inline-block;
  54. width: 8rpx;
  55. height: 32rpx;
  56. background-color: #FFAA48;
  57. margin-right: 16rpx;
  58. border-radius: 4rpx;
  59. }
  60. }
  61. .info-content {
  62. .info-item {
  63. display: flex;
  64. margin-bottom: 16rpx;
  65. &:last-child {
  66. margin-bottom: 0;
  67. }
  68. .info-label {
  69. font-size: 26rpx;
  70. color: #666;
  71. width: 140rpx;
  72. }
  73. .info-value {
  74. font-size: 26rpx;
  75. color: #333;
  76. flex: 1;
  77. }
  78. }
  79. }
  80. </style>