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

132 lines
2.8 KiB

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