order-goods-card.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. <template>
  2. <view @click.stop="goOrderInfo(data.id)">
  3. <view class="sigleI" v-for="(item,index) in data.order_details" :key="item.id">
  4. <view class="content">
  5. <view class="pic">
  6. <u-image width="180rpx" height="180rpx" :src="item.goods_cover"></u-image>
  7. </view>
  8. <view class="info">
  9. <view class="title">{{ item.goods_title }}</view>
  10. <view class="desc">
  11. <view class="sku item">
  12. <text>规格</text>
  13. <text>{{ item.goods_sku }}</text>
  14. </view>
  15. </view>
  16. <view class="price">
  17. <text>¥</text>
  18. <text>{{ item.goods_price_selling }}</text>
  19. </view>
  20. </view>
  21. <view class="status">
  22. <view class="status-label">
  23. <slot></slot>
  24. </view>
  25. <view class="num">
  26. <text>×</text>
  27. <text>{{ item.goods_nums }}</text>
  28. </view>
  29. </view>
  30. </view>
  31. <!-- {{data.status}}============{{item.sub_status}} -->
  32. <!--
  33. sub_status:10=正常(非售后订单),20=仅退款,21=卖家同意,22=卖家驳回,30=退货退款,31=卖家同意(用户填写退货单号),32=卖家驳回,33=等待卖家收货确认中,34=卖家确认收货,验货没问题金额已原路退回
  34. -->
  35. <!-- String(data.status)=='15'&& -->
  36. <view class="oparBtns" v-if="String(item.sub_status)!=='10'">
  37. <!-- <text v-if="item.sub_status=='20'">退款审核中</text>
  38. <text v-if="item.sub_status=='21'">退款成功</text>
  39. <text v-if="item.sub_status=='22'">退款失败</text>
  40. <text v-if="item.sub_status=='30'">退货申请中,等待客服审核</text>
  41. <text v-if="item.sub_status=='31'">售后中</text>
  42. <text v-if="item.sub_status=='32'">申请失败,如有疑问可联系客服</text>
  43. <text v-if="item.sub_status=='33'">等待卖家收货确认</text>
  44. <text v-if="item.sub_status=='34'">卖家已确认收货,正在退款中</text>
  45. <text v-if="item.sub_status=='344'">退款成功</text> -->
  46. <text class="descp">该商品存在售后</text>
  47. <!-- <u-button type="default" size="mini" shape="circle" @click="afterSalesDetail(item.order_refund_id)">前往查看</u-button> -->
  48. </view>
  49. </view>
  50. </view>
  51. </template>
  52. <script>
  53. import {
  54. orderOperate
  55. } from '@/pages-mall/mixins/order-operate.js';
  56. export default {
  57. name: 'goods-card',
  58. mixins: [orderOperate],
  59. props: {
  60. // 数据源
  61. data: {
  62. type: Object,
  63. default: () => {
  64. return {};
  65. }
  66. },
  67. // 是否显示下边框
  68. showBorderBottom: {
  69. type: Boolean,
  70. default: false
  71. }
  72. },
  73. data() {
  74. return {};
  75. },
  76. methods: {}
  77. };
  78. </script>
  79. <style lang="scss" scoped>
  80. .sigleI{
  81. border-bottom: 1rpx solid $app-theme-border-color;
  82. }
  83. .oparBtns{
  84. padding: 15rpx 30rpx;
  85. // text-align: right;
  86. }
  87. .content {
  88. display: flex;
  89. align-items: center;
  90. align-content: space-between;
  91. padding: 30rpx;
  92. // &.showBorderBottom {
  93. // margin-bottom: 30rpx;
  94. // padding-bottom: 24rpx;
  95. // border-bottom: 1rpx solid $app-theme-border-color;
  96. // }
  97. .pic {
  98. margin-right: 24rpx;
  99. border-radius: 16rpx;
  100. overflow: hidden;
  101. }
  102. .info {
  103. width: 280rpx;
  104. margin-right: 20rpx;
  105. .title {
  106. width: 100%;
  107. display: -webkit-box;
  108. overflow: hidden;
  109. -webkit-line-clamp: 2;
  110. -webkit-box-orient: vertical;
  111. font-size: 28rpx;
  112. font-weight: 400;
  113. color: $app-theme-text-black-color;
  114. margin-bottom: 14rpx;
  115. }
  116. .desc {
  117. display: flex;
  118. justify-content: flex-start;
  119. align-items: flex-end;
  120. margin-bottom: 18rpx;
  121. .item {
  122. margin-right: 24rpx;
  123. text:nth-child(1) {
  124. font-size: 24rpx;
  125. color: $app-theme-card-gray-color;
  126. margin-right: 8rpx;
  127. }
  128. text:nth-child(2) {
  129. font-size: 24rpx;
  130. color: $app-theme-card-gray-deep-color;
  131. }
  132. }
  133. }
  134. .price {
  135. text:nth-child(1) {
  136. font-size: 16rpx;
  137. color: $app-theme-text-black-color;
  138. }
  139. text:nth-child(2) {
  140. font-size: 28rpx;
  141. color: $app-theme-text-black-color;
  142. }
  143. }
  144. }
  145. .status {
  146. width: 120rpx;
  147. .status-label {
  148. width: 100%;
  149. text-align: right;
  150. font-size: 28rpx;
  151. color: $app-theme-color;
  152. margin-bottom: 100rpx;
  153. height: 28rpx;
  154. }
  155. .num {
  156. width: 100%;
  157. text-align: right;
  158. text:nth-child(1) {
  159. font-size: 24rpx;
  160. color: $app-theme-text-gray-white-color;
  161. vertical-align: bottom;
  162. }
  163. text:nth-child(2) {
  164. font-size: 28rpx;
  165. color: $app-theme-text-gray-white-color;
  166. vertical-align: bottom;
  167. }
  168. }
  169. }
  170. }
  171. .descp{
  172. margin-right: 20rpx;
  173. color: #aaa;
  174. }
  175. </style>