时空网前端
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.

165 lines
5.5 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. <template>
  2. <view>
  3. <!-- 商品信息 -->
  4. <view class="bg-white">
  5. <skeleton :loading="skeletonLoading" :row="2" :showAvatar="false" :showTitle="true">
  6. <view class="flex justify-between align-start" style="padding: 32rpx 32rpx 30rpx 32rpx;">
  7. <image v-if="orderDetails.order.goods.cover" :src="orderDetails.order.goods.cover" mode="aspectFill" style="width: 240rpx; height: 240rpx;border-radius: 10rpx;"></image>
  8. <view class="flex-sub padding-left-sm">
  9. <view class="bref-box text-black1 lf-font-32 lf-font-bold" style="height: 88rpx;line-height: 44rpx;" v-if="orderDetails.order.goods.name">
  10. {{orderDetails.order.goods.name}}
  11. </view>
  12. <text class="block text-gray lf-font-28" style="margin-top: 20rpx;line-height: 40rpx;">数量 <text class="margin-left margin-right-xs text-gray">x</text>{{orderDetails.order.number}}</text>
  13. <view class="flex justify-between" style="margin-top: 28rpx;">
  14. <view class="text-red text-price lf-font-42 lf-font-bold" style="margin-top: 16rpx;">
  15. {{orderDetails.order.selling_price}}
  16. </view>
  17. <view>
  18. <button class="cu-btn line-gray bg-white border round margin-left-sm lf-font-28">等待审核</button>
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. </skeleton>
  24. </view>
  25. <self-line/>
  26. <skeleton :loading="skeletonLoading" :row="3" :showAvatar="false" :showTitle="true">
  27. <view class="bg-white">
  28. <view class="cu-bar padding-lr solid-bottom flex justify-between align-center text-center">
  29. <text class="text-gray lf-font-32">订单金额</text>
  30. <view class="text-price lf-font-32 text-black">
  31. {{orderDetails.order.amount}}
  32. </view>
  33. </view>
  34. <view class="cu-bar padding-lr solid-bottom flex justify-between align-center text-center">
  35. <text class="text-gray lf-font-32">扣费率</text>
  36. <view>
  37. <text class="lf-font-32 text-black">{{orderDetails.refund_rate}}%</text>
  38. </view>
  39. </view>
  40. <view class="cu-bar padding-lr solid-bottom flex justify-between align-center text-center">
  41. <text class="text-gray lf-font-32">扣费金额</text>
  42. <view class="text-price lf-font-32 text-black">
  43. {{orderDetails.refund_rate_amount}}
  44. </view>
  45. </view>
  46. </view>
  47. </skeleton>
  48. <self-line/>
  49. <!-- 表单 -->
  50. <skeleton :loading="skeletonLoading" :row="2" :showAvatar="false" :showTitle="true">
  51. <view class="bg-white">
  52. <view class="cu-bar padding-lr solid-bottom flex justify-between align-center text-center">
  53. <text class="text-gray lf-font-32">可退金额</text>
  54. <view class="text-price lf-font-32 text-black">
  55. {{orderDetails.refund_amount}}
  56. </view>
  57. </view>
  58. <view class="cu-bar padding-lr solid-bottom flex justify-between align-center text-center">
  59. <text class="text-gray lf-font-32">订单编号</text>
  60. <view>
  61. <text class="lf-font-32 text-black">{{orderDetails.order_sn}}</text>
  62. <!-- <text class="text-orange lf-font-28" @tap="copy(orderDetails.order_sn)">复制</text> -->
  63. </view>
  64. </view>
  65. <view class="padding-lr bg-white" style="padding-top: 30rpx;">
  66. <view class="cu-self menu">
  67. <view class="text-gray lf-font-28">
  68. 由于产品的特殊性在申请的过程中供应商会向您收取部分费用如有疑问可参与产品的<text class="text-orange">{{checkArea}}</text>或咨询客服
  69. </view>
  70. </view>
  71. </view>
  72. </view>
  73. </skeleton>
  74. <skeleton :loading="skeletonLoading" :row="6" :showAvatar="false" :showTitle="true">
  75. <view class="bg-white" style="padding: 40rpx 32rpx 20rpx 32rpx;">
  76. <view class="cu-self menu">
  77. <view class="lf-font-32 text-black1">退款说明</view>
  78. </view>
  79. <view class="cu-self menu" style="margin-top: 20rpx;padding-bottom: 20rpx;border-bottom: 1px solid #F5F5F5;">
  80. <view class="text-gray lf-font-32">{{orderDetails.comment}}</view>
  81. </view>
  82. </view>
  83. <view class="cu-form-group">
  84. <view class="grid col-4 grid-square flex-sub">
  85. <view style="width: 212rpx;height: 212rpx;border-radius: 10rpx;" class="bg-img" v-for="(item,index) of images" :key="index">
  86. <image :src="item.path" @tap="showImg(item.path)" style="width: 216rpx;height: 216rpx;" mode="aspectFill"></image>
  87. </view>
  88. </view>
  89. </view>
  90. <view style="height: 82rpx;"></view>
  91. </skeleton>
  92. </view>
  93. </template>
  94. <script>
  95. export default {
  96. data() {
  97. return {
  98. skeletonLoading: true,
  99. loading: false,
  100. // 选择的本地图片路径
  101. hostImg: '',
  102. // 已上传服务器的图片名称
  103. serverImg:'',
  104. order_id:1,
  105. orderDetails: {},
  106. checkArea: '',
  107. images: []
  108. }
  109. },
  110. computed: {
  111. },
  112. onLoad(e) {
  113. this.order_id = e.order_id
  114. if(this.order_id) {
  115. this.getOrderDetails()
  116. }
  117. },
  118. methods: {
  119. getOrderDetails() {
  120. this.$http(this.API.API_APPLYPAGE_DETAILS, {order_id: this.order_id}).then(res => {
  121. if(res.code == 0) {
  122. this.orderDetails = res.data.refund
  123. this.checkArea = res.data.agreement.title
  124. this.images = res.data.refund.images
  125. this.skeletonLoading = false
  126. }
  127. }).catch(err => {
  128. });
  129. },
  130. // 预览图片
  131. showImg(image) {
  132. uni.previewImage({
  133. urls: [image],
  134. });
  135. },
  136. // 点击复制
  137. copy(text) {
  138. uni.setClipboardData({
  139. data: text
  140. });
  141. },
  142. }
  143. }
  144. </script>
  145. <style lang="scss" scoped>
  146. .bref-box {
  147. text-overflow: -o-ellipsis-lastline;
  148. overflow: hidden;
  149. text-overflow: ellipsis;
  150. display: -webkit-box;
  151. -webkit-line-clamp: 2;
  152. -webkit-box-orient: vertical;
  153. }
  154. </style>