k94314517
2024-07-25 28c725308aaf418e9032964ffcf5ca3b0d8a1208
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
     })