|
|
@ -235,7 +235,6 @@ Page({ |
|
|
|
var th = this; |
|
|
|
var page = th.data.page; |
|
|
|
var list = th.data.centerList; |
|
|
|
|
|
|
|
if (th.data.typeList.length == 0) { |
|
|
|
topicModel.getResourceTypeList(res => { |
|
|
|
this.setData({ |
|
|
@ -243,7 +242,6 @@ Page({ |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
topicModel.getResourceList('', page, res => { |
|
|
|
if (res.result.records.length > 0) { |
|
|
|
list = list.concat(res.result.records); |
|
|
@ -392,6 +390,7 @@ Page({ |
|
|
|
commentNum: item.commentNum, |
|
|
|
dataIndex: index + ((page - 1) * 10), |
|
|
|
isTouchMove: false, |
|
|
|
readed: item.isRead == 0 ? false : true |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
@ -409,5 +408,15 @@ Page({ |
|
|
|
|
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
changeActivityStatus:function(e){ |
|
|
|
console.log("我是被子组件触发的",e); |
|
|
|
const { |
|
|
|
id, |
|
|
|
index |
|
|
|
} = e.detail |
|
|
|
this.setData({ |
|
|
|
[`activityList[${index}].readed`]: true |
|
|
|
}) |
|
|
|
console.log(this.data.activityList) |
|
|
|
} |
|
|
|
}) |