returnDetail.vue 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403
  1. <template>
  2. <view>
  3. <view class="topt flexC" :class="item.apply_status == 5 ? 'toptbanner_success' : 'toptbanner_audit'">
  4. <image :src="item.apply_status == 5 ? topImg[1] : topImg[0]" class="topt_img"></image>
  5. <view class="topt_text flexM">
  6. <text>{{ item.apply_status == 5 ? '退货成功' : '退货审核中...' }}</text>
  7. <text>{{ item.apply_status == 5 ? '' : '正在审核请耐心等待' }}</text>
  8. </view>
  9. </view>
  10. <view class="box">
  11. <view class="box_yingtui flexB">
  12. <text>应退金额</text>
  13. <view class="right">
  14. <text>¥</text>
  15. <text>{{ item.return_price }}</text>
  16. </view>
  17. </view>
  18. <view class="box_title">
  19. 退货商品
  20. </view>
  21. <view class="boxList">
  22. <view>
  23. <view v-for="(v, ind) in item.applydetail" :key="ind" class="flexV" style="padding-top: 24rpx">
  24. <image :src="v.goods_img" mode="" class="boxList_goodImage"></image>
  25. <view>
  26. <view class="goodName">大卫博士健康内裤({{ v.good_name + v.good_size }})</view>
  27. <view class="goodNumD flexB">
  28. <view class="goodNumD_left">{{ `${v.total + (v.unit ? v.unit : '条' )}` }}</view>
  29. <view class="goodNumD_right">
  30. <text>¥{{ v.return_price }}</text>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. <!-- <view class="boxList_style flexB">
  36. <text>女款</text>
  37. <text>M</text>
  38. <text>X1</text>
  39. <text>¥179</text>
  40. </view>
  41. <view class="boxList_style flexB">
  42. <text>女款</text>
  43. <text>M</text>
  44. <text>X1</text>
  45. <text>¥179</text>
  46. </view> -->
  47. </view>
  48. <view class="boxList_bottom">
  49. <view class="bottom1">
  50. <text v-show="item.count">{{ item.count }}套</text>
  51. <text v-show="item.total">{{ item.total }}条</text>
  52. </view>
  53. <text class="bottom2">合计;</text>
  54. <text class="bottom3">¥</text>
  55. <text class="bottom4">{{ item.return_price }}</text>
  56. </view>
  57. </view>
  58. </view>
  59. <view class="detail">
  60. <!-- <view class="detail_item flexB">
  61. <text class="text1">
  62. 订单编号:<text>DD446123456515454464</text>
  63. </text>
  64. <text class="copy">
  65. 复制
  66. </text>
  67. </view> -->
  68. <view class="detail_item flexB">
  69. <text class="text1">
  70. 退货单号:<text>{{ item.apply_number }}</text>
  71. </text>
  72. <text class="copy" @click="copy(item.apply_number)">
  73. 复制
  74. </text>
  75. </view>
  76. <view class="detail_item">
  77. <text class="text1">
  78. 退货状态:
  79. </text>
  80. <text class="text2">
  81. {{ item.apply_status == 5 ? '退货成功' : '退货审核中' }}
  82. </text>
  83. </view>
  84. <view class="detail_item">
  85. <text class="text1">
  86. 申请时间:
  87. </text>
  88. <text>
  89. {{ newDate(item.created_at) }}
  90. </text>
  91. </view>
  92. <!-- <view class="detail_item">
  93. <text class="text1">
  94. 退货原因:
  95. </text>
  96. <text class="text2">
  97. 不愿意穿了
  98. </text>
  99. </view>
  100. <view class="detail_item" style="display: flex;">
  101. <view class="text1" style="width: 162rpx;">
  102. 补充说明:
  103. </view>
  104. <view class="remark">
  105. <text>店长态度恶劣,想退货不想买他东西。</text>
  106. <image src="../../static/CustomerReturnPay/wall-min.png"></image>
  107. </view>
  108. </view> -->
  109. </view>
  110. </view>
  111. </template>
  112. <script>
  113. export default {
  114. data() {
  115. return {
  116. item: {},
  117. topImg: [
  118. require('../../static/return/audit1.png'),
  119. require('../../static/return/succe1.png'),
  120. // require('../../static/return/error1.png')
  121. ],
  122. tid: 0
  123. }
  124. },
  125. onLoad(opt) {
  126. this.item = JSON.parse(decodeURIComponent(opt.item))
  127. },
  128. methods: {
  129. newDate(time) {
  130. var date = new Date(time)
  131. var y = date.getFullYear()
  132. var m = date.getMonth() + 1
  133. m = m < 10 ? '0' + m : m
  134. var d = date.getDate()
  135. d = d < 10 ? '0' + d : d
  136. var h = date.getHours()
  137. h = h < 10 ? '0' + h : h
  138. var minute = date.getMinutes()
  139. minute = minute < 10 ? '0' + minute : minute
  140. var s = date.getSeconds()
  141. s = s < 10 ? '0' + s : s
  142. return y + '-' + m + '-' + d + ' ' + h + ':' + minute + ':' + s
  143. },
  144. /*复制单号*/
  145. copy(order_num) {
  146. try {
  147. uni.setClipboardData({
  148. data: order_num,
  149. success: () => {
  150. uni.showToast({
  151. title: '复制成功'
  152. })
  153. }
  154. })
  155. } catch (e) {
  156. uni.showModal({
  157. content: '您的手机暂不支持复制',
  158. showCancel: false
  159. })
  160. }
  161. },
  162. }
  163. }
  164. </script>
  165. <style>
  166. page {
  167. background-color: #fff;
  168. }
  169. </style>
  170. <style lang="scss" scoped>
  171. .toptbanner_audit {
  172. background: linear-gradient(270deg, #FCBC05 0%, #FFA600 100%);
  173. }
  174. .toptbanner_success {
  175. background: linear-gradient(270deg, #85CE52 35%, #5FBC23 100%);
  176. }
  177. .toptbanner_error {
  178. background: linear-gradient(270deg, #FE4815 35%, #F30000 100%);
  179. }
  180. .topt {
  181. padding: 32rpx 0 92rpx 0;
  182. &_img {
  183. width: 150rpx;
  184. height: 114rpx;
  185. margin-right: 22rpx;
  186. }
  187. &_text {
  188. text:nth-child(1) {
  189. font-size: 38rpx;
  190. font-family: PingFang SC-Bold, PingFang SC;
  191. font-weight: bold;
  192. color: #FFFFFF;
  193. }
  194. text:nth-child(2) {
  195. display: inline-block;
  196. font-size: 28rpx;
  197. font-family: PingFang SC-Regular, PingFang SC;
  198. font-weight: 400;
  199. color: #FFFFFF;
  200. margin-top: 6rpx
  201. }
  202. }
  203. }
  204. .box {
  205. margin-top: -48rpx;
  206. background: #FFFFFF;
  207. border-radius: 16rpx 16rpx 0rpx 0rpx;
  208. padding: 24rpx;
  209. &_yingtui {
  210. padding-bottom: 30rpx;
  211. margin-bottom: 24rpx;
  212. border-bottom: 2rpx dashed #EEEEEE;
  213. text {
  214. font-size: 34rpx;
  215. font-family: PingFang SC-Bold, PingFang SC;
  216. font-weight: bold;
  217. color: #333333;
  218. }
  219. .right {
  220. text:nth-child(1) {
  221. font-size: 28rpx;
  222. font-family: HarmonyOS Sans SC-Regular, HarmonyOS Sans SC;
  223. font-weight: 400;
  224. color: #FB231F;
  225. }
  226. text:nth-child(2) {
  227. font-size: 44rpx;
  228. font-family: HarmonyOS Sans SC-Medium, HarmonyOS Sans SC;
  229. font-weight: 500;
  230. color: #FB231F;
  231. }
  232. }
  233. }
  234. &_title {
  235. font-size: 36rpx;
  236. font-family: PingFang SC-Bold, PingFang SC;
  237. font-weight: bold;
  238. color: #333333;
  239. }
  240. .boxList {
  241. .number {
  242. font-size: 28rpx;
  243. font-family: PingFang SC-Regular, PingFang SC;
  244. font-weight: 400;
  245. color: #333333;
  246. border-bottom: 2rpx solid #E9E9E9;
  247. padding-bottom: 24rpx;
  248. }
  249. .goodName {
  250. font-size: 30rpx;
  251. font-family: PingFang SC-Bold, PingFang SC;
  252. font-weight: bold;
  253. color: #333333;
  254. }
  255. .goodNumD {
  256. margin-top: 24rpx;
  257. width: 482rpx;
  258. // &_left {
  259. // text:nth-child(2) {
  260. // font-size: 28rpx;
  261. // font-family: HarmonyOS Sans SC-Regular, HarmonyOS Sans SC;
  262. // font-weight: 400;
  263. // color: #FB231F;
  264. // }
  265. // text:nth-child(3) {
  266. // font-size: 44rpx;
  267. // font-family: HarmonyOS Sans SC-Medium, HarmonyOS Sans SC;
  268. // font-weight: 500;
  269. // color: #FB231F;
  270. // }
  271. // text:nth-child(5) {
  272. // text-decoration: line-through;
  273. // }
  274. // text:nth-child(4), text:nth-child(5), text:nth-child(6) {
  275. // font-size: 28rpx;
  276. // font-family: PingFang SC-Regular, PingFang SC;
  277. // font-weight: 400;
  278. // color: #AAAAAA;
  279. // }
  280. // }
  281. // &_right {
  282. // font-size: 32rpx;
  283. // font-family: PingFang SC-Bold, PingFang SC;
  284. // font-weight: bold;
  285. // color: #333333;
  286. // }
  287. &_left {
  288. font-size: 28rpx;
  289. font-family: PingFang SC-Regular, PingFang SC;
  290. font-weight: 400;
  291. color: #999999;
  292. padding: 4rpx 12rpx;
  293. background: #F5F5F5;
  294. border-radius: 8rpx 8rpx 8rpx 8rpx;
  295. }
  296. &_right {
  297. // text:nth-child(1) {
  298. // font-size: 28rpx;
  299. // font-family: PingFang SC-Regular, PingFang SC;
  300. // font-weight: 400;
  301. // color: #999999;
  302. // margin-right: 48rpx;
  303. // }
  304. text {
  305. font-size: 28rpx;
  306. font-family: PingFang SC-Bold, PingFang SC;
  307. font-weight: bold;
  308. color: #333333;
  309. }
  310. }
  311. }
  312. &_goodImage {
  313. width: 200rpx;
  314. height: 160rpx;
  315. border-radius: 16rpx 16rpx 16rpx 16rpx;
  316. margin-right: 20rpx;
  317. }
  318. &_style {
  319. padding: 14rpx 24rpx;
  320. background: #F9F9FB;
  321. border-radius: 8rpx 8rpx 8rpx 8rpx;
  322. font-size: 32rpx;
  323. font-family: PingFang SC-Bold, PingFang SC;
  324. font-weight: bold;
  325. color: #333333;
  326. margin-top: 24rpx;
  327. }
  328. &_bottom {
  329. text-align: end;
  330. margin-top: 42rpx;
  331. display: flex;
  332. justify-content: flex-end;
  333. align-items: flex-end;
  334. padding-bottom: 24rpx;
  335. border-bottom: 2rpx solid #E9E9E9;
  336. text {
  337. font-size: 28rpx;
  338. font-family: PingFang SC-Bold, PingFang SC;
  339. font-weight: bold;
  340. }
  341. .bottom1 {
  342. color: #999999;
  343. }
  344. .bottom2 {
  345. color: #333333;
  346. }
  347. .bottom3 {
  348. color: #FB231F;
  349. font-weight: 400 !important;
  350. }
  351. .bottom4 {
  352. font-size: 44rpx !important;
  353. font-family: HarmonyOS Sans SC-Medium, HarmonyOS Sans SC !important;
  354. color: #FB231F !important;
  355. }
  356. }
  357. }
  358. }
  359. .detail {
  360. padding: 0 24rpx 24rpx 24rpx;
  361. view, text {
  362. font-size: 32rpx;
  363. font-family: PingFang SC-Bold, PingFang SC;
  364. color: #333333;
  365. }
  366. .remark {
  367. width: 544rpx;
  368. text {
  369. display: inline-block;
  370. }
  371. image {
  372. width: 150rpx;
  373. height: 212rpx;
  374. margin: 24rpx 24rpx 0 0;
  375. }
  376. }
  377. &_item {
  378. margin-bottom: 24rpx;
  379. .text1 {
  380. font-weight: bold;
  381. text {
  382. font-weight: 400;
  383. }
  384. }
  385. .text2 {
  386. color: #FB231F;
  387. }
  388. .copy {
  389. padding: 0 8rpx;
  390. font-size: 28rpx;
  391. font-family: PingFang SC-Regular, PingFang SC;
  392. font-weight: 400;
  393. color: #FB231F;
  394. background: #FFF4F3;
  395. border-radius: 4rpx 4rpx 4rpx 4rpx;
  396. }
  397. }
  398. }
  399. </style>