returnBalance.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. <template>
  2. <view>
  3. <u-navbar title="退余额" title-color="#101010" ></u-navbar>
  4. <!-- 余额 -->
  5. <view class="balance">
  6. <view class="number">
  7. 888.00
  8. </view>
  9. <view class="text">
  10. 可退余额(元)
  11. <text><image class="img" src="@/assets/img/riLine-question-line 1.svg" mode="" @click="open"></image></text >
  12. </view>
  13. <u-modal v-model="show" :content="content"></u-modal>
  14. </view>
  15. <!-- 记录 -->
  16. <view class="record">
  17. <view class="title">
  18. <view class="icon">
  19. <image src="@/assets/img/riFill-file-list-3-fill 1.svg" class="img" mode=""></image>
  20. </view>
  21. <view class="text">
  22. 退费记录
  23. </view>
  24. </view>
  25. <view class="record-group">
  26. <view class="item">
  27. <view class="way-state">
  28. <view class="way">
  29. 退至 对公账户
  30. </view>
  31. <view class="state">
  32. 退款中
  33. </view>
  34. </view>
  35. <view class="time-money">
  36. <view class="time">
  37. 01-01 00:01
  38. </view>
  39. <view class="money">
  40. 888.00元
  41. </view>
  42. </view>
  43. </view>
  44. <view class="item">
  45. <view class="way-state">
  46. <view class="way">
  47. 退至 对公账户
  48. </view>
  49. <view class="state state2">
  50. 已退款
  51. </view>
  52. </view>
  53. <view class="time-money">
  54. <view class="time">
  55. 01-01 00:01
  56. </view>
  57. <view class="money">
  58. 888.00元
  59. </view>
  60. </view>
  61. </view>
  62. </view>
  63. </view>
  64. <!-- 退款 -->
  65. <view class="bottom">
  66. <button class="btn" @click="open2">申请退款</button>
  67. <u-modal v-model="show2" :content="content2" :show-cancel-button="true"></u-modal>
  68. </view>
  69. </view>
  70. </template>
  71. <script>
  72. import * as API from '@/apis/pagejs/refund.js'
  73. export default {
  74. data() {
  75. return {
  76. show: false,
  77. show2:false,
  78. content: '本平台仅支持可退费金额全额退费。充值退款申请成功后退费金额将于5个工作日内退还至您的充值账户、对公转账金额将退还至您的对公账户。在本平台,三个月内的支付宝充值、微信支付可申请退费。退费成功后,您可以在退费记录查看退费信息和审核进度。',
  79. content2:'是否提交退费申请?申请成功后退费金额将于5个工作日内退款至您的充值账户。对公转账余额退费,申请成功后工作人员将在5~10个工作日内退款至您的对公账户。'
  80. }
  81. },
  82. onLoad() {
  83. this.getRefundAmount()
  84. },
  85. methods: {
  86. getRefundAmount(){
  87. // uni.showLoading({
  88. // title: "加载中",
  89. // mask: true,
  90. // })
  91. API.refundAmount({
  92. }).then((response) => {
  93. }).catch(error => {
  94. //uni.hideLoading();
  95. uni.showToast({
  96. title: error,
  97. icon: "none"
  98. })
  99. })
  100. },
  101. open() {
  102. this.show = true;
  103. },
  104. open2() {
  105. this.show2 = true;
  106. }
  107. }
  108. }
  109. </script>
  110. <style lang="scss" scoped>
  111. // 余额
  112. .balance{
  113. background-color: #fff;
  114. text-align: center;
  115. padding: 32rpx 0;
  116. .number{
  117. color: rgb(16,16,16);
  118. font-size: 72rpx;
  119. }
  120. .text{
  121. color: rgba(119,119,119,1);
  122. .img{
  123. width: 32rpx;
  124. height: 32rpx;
  125. margin-left: 4rpx;
  126. vertical-align: middle;
  127. }
  128. }
  129. }
  130. // 记录
  131. .record{
  132. background-color: #fff;
  133. margin-top: 24rpx;
  134. .title{
  135. display: flex;
  136. align-items: center;
  137. padding: 24rpx 32rpx;
  138. .icon{
  139. .img{
  140. width: 40rpx;
  141. height: 40rpx;
  142. vertical-align: middle;
  143. }
  144. }
  145. .text{
  146. color: rgb(16,16,16);
  147. font-size: 36rpx;
  148. margin-left: 8rpx;
  149. }
  150. }
  151. .record-group{
  152. .item{
  153. padding: 24rpx 32rpx;
  154. border-top: 1px solid rgba(221,221,221,1);
  155. .way-state{
  156. display: flex;
  157. justify-content: space-between;
  158. align-items: center;
  159. margin-bottom: 8rpx;
  160. .way{
  161. color: rgba(51,51,51,1);
  162. font-size: 32rpx;
  163. }
  164. .state{
  165. color: rgba(255,123,0,1);
  166. font-size: 32rpx;
  167. }
  168. .state2{
  169. color: rgba(0,185,98,1);
  170. }
  171. }
  172. .time-money{
  173. display: flex;
  174. justify-content: space-between;
  175. align-items: center;
  176. .time{
  177. color: rgb(153,153,153);
  178. }
  179. .money{
  180. color: rgba(16,16,16,1);
  181. }
  182. }
  183. }
  184. }
  185. }
  186. // 退款
  187. .bottom{
  188. position: fixed;
  189. bottom: 0;
  190. left: 0;
  191. right: 0;
  192. padding: 24rpx 32rpx;
  193. background-color: #fff;
  194. .btn{
  195. line-height: 80rpx;
  196. border-radius: 50px;
  197. background: linear-gradient(-88.46deg, rgba(34,109,198,1) 2.59%,rgba(9,158,237,1) 97.02%);
  198. color: rgba(255,255,255,1);
  199. font-size: 36rpx;
  200. }
  201. }
  202. </style>