铝交易,微信公众号
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.

133 lines
2.6 KiB

9 months ago
7 months ago
9 months ago
7 months ago
9 months ago
7 months ago
9 months ago
  1. <template>
  2. <view class="page">
  3. <view v-for="(item, index) in list" v-if="list.length>0" :key="index" class="content"
  4. @click="lookDetail(item, index)">
  5. <view class="left">
  6. <image :src="item.pic" mode="aspectFill"></image>
  7. </view>
  8. <view class="right">
  9. <view class="text-hidden-1">
  10. 订单状态{{ orderStatusText(item.orderFlag) }}
  11. </view>
  12. <view class="text-hidden-1">
  13. 公司名称{{ item.companyName }}
  14. </view>
  15. <view class="text-hidden-1">
  16. 单价{{ item.price }}
  17. </view>
  18. <view class="text-hidden-1">
  19. 购买数量{{ item.num }}
  20. </view>
  21. <view class="text-hidden-1">
  22. 规格{{ item.specsName }}
  23. </view>
  24. <view class="text-hidden-1">
  25. 提货地址{{ item.address }}
  26. </view>
  27. <!--<view class="text-hidden-1">-->
  28. <!-- 定金{{ item.deposit }}-->
  29. <!--</view>-->
  30. <view class="text-hidden-1">
  31. 提货时间{{ item.takeTime }}
  32. </view>
  33. <!--审核状态 0审核中 1 审核通过 2审核未通过-->
  34. <!--<view class="text-hidden-1">-->
  35. <!-- 审核状态{{ item.auditStatus == 0? '审核中' : (item.auditStatus == 1? '审核通过' : '审核未通过') }}-->
  36. <!--</view>-->
  37. </view>
  38. </view>
  39. <!--无历史记录-->
  40. <view v-else style="padding: 100rpx 0;">
  41. <uv-empty iconSize="100rpx" mode="history" textSize="28rpx" />
  42. </view>
  43. </view>
  44. </template>
  45. <script>
  46. export default {
  47. name: "myOrderList",
  48. props: {
  49. list: {
  50. type: Array,
  51. default: false
  52. },
  53. },
  54. data() {
  55. return {}
  56. },
  57. methods: {
  58. // 订单状态 0 未确认 1已确认 2已取消 3已付保证金 4 已退款 5已提货
  59. orderStatusText(flag) {
  60. const statusMap = {
  61. 0: '未确认',
  62. 1: '已确认',
  63. 2: '已取消',
  64. 3: '已付保证金',
  65. 4: '已退款',
  66. 5: '已提货'
  67. };
  68. return statusMap[flag] || '未知状态';
  69. },
  70. // 查看详情
  71. lookDetail(item, index) {
  72. this.$store.state.orderDetail = item
  73. uni.navigateTo({
  74. url: `/pages_order/order/myOrderDetail`
  75. });
  76. },
  77. }
  78. }
  79. </script>
  80. <style lang="scss" scoped>
  81. .page {
  82. display: flex;
  83. flex-direction: column;
  84. gap: 20rpx;
  85. height: calc(90vh - 180rpx);
  86. .content {
  87. display: flex;
  88. margin: 10rpx 0;
  89. .left {
  90. width: 200rpx;
  91. height: 100%;
  92. //height: 130rpx;
  93. border-radius: 10rpx;
  94. image {
  95. //width: 130rpx;
  96. //height: 130rpx;
  97. width: 100%;
  98. height: 100%;
  99. border-radius: 10rpx;
  100. }
  101. }
  102. .right {
  103. width: calc(100% - 160rpx);
  104. color: #777;
  105. font-size: 24rpx;
  106. padding-left: 20rpx;
  107. line-height: 40rpx;
  108. background-color: #F8F8F8;
  109. }
  110. }
  111. }
  112. </style>