1. link(e) {
    2. const type = e.currentTarget.dataset.type
    3. const id = e.currentTarget.dataset.id
    4. //本地储存的阅读量
    5. let readList = wx.BaaS.storage.get('ReadList') || []
    6. let has = readList.indexOf(id)
    7. console.log('has====',has)
    8. if(has == -1){
    9. readList.unshift(id)
    10. wx.BaaS.storage.set('ReadList',readList)
    11. }
    12. //跳转
    13. wx.navigateTo({
    14. url: '/pages/show/show?id=' + id + '&type=' + type,
    15. })
    16. },