negotiation.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <template>
  2. <view class="content">
  3. <view class="box">
  4. <view class="hflex acenter jbetween" style="padding-bottom: 28rpx;">
  5. <view class="left">退款金额</view>
  6. <view class="right">¥{{pageData.refund_money}}</view>
  7. </view>
  8. <view class="hflex acenter jbetween">
  9. <view class="left">退款状态</view>
  10. <view class="right" v-if="pageData.refund_status == 2">退款成功</view>
  11. <view class="right" v-if="pageData.refund_status == 3">退款关闭</view>
  12. <view class="right" v-if="pageData.refund_status == 1">申请中,等待商家审核</view>
  13. </view>
  14. </view>
  15. <view class="box" v-if="pageData.refund_status == 2 || pageData.refund_status == 3">
  16. <view class="user hflex acenter">
  17. <image :src="pageData.admin_headimag" class="avatar"></image>
  18. <view class="vflex">
  19. <view class="user_name text_hide">{{pageData.admin_name}}</view>
  20. <view class="user_date">{{pageData.refund_time}}</view>
  21. </view>
  22. </view>
  23. <view class="title" v-if="pageData.refund_status == 2">卖家同意了你的申请。退款成功</view>
  24. <view class="title" v-if="pageData.refund_status == 3">卖家拒绝了你的申请。拒绝原因:{{pageData.refuse_reason}}</view>
  25. <!-- <view class="imgs" v-for="(item2,index2) in item.imgs" :key="index2">
  26. <image :src="item2.url"></image>
  27. </view> -->
  28. </view>
  29. <view class="box">
  30. <view class="user hflex acenter">
  31. <image :src="pageData.user_info.headimg" class="avatar"></image>
  32. <view class="vflex">
  33. <view class="user_name text_hide">{{pageData.user_info.nickname}}</view>
  34. <view class="user_date">{{pageData.refund_time}}</view>
  35. </view>
  36. </view>
  37. <view class="title">发起了{{pageData.refund_type}}申请,申请原因:{{pageData.refund_reason}};金额:{{pageData.refund_money}}元</view>
  38. <!-- <view class="imgs" v-for="(item2,index2) in item.imgs" :key="index2">
  39. <image :src="item2.url"></image>
  40. </view> -->
  41. </view>
  42. </view>
  43. </template>
  44. <script>
  45. import $api from '@/static/js/api.js'
  46. var that = ""
  47. export default {
  48. data() {
  49. return {
  50. id: '',
  51. pageData: {
  52. }
  53. }
  54. },
  55. onLoad(options) {
  56. that = this
  57. that.id = options.id
  58. that.getData()
  59. },
  60. methods: {
  61. getData() {
  62. $api.req({
  63. url: '/data/api.Order/order_info',
  64. method: 'POST',
  65. data: {
  66. order_id: that.id
  67. }
  68. }, function(res) {
  69. if(res.code == 1) {
  70. that.pageData = res.data
  71. }
  72. })
  73. }
  74. }
  75. }
  76. </script>
  77. <style lang="scss" scoped>
  78. .content {
  79. background: #F4F4F4;
  80. padding: 20rpx 30rpx;
  81. .box {
  82. margin-top: 20rpx;
  83. width: 100%;
  84. background: #FFFFFF;
  85. border-radius: 24rpx;
  86. box-sizing: border-box;
  87. padding: 24rpx 20rpx;
  88. .left {
  89. font-size: 28rpx;
  90. font-weight: 400;
  91. color: #222222;
  92. line-height: 40rpx;
  93. }
  94. .right {
  95. font-size: 28rpx;
  96. font-weight: 400;
  97. color: #222222;
  98. line-height: 40rpx;
  99. }
  100. .user {
  101. .avatar {
  102. width: 68rpx;
  103. height: 68rpx;
  104. border-radius: 12rpx;
  105. margin-right: 16rpx;
  106. }
  107. .user_name {
  108. max-width: 500rpx;
  109. font-size: 24rpx;
  110. font-weight: 400;
  111. color: #222222;
  112. line-height: 34rpx;
  113. }
  114. .user_date {
  115. font-size: 22rpx;
  116. font-weight: 400;
  117. color: #acacac;
  118. line-height: 32rpx;
  119. }
  120. }
  121. .title {
  122. padding: 20rpx 0 0;
  123. font-size: 28rpx;
  124. font-weight: 400;
  125. color: #222222;
  126. line-height: 40rpx;
  127. }
  128. }
  129. }
  130. </style>