Browse Source

feature-hub-1.0:修改权益页面错误

feature-1.0
penny 4 years ago
parent
commit
0e93e277b6
  1. 2
      .gitignore
  2. 148
      pages-userInfo/contact/contact.vue
  3. 19
      pages-userInfo/inviteLog/inviteLog.vue
  4. 17
      pages-userInfo/notice/notice.vue
  5. 19
      pages-userInfo/withdraw/withdraw.vue
  6. 85
      pages/profit/profitEndDetails.vue
  7. 85
      pages/profit/profitInDetails.vue
  8. 54
      pages/profit/profitPreDetails.vue

2
.gitignore

@ -1,2 +1,4 @@
/node_modules/
/unpackage/
/.idea/
/.hbuilderx/

148
pages-userInfo/contact/contact.vue

@ -1,106 +1,60 @@
<template>
<view class="container">
我是联系客服页面
image src="https://p3.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_20775b0106374a94013d7b6f3896d94a.jpeg?from=4010531038" mode=""></image>
</view>
</template>
<script>
// export default {
// data() {
// return {
// hotCreatorList: [],
// isTarget: true,
// showChoiceness:false
// }
// },
// //
// onPullDownRefresh() {
// this.showChoiceness = false
// uni.stopPullDownRefresh()
// },
// created() {
// const userInfo = uni.getStorageSync('userInfo')
// if (!userInfo) {
// console.log('havent userInfo')
// this.getUserInfo()
// } else {
// console.log('have userInfo')
// }
// },
// onPageScroll(e) {
// // scrollTopeasy-loadimage
// if (e.scrollTop > 160) {
// this.showChoiceness = true
// // uni.redirectTo({
// // url: '../index/choiceness'
// // })
// }
// },
// methods: {
// //
// search(res) {
// if (res.value) {
// console.log('search', res.value)
// this.goCreatorDetail(res.value)
// } else {
// uni.showToast({
// title: '',
// icon: 'none'
// })
// }
// },
// //
// getUserInfo() {
// wx.login({
// force: true,
// success: res => {
// wx.getUserInfo({
// withCredentials: true,
// success: userInfo => {
// const params = {
// code: res.code,
// encryptedData: userInfo.encryptedData,
// iv: userInfo.iv
// }
// //
// console.log('params',params);
// loginWx(params).then(res => {
// if (res.data.code === 200) {
// uni.setStorage({
// key: 'userInfo',
// data: res.data.data.userInfo,
// })
// } else {
// uni.showToast({
// title: res.data.msg,
// icon: 'none'
// })
// }
// }).catch(res => {})
// console.log(`getUserInfo `, userInfo);
// },
// fail(userInfo) {
// console.log(`getUserInfo `);
// },
// });
// },
// fail(res) {
// console.log(`login `);
// },
// });
// },
// //
// handleScroll() {
// let scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop
// console.log(scrollTop)
// },
// },
// }
export default {
data() {
return {
list:[{
url: '/pages-userInfo/about/about',
title: '关于节点',
img: ''
},{
url: '/pages-userInfo/contact/contact',
title: '联系我们',
img: ''
},{
url: '/pages-userInfo/extends/extends',
title: '邀请他人',
img: ''
},{
url: '/pages-userInfo/inviteLog/inviteLog',
title: '邀请记录',
img: ''
},{
url: '/pages-userInfo/notice/notice',
title: '通知公告',
img: ''
},{
url: '/pages-userInfo/withdraw/withdraw',
title: '提现记录',
img: ''
}],
pageUrl: '',
userInfo: {}
}
},
created() {
this.userInfo = uni.getStorageSync('userInfo')
console.log('this.userInfo',this.userInfo)
},
methods: {
change(e) {
let {
index
} = e.detail
this.pageUrl = this.list[index].url
console.log('this.pageUrl',this.pageUrl)
/** 跳转指定页面*/
uni.navigateTo({
url: this.pageUrl
});
},
},
}
</script>
<style lang="less">

19
pages-userInfo/inviteLog/inviteLog.vue

@ -3,6 +3,7 @@
<uni-list border-full v-for="(item,index) in inviteLogList" :key="index">
<uni-list-item :title="item.invitedScanCode" :note="item.createTime" :thumb="item.img" thumb-size="lg" />
</uni-list>
<view class="ivOver" v-if="flag">-----已经到底啦-----</view>
</view>
</template>
@ -16,7 +17,8 @@
inviteLogList: [],
pageSize: 10,
pageNum: 1,
userInfo: {}
userInfo: {},
flag: false
}
},
created() {
@ -33,9 +35,12 @@
},
//
onReachBottom() {
if (this.inviteLogList.length > 9) {
if (this.inviteLogList.length > this.pageSize*this.pageNum-1) {
this.flag = false;
this.pageNum += 1
this.getInviteLog();
}else{
this.flag = true;
}
},
methods: {
@ -62,7 +67,15 @@
}
</script>
<style lang="less">
<style lang="scss">
.ivOver{
width: 100%;
height:50px;
line-height: 50px;
text-align: center;
background: #fff;
font-size: 20rpx;
}
.container {
.top {
width: 100vw;

17
pages-userInfo/notice/notice.vue

@ -4,6 +4,7 @@
<uni-list-item showArrow clickable :title="item.title" :note="item.createTime" :thumb="item.img"
thumb-size="lg" @click="targetToDetail(item.id)" />
</uni-list>
<view class="ivOver" v-if="flag">-----已经到底啦-----</view>
</view>
</template>
@ -16,7 +17,8 @@
return {
noticeList: [],
pageSize: 10,
pageNum: 1
pageNum: 1,
flag: false
}
},
created() {
@ -31,9 +33,12 @@
},
//
onReachBottom() {
if (this.noticeList.length > 9) {
if (this.noticeList.length > this.pageSize*this.pageNum-1) {
this.flag = false;
this.pageNum += 1
this.getNoticeList();
}else{
this.flag = true;
}
},
methods: {
@ -69,4 +74,12 @@
</script>
<style lang="scss">
.ivOver{
width: 100%;
height:50px;
line-height: 50px;
text-align: center;
background: #fff;
font-size: 20rpx;
}
</style>

19
pages-userInfo/withdraw/withdraw.vue

@ -5,6 +5,7 @@
:note="item.createTime+'||'+item.channel+'||'+item.status" :rightText="'¥'+item.amt"
@click="targetToDetail(item.orderId)" />
</uni-list>
<view class="ivOver" v-if="flag">-----已经到底啦-----</view>
</view>
</template>
@ -18,7 +19,8 @@
withdrawList: [],
pageSize: 10,
pageNum: 1,
userInfo: {}
userInfo: {},
flag: false
}
},
created() {
@ -35,9 +37,12 @@
},
//
onReachBottom() {
if (this.withdrawList.length > 9) {
if (this.withdrawList.length > this.pageSize*this.pageNum-1) {
this.flag = false;
this.pageNum += 1
this.getWithdrawList();
}else{
this.flag = true;
}
},
methods: {
@ -71,7 +76,15 @@
}
</script>
<style lang="less">
<style lang="scss">
.ivOver{
width: 100%;
height:50px;
line-height: 50px;
text-align: center;
background: #fff;
font-size: 20rpx;
}
.container {
.top {
width: 100vw;

85
pages/profit/profitEndDetails.vue

@ -6,18 +6,20 @@
</view>
<view class="content">
<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"
:note="item.appType+'&'+item.platform+'&'+item.type" :thumb="item.url" thumb-size="lg"
:rightText="'¥'+item.profit" @click="targetToOrder(item.id)" />
</uni-list>
<view class="ivOver" v-if="flagAd">-----已经到底啦-----</view>
</view>
<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"
:note="item.appType+'&'+item.platform+'&'+item.type" :thumb="item.url" thumb-size="lg"
:rightText="'¥'+item.profit" @click="targetToOrder(item.id)" />
</uni-list>
<view class="ivOver" v-if="flagInvite">-----已经到底啦-----</view>
</view>
</view>
</view>
@ -34,8 +36,13 @@
typeId: 0,
activeColor: '#007aff',
styleType: 'text',
endProfitList: [],
userInfo: {}
endProfitAdList: [],
endProfitInviteList: [],
userInfo: {},
pageSize: 10,
pageNum: 1,
flagAd: false,
flagInvite: false
}
},
created() {
@ -49,16 +56,57 @@
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: {
//
async queryFrontEndProfitAmt() {
const res = await queryFrontEndProfitAmt({
creatorId: this.userInfo.id,
type: this.typeId
type: this.typeId,
pageSize: this.pageSize,
pageNum: this.pageNum
})
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 {
uni.showModal({
content: '转入钱包列表数据加载失败!',
@ -69,6 +117,8 @@
onClickItem(e) {
let that = this
that.endProfitAdList = []
that.endProfitInviteList = []
if (that.typeId !== e.currentIndex) {
that.typeId = e.currentIndex
uni.showLoading({
@ -78,12 +128,20 @@
//
const param = {
creatorId: that.userInfo.id,
type: that.typeId
type: that.typeId,
pageSize: that.pageSize,
pageNum: 1
}
queryFrontEndProfitAmt(param).then(res => {
//console.log('res', res)
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 {
uni.showModal({
content: '转入钱包列表数据加载失败!',
@ -112,6 +170,13 @@
}
</script>
<style>
<style lang="scss">
.ivOver{
width: 100%;
height:50px;
line-height: 50px;
text-align: center;
background: #fff;
font-size: 20rpx;
}
</style>

85
pages/profit/profitInDetails.vue

@ -6,18 +6,20 @@
</view>
<view class="content">
<view v-if="typeId === 0">
<uni-list border-full v-for="(item,index) in inProfitList" :key="index">
<uni-list border-full v-for="(item,index) in inProfitAdList" :key="index">
<uni-list-item showArrow clickable :title="item.createTime+'@'+item.scanCode"
:note="item.appType+'&'+item.platform+'&'+item.type" :thumb="item.url" thumb-size="lg"
:rightText="'¥'+item.profit" @click="targetToOrder(item.id)" />
</uni-list>
<view class="ivOver" v-if="flagAd">-----已经到底啦-----</view>
</view>
<view v-if="typeId === 1">
<uni-list border-full v-for="(item,index) in inProfitList" :key="index">
<uni-list border-full v-for="(item,index) in inProfitInviteList" :key="index">
<uni-list-item showArrow clickable :title="item.createTime+'@'+item.scanCode"
:note="item.appType+'&'+item.platform+'&'+item.type" :thumb="item.url" thumb-size="lg"
:rightText="'¥'+item.profit" @click="targetToOrder(item.id)" />
</uni-list>
<view class="ivOver" v-if="flagInvite">-----已经到底啦-----</view>
</view>
</view>
</view>
@ -34,8 +36,13 @@
typeId: 0,
activeColor: '#007aff',
styleType: 'text',
inProfitList: [],
userInfo: {}
inProfitAdList: [],
inProfitInviteList: [],
userInfo: {},
pageSize: 10,
pageNum: 1,
flagAd: false,
flagInvite: false
}
},
created() {
@ -49,16 +56,57 @@
this.queryFrontInProfitAmt()
}
},
//
onPullDownRefresh() {
if(this.typeId === 0){
this.pageNum = 1
this.inProfitAdList = []
this.queryFrontInProfitAmt()
uni.stopPullDownRefresh()
}else{
this.pageNum = 1
this.inProfitInviteList = []
this.queryFrontInProfitAmt()
uni.stopPullDownRefresh()
}
},
//
onReachBottom() {
if(this.typeId === 0){
if (this.inProfitAdList.length > this.pageNum*this.pageSize-1 ) {
this.flagAd = false;
this.pageNum += 1
this.queryFrontInProfitAmt();
}else{
this.flagAd = true;
}
}else{
if (this.inProfitInviteList.length > this.pageNum*this.pageSize-1 ) {
this.flagInvite = false;
this.pageNum += 1
this.queryFrontInProfitAmt();
}else{
this.flagInvite = true;
}
}
},
methods: {
//
async queryFrontInProfitAmt() {
const res = await queryFrontInProfitAmt({
creatorId: this.userInfo.id,
type: this.typeId
type: this.typeId,
pageSize: this.pageSize,
pageNum: this.pageNum
})
if (res.data.code === 200) {
this.inProfitList = res.data.data
if(this.typeId === 0){
this.inProfitAdList.push(...res.data.rows)
}else{
this.inProfitInviteList.push(...res.data.rows)
}
} else {
uni.showModal({
content: '已入账列表数据加载失败!',
@ -69,6 +117,8 @@
onClickItem(e) {
let that = this
that.inProfitAdList = []
that.inProfitInviteList = []
if (that.typeId !== e.currentIndex) {
that.typeId = e.currentIndex
uni.showLoading({
@ -78,11 +128,19 @@
//
const param = {
creatorId: that.userInfo.id,
type: that.typeId
type: that.typeId,
pageSize: that.pageSize,
pageNum: 1
}
queryFrontInProfitAmt(param).then(res => {
if (res.data.code === 200) {
that.inProfitList = res.data.data
if(that.typeId === 0){
that.inProfitAdList.push(...res.data.rows)
}else{
that.inProfitInviteList.push(...res.data.rows)
}
console.log('点击操作inProfitAdList',that.inProfitAdList)
console.log('点击操作inProfitInviteList',that.inProfitInviteList)
} else {
uni.showModal({
content: '已入账列表数据加载失败!',
@ -111,6 +169,13 @@
}
</script>
<style>
<style lang="scss">
.ivOver {
width: 100%;
height: 50px;
line-height: 50px;
text-align: center;
background: #fff;
font-size: 20rpx;
}
</style>

54
pages/profit/profitPreDetails.vue

@ -11,7 +11,7 @@
:note="item.appType+'&'+item.platform+'&'+item.type" :thumb="item.url" thumb-size="lg"
:rightText="item.downloadNum+'次'" />
</uni-list>
<view class="ivOver" v-if="flag">-----已经到底啦-----</view>
<view class="ivOver" v-if="flagAd">-----已经到底啦-----</view>
</view>
<view v-if="typeId === 1">
<uni-list border-full v-for="(item,index) in preprofitInviteList" :key="index">
@ -19,7 +19,7 @@
:note="item.appType+'&'+item.platform+'&'+item.type" :thumb="item.url" thumb-size="lg"
:rightText="item.downloadNum+'次'" />
</uni-list>
<view class="ivOver" v-if="flag">-----已经到底啦-----</view>
<view class="ivOver" v-if="flagInvite">-----已经到底啦-----</view>
</view>
</view>
</view>
@ -41,7 +41,8 @@
userInfo: {},
pageSize: 10,
pageNum: 1,
flag: false
flagAd: false,
flagInvite: false
}
},
created() {
@ -57,25 +58,44 @@
},
//
onPullDownRefresh() {
if(this.typeId === 0){
this.pageNum = 1
this.preProfitAdList = []
this.queryFrontPreProfit()
uni.stopPullDownRefresh()
}else{
this.pageNum = 1
this.preProfitList = []
this.preprofitInviteList = []
this.queryFrontPreProfit()
uni.stopPullDownRefresh()
}
},
//
onReachBottom() {
console.log('this.preProfitList.length',this.preProfitList.length)
if (this.preProfitList.length > this.pageNum*this.pageSize-1 ) {
this.flag = false;
if(this.typeId === 0){
if (this.preProfitAdList.length > this.pageNum*this.pageSize-1 ) {
this.flagAd = false;
this.pageNum += 1
this.queryFrontPreProfit();
}else{
this.flagAd = true;
}
}else{
if (this.preprofitInviteList.length > this.pageNum*this.pageSize-1 ) {
this.flagInvite = false;
this.pageNum += 1
this.queryFrontPreProfit();
}else{
this.flag = true;
this.flagInvite = true;
}
}
},
methods: {
onClickItem(e) {
let that = this
that.preProfitAdList = []
that.preprofitInviteList = []
if (that.typeId !== e.currentIndex) {
that.typeId = e.currentIndex
uni.showLoading({
@ -91,15 +111,13 @@
}
queryFrontPreProfit(param).then(res => {
if (res.data.code === 200) {
if(this.typeId = 0){
this.preProfitAdList.push(...res.data.rows)
if(that.typeId === 0){
that.preProfitAdList.push(...res.data.rows)
}else{
this.preprofitInviteList.push(...res.data.rows)
that.preprofitInviteList.push(...res.data.rows)
}
console.log('点击操作preProfitAdList',this.preProfitAdList)
console.log('点击操作preprofitInviteList',this.preprofitInviteList)
that.preProfitList = res.data.rows
this.flag = false;
console.log('点击操作preProfitAdList',that.preProfitAdList)
console.log('点击操作preprofitInviteList',that.preprofitInviteList)
} else {
uni.showModal({
content: '即将到账列表数据加载失败!',
@ -124,18 +142,12 @@
pageSize: this.pageSize,
pageNum: this.pageNum
})
console.log('this.typeId1',this.typeId)
if (res.data.code === 200) {
console.log('this.typeId2',this.typeId)
if(this.typeId === 0){
console.log('this.typeId3',this.typeId)
this.preProfitAdList.push(...res.data.rows)
}else{
console.log('this.typeId4',this.typeId)
this.preprofitInviteList.push(...res.data.rows)
}
console.log('this.preProfitAdList',this.preProfitAdList)
console.log('this.preprofitInviteList',this.preprofitInviteList)
} else {
uni.showModal({
content: '即将到账列表数据加载失败!',

Loading…
Cancel
Save