link(e) {
const type = e.currentTarget.dataset.type
const id = e.currentTarget.dataset.id
//本地储存的阅读量
let readList = wx.BaaS.storage.get('ReadList') || []
let has = readList.indexOf(id)
console.log('has====',has)
if(has == -1){
readList.unshift(id)
wx.BaaS.storage.set('ReadList',readList)
}
//跳转
wx.navigateTo({
url: '/pages/show/show?id=' + id + '&type=' + type,
})
},