wechat_staff/pages/detailDis/case.js
@@ -63,7 +63,7 @@ this.setData({ info }) enjoyList.push({ ...info, joinType: 'product', joinType: '1', timestamp: new Date().getTime() }) }else{ @@ -100,8 +100,12 @@ }) }, getDetail(id) { const enjoyList = wx.getStorageSync('enjoyList') || [] getWholecaseInfo({id}).then(res => { this.setData({ info: res.data }) const index = enjoyList.findIndex( i => i.id === res.data.id ) this.setData({ info: { ...res.data, isEnjoy: index > -1 }}) wx.setNavigationBarTitle({ title: res.data.title })