refundInformation.vue 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. <template>
  2. <view class="detail">
  3. <view class="title">
  4. <view class="title-left">
  5. <image
  6. class="header-img"
  7. :src="goodsDetail.merchant.image"
  8. mode=""
  9. ></image>
  10. <text>{{ goodsDetail.merchant.merchant_name }}</text>
  11. <image
  12. class="right-325"
  13. src="../../../static/mine/325.png"
  14. mode=""
  15. ></image>
  16. </view>
  17. <view class="title-right" @click="tochat">
  18. <u-icon name="chat" color="#f83224" size="28"></u-icon>
  19. <text>联系{{ goodsDetail.merchant.id == 1 ? "平台" : "团长" }}</text>
  20. </view>
  21. </view>
  22. <view class="commodity-information">
  23. <view class="commodity-1">
  24. <image
  25. class="commodity-img"
  26. :src="goodsDetail.goods_image"
  27. mode=""
  28. ></image>
  29. <view class="">
  30. <view class="commodity-2">
  31. <view class="commodity-title">{{ goodsDetail.goods_name }} </view>
  32. </view>
  33. <view class="commodity-3">
  34. <view class="specifications">
  35. {{ goodsDetail.sku_item.item }}
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. <view class="information">
  42. <text class="_label">订单编号</text>
  43. <view style="color: #222">
  44. <text style="color: rgba(34, 34, 34, 0.6)">{{
  45. goodsDetail.order_no
  46. }}</text>
  47. <text @click="cope(goodsDetail.order_no)" style="color: #f83224">{{
  48. "&nbsp;" + "|" + "&nbsp;" + "复制"
  49. }}</text>
  50. </view>
  51. </view>
  52. <view class="information">
  53. <text class="_label">退款原因</text>
  54. <view class="_title-right"> {{ goodsDetail.refund.refund_reason }} </view>
  55. </view>
  56. <view class="information">
  57. <text class="_label">退款金额</text>
  58. <view class="_title-right"> ¥{{ goodsDetail.refund.refund_price }} </view>
  59. </view>
  60. <view class="information">
  61. <text class="_label">申请件数</text>
  62. <view class="_title-right">{{ goodsDetail.goods_num }} </view>
  63. </view>
  64. <view class="information">
  65. <text class="_label">申请时间</text>
  66. <view class="_title-right">{{ goodsDetail.refund.created_at }}</view>
  67. </view>
  68. </view>
  69. </template>
  70. <script>
  71. import textRight from "../../accountSecurity/component/textRight.vue";
  72. export default {
  73. components: {
  74. textRight,
  75. },
  76. props: {
  77. status: {
  78. typeof: Number,
  79. default: 0,
  80. },
  81. goodsDetail: {
  82. typeof: Object,
  83. default: () => {
  84. return {};
  85. },
  86. },
  87. },
  88. data() {
  89. return {
  90. packageId: "",
  91. };
  92. },
  93. onLoad(options) {},
  94. methods: {
  95. tochat() {
  96. var that = this;
  97. if (that.goodsDetail.merchant.id == 1) {
  98. uni.navigateTo({
  99. url: "/pageA/service/service",
  100. });
  101. } else {
  102. uni.navigateTo({
  103. url:
  104. "/pageA/chat/chat?user_other=" +
  105. encodeURIComponent(JSON.stringify(that.goodsDetail.merchant)) +
  106. "&user_other_no=" +
  107. that.goodsDetail.merchant.member.easemob_username,
  108. });
  109. }
  110. },
  111. application() {
  112. uni.navigateTo({
  113. url: "/pageC/applicationRefund/applicationRefund",
  114. });
  115. },
  116. //复制
  117. cope(e) {
  118. uni.setClipboardData({
  119. data: e,
  120. success() {
  121. uni.showToast({
  122. title: "复制成功",
  123. icon: "none",
  124. });
  125. },
  126. });
  127. },
  128. getDetail() {},
  129. },
  130. };
  131. </script>
  132. <style scoped lang="scss">
  133. .detail {
  134. padding: 28rpx 20rpx;
  135. background-color: #fff;
  136. border-radius: 16rpx;
  137. margin-top: 28rpx;
  138. .title {
  139. display: flex;
  140. justify-content: space-between;
  141. border-bottom: 2rpx solid rgba(151, 151, 151, 0.1);
  142. padding-bottom: 20rpx;
  143. .title-left {
  144. display: flex;
  145. font-size: 32rpx;
  146. align-items: center;
  147. .header-img {
  148. width: 36rpx;
  149. height: 36rpx;
  150. border-radius: 50%;
  151. margin-right: 20rpx;
  152. }
  153. .right-325 {
  154. width: 32rpx;
  155. height: 32rpx;
  156. }
  157. }
  158. .title-right {
  159. color: #333;
  160. display: flex;
  161. align-items: center;
  162. font-size: 28rpx;
  163. }
  164. .order-status {
  165. color: #f83224;
  166. font-size: 26rpx;
  167. }
  168. }
  169. .commodity-information {
  170. margin-top: 28rpx;
  171. .commodity-1 {
  172. display: flex;
  173. .commodity-img {
  174. width: 180rpx;
  175. height: 180rpx;
  176. margin-right: 20rpx;
  177. border-radius: 10rpx;
  178. }
  179. .commodity-2 {
  180. display: flex;
  181. justify-content: space-between;
  182. .commodity-title {
  183. color: #222;
  184. margin-right: 38rpx;
  185. font-size: 28rpx;
  186. width: 442rpx;
  187. max-height: 80rpx;
  188. display: -webkit-box;
  189. -webkit-box-orient: vertical;
  190. -webkit-line-clamp: 2;
  191. overflow: hidden;
  192. text-overflow: ellipsis;
  193. }
  194. }
  195. .commodity-3 {
  196. display: flex;
  197. justify-content: space-between;
  198. margin-top: 20rpx;
  199. color: #777;
  200. .specifications {
  201. font-size: 28rpx;
  202. color: #777;
  203. }
  204. }
  205. }
  206. }
  207. .last {
  208. border-bottom: 2rpx solid rgba(151, 151, 151, 0.1);
  209. padding-bottom: 20rpx;
  210. }
  211. .btn-list {
  212. display: flex;
  213. justify-content: flex-end;
  214. button {
  215. width: 152rpx;
  216. height: 58rpx;
  217. border: 2rpx solid #979797;
  218. color: #444;
  219. margin: 0;
  220. padding: 0;
  221. font-size: 24rpx;
  222. background-color: #fff;
  223. border-radius: 34rpx;
  224. margin-top: 20rpx;
  225. margin-left: 20rpx;
  226. }
  227. }
  228. .information {
  229. display: flex;
  230. justify-content: space-between;
  231. font-size: 28rpx;
  232. align-items: flex-end;
  233. margin: 34rpx 0;
  234. ._label {
  235. font-size: 28rpx;
  236. color: #333;
  237. }
  238. ._title-right {
  239. font-size: 28rpx;
  240. color: rgba(34, 34, 34, 0.6);
  241. }
  242. }
  243. ._bottom {
  244. display: flex;
  245. justify-content: flex-end;
  246. font-size: 28rpx;
  247. align-items: flex-end;
  248. margin-top: 34rpx;
  249. }
  250. }
  251. </style>