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

211 lines
4.2 KiB

10 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
10 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
10 months ago
7 months ago
10 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
10 months ago
  1. <template>
  2. <view class="page">
  3. <view v-if="list.length>0" class="item"
  4. v-for="(item, index) in list" :key="index">
  5. <view class="top">
  6. <view class="service">
  7. <text>{{ item.specsName }}</text>
  8. </view>
  9. <view class="status">
  10. <text>库存{{ item.num }}</text>
  11. </view>
  12. </view>
  13. <view class="zhuti">
  14. <view class="left">
  15. <image :src="item.pic" style="width: 100%;height: 100%;"
  16. mode="aspectFill"/>
  17. </view>
  18. <view class="right">
  19. <view class="text-hidden-1">
  20. 单价 {{ item.price }}
  21. </view>
  22. <view class="text-hidden-1">
  23. {{ $t('other.pickupAddress') }}{{ item.address }}
  24. </view>
  25. <view class="text-hidden-1">
  26. {{ $t('other.pickupDate') }}{{ item.createTime }}
  27. </view>
  28. </view>
  29. <!--审核状态 0审核中 1 审核通过 2审核未通过-->
  30. <!-- <view class="tip" v-if="item.showStatus == 0">
  31. <img v-if="item.auditStatus==0" src="/pages_order/static/order/3.svg" style="width: 100%;height: 100%;" />
  32. <img v-if="item.auditStatus==1" src="/pages_order/static/order/1.svg" style="width: 100%;height: 100%;" />
  33. <img v-if="item.auditStatus==2" src="/pages_order/static/order/2.svg" style="width: 100%;height: 100%;" />
  34. </view> -->
  35. </view>
  36. <!--撤单按钮-->
  37. <view class="bottom">
  38. <view @click.stop="showVideo(item)" class="btn"
  39. v-if="item.reportVideo"
  40. >
  41. 检测视频
  42. </view>
  43. <view @click.stop="showImage(item)" class="btn"
  44. v-if="item.report"
  45. >
  46. 检测报告
  47. </view>
  48. <view @click.stop="immediatePurchase(item)" class="btn a"
  49. >
  50. 立即下单
  51. </view>
  52. </view>
  53. </view>
  54. <!--无历史记录-->
  55. <view style="padding: 100rpx 0;" v-else>
  56. <uv-empty mode="history" textSize="28rpx" iconSize="100rpx" />
  57. </view>
  58. </view>
  59. </template>
  60. <script>
  61. export default {
  62. name: "orderList",
  63. props: {
  64. list: {
  65. type: Array,
  66. default: false
  67. },
  68. showBackOrder: {
  69. type: Boolean,
  70. default: false
  71. }
  72. },
  73. data() {
  74. return {}
  75. },
  76. methods: {
  77. // 立即购买
  78. immediatePurchase(item) {
  79. console.log("====")
  80. // var itemStr = encodeURIComponent(JSON.stringify(item));
  81. this.$store.state.productDetail = item
  82. uni.navigateTo({
  83. url: `/pages_order/tradingPlatform/nowOrder`,
  84. });
  85. },
  86. showImage(item){
  87. uni.previewImage({
  88. urls : item.report.split(','),
  89. current : 0,
  90. })
  91. },
  92. showVideo(item, index = 0){
  93. this.$emit('previewVideo', {
  94. urls : item.reportVideo.split(','), // 需要预览的资源列表
  95. index, // 当前显示的资源序号
  96. })
  97. },
  98. }
  99. }
  100. </script>
  101. <style scoped lang="scss">
  102. .page {
  103. display: flex;
  104. flex-direction: column;
  105. gap: 20rpx;
  106. // height: calc(90vh - 180rpx);
  107. .item {
  108. margin: 0 20rpx;
  109. padding: 20rpx;
  110. border-radius: 40rpx;
  111. background-color: #fff;
  112. //overflow: hidden;
  113. //height:300px;
  114. .top {
  115. display: flex;
  116. justify-content: space-between;
  117. align-items: center;
  118. font-size: 30rpx;
  119. .service {
  120. color: #000;
  121. }
  122. .status {
  123. color: #8d8d8d;
  124. font-size: 26rpx;
  125. font-weight: 600;
  126. }
  127. }
  128. .zhuti {
  129. display: flex;
  130. margin: 10rpx 0;
  131. position: relative;
  132. .left {
  133. width: 150rpx;
  134. height: 150rpx;
  135. border-radius: 10rpx;
  136. image {
  137. width: 150rpx;
  138. height: 150rpx;
  139. border-radius: 10rpx;
  140. }
  141. }
  142. .right {
  143. width: calc(100% - 160rpx);
  144. color: #777;
  145. font-size: 24rpx;
  146. padding-left: 20rpx;
  147. line-height: 40rpx;
  148. background-color: #f8f8f8;
  149. }
  150. .tip {
  151. width: 80rpx;
  152. height: 80rpx;
  153. position: absolute;
  154. bottom: -20rpx;
  155. right: -20rpx;
  156. }
  157. }
  158. .bottom {
  159. display: flex;
  160. justify-content: flex-end;
  161. .btn {
  162. display: flex;
  163. align-items: center;
  164. justify-content: center;
  165. // width: ;
  166. padding: 0 24rpx;
  167. height: 50rpx;
  168. border-radius: 40rpx;
  169. color: $uni-color;
  170. font-size: 24rpx;
  171. margin: 20rpx 10rpx 0 0;
  172. background: #ffffff;
  173. border: 1px solid $uni-color;
  174. //margin-top: 20rpx;
  175. border-radius: 40rpx;
  176. }
  177. .a{
  178. background-color: $uni-color;
  179. color: #fff;
  180. }
  181. }
  182. }
  183. }
  184. </style>