| | |
| | | this.setData({ |
| | | info |
| | | }) |
| | | wx.setStorageSync('conentCountTemp', this.data.info) |
| | | }) |
| | | } |
| | | }, |
| | |
| | | getProductInfo({ |
| | | id |
| | | }).then(res => { |
| | | const index = enjoyList.findIndex( i => i.id === res.data.id ) |
| | | const index = enjoyList.findIndex( i =>(res.data && i.id === res.data.id) ) |
| | | this.setData({ |
| | | info: { |
| | | ...res.data, |
| | | isEnjoy: index > -1 |
| | | } |
| | | }) |
| | | const { info} = this.data |
| | | wx.setStorageSync('conentCountTemp', info) |
| | | wx.setNavigationBarTitle({ |
| | | title: res.data.title |
| | | }) |
| | |
| | | // title: productDetail.title, |
| | | // path: '/pages/index/index?id=' + productDetail.id + '&shareuserid=' + userInfo.id + '&type=0' |
| | | // } |
| | | // }, |
| | | onClose() { |
| | | this.setData({ |
| | | showShare: false |
| | | }) |
| | | }, |
| | | // }, |
| | | handleDown() { |
| | | let { |
| | | info |