|
@ -76,11 +76,13 @@ Page({ |
|
|
}, |
|
|
}, |
|
|
bannerListV2: function () { |
|
|
bannerListV2: function () { |
|
|
let that = this |
|
|
let that = this |
|
|
api_banner.bannerList().then(function (res) { |
|
|
let params = { |
|
|
|
|
|
bannerType:"2" |
|
|
|
|
|
} |
|
|
|
|
|
api_banner.bannerList(params).then(function (res) { |
|
|
that.setData({ |
|
|
that.setData({ |
|
|
banner: res.data |
|
|
banner: res.data |
|
|
}) |
|
|
}) |
|
|
console.log('?'+JSON.stringify(that.data.banner)) |
|
|
|
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
preViewImage(e) { |
|
|
preViewImage(e) { |
|
@ -208,7 +210,7 @@ Page({ |
|
|
} |
|
|
} |
|
|
api.getSignedList(para).then(res => { |
|
|
api.getSignedList(para).then(res => { |
|
|
this.pullDownRefresh.stopRefresh() |
|
|
this.pullDownRefresh.stopRefresh() |
|
|
console.log('已报名活动', res) |
|
|
// console.log('已报名活动', res)
|
|
|
this.setData({ |
|
|
this.setData({ |
|
|
signedList: [...res.data], |
|
|
signedList: [...res.data], |
|
|
loadMoreType: res.data.length === 10 ? 'loading' : 'none', |
|
|
loadMoreType: res.data.length === 10 ? 'loading' : 'none', |
|
@ -226,7 +228,6 @@ Page({ |
|
|
}, |
|
|
}, |
|
|
// 列表 上拉加载
|
|
|
// 列表 上拉加载
|
|
|
getSignedList() { |
|
|
getSignedList() { |
|
|
console.log('+++++++++++++++++++++++++') |
|
|
|
|
|
const para = { |
|
|
const para = { |
|
|
pageIndex: this.data.pageNo, |
|
|
pageIndex: this.data.pageNo, |
|
|
pageSize: this.data.pageSize, |
|
|
pageSize: this.data.pageSize, |
|
@ -234,7 +235,7 @@ Page({ |
|
|
actType: this.data.selectedTab_B.substr(3, 1) |
|
|
actType: this.data.selectedTab_B.substr(3, 1) |
|
|
} |
|
|
} |
|
|
api.getSignedList(para).then(res => { |
|
|
api.getSignedList(para).then(res => { |
|
|
console.log('已报名活动', res.data.length) |
|
|
// console.log('已报名活动', res.data.length)
|
|
|
this.setData({ |
|
|
this.setData({ |
|
|
signedList: [...this.data.signedList, ...res.data], |
|
|
signedList: [...this.data.signedList, ...res.data], |
|
|
loadMoreType: res.data.length === 10 ? 'loading' : 'none', |
|
|
loadMoreType: res.data.length === 10 ? 'loading' : 'none', |
|
|