refundInformation.vue 6.2 KB

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