|
|
|
@ -4,6 +4,22 @@ |
|
|
|
|
<view class='promoterHeader'> |
|
|
|
|
<timeSlot @changeTime="changeTime"></timeSlot> |
|
|
|
|
</view> |
|
|
|
|
<view class="statusList"> |
|
|
|
|
|
|
|
|
|
<view :class="activeIndex==0?'statusItem active':'statusItem'" @click="getStatus(1)"> |
|
|
|
|
<text>收入</text> |
|
|
|
|
<view class="flag" v-if="activeIndex==0"></view> |
|
|
|
|
</view> |
|
|
|
|
<view :class="activeIndex==1?'statusItem active':'statusItem'" @click="getStatus(0)"> |
|
|
|
|
<text>支出</text> |
|
|
|
|
<view class="flag" v-if="activeIndex==1"></view> |
|
|
|
|
</view> |
|
|
|
|
<view :class="activeIndex==2?'statusItem active':'statusItem'" @click="getStatus(2)"> |
|
|
|
|
<text>冻结</text> |
|
|
|
|
<view class="flag" v-if="activeIndex==2"></view> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
|
<view class='sign-record' v-if="type==1"> |
|
|
|
|
<block v-for="(item,index) in recordList" :key="index" v-if="recordList.length>0"> |
|
|
|
|
<view class='list'> |
|
|
|
@ -102,7 +118,10 @@ |
|
|
|
|
userInfo:'', |
|
|
|
|
times: [], |
|
|
|
|
start: "", |
|
|
|
|
stop: "" |
|
|
|
|
stop: "", |
|
|
|
|
activeIndex:0, |
|
|
|
|
status:null, |
|
|
|
|
pm:1 |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
computed: mapGetters(['isLogin','viewColor']), |
|
|
|
@ -133,6 +152,21 @@ |
|
|
|
|
this.getRecordList(); |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
getStatus(val){ |
|
|
|
|
|
|
|
|
|
if(val!=2){ |
|
|
|
|
this.status=null; |
|
|
|
|
this.pm=val; |
|
|
|
|
if(val==1){this.activeIndex=0;} |
|
|
|
|
if(val==0){this.activeIndex=1;} |
|
|
|
|
|
|
|
|
|
}else{ |
|
|
|
|
this.status=0; |
|
|
|
|
this.pm=null; |
|
|
|
|
this.activeIndex=2 |
|
|
|
|
} |
|
|
|
|
this.getRecordList(); |
|
|
|
|
}, |
|
|
|
|
spreadInfo(){ |
|
|
|
|
spreadInfo().then(res => { |
|
|
|
|
this.userInfo = res.data |
|
|
|
@ -167,7 +201,9 @@ |
|
|
|
|
page: page, |
|
|
|
|
limit: limit, |
|
|
|
|
start: start, |
|
|
|
|
stop: stop |
|
|
|
|
stop: stop, |
|
|
|
|
status:that.status, |
|
|
|
|
pm:that.pm |
|
|
|
|
}, recordType).then(res => { |
|
|
|
|
let len = res.data.list.length; |
|
|
|
|
let recordListData = res.data.list; |
|
|
|
@ -182,7 +218,9 @@ |
|
|
|
|
page: page, |
|
|
|
|
limit: limit, |
|
|
|
|
start: start, |
|
|
|
|
stop: stop |
|
|
|
|
stop: stop, |
|
|
|
|
status:that.status, |
|
|
|
|
pm:that.pm |
|
|
|
|
}).then(res => { |
|
|
|
|
let len = res.data.list.length; |
|
|
|
|
let recordListData = res.data.list; |
|
|
|
@ -239,4 +277,26 @@ |
|
|
|
|
margin-right: 6rpx; |
|
|
|
|
font-weight: normal; |
|
|
|
|
} |
|
|
|
|
.statusList{ |
|
|
|
|
|
|
|
|
|
display: flex; |
|
|
|
|
justify-content: space-between; |
|
|
|
|
padding-top:10rpx; |
|
|
|
|
background-color: #fff; |
|
|
|
|
.statusItem{ |
|
|
|
|
flex:1; |
|
|
|
|
text-align: center; |
|
|
|
|
.flag{ |
|
|
|
|
width:40rpx; |
|
|
|
|
height:10rpx; |
|
|
|
|
background-color: #116636; |
|
|
|
|
border-radius: 10px; |
|
|
|
|
margin:0 auto; |
|
|
|
|
margin-top:20rpx; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.active{ |
|
|
|
|
color:#116636; |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|