wechat_staff/pages/detailDis/case.js
@@ -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 })