dmWithDrawalRecord.vue 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. <template>
  2. <dmDialog ref='popView' :isShowTitle="true" title="提现记录" :isShowClose="true" :isShowConfirm="false" >
  3. <view class="content">
  4. <view class="report_title">
  5. <text class="report_title_">累计提现</text>
  6. <text class="report_title_money">¥{{alreadyCashOut||'0.00'}}</text>
  7. </view>
  8. <view class="withDrawal" v-if="recordList.length>0">
  9. <view class="withDrawal_title">
  10. <view class="title_item">
  11. 提现金额
  12. </view>
  13. <view class="title_item">
  14. 提现时间
  15. </view>
  16. <view class="title_item">
  17. 提现结果
  18. </view>
  19. <view class="title_item">
  20. 微信到账时间
  21. </view>
  22. </view>
  23. <scroll-view class="scroll-view" :scroll-y="true" @scrolltolower="loadMore">
  24. <view class="withDrawal_content" v-for="(item,index) in recordList" :key='item.orderNo'>
  25. <view class="withDrawal_item">
  26. ¥{{item.amount}}
  27. </view>
  28. <view class="withDrawal_item">
  29. {{item.applyTime}}
  30. </view>
  31. <view class="withDrawal_item_success" v-if="item.cashStatus==1">
  32. 成功
  33. </view>
  34. <view class="withDrawal_item_failure" v-if="item.cashStatus==2">
  35. 失败
  36. </view>
  37. <view class="withDrawal_item_confirmed" v-if="item.cashStatus==3">
  38. 待确认
  39. </view>
  40. <view class="withDrawal_item">
  41. {{item.cashTime}}
  42. </view>
  43. </view>
  44. </scroll-view>
  45. </view>
  46. <view class="withDrawal_empty" v-else>
  47. <image class="empty" src="../../static/icons/img_withDrawal_empty.png" mode=""></image>
  48. <text class="empty_txt">暂无提现记录</text>
  49. </view>
  50. <view class="no_more" v-if="recordList.length>0&&recordList.length==total">
  51. 没有更多了
  52. </view>
  53. </view>
  54. </dmDialog>
  55. </template>
  56. <script>
  57. import dmDialog from "./dmDialog.vue"
  58. export default{
  59. props:{
  60. alreadyCashOut:[String,Number]
  61. },
  62. data(){
  63. return {
  64. recordList:[],
  65. total:0,
  66. pageNo:1,
  67. pageSize:10,
  68. }
  69. },
  70. methods:{
  71. show() {
  72. this.$refs.popView.show()
  73. },
  74. knowAction(){
  75. this.$refs.popView.hide()
  76. },
  77. async getRecordList(){
  78. let param = {
  79. "pageNo": this.pageNo,
  80. "pageSize": this.pageSize
  81. }
  82. const res = await this.$myRequest({
  83. url: '/cash/self',
  84. data:param
  85. });
  86. if(res&&res.data.success){
  87. if(this.pageNo==1){
  88. this.recordList = [];
  89. }
  90. let recordList = res.data.pageModel.resultSet||[];
  91. this.recordList = this.recordList.concat(recordList);
  92. this.total = res.data.pageModel.total||0
  93. }
  94. },
  95. loadMore(){
  96. if(this.recordList.length<this.total){
  97. this.pageNo++;
  98. this.getRecordList();
  99. }
  100. }
  101. },
  102. mounted() {
  103. this.pageNo=1;
  104. this.getRecordList();
  105. },
  106. components:{
  107. dmDialog
  108. }
  109. }
  110. </script>
  111. <style scoped lang="scss">
  112. .content{
  113. width: 100%;
  114. min-height: 600rpx;
  115. overflow: hidden;
  116. }
  117. .report_title{
  118. display: flex;
  119. align-items: center;
  120. justify-content: center;
  121. margin-top: 52rpx;
  122. margin-bottom: 28rpx;
  123. .report_title_{
  124. font-size: 28rpx;
  125. font-family: Verdana, Verdana-Regular;
  126. font-weight: 400;
  127. text-align: left;
  128. color: #b1b1b1;
  129. }
  130. .report_title_money{
  131. font-size: 48rpx;
  132. font-family: DIN Alternate, DIN Alternate-Bold;
  133. font-weight: 700;
  134. text-align: left;
  135. color: #fd8f3c;
  136. margin-left: 18rpx;
  137. }
  138. }
  139. .scroll-view{
  140. width: 100%;
  141. height: 400rpx;
  142. }
  143. .withDrawal{
  144. .withDrawal_title{
  145. display: flex;
  146. justify-content: space-between;
  147. padding-right: 30rpx;
  148. box-sizing: border-box;
  149. margin-bottom: 26rpx;
  150. .title_item{
  151. font-size: 24rpx;
  152. font-family: Verdana, Verdana-Regular;
  153. font-weight: 400;
  154. text-align: center;
  155. color: #b1b1b1;
  156. width: 25%;
  157. }
  158. }
  159. .withDrawal_content{
  160. display: flex;
  161. justify-content: space-between;
  162. padding-right: 30rpx;
  163. box-sizing: border-box;
  164. margin-bottom: 50rpx;
  165. .withDrawal_item{
  166. width: 25%;
  167. font-size: 24rpx;
  168. font-family: Verdana, Verdana-Regular;
  169. font-weight: 400;
  170. text-align: center;
  171. color: #2c2c2c;
  172. }
  173. .withDrawal_item_success{
  174. width: 84rpx;
  175. height: 44rpx;
  176. line-height: 44rpx;
  177. background: rgba(40,181,45,0.1);
  178. border-radius: 8rpx;
  179. font-size: 24rpx;
  180. font-family: Verdana, Verdana-Regular;
  181. font-weight: 400;
  182. text-align: center;
  183. color: #28b52d;
  184. }
  185. .withDrawal_item_failure{
  186. width: 84rpx;
  187. height: 44rpx;
  188. line-height: 44rpx;
  189. background: rgba(240,116,35,0.1);
  190. border-radius: 8rpx;
  191. font-size: 24rpx;
  192. font-family: Verdana, Verdana-Regular;
  193. font-weight: 400;
  194. text-align: center;
  195. color: rgba(216,68,68,1);
  196. }
  197. .withDrawal_item_confirmed{
  198. width: 84rpx;
  199. height: 44rpx;
  200. line-height: 44rpx;
  201. background: rgba(255,196,68,0.1);
  202. border-radius: 8rpx;
  203. font-size: 24rpx;
  204. font-family: Verdana, Verdana-Regular;
  205. font-weight: 400;
  206. text-align: center;
  207. color: rgba(255,196,68,1);
  208. }
  209. }
  210. }
  211. .withDrawal_empty{
  212. display: flex;
  213. flex-direction: column;
  214. justify-content: center;
  215. align-items: center;
  216. .empty{
  217. width: 284rpx;
  218. height: 228rpx;
  219. }
  220. .empty_txt{
  221. font-size: 28rpx;
  222. font-family: PingFang SC, PingFang SC-Medium;
  223. font-weight: 500;
  224. text-align: center;
  225. color: #b1b3ba;
  226. }
  227. }
  228. .no_more{
  229. opacity: 0.8;
  230. font-size: 32rpx;
  231. font-family: Verdana, Verdana-Regular;
  232. font-weight: 400;
  233. text-align: center;
  234. color: #818181;
  235. margin-bottom: 35rpx;
  236. }
  237. </style>