...
|
...
|
@@ -24,26 +24,11 @@ Page({ |
|
|
activity_pageNum: 4
|
|
|
}
|
|
|
app.post(url, params, head).then((res) => {
|
|
|
if (res.news.length > 0) {
|
|
|
that.setData({
|
|
|
page_type: true
|
|
|
})
|
|
|
} else {
|
|
|
that.setData({
|
|
|
page_type: false
|
|
|
})
|
|
|
}
|
|
|
if (that.data.news == null) {
|
|
|
that.setData({
|
|
|
datalist: res,
|
|
|
activity: res.activity,
|
|
|
news: res.news
|
|
|
})
|
|
|
} else {
|
|
|
that.setData({
|
|
|
news: that.data.news.concat(res.news)
|
|
|
})
|
|
|
}
|
|
|
that.setData({
|
|
|
datalist: res,
|
|
|
activity: res.activity,
|
|
|
news: res.news
|
|
|
})
|
|
|
}).catch((err) => {
|
|
|
|
|
|
})
|
...
|
...
|
|