returndetail.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <template>
  2. <view>
  3. <view class="cart-list">
  4. <view style="padding: 0 36upx;line-height: 70upx;border-bottom: 14upx solid #F5F5F5;">
  5. <span v-if="detail.status == 1">待处理</span>
  6. <span v-if="detail.status == 2">已退款 </span>
  7. <span v-if="detail.status == 3">退款失败</span>
  8. </view>
  9. <view style="padding: 30upx 36upx 15upx 36upx;border-bottom: 1px solid #F5F5F5;">
  10. <image :src="pictureUrl+'/uploads/home/store/'+detail.store_id+'/'+detail.store_avatar" style="border-radius: 50%;
  11. width: 50upx;height: 50upx;vertical-align: middle;"></image>
  12. <span style="padding-left: 16upx;">{{detail.store_name}}</span>
  13. </view>
  14. <view>
  15. <van-card
  16. title-class="changewidth"
  17. price-class ="priceClass"
  18. :price="detail.goods_price"
  19. :desc="detail.descire"
  20. :title="detail.desarray"
  21. :thumb="pictureUrl + '/uploads/home/store/goods/'+detail.goods_image.substr(0, detail.goods_image.indexOf('\_')) + '/' + detail.goods_image"
  22. >
  23. </van-card>
  24. </view>
  25. <view class="topTip">
  26. <view style="font-size: 28upx;">合计:{{detail.goods_price}}</view>
  27. </view>
  28. <view style="padding: 15upx 36upx;">订单编号:<text class="orderCode">{{detail.order_sn}}</text></view>
  29. <view style="padding: 15upx 36upx;">快递单号:<text class="orderCode">{{detail.goods_price}}</text></view>
  30. <view class="adressbottom">
  31. <view>申请时间: <text style="font-weight: bold;" class="time">{{detail.create_time}}</text></view>
  32. <view>原因: <text style="font-weight: bold;" class="time">{{detail.refund_remark}}</text></view>
  33. </view>
  34. </view>
  35. </view>
  36. </template>
  37. <script>
  38. import TextArea from '@/component/textarea.vue'
  39. import uploadImage from '@/component/uploadImage.vue'
  40. export default {
  41. components: {
  42. TextArea,
  43. uploadImage
  44. },
  45. data() {
  46. return {
  47. id: 0,
  48. detail: {},
  49. pictureUrl: this.pictureUrl,
  50. }
  51. },
  52. onLoad(e) {
  53. this.id = e.id;
  54. this.submitRemin();
  55. },
  56. methods: {
  57. submitRemin() {
  58. this.request({
  59. url: '/v3/order/refund_info',
  60. method: 'get',
  61. data: {
  62. id: this.id
  63. },
  64. success: (res) => {
  65. let { data } = res.data;
  66. let arr = data.goods_name.split(' ');
  67. data.desarray = arr[0];
  68. data.descire = data.goods_name.replace(arr[0], '');
  69. this.detail = data;
  70. }
  71. })
  72. }
  73. }
  74. }
  75. </script>
  76. <style lang="scss">
  77. .topTip {
  78. display: flex;
  79. align-items: center;
  80. justify-content: flex-start;
  81. padding: 20upx 36upx;
  82. }
  83. .van-card {
  84. background-color: #fff!important;
  85. }
  86. .adressbottom {
  87. padding: 0 36upx;
  88. color: #606266;
  89. border-top: 16upx solid #F5F5F5;
  90. padding-bottom: 32upx;
  91. margin-bottom: 100upx;
  92. view {
  93. padding: 32upx 0 0 0;
  94. }
  95. .time {
  96. padding-left: 16upx;
  97. }
  98. }
  99. </style>