|
@ -1,4 +1,5 @@ |
|
|
// subpages/associationNew/pages/eventlist/eventlist.js
|
|
|
// subpages/associationNew/pages/eventlist/eventlist.js
|
|
|
|
|
|
const app = getApp() |
|
|
import { topiclist, commentSubmit,statement } from '../../utils/api' |
|
|
import { topiclist, commentSubmit,statement } from '../../utils/api' |
|
|
import { |
|
|
import { |
|
|
getTimestamp |
|
|
getTimestamp |
|
@ -56,6 +57,7 @@ Page({ |
|
|
topiclist(para).then(res => { |
|
|
topiclist(para).then(res => { |
|
|
that.setData({ |
|
|
that.setData({ |
|
|
bannedFlag: res.data.bannedFlag, |
|
|
bannedFlag: res.data.bannedFlag, |
|
|
|
|
|
nodata: false, |
|
|
topiclist: that.data.topiclist.concat(res.data.topicList), |
|
|
topiclist: that.data.topiclist.concat(res.data.topicList), |
|
|
loadMoreType: res.data.topicList.length === that.data.pageSize ? 'loading' : 'none', |
|
|
loadMoreType: res.data.topicList.length === that.data.pageSize ? 'loading' : 'none', |
|
|
loadMoreVisible: res.data.topicList.length === that.data.pageSize ? false : true |
|
|
loadMoreVisible: res.data.topicList.length === that.data.pageSize ? false : true |
|
@ -215,6 +217,14 @@ Page({ |
|
|
}) |
|
|
}) |
|
|
console.log('点击事件') |
|
|
console.log('点击事件') |
|
|
}, |
|
|
}, |
|
|
|
|
|
previewImage (e) { |
|
|
|
|
|
console.log(JSON.stringify(e)) |
|
|
|
|
|
app.globalData.previewImage = true |
|
|
|
|
|
wx.previewImage({ |
|
|
|
|
|
urls: e.currentTarget.dataset.imgarry, |
|
|
|
|
|
current: e.currentTarget.dataset.src |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 用户点击右上角分享 |
|
|
* 用户点击右上角分享 |
|
|