wechat_staff/pages/detailDis/realpic.js
@@ -56,7 +56,7 @@ this.setData({ info }) enjoyList.push({ ...info, joinType: 'product', joinType: '2', timestamp: new Date().getTime() }) }else{ @@ -79,8 +79,12 @@ } }, getDetail(id) { const enjoyList = wx.getStorageSync('enjoyList') || [] getRealcaseInfo({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 })