|
|
@ -6,18 +6,20 @@ |
|
|
</view> |
|
|
</view> |
|
|
<view class="content"> |
|
|
<view class="content"> |
|
|
<view v-if="typeId === 0"> |
|
|
<view v-if="typeId === 0"> |
|
|
<uni-list border-full v-for="(item,index) in endProfitList" :key="index"> |
|
|
<uni-list border-full v-for="(item,index) in endProfitAdList" :key="index"> |
|
|
<uni-list-item showArrow clickable :title="item.walletTime+'@'+item.scanCode" |
|
|
<uni-list-item showArrow clickable :title="item.walletTime+'@'+item.scanCode" |
|
|
:note="item.appType+'&'+item.platform+'&'+item.type" :thumb="item.url" thumb-size="lg" |
|
|
:note="item.appType+'&'+item.platform+'&'+item.type" :thumb="item.url" thumb-size="lg" |
|
|
:rightText="'¥'+item.profit" @click="targetToOrder(item.id)" /> |
|
|
:rightText="'¥'+item.profit" @click="targetToOrder(item.id)" /> |
|
|
</uni-list> |
|
|
</uni-list> |
|
|
|
|
|
<view class="ivOver" v-if="flagAd">-----已经到底啦-----</view> |
|
|
</view> |
|
|
</view> |
|
|
<view v-if="typeId === 1"> |
|
|
<view v-if="typeId === 1"> |
|
|
<uni-list border-full v-for="(item,index) in endProfitList" :key="index"> |
|
|
<uni-list border-full v-for="(item,index) in endProfitInviteList" :key="index"> |
|
|
<uni-list-item showArrow clickable :title="item.walletTime+'@'+item.scanCode" |
|
|
<uni-list-item showArrow clickable :title="item.walletTime+'@'+item.scanCode" |
|
|
:note="item.appType+'&'+item.platform+'&'+item.type" :thumb="item.url" thumb-size="lg" |
|
|
:note="item.appType+'&'+item.platform+'&'+item.type" :thumb="item.url" thumb-size="lg" |
|
|
:rightText="'¥'+item.profit" @click="targetToOrder(item.id)" /> |
|
|
:rightText="'¥'+item.profit" @click="targetToOrder(item.id)" /> |
|
|
</uni-list> |
|
|
</uni-list> |
|
|
|
|
|
<view class="ivOver" v-if="flagInvite">-----已经到底啦-----</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
@ -34,8 +36,13 @@ |
|
|
typeId: 0, |
|
|
typeId: 0, |
|
|
activeColor: '#007aff', |
|
|
activeColor: '#007aff', |
|
|
styleType: 'text', |
|
|
styleType: 'text', |
|
|
endProfitList: [], |
|
|
endProfitAdList: [], |
|
|
userInfo: {} |
|
|
endProfitInviteList: [], |
|
|
|
|
|
userInfo: {}, |
|
|
|
|
|
pageSize: 10, |
|
|
|
|
|
pageNum: 1, |
|
|
|
|
|
flagAd: false, |
|
|
|
|
|
flagInvite: false |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
@ -49,16 +56,57 @@ |
|
|
this.queryFrontEndProfitAmt() |
|
|
this.queryFrontEndProfitAmt() |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
// 下拉刷新 |
|
|
|
|
|
onPullDownRefresh() { |
|
|
|
|
|
if(this.typeId === 0){ |
|
|
|
|
|
this.pageNum = 1 |
|
|
|
|
|
this.endProfitAdList = [] |
|
|
|
|
|
this.queryFrontEndProfitAmt() |
|
|
|
|
|
uni.stopPullDownRefresh() |
|
|
|
|
|
}else{ |
|
|
|
|
|
this.pageNum = 1 |
|
|
|
|
|
this.endProfitInviteList = [] |
|
|
|
|
|
this.queryFrontEndProfitAmt() |
|
|
|
|
|
uni.stopPullDownRefresh() |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
// 上划加载更多 |
|
|
|
|
|
onReachBottom() { |
|
|
|
|
|
if(this.typeId === 0){ |
|
|
|
|
|
if (this.endProfitAdList.length > this.pageNum*this.pageSize-1 ) { |
|
|
|
|
|
this.flagAd = false; |
|
|
|
|
|
this.pageNum += 1 |
|
|
|
|
|
this.queryFrontEndProfitAmt(); |
|
|
|
|
|
}else{ |
|
|
|
|
|
this.flagAd = true; |
|
|
|
|
|
} |
|
|
|
|
|
}else{ |
|
|
|
|
|
if (this.endProfitInviteList.length > this.pageNum*this.pageSize-1 ) { |
|
|
|
|
|
this.flagInvite = false; |
|
|
|
|
|
this.pageNum += 1 |
|
|
|
|
|
this.queryFrontEndProfitAmt(); |
|
|
|
|
|
}else{ |
|
|
|
|
|
this.flagInvite = true; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
|
|
|
// 查询指定艺术家转入钱包收益列表 |
|
|
// 查询指定艺术家转入钱包收益列表 |
|
|
async queryFrontEndProfitAmt() { |
|
|
async queryFrontEndProfitAmt() { |
|
|
const res = await queryFrontEndProfitAmt({ |
|
|
const res = await queryFrontEndProfitAmt({ |
|
|
creatorId: this.userInfo.id, |
|
|
creatorId: this.userInfo.id, |
|
|
type: this.typeId |
|
|
type: this.typeId, |
|
|
|
|
|
pageSize: this.pageSize, |
|
|
|
|
|
pageNum: this.pageNum |
|
|
}) |
|
|
}) |
|
|
if (res.data.code === 200) { |
|
|
if (res.data.code === 200) { |
|
|
this.endProfitList = res.data.data |
|
|
if(this.typeId === 0){ |
|
|
|
|
|
this.endProfitAdList.push(...res.data.rows) |
|
|
|
|
|
}else{ |
|
|
|
|
|
this.endProfitInviteList.push(...res.data.rows) |
|
|
|
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
uni.showModal({ |
|
|
uni.showModal({ |
|
|
content: '转入钱包列表数据加载失败!', |
|
|
content: '转入钱包列表数据加载失败!', |
|
|
@ -69,6 +117,8 @@ |
|
|
|
|
|
|
|
|
onClickItem(e) { |
|
|
onClickItem(e) { |
|
|
let that = this |
|
|
let that = this |
|
|
|
|
|
that.endProfitAdList = [] |
|
|
|
|
|
that.endProfitInviteList = [] |
|
|
if (that.typeId !== e.currentIndex) { |
|
|
if (that.typeId !== e.currentIndex) { |
|
|
that.typeId = e.currentIndex |
|
|
that.typeId = e.currentIndex |
|
|
uni.showLoading({ |
|
|
uni.showLoading({ |
|
|
@ -78,12 +128,20 @@ |
|
|
// 查询指定艺术家转入钱包收益列表 |
|
|
// 查询指定艺术家转入钱包收益列表 |
|
|
const param = { |
|
|
const param = { |
|
|
creatorId: that.userInfo.id, |
|
|
creatorId: that.userInfo.id, |
|
|
type: that.typeId |
|
|
type: that.typeId, |
|
|
|
|
|
pageSize: that.pageSize, |
|
|
|
|
|
pageNum: 1 |
|
|
} |
|
|
} |
|
|
queryFrontEndProfitAmt(param).then(res => { |
|
|
queryFrontEndProfitAmt(param).then(res => { |
|
|
//console.log('res', res) |
|
|
//console.log('res', res) |
|
|
if (res.data.code === 200) { |
|
|
if (res.data.code === 200) { |
|
|
that.endProfitList = res.data.data |
|
|
if(that.typeId === 0){ |
|
|
|
|
|
that.endProfitAdList.push(...res.data.rows) |
|
|
|
|
|
}else{ |
|
|
|
|
|
that.endProfitInviteList.push(...res.data.rows) |
|
|
|
|
|
} |
|
|
|
|
|
console.log('点击操作endProfitAdList',that.endProfitAdList) |
|
|
|
|
|
console.log('点击操作endProfitInviteList',that.endProfitInviteList) |
|
|
} else { |
|
|
} else { |
|
|
uni.showModal({ |
|
|
uni.showModal({ |
|
|
content: '转入钱包列表数据加载失败!', |
|
|
content: '转入钱包列表数据加载失败!', |
|
|
@ -112,6 +170,13 @@ |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style> |
|
|
<style lang="scss"> |
|
|
|
|
|
.ivOver{ |
|
|
|
|
|
width: 100%; |
|
|
|
|
|
height:50px; |
|
|
|
|
|
line-height: 50px; |
|
|
|
|
|
text-align: center; |
|
|
|
|
|
background: #fff; |
|
|
|
|
|
font-size: 20rpx; |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |
|
|
|