ld-goods.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <template>
  2. <view class="goodsItem u-border-one-one u-flex-center">
  3. <image :src="value.goods_cover" v-if="value.goods_cover" class="u-goods200 u-ml15" mode=""></image>
  4. <image :src="value.goods_img" v-if="value.goods_img" class="u-goods200 u-ml15" mode=""></image>
  5. <view class="u-flex1 u-flex-column-start rightText u-ml30 ">
  6. <view class="u-text2 u-1A1A1A u-font28 textWidth u-text2">
  7. <text class="thirdTag" v-if="value.third">第三方</text><text>{{ value.goods_title }}</text>
  8. </view>
  9. <view style="justify-content: flex-end;" class="u-flex-column-start u-flex1">
  10. <text class="u-font22 u-999" v-if="value.sku_set_name">规格: {{ value.sku_set_name }}</text>
  11. <view class="u-font26 u-999 u-ml15" v-if="value.num">x {{ value.num }}</view>
  12. <view class="u-font26 u-999 u-ml15" v-if="value.number">x {{ value.number }}</view>
  13. <view class="u-flex-center botPrice">
  14. <view class="u-FF0000 u-font32 " v-if="isInter">{{ value.exchange_point }}积分</view>
  15. <view class="u-FF0000 u-font32 " v-else>
  16. <rich-text v-if="isGroup" :nodes="$mUtil.priceBigSmall(value.real_price)"></rich-text>
  17. <rich-text v-else :nodes="$mUtil.priceBigSmall(value.sale_price)"></rich-text>
  18. </view>
  19. <text class="u-del u-ml15 u-999" v-if="value.market_price && zhe && !isFree">¥{{ value.market_price }}</text>
  20. <text v-if="value.market_price && zhe && !isFree">
  21. <text class="u-ml15 u-999"
  22. v-if="isGroup">{{ ((value.real_price / value.market_price) * 10).toFixed(1) }}折</text>
  23. <text class="u-ml15 u-999" v-else>{{ ((value.sale_price / value.market_price) * 10).toFixed(1) }}折</text>
  24. </text>
  25. <!-- <text class="u-font26 u-666 u-ml15" v-if="value.num">x {{value.num}}</text>
  26. <text class="u-font26 u-666 u-ml15" v-if="value.number">x {{value.number}}</text> -->
  27. </view>
  28. </view>
  29. </view>
  30. <view class="u-FF0000 u-font28 back_status" v-if="value.rights_status == 1 && value.rights_type == 1">申请退款中</view>
  31. <view class="u-FF0000 u-font28 back_status" v-if="value.rights_status == 1 && value.rights_type == 2">申请退货中</view>
  32. <view class="u-FF0000 u-font28 back_status" v-if="value.rights_status == 2 && value.rights_type == 1">退款完成</view>
  33. <view class="u-FF0000 u-font28 back_status" v-if="value.rights_status == 2 && value.rights_type == 2">退货完成</view>
  34. <view class="btnComment_status" v-if="value.transaction_status == 5 && value.comment_status == 0 && position == 0"
  35. @click="evaluation(value.id)">去评价</view>
  36. </view>
  37. </template>
  38. <script>
  39. export default {
  40. props: {
  41. value: {
  42. type: Object,
  43. default: {}
  44. },
  45. position: {
  46. type: Number,
  47. default: 0
  48. },
  49. keys: {
  50. type: Number,
  51. default: 0
  52. },
  53. isGroup: {
  54. type: Boolean,
  55. default: false
  56. },
  57. isInter: {
  58. type: Boolean,
  59. default: false
  60. },
  61. zhe: {
  62. type: Boolean,
  63. default: true
  64. },
  65. isFree: {
  66. type: Boolean,
  67. default: true
  68. }
  69. },
  70. data() {
  71. return {
  72. price: 66.2
  73. };
  74. },
  75. methods: {
  76. evaluation(id) {
  77. let data = {
  78. id: id,
  79. keys: this.keys
  80. };
  81. this.$emit('parentevaluation', data);
  82. }
  83. }
  84. };
  85. </script>
  86. <style>
  87. .bottext {
  88. /* margin-top: 44rpx; */
  89. }
  90. .goodsItem {
  91. padding: 40rpx 0;
  92. position: relative;
  93. border-bottom: 1rpx solid #e7e7e7;
  94. }
  95. .thirdTag {
  96. display: inline-block;
  97. background: #30b885;
  98. border-radius: 10rpx;
  99. line-height: 40rpx;
  100. text-align: center;
  101. margin-right: 10rpx;
  102. padding: 0 10rpx;
  103. color: #fff;
  104. font-size: 26rpx;
  105. }
  106. .textWidth {
  107. /* width: 420rpx; */
  108. height: 80rpx;
  109. line-height: 40rpx;
  110. }
  111. .btnComment_status {
  112. position: absolute;
  113. right: 0;
  114. bottom: 30rpx;
  115. background-color: #FA6138;
  116. width: 180rpx;
  117. height: 60rpx;
  118. text-align: center;
  119. line-height: 60rpx;
  120. color: #fff;
  121. font-size: 28rpx;
  122. border-radius: 40rpx;
  123. }
  124. .back_status {
  125. position: absolute;
  126. right: 30rpx;
  127. bottom: 30rpx;
  128. text-align: center;
  129. line-height: 60rpx;
  130. }
  131. </style>