Browse Source

feature-hub-1.0: fix bug

feature-1.0
chengkun 4 years ago
parent
commit
21e4df820b
  1. 41
      pages-userInfo/inviteLog/inviteLog.vue
  2. 37
      pages-userInfo/notice/notice.vue
  3. 16
      pages-userInfo/notice/noticeDetail.vue
  4. 45
      pages-userInfo/withdraw/withdraw.vue
  5. 24
      pages-userInfo/withdraw/withdrawDetail.vue
  6. 276
      pages.json
  7. 76
      pages/profit/profit.vue
  8. 29
      pages/profit/profitEndDetails.vue
  9. 21
      pages/profit/profitEndOrder.vue
  10. 15
      pages/profit/profitInDetails.vue
  11. 25
      pages/profit/profitInOrder.vue
  12. 86
      pages/profit/profitPreDetails.vue
  13. 33
      pages/userInfo/userInfo.vue

41
pages-userInfo/inviteLog/inviteLog.vue

@ -1,8 +1,7 @@
<template>
<view class="container">
<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-item :title="item.invitedScanCode" :note="item.createTime" :thumb="item.img" thumb-size="lg" />
</uni-list>
</view>
</template>
@ -16,32 +15,42 @@
return {
inviteLogList: [],
pageSize: 10,
pageNum: 1
pageNum: 1,
userInfo: {}
}
},
created() {
const userInfoSync = uni.getStorageSync('userInfo')
this.userInfo = userInfoSync
this.getInviteLog();
},
//
onPullDownRefresh() {
this.showChoiceness = false
this.pageNum = 1
this.inviteLogList = []
this.getInviteLog();
uni.stopPullDownRefresh()
},
created() {
const userInfo = uni.getStorageSync('userInfo')
const params = {
pageSize: this.pageSize,
pageNum: this.pageNum,
creatorId: userInfo.id
//
onReachBottom() {
if (this.inviteLogList.length > 9) {
this.pageNum += 1
this.getInviteLog();
}
this.getInviteLog(params);
},
methods: {
//
async getInviteLog(params) {
const res = await getInviteLog(params)
async getInviteLog() {
const res = await getInviteLog({
pageSize: this.pageSize,
pageNum: this.pageNum,
creatorId: this.userInfo.id
})
console.log('res', res)
if (res.data.code === 200) {
this.inviteLogList = res.data.rows
console.log('inviteLogList', this.inviteLogList)
this.inviteLogList.push(...res.data.rows)
console.log('inviteLogList', this.inviteLogList)
} else {
uni.showModal({
content: '邀请记录加载失败!',

37
pages-userInfo/notice/notice.vue

@ -1,8 +1,8 @@
<template>
<view class="container">
<uni-list border-full v-for="(item,index) in noticeList" :key="index">
<uni-list-item showArrow clickable :title="item.title"
:note="item.createTime" :thumb="item.img" thumb-size="lg" @click="targetToDetail(item.id)"/>
<uni-list-item showArrow clickable :title="item.title" :note="item.createTime" :thumb="item.img"
thumb-size="lg" @click="targetToDetail(item.id)" />
</uni-list>
</view>
</template>
@ -19,26 +19,35 @@
pageNum: 1
}
},
created() {
this.getNoticeList();
},
//
onPullDownRefresh() {
this.pageNum = 1
this.noticeList = []
this.getNoticeList()
uni.stopPullDownRefresh()
},
created() {
const params = {
pageSize: this.pageSize,
pageNum: this.pageNum,
//
onReachBottom() {
if (this.noticeList.length > 9) {
this.pageNum += 1
this.getNoticeList();
}
this.getNoticeList(params);
},
methods: {
//
async getNoticeList(params) {
const res = await getNoticeList(params)
console.log('res', res)
async getNoticeList() {
const res = await getNoticeList({
pageSize: this.pageSize,
pageNum: this.pageNum,
})
//console.log('res', res)
if (res.data.code === 200) {
this.noticeList = res.data.rows
console.log('noticeList', this.noticeList)
this.noticeList.push(...res.data.rows)
//console.log('noticeList', this.noticeList)
} else {
uni.showModal({
content: '公告列表加载失败!',
@ -46,7 +55,7 @@
});
}
},
targetToDetail(id) {
console.log('id', id)
if (id) {

16
pages-userInfo/notice/noticeDetail.vue

@ -15,19 +15,25 @@
export default {
data() {
return {
noticeDetail:{}
noticeDetail:{
id: 0,
title: '',
content: '',
img: '',
createTime: ''
}
}
},
onLoad: function(option) { //optionobject
this.id = option.id
this.noticeDetail.id = option.id
//console.log('this.id',this.id)
this.getNoticeDetails(option.id);
this.getNoticeDetails();
},
methods: {
//
async getNoticeDetails(id) {
const res = await getNoticeDetails(id)
async getNoticeDetails() {
const res = await getNoticeDetails(this.noticeDetail.id)
console.log('res', res)
if (res.data.code === 200) {
this.noticeDetail = res.data.data

45
pages-userInfo/withdraw/withdraw.vue

@ -2,8 +2,8 @@
<view class="container">
<uni-list border-full v-for="(item,index) in withdrawList" :key="index">
<uni-list-item showArrow clickable :title="'订单号:'+item.orderId"
:note="item.createTime+'||'+item.channel+'||'+item.status"
:rightText="'¥'+item.amt" @click="targetToDetail(item.orderId)"/>
:note="item.createTime+'||'+item.channel+'||'+item.status" :rightText="'¥'+item.amt"
@click="targetToDetail(item.orderId)" />
</uni-list>
</view>
</template>
@ -15,27 +15,42 @@
export default {
data() {
return {
withdrawList:[],
withdrawList: [],
pageSize: 10,
pageNum: 1
pageNum: 1,
userInfo: {}
}
},
created(){
const userInfo = uni.getStorageSync('userInfo')
const params = {
pageSize: this.pageSize,
pageNum: this.pageNum,
creatorId: userInfo.id
created() {
const userInfoSync = uni.getStorageSync('userInfo')
this.userInfo = userInfoSync
this.getWithdrawList();
},
//
onPullDownRefresh() {
this.pageNum = 1
this.withdrawList = []
this.getWithdrawList()
uni.stopPullDownRefresh()
},
//
onReachBottom() {
if (this.withdrawList.length > 9) {
this.pageNum += 1
this.getWithdrawList();
}
this.getWithdrawList(params);
},
methods: {
//
async getWithdrawList(param) {
const res = await getWithdrawList(param)
async getWithdrawList() {
const res = await getWithdrawList({
pageSize: this.pageSize,
pageNum: this.pageNum,
creatorId: this.userInfo.id
})
console.log('res', res)
if (res.data.code === 200) {
this.withdrawList = res.data.rows
this.withdrawList.push(...res.data.rows)
} else {
uni.showModal({
content: '提现记录列表数据加载失败!',
@ -43,7 +58,7 @@
});
}
},
targetToDetail(orderId) {
console.log('orderId', orderId)
if (orderId) {

24
pages-userInfo/withdraw/withdrawDetail.vue

@ -19,20 +19,30 @@
export default {
data() {
return {
withdrawDetailInfo:{}
withdrawDetailInfo: {
orderId: '',
amt: 0,
phone: '',
bankNo: '',
channel: '',
status: '',
createTime: '',
reason: '',
achieveTime: ''
}
}
},
onLoad: function(option) { //optionobject
console.log(option)
const param = {
orderId: option.orderId
}
this.getWithdrawDetails(param);
this.withdrawDetailInfo.orderId = option.orderId
this.getWithdrawDetails();
},
methods: {
//
async getWithdrawDetails(param) {
const res = await getWithdrawDetails(param)
async getWithdrawDetails() {
const res = await getWithdrawDetails({
orderId: this.withdrawDetailInfo.orderId
})
console.log('res', res)
if (res.data.code === 200) {
this.withdrawDetailInfo = res.data.data

276
pages.json

@ -14,169 +14,147 @@
"enablePullDownRefresh": true
}
},
{
"path" : "pages/index/upload/upload",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}
,{
"path" : "pages/index/material/material",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}
,{
"path" : "pages/login/login",
"style" :
{
"navigationBarTitleText": "登录",
"enablePullDownRefresh": false
}
}
,{
"path" : "pages/register/register",
"style" :
{
"navigationBarTitleText": "注册",
"enablePullDownRefresh": false
}
}
,{
"path" : "pages/index/banner",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}
,{
"path" : "pages/profit/profitPreDetails",
"style" :
{
"navigationBarTitleText": "即将入账详情",
"enablePullDownRefresh": false
}
}
,{
"path" : "pages/profit/profitInDetails",
"style" :
{
"navigationBarTitleText": "已入账详情",
"enablePullDownRefresh": false
}
}
,{
"path" : "pages/profit/profitInOrder",
"style" :
{
"navigationBarTitleText": "收益结算单",
"enablePullDownRefresh": false
}
}
,{
"path" : "pages/profit/profitEndDetails",
"style" :
{
"navigationBarTitleText": "转入钱包详情",
"enablePullDownRefresh": false
}
}
,{
"path" : "pages/profit/profitEndOrder",
"style" :
{
"navigationBarTitleText": "转入钱包结算单",
"enablePullDownRefresh": false
}
},
{
"path" : "pages/userInfo/userInfo",
"style" :
{
"navigationBarTitleText": "我的",
"enablePullDownRefresh": false
"path": "pages/index/upload/upload",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}
],
"subPackages": [{
"root": "pages-userInfo",
"pages":[{
"path":"about/about",
"style":{
"navigationBarTitleText": "关于节点",
}, {
"path": "pages/index/material/material",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
},
{
"path":"contact/contact",
"style":{
"navigationBarTitleText": "联系我们",
}, {
"path": "pages/login/login",
"style": {
"navigationBarTitleText": "登录",
"enablePullDownRefresh": false
}
},
{
"path":"extends/extends",
"style":{
"navigationBarTitleText": "邀请更多人",
}, {
"path": "pages/register/register",
"style": {
"navigationBarTitleText": "注册",
"enablePullDownRefresh": false
}
},
{
"path":"inviteLog/inviteLog",
"style":{
"navigationBarTitleText": "邀请记录",
}, {
"path": "pages/index/banner",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}, {
"path": "pages/profit/profitPreDetails",
"style": {
"navigationBarTitleText": "即将入账详情",
"enablePullDownRefresh": true
}
}, {
"path": "pages/profit/profitInDetails",
"style": {
"navigationBarTitleText": "已入账详情",
"enablePullDownRefresh": true
}
}, {
"path": "pages/profit/profitInOrder",
"style": {
"navigationBarTitleText": "收益结算单",
"enablePullDownRefresh": false
}
},{
"path":"notice/notice",
"style":{
"navigationBarTitleText": "通知公告",
}, {
"path": "pages/profit/profitEndDetails",
"style": {
"navigationBarTitleText": "转入钱包详情",
"enablePullDownRefresh": true
}
}, {
"path": "pages/profit/profitEndOrder",
"style": {
"navigationBarTitleText": "转入钱包结算单",
"enablePullDownRefresh": false
}
},
{
"path":"withdraw/withdraw",
"style":{
"navigationBarTitleText": "提现记录",
"path": "pages/userInfo/userInfo",
"style": {
"navigationBarTitleText": "我的",
"enablePullDownRefresh": false
}
},{
"path" : "notice/noticeDetail",
"style" :
{
"navigationBarTitleText": "公告详情",
"enablePullDownRefresh": false
}
}
,{
"path" : "withdraw/withdrawDetail",
"style" :
{
"navigationBarTitleText": "提现详情",
"enablePullDownRefresh": false
}
}
]
}
],
"subPackages": [{
"root": "pages-userInfo",
"pages": [{
"path": "about/about",
"style": {
"navigationBarTitleText": "关于节点",
"enablePullDownRefresh": false
}
},
{
"path": "contact/contact",
"style": {
"navigationBarTitleText": "联系我们",
"enablePullDownRefresh": false
}
},
{
"path": "extends/extends",
"style": {
"navigationBarTitleText": "邀请更多人",
"enablePullDownRefresh": false
}
},
{
"path": "inviteLog/inviteLog",
"style": {
"navigationBarTitleText": "邀请记录",
"enablePullDownRefresh": true
}
}, {
"path": "notice/notice",
"style": {
"navigationBarTitleText": "通知公告",
"enablePullDownRefresh": true
}
},
{
"path": "withdraw/withdraw",
"style": {
"navigationBarTitleText": "提现记录",
"enablePullDownRefresh": true
}
}, {
"path": "notice/noticeDetail",
"style": {
"navigationBarTitleText": "公告详情",
"enablePullDownRefresh": false
}
}
, {
"path": "withdraw/withdrawDetail",
"style": {
"navigationBarTitleText": "提现详情",
"enablePullDownRefresh": false
}
}
]
}],
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "bnyer",
@ -194,15 +172,15 @@
"iconPath": "static/index-default.png",
"selectedIconPath": "static/index-select.png",
"text": "首页"
},
{
},
{
"pagePath": "pages/profit/profit",
"iconPath": "static/theme-default.png",
"selectedIconPath": "static/theme-select.png",
"text": "收益"
},
{
"pagePath": "pages/userInfo/userInfo",
"pagePath": "pages/userInfo/userInfo",
"iconPath": "static/mine-default.png",
"selectedIconPath": "static/mine-select.png",
"text": "我的"

76
pages/profit/profit.vue

@ -1,6 +1,7 @@
<template>
<view class="container">
<view class="top">
<uni-notice-bar show-get-more show-icon more-text="查看更多" :text="noticeList[0].content" @getmore="getMore" />
<uni-section title="昨日收益" type="line">
<uni-group mode="card">
<view>广告收益:{{profitInfo.yesterdayAdProfit}}</view>
@ -80,6 +81,9 @@
queryFrontPreProfit, //
queryFrontInOrOutAmt, ///
} from '@/api/profit.js'
import {
getNoticeList
} from '@/api/userInfo.js'
export default {
data() {
return {
@ -100,6 +104,9 @@
inProfitInfo: {},
endProfitInfo: {},
userInfo: {},
noticeList: [],
pageSize: 10,
pageNum: 1
}
},
//
@ -109,24 +116,17 @@
created() {
const userInfoSync = uni.getStorageSync('userInfo')
this.userInfo = userInfoSync
this.queryFrontProfitInfo(userInfoSync.id);
this.queryFrontPreDownloadAndInviteCount(userInfoSync.id)
const paramIn = {
creatorId: userInfoSync.id,
status: '1'
}
this.queryFrontInAmt(paramIn)
const paramEnd = {
creatorId: userInfoSync.id,
status: '2'
}
this.queryFrontEndAmt(paramEnd)
this.queryFrontProfitInfo();
this.queryFrontPreDownloadAndInviteCount()
this.queryFrontInAmt()
this.queryFrontEndAmt()
this.getNoticeList()
},
methods: {
//
async queryFrontProfitInfo(id) {
const res = await queryFrontProfitInfo(id)
async queryFrontProfitInfo() {
const res = await queryFrontProfitInfo(this.userInfo.id)
//console.log('res', res)
if (res.data.code === 200) {
this.profitInfo = res.data.data
@ -140,8 +140,8 @@
},
// 广
async queryFrontPreDownloadAndInviteCount(id) {
const res = await queryFrontPreDownloadAndInviteCount(id)
async queryFrontPreDownloadAndInviteCount() {
const res = await queryFrontPreDownloadAndInviteCount(this.userInfo.id)
//console.log('res', res)
if (res.data.code === 200) {
this.downloadAndInviteCountInfo = res.data.data
@ -155,9 +155,12 @@
},
//
async queryFrontInAmt(param) {
const res = await queryFrontInOrOutAmt(param)
console.log('InAmt', res)
async queryFrontInAmt() {
const res = await queryFrontInOrOutAmt({
creatorId: this.userInfo.id,
status: '1'
})
//console.log('InAmt', res)
if (res.data.code === 200) {
this.inProfitInfo = res.data.data
} else {
@ -169,9 +172,12 @@
},
//
async queryFrontEndAmt(param) {
const res = await queryFrontInOrOutAmt(param)
console.log('endAmt', res)
async queryFrontEndAmt() {
const res = await queryFrontInOrOutAmt({
creatorId: this.userInfo.id,
status: '2'
})
//console.log('endAmt', res)
if (res.data.code === 200) {
this.endProfitInfo = res.data.data
} else {
@ -182,6 +188,24 @@
}
},
//
async getNoticeList() {
const res = await getNoticeList({
pageSize: this.pageSize,
pageNum: this.pageNum,
})
//console.log('res', res)
if (res.data.code === 200) {
this.noticeList = res.data.rows
//console.log('noticeList', this.noticeList)
} else {
uni.showModal({
content: '公告列表加载失败!',
showCancel: false
});
}
},
// (status:0->;1->;2->)
linkTo(typeId, status) {
if (status === 0) {
@ -215,13 +239,19 @@
}
})
}
},
onClickItem(e) {
if (this.current !== e.currentIndex) {
this.current = e.currentIndex
}
},
//
getMore() {
uni.navigateTo({
url: '../../pages-userInfo/notice/notice',
})
}
},
}
</script>

29
pages/profit/profitEndDetails.vue

@ -10,7 +10,7 @@
<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>
</uni-list>
</view>
<view v-if="typeId === 1">
<uni-list border-full v-for="(item,index) in endProfitList" :key="index">
@ -38,26 +38,25 @@
userInfo: {}
}
},
created(){
created() {
const userInfoSync = uni.getStorageSync('userInfo')
this.userInfo = userInfoSync
const typeProfitId = uni.getStorageSync('typeId')
this.typeId = typeProfitId
const param = {
creatorId: userInfoSync.id,
type: typeProfitId
}
if (typeProfitId) {
this.queryFrontEndProfitAmt(param)
this.queryFrontEndProfitAmt()
} else {
this.queryFrontEndProfitAmt(param)
this.queryFrontEndProfitAmt()
}
},
methods: {
//
async queryFrontEndProfitAmt(param) {
const res = await queryFrontEndProfitAmt(param)
async queryFrontEndProfitAmt() {
const res = await queryFrontEndProfitAmt({
creatorId: this.userInfo.id,
type: this.typeId
})
if (res.data.code === 200) {
this.endProfitList = res.data.data
} else {
@ -67,7 +66,7 @@
});
}
},
onClickItem(e) {
let that = this
if (that.typeId !== e.currentIndex) {
@ -82,7 +81,7 @@
type: that.typeId
}
queryFrontEndProfitAmt(param).then(res => {
console.log('res',res)
//console.log('res', res)
if (res.data.code === 200) {
that.endProfitList = res.data.data
} else {
@ -97,10 +96,10 @@
uni.hideLoading();
}
});
}
},
targetToOrder(id) {
console.log('id', id)
if (id) {

21
pages/profit/profitEndOrder.vue

@ -24,21 +24,28 @@
export default {
data() {
return {
id: 0,
orderDetail: {}
orderDetail: {
id: 0,
orderNo: '',
platform: '',
appType: '',
type: '',
profit: 0,
walletTime: ''
}
}
},
onLoad: function(option) { //optionobject
this.id = option.id
this.orderDetail.id = option.id
//console.log('this.id',this.id)
this.queryFrontEndAmtDetails(option.id);
this.queryFrontEndAmtDetails();
},
methods: {
//
async queryFrontEndAmtDetails(id) {
const res = await queryFrontEndAmtDetails(id)
console.log('res', res)
async queryFrontEndAmtDetails() {
const res = await queryFrontEndAmtDetails(this.orderDetail.id)
//console.log('res', res)
if (res.data.code === 200) {
this.orderDetail = res.data.data
} else {

15
pages/profit/profitInDetails.vue

@ -43,21 +43,20 @@
this.userInfo = userInfoSync
const typeProfitId = uni.getStorageSync('typeId')
this.typeId = typeProfitId
const param = {
creatorId: userInfoSync.id,
type: typeProfitId
}
if (typeProfitId) {
this.queryFrontInProfitAmt(param)
this.queryFrontInProfitAmt()
} else {
this.queryFrontInProfitAmt(param)
this.queryFrontInProfitAmt()
}
},
methods: {
//
async queryFrontInProfitAmt(param) {
const res = await queryFrontInProfitAmt(param)
async queryFrontInProfitAmt() {
const res = await queryFrontInProfitAmt({
creatorId: this.userInfo.id,
type: this.typeId
})
if (res.data.code === 200) {
this.inProfitList = res.data.data
} else {

25
pages/profit/profitInOrder.vue

@ -33,21 +33,32 @@
export default {
data() {
return {
id: 0,
orderDetail: {}
orderDetail: {
id: 0,
orderNo: '',
platform: '',
appType: '',
type: '',
createTime: '',
profit: '',
downloadNum: 0,
confirmType: '',
confirmTime: '',
confirmStatus: ''
}
}
},
onLoad: function(option) { //optionobject
this.id = option.id
this.orderDetail.id = option.id
//console.log('this.id',this.id)
this.queryFrontInAmtDetails(option.id);
this.queryFrontInAmtDetails();
},
methods: {
//
async queryFrontInAmtDetails(id) {
const res = await queryFrontInAmtDetails(id)
console.log('res', res)
async queryFrontInAmtDetails() {
const res = await queryFrontInAmtDetails(this.orderDetail.id)
//console.log('res', res)
if (res.data.code === 200) {
this.orderDetail = res.data.data
} else {

86
pages/profit/profitPreDetails.vue

@ -6,18 +6,20 @@
</view>
<view class="content">
<view v-if="typeId === 0">
<uni-list border-full v-for="(item,index) in preProfitList" :key="index">
<uni-list border-full v-for="(item,index) in preProfitAdList" :key="index">
<uni-list-item :title="item.createTime+'@'+item.scanCode"
: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>
<view v-if="typeId === 1">
<uni-list border-full v-for="(item,index) in preProfitList" :key="index">
<uni-list border-full v-for="(item,index) in preprofitInviteList" :key="index">
<uni-list-item :title="item.createTime+'@'+item.scanCode"
: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>
</view>
</view>
@ -30,12 +32,16 @@
export default {
data() {
return {
preProfitList: [],
preProfitAdList: [],
preprofitInviteList:[],
items: ['广告', '邀请'],
typeId: 0,
activeColor: '#007aff',
styleType: 'text',
userInfo: {}
userInfo: {},
pageSize: 10,
pageNum: 1,
flag: false
}
},
created() {
@ -43,14 +49,28 @@
this.userInfo = userInfoSync
const typeProfitId = uni.getStorageSync('typeId')
this.typeId = typeProfitId
const param = {
creatorId: userInfoSync.id,
type: typeProfitId
}
if (typeProfitId) {
this.queryFrontPreProfit(param)
this.queryFrontPreProfit()
} else {
this.queryFrontPreProfit(param)
this.queryFrontPreProfit()
}
},
//
onPullDownRefresh() {
this.pageNum = 1
this.preProfitList = []
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;
this.pageNum += 1
this.queryFrontPreProfit();
}else{
this.flag = true;
}
},
methods: {
@ -65,11 +85,21 @@
//
const param = {
creatorId: that.userInfo.id,
type: that.typeId
type: that.typeId,
pageSize: that.pageSize,
pageNum: 1
}
queryFrontPreProfit(param).then(res => {
if (res.data.code === 200) {
that.preProfitList = res.data.data
if(this.typeId = 0){
this.preProfitAdList.push(...res.data.rows)
}else{
this.preprofitInviteList.push(...res.data.rows)
}
console.log('点击操作preProfitAdList',this.preProfitAdList)
console.log('点击操作preprofitInviteList',this.preprofitInviteList)
that.preProfitList = res.data.rows
this.flag = false;
} else {
uni.showModal({
content: '即将到账列表数据加载失败!',
@ -87,10 +117,25 @@
},
//
async queryFrontPreProfit(param) {
const res = await queryFrontPreProfit(param)
async queryFrontPreProfit() {
const res = await queryFrontPreProfit({
creatorId: this.userInfo.id,
type: this.typeId,
pageSize: this.pageSize,
pageNum: this.pageNum
})
console.log('this.typeId1',this.typeId)
if (res.data.code === 200) {
this.preProfitList = res.data.data
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: '即将到账列表数据加载失败!',
@ -102,6 +147,13 @@
}
</script>
<style>
<style lang="scss">
.ivOver{
width: 100%;
height:50px;
line-height: 50px;
text-align: center;
background: #fff;
font-size: 20rpx;
}
</style>

33
pages/userInfo/userInfo.vue

@ -1,13 +1,11 @@
<template>
<view class="container">
<view class="top">
<uni-notice-bar show-get-more show-icon more-text="查看更多" text="年末大礼:uni-app1.4 新增百度、支付宝小程序。插件市场重磅上线!"
@getmore="getMore" />
</view>
<view class="my-message">
<view class="left">
<image :src="userInfo.img" mode=""></image>
</view>
</view>
<view class="right">
{{userInfo.name}}
</view>
@ -40,38 +38,38 @@
export default {
data() {
return {
list:[{
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: {}
userInfo: {},
}
},
created() {
this.userInfo = uni.getStorageSync('userInfo')
console.log('this.userInfo',this.userInfo)
console.log('this.userInfo', this.userInfo)
},
methods: {
change(e) {
@ -79,7 +77,7 @@
index
} = e.detail
this.pageUrl = this.list[index].url
console.log('this.pageUrl',this.pageUrl)
console.log('this.pageUrl', this.pageUrl)
/** 跳转指定页面*/
uni.navigateTo({
url: this.pageUrl
@ -90,27 +88,28 @@
</script>
<style lang="scss">
.container{
font-family:Franklin Gothic Medium, Arial Narrow, Arial, sans-serif;
.container {
font-family: Franklin Gothic Medium, Arial Narrow, Arial, sans-serif;
}
.my-message {
display: flex;
justify-content: flex-start;
align-items: center;
padding: 20rpx;
.left {
width: 100rpx;
height: 100rpx;
margin-right: 20rpx;
>image {
width: 100%;
height: 100%;
border-radius: 50%;
}
}
.right {
font-size: 12px;
}

Loading…
Cancel
Save