dmWithDrawalRecord.vue 5.6 KB

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