wechat_jiaxuan/pages/homeId/index.js
@@ -60,6 +60,13 @@ }, itemClick(e) { const item = e.currentTarget.dataset.item const { dataList } = this.data dataList.forEach(ite => { if(item.id === ite.id){ ite.viewCount += 1 } }) this.setData({ dataList }) if(item.contentType){ actionDo({actionType: 'view',id: item.id}) }