|
@@ -1,5 +1,5 @@
|
|
<template>
|
|
<template>
|
|
- <app-layout class="c-wrapper">
|
|
|
|
|
|
+ <app-layout class="c-wrapper dir-top-wrap">
|
|
<!--tab-->
|
|
<!--tab-->
|
|
<view class="u-tabs-box">
|
|
<view class="u-tabs-box">
|
|
<u-tabs-swiper ref="tabs"
|
|
<u-tabs-swiper ref="tabs"
|
|
@@ -21,32 +21,40 @@
|
|
lower-threshold="80"
|
|
lower-threshold="80"
|
|
@scrolltolower="scrollBottom">
|
|
@scrolltolower="scrollBottom">
|
|
<view class="page-box">
|
|
<view class="page-box">
|
|
- <view class="cell-box">
|
|
|
|
- <view class="stamp">
|
|
|
|
- <u-image
|
|
|
|
- width="150"
|
|
|
|
- height="150"
|
|
|
|
- mode="aspectFit"
|
|
|
|
- src="@/static/images/agree.png"
|
|
|
|
- ></u-image>
|
|
|
|
- </view>
|
|
|
|
- <view class="header main-between">
|
|
|
|
- <text class="nickname">微信昵称:Z是一颗星</text>
|
|
|
|
- <text>待审核</text>
|
|
|
|
- </view>
|
|
|
|
- <view class="section main-between cross-cente">
|
|
|
|
- <view class="info main-left cross-center">
|
|
|
|
- <text>提现金额</text>
|
|
|
|
- <view class="price">¥76</view>
|
|
|
|
|
|
+ <block v-if="arr.data.length || !arr.initData">
|
|
|
|
+ <view class="cell-box" v-for="(item,itemIndex) in arr.data" :key="itemIndex">
|
|
|
|
+ <view class="stamp" v-if="item.status == 1">
|
|
|
|
+ <u-image
|
|
|
|
+ width="150"
|
|
|
|
+ height="150"
|
|
|
|
+ mode="aspectFit"
|
|
|
|
+ src="@/static/images/agree.png"
|
|
|
|
+ ></u-image>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="header main-between">
|
|
|
|
+ <text class="nickname">微信昵称:{{vuex_user_data.nickname}}</text>
|
|
|
|
+ <text>{{item.status==1?'已通过':(item.status==2?'已驳回':'带审核')}}</text>
|
|
</view>
|
|
</view>
|
|
- <view class="name cross-center">
|
|
|
|
- 张三(2390573452730)
|
|
|
|
|
|
+ <view class="section main-between cross-cente">
|
|
|
|
+ <view class="info main-left cross-center">
|
|
|
|
+ <text>提现金额</text>
|
|
|
|
+ <view class="price">¥{{item.price}}</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="name cross-center">
|
|
|
|
+ {{item.name}}({{item.account}})
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="footer">
|
|
|
|
+ <text>申请时间:{{item.created_at}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="footer">
|
|
|
|
- <text>申请时间:2021/07/21 15:45</text>
|
|
|
|
|
|
+ <u-loadmore :status="arr.status" font-size="20" margin-top="40"></u-loadmore>
|
|
|
|
+ </block>
|
|
|
|
+ <block v-else>
|
|
|
|
+ <view class="dir-top-wrap main-center cross-center no-order">
|
|
|
|
+ <text class="tips">暂无数据</text>
|
|
</view>
|
|
</view>
|
|
- </view>
|
|
|
|
|
|
+ </block>
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
</scroll-view>
|
|
</swiper-item>
|
|
</swiper-item>
|
|
@@ -65,9 +73,9 @@
|
|
currentTab: 0,
|
|
currentTab: 0,
|
|
tabs: [
|
|
tabs: [
|
|
{name: '全部', value: -1},
|
|
{name: '全部', value: -1},
|
|
- {name: '待审核', value: 1},
|
|
|
|
- {name: '已通过', value: 2},
|
|
|
|
- {name: '已驳回', value: 3},
|
|
|
|
|
|
+ {name: '待审核', value: 0},
|
|
|
|
+ {name: '已通过', value: 1},
|
|
|
|
+ {name: '已驳回', value: 2},
|
|
],
|
|
],
|
|
currentSwiper: 0,
|
|
currentSwiper: 0,
|
|
dataList: [],
|
|
dataList: [],
|
|
@@ -102,11 +110,31 @@
|
|
_this.getList(0, 1);
|
|
_this.getList(0, 1);
|
|
},
|
|
},
|
|
getList(index, page){
|
|
getList(index, page){
|
|
|
|
+ let params = {
|
|
|
|
+ status: this.tabs[index].value,
|
|
|
|
+ page: page
|
|
|
|
+ };
|
|
|
|
+ let activeData = this.dataList[index];
|
|
|
|
+ this.$u.api.withdrawLists(params).then(data => {
|
|
|
|
+ uni.stopPullDownRefresh()
|
|
|
|
+ activeData.initData = true;
|
|
|
|
+ activeData.data = this.isReload ? data.data : activeData.data.concat(data.data);
|
|
|
|
+ activeData.currentPage = data.current_page;
|
|
|
|
+ activeData.totalPage = data.last_page;
|
|
|
|
+ if(activeData.currentPage >= activeData.totalPage){
|
|
|
|
+ activeData.status = 'nomore';
|
|
|
|
+ }else{
|
|
|
|
+ activeData.status = 'loadmore';
|
|
|
|
+ }
|
|
|
|
+ this.isReload = false;
|
|
|
|
+ console.log('-->data',activeData)
|
|
|
|
+ })
|
|
|
|
|
|
},
|
|
},
|
|
// tabs 切换
|
|
// tabs 切换
|
|
changeTabs(index){
|
|
changeTabs(index){
|
|
this.currentSwiper = index;
|
|
this.currentSwiper = index;
|
|
|
|
+ console.log('-->data',this.dataList[index].initData)
|
|
if(!this.dataList[index].initData){
|
|
if(!this.dataList[index].initData){
|
|
this.getList(index, 1);
|
|
this.getList(index, 1);
|
|
}
|
|
}
|
|
@@ -117,7 +145,7 @@
|
|
let activeData = this.dataList[index];
|
|
let activeData = this.dataList[index];
|
|
if(activeData.currentPage < activeData.totalPage){
|
|
if(activeData.currentPage < activeData.totalPage){
|
|
activeData.status = 'loading';
|
|
activeData.status = 'loading';
|
|
- //this.getList(index,activeData.currentPage + 1);
|
|
|
|
|
|
+ this.getList(index,activeData.currentPage + 1);
|
|
}else{
|
|
}else{
|
|
activeData.status = 'nomore';
|
|
activeData.status = 'nomore';
|
|
}
|
|
}
|
|
@@ -136,7 +164,7 @@
|
|
}
|
|
}
|
|
if(this.dataList[current].data.length === 0 && this.dataList[current].status !== 'nomore'){
|
|
if(this.dataList[current].data.length === 0 && this.dataList[current].status !== 'nomore'){
|
|
this.dataList[current].status = 'loading';
|
|
this.dataList[current].status = 'loading';
|
|
- //this.getList(current,this.dataList[current].currentPage);
|
|
|
|
|
|
+ this.getList(current,this.dataList[current].currentPage);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
},
|
|
},
|
|
@@ -146,8 +174,11 @@
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|
|
<style lang="scss">
|
|
|
|
+ .c-wrapper{
|
|
|
|
+ height: 100vh;
|
|
|
|
+ }
|
|
.swiper-box {
|
|
.swiper-box {
|
|
- flex: 1;
|
|
|
|
|
|
+ height: calc(100vh - 90rpx);
|
|
.swiper-item {
|
|
.swiper-item {
|
|
height: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
@@ -159,11 +190,20 @@
|
|
.page-box{
|
|
.page-box{
|
|
flex: 1;
|
|
flex: 1;
|
|
padding: 20rpx 30rpx;
|
|
padding: 20rpx 30rpx;
|
|
|
|
+ .no-order{
|
|
|
|
+ height: 70vh;
|
|
|
|
+ .tips{
|
|
|
|
+ margin-top: 13upx;
|
|
|
|
+ font-size: 26upx;
|
|
|
|
+ color: #999999;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
.cell-box{
|
|
.cell-box{
|
|
position: relative;
|
|
position: relative;
|
|
background: #fff;
|
|
background: #fff;
|
|
border-radius: 16rpx;
|
|
border-radius: 16rpx;
|
|
padding: 36rpx 32rpx;
|
|
padding: 36rpx 32rpx;
|
|
|
|
+ margin-bottom: 32rpx;
|
|
.stamp{
|
|
.stamp{
|
|
position: absolute;
|
|
position: absolute;
|
|
right: 0;
|
|
right: 0;
|