dmWithDrawalRecord.vue 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  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_" :style="{color:contentColor}">累计提现</text>
  6. <text class="report_title_money" :style="{color:color2}">¥{{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" :style="{color:contentColor}">
  11. 提现金额
  12. </view>
  13. <view class="title_item" :style="{color:contentColor}">
  14. 提现时间
  15. </view>
  16. <view class="title_item" :style="{color:contentColor}">
  17. 提现结果
  18. </view>
  19. <view class="title_item" :style="{color:contentColor}">
  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" :style="{color:titleColor}">
  26. ¥{{item.amount}}
  27. </view>
  28. <view class="withDrawal_item" :style="{color:titleColor}">
  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" :style="{color:titleColor}">
  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. titleColor:"",
  73. contentColor:"",
  74. color2:"",
  75. }
  76. },
  77. methods:{
  78. show() {
  79. this.pageNo=1;
  80. this.getRecordList();
  81. this.$refs.popView.show()
  82. },
  83. knowAction(){
  84. this.$refs.popView.hide()
  85. },
  86. async getRecordList(){
  87. let param = {
  88. "pageNo": this.pageNo,
  89. "pageSize": this.pageSize
  90. }
  91. const res = await this.$myRequest({
  92. url: '/cash/self',
  93. data:param
  94. });
  95. if(res&&res.data.success){
  96. if(this.pageNo==1){
  97. this.recordList = [];
  98. }
  99. let recordList = res.data.pageModel.resultSet||[];
  100. this.recordList = this.recordList.concat(recordList);
  101. this.total = res.data.pageModel.total||0
  102. }
  103. },
  104. loadMore(){
  105. if(this.recordList.length<this.total){
  106. this.pageNo++;
  107. this.getRecordList();
  108. }
  109. }
  110. },
  111. mounted() {
  112. this.titleColor = getApp().globalData.titleColor;
  113. this.contentColor = getApp().globalData.contentColor;
  114. this.color2 = getApp().globalData.color2;
  115. },
  116. components:{
  117. dmDialog
  118. }
  119. }
  120. </script>
  121. <style scoped lang="scss">
  122. .content{
  123. width: 100%;
  124. min-height: 600rpx;
  125. overflow: hidden;
  126. }
  127. .report_title{
  128. display: flex;
  129. align-items: center;
  130. justify-content: center;
  131. margin-top: 52rpx;
  132. margin-bottom: 28rpx;
  133. .report_title_{
  134. font-size: 28rpx;
  135. font-family: Verdana, Verdana-Regular;
  136. font-weight: 400;
  137. text-align: left;
  138. color: #b1b1b1;
  139. }
  140. .report_title_money{
  141. font-size: 48rpx;
  142. font-family: DIN Alternate, DIN Alternate-Bold;
  143. font-weight: 700;
  144. text-align: left;
  145. color: #fd8f3c;
  146. margin-left: 18rpx;
  147. }
  148. }
  149. .scroll-view{
  150. width: 100%;
  151. height: 400rpx;
  152. }
  153. .withDrawal{
  154. .withDrawal_title{
  155. display: flex;
  156. justify-content: space-between;
  157. padding-right: 30rpx;
  158. box-sizing: border-box;
  159. margin-bottom: 26rpx;
  160. .title_item{
  161. font-size: 24rpx;
  162. font-family: Verdana, Verdana-Regular;
  163. font-weight: 400;
  164. text-align: center;
  165. color: #b1b1b1;
  166. width: 25%;
  167. }
  168. }
  169. .withDrawal_content{
  170. display: flex;
  171. justify-content: space-between;
  172. padding-right: 30rpx;
  173. box-sizing: border-box;
  174. margin-bottom: 50rpx;
  175. .withDrawal_item{
  176. width: 25%;
  177. font-size: 24rpx;
  178. font-family: Verdana, Verdana-Regular;
  179. font-weight: 400;
  180. text-align: center;
  181. color: #2c2c2c;
  182. display: flex;
  183. justify-content: center;
  184. align-items: center;
  185. }
  186. .withDrawal_item_success{
  187. width: 84rpx;
  188. height: 44rpx;
  189. line-height: 44rpx;
  190. background: rgba(40,181,45,0.1);
  191. border-radius: 8rpx;
  192. font-size: 24rpx;
  193. font-family: Verdana, Verdana-Regular;
  194. font-weight: 400;
  195. text-align: center;
  196. color: #28b52d;
  197. }
  198. .withDrawal_item_failure{
  199. width: 84rpx;
  200. height: 44rpx;
  201. line-height: 44rpx;
  202. background: rgba(240,116,35,0.1);
  203. border-radius: 8rpx;
  204. font-size: 24rpx;
  205. font-family: Verdana, Verdana-Regular;
  206. font-weight: 400;
  207. text-align: center;
  208. color: rgba(216,68,68,1);
  209. }
  210. .withDrawal_item_confirmed{
  211. width: 84rpx;
  212. height: 44rpx;
  213. line-height: 44rpx;
  214. background: rgba(255,196,68,0.1);
  215. border-radius: 8rpx;
  216. font-size: 24rpx;
  217. font-family: Verdana, Verdana-Regular;
  218. font-weight: 400;
  219. text-align: center;
  220. color: rgba(255,196,68,1);
  221. }
  222. }
  223. }
  224. .withDrawal_empty{
  225. display: flex;
  226. flex-direction: column;
  227. justify-content: center;
  228. align-items: center;
  229. .empty{
  230. width: 284rpx;
  231. height: 228rpx;
  232. }
  233. .empty_txt{
  234. font-size: 28rpx;
  235. font-family: PingFang SC, PingFang SC-Medium;
  236. font-weight: 500;
  237. text-align: center;
  238. color: #b1b3ba;
  239. }
  240. }
  241. .no_more{
  242. opacity: 0.8;
  243. font-size: 32rpx;
  244. font-family: Verdana, Verdana-Regular;
  245. font-weight: 400;
  246. text-align: center;
  247. color: #818181;
  248. margin-bottom: 35rpx;
  249. }
  250. </style>