refundOrderLogs.vue 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  1. <template>
  2. <view>
  3. <view class="top-cont">
  4. <!-- 背景图片 -->
  5. <image class="bg" src="../../static/images/order_top_bg.png" mode=""></image>
  6. <view class="top-inner">
  7. <!-- 这里是状态栏 -->
  8. <view class="status_bar" :style="{height: statusBarHeight}"></view>
  9. <view class="back-box" @click="back">
  10. <image src="../../static/images/back_white.png" mode=""></image>
  11. <text class="title">退款详情</text>
  12. <text></text>
  13. </view>
  14. <!-- 订单状态 -->
  15. <view class="order-status">
  16. <view class="inner">
  17. <view class="img-box">
  18. <image src="../../static/images/pag96.png" mode=""></image>
  19. </view>
  20. <view class="status-box">
  21. <text class="status">退款总额</text>
  22. </view>
  23. </view>
  24. <!-- 退款状态:退款总额 -->
  25. <view class="refund-money">
  26. <text class="unit">¥</text>
  27. <text class="num">29.4</text>
  28. </view>
  29. </view>
  30. <!-- 订单退款 -->
  31. <view class="order-refund">
  32. <view class="inner">
  33. <view class="title-box">
  34. <text class="title">订单退款</text>
  35. <view class="price-box">
  36. <text class="unit">¥</text>
  37. <text class="num">29.4</text>
  38. </view>
  39. </view>
  40. <view class="text-box">
  41. 系统已提交微信支付处理,微信审核完成后1-3个工作日
  42. 自动原路退款至您的支付账户,若超时未收到退款,请联
  43. 系客服核实
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. </view>
  49. <view class="content">
  50. <!-- 退款步骤 -->
  51. <view class="refund-steps">
  52. <view v-for="(item,index) in 3" :key="index" class="steps">
  53. <view class="title">
  54. <text :class="index == 0?'text black-text':'text'">已原路退款至您的微信支付账户</text>
  55. <!-- 左侧灰色圆点 -->
  56. <view :class="index == 1?'dot active':'dot'"></view>
  57. <!-- 对号 -->
  58. <image v-if="index == 0" class="img" src="../../static/images/complete.png" mode=""></image>
  59. </view>
  60. <view class="time">2019-9-16 10:00</view>
  61. <view v-if="index == 0" class="context">
  62. 微信支付将把钱退至原支付账户,若逾期未受到退款,请致电微信支付客服
  63. </view>
  64. </view>
  65. </view>
  66. </view>
  67. </view>
  68. </template>
  69. <script>
  70. export default {
  71. data() {
  72. return {
  73. // 状态栏的高度
  74. statusBarHeight: uni.getStorageSync('menuInfo').statusBarHeight,
  75. };
  76. },
  77. onLoad(option) {
  78. },
  79. methods: {
  80. // 返回上一页
  81. back() {
  82. uni.navigateBack()
  83. },
  84. }
  85. }
  86. </script>
  87. <style lang="scss">
  88. .top-cont{
  89. width: 100%;
  90. height: 476upx;
  91. position: relative;
  92. .bg{
  93. width: 100%;
  94. height: 100%;
  95. position: absolute;
  96. top: 0;
  97. left: 0;
  98. z-index: 1;
  99. }
  100. .top-inner{
  101. width: 100%;
  102. height: 100%;
  103. position: absolute;
  104. top: 0;
  105. left: 0;
  106. z-index: 2;
  107. .back-box{
  108. height: 88upx;
  109. padding-left: 22upx;
  110. display: flex;
  111. align-items: center;
  112. justify-content: space-between;
  113. padding: 0 20upx;
  114. image{
  115. width: 40upx;
  116. height: 40upx;
  117. }
  118. .title{
  119. font-size: 36upx;
  120. font-family: PingFang SC;
  121. font-weight: 500;
  122. color: #FFFFFF;
  123. }
  124. }
  125. .order-status{
  126. margin-top: 60upx;
  127. display: flex;
  128. align-items: center;
  129. justify-content: space-between;
  130. padding: 0 30upx;
  131. .inner{
  132. display: flex;
  133. align-items: center;
  134. .img-box{
  135. width: 96upx;
  136. height: 96upx;
  137. margin-right: 30upx;
  138. image{
  139. width: 100%;
  140. height: 100%;
  141. }
  142. }
  143. .status-box{
  144. height: 96upx;
  145. display: flex;
  146. flex-direction: column;
  147. justify-content: center;
  148. .status{
  149. font-size: 40upx;
  150. font-family: PingFang SC;
  151. font-weight: bold;
  152. color: #FFFFFF;
  153. line-height: 1;
  154. }
  155. .desc{
  156. font-size: 26upx;
  157. font-family: PingFang SC;
  158. font-weight: 500;
  159. color: #FFFFFF;
  160. line-height: 1;
  161. margin-top: 30upx;
  162. }
  163. }
  164. }
  165. // 退款状态:退款总额
  166. .refund-money{
  167. display: flex;
  168. align-items: flex-end;
  169. .unit{
  170. font-size: 32upx;
  171. font-family: PingFang SC;
  172. font-weight: bold;
  173. color: #FFFFFF;
  174. line-height: 1.2;
  175. margin-right: 10upx;
  176. }
  177. .num{
  178. font-size: 50upx;
  179. font-family: PingFang SC;
  180. font-weight: bold;
  181. color: #FFFFFF;
  182. line-height: 1;
  183. }
  184. }
  185. }
  186. .order-refund{
  187. margin-top: 50upx;
  188. padding: 0 20upx;
  189. .inner{
  190. box-sizing: border-box;
  191. height: 268upx;
  192. background: #FFFFFF;
  193. border-radius: 16upx;
  194. padding: 0 30upx;
  195. .title-box{
  196. height: 88upx;
  197. display: flex;
  198. align-items: center;
  199. justify-content: space-between;
  200. border-bottom: 1px solid #F0F0F0;
  201. .title{
  202. font-size: 30upx;
  203. font-family: PingFang SC;
  204. font-weight: bold;
  205. color: #333333;
  206. }
  207. .price-box{
  208. display: flex;
  209. align-items: flex-end;
  210. .unit{
  211. font-size: 24upx;
  212. font-family: PingFang SC;
  213. font-weight: 500;
  214. color: #FF6633;
  215. line-height: 1.2;
  216. margin-right: 4upx;
  217. }
  218. .num{
  219. font-size: 32upx;
  220. font-family: PingFang SC;
  221. font-weight: bold;
  222. color: #FF6633;
  223. line-height: 1;
  224. }
  225. }
  226. }
  227. .text-box{
  228. font-size: 26upx;
  229. font-family: PingFang SC;
  230. font-weight: 500;
  231. color: #666666;
  232. line-height: 42upx;
  233. margin-top: 22upx;
  234. }
  235. }
  236. }
  237. }
  238. }
  239. .content{
  240. padding: 0 20upx;
  241. .refund-steps{
  242. margin-top: 188upx;
  243. background: #FFFFFF;
  244. border-radius: 16upx;
  245. padding: 40upx 44upx;
  246. .steps{
  247. padding-left: 40upx;
  248. padding-bottom: 56upx;
  249. position: relative;
  250. &::after{
  251. content: "";
  252. width: 4upx;
  253. height: 100%;
  254. background: #F1F1F1;
  255. position: absolute;
  256. left: 0;
  257. top: 20upx;
  258. }
  259. &:last-child{
  260. padding-bottom: 0;
  261. &::after{
  262. display: none;
  263. }
  264. }
  265. .title{
  266. position: relative;
  267. .text{
  268. font-size: 28upx;
  269. font-family: PingFang SC;
  270. font-weight: 500;
  271. color: #666666;
  272. line-height: 38upx;
  273. &.black-text{
  274. color: #111111;
  275. }
  276. }
  277. .dot{
  278. width: 16upx;
  279. height: 16upx;
  280. background: #EBEBEB;
  281. border-radius: 50%;
  282. position: absolute;
  283. left: -46upx;
  284. top: 16upx;
  285. z-index: 10;
  286. &.active{
  287. background-color: #018C39;
  288. }
  289. }
  290. .img{
  291. width: 40upx;
  292. height: 40upx;
  293. position: absolute;
  294. left: -57upx;
  295. top: 6upx;
  296. z-index: 10;
  297. }
  298. }
  299. .time{
  300. font-size: 24upx;
  301. font-family: Gilroy;
  302. font-weight: 500;
  303. color: #999999;
  304. margin-top: 5upx;
  305. }
  306. .context{
  307. font-size: 26upx;
  308. font-family: PingFang SC;
  309. font-weight: 500;
  310. color: #999999;
  311. line-height: 40upx;
  312. margin-top: 22upx;
  313. }
  314. }
  315. }
  316. }
  317. </style>