| | |
| | | current: 0, |
| | | id: '', |
| | | info: {}, |
| | | spaceList: [], |
| | | member: {}, |
| | | showShare: false, |
| | | isFold: false, |
| | |
| | | actionType: flag ? 'collect' : 'collect_cancel' |
| | | }).then(res => { |
| | | info.isCollection = flag |
| | | wx.showToast({title: flag ? '收藏成功' : '取消收藏'}) |
| | | wx.showToast({title: flag ? '收藏成功' : '取消收藏', icon: 'none'}) |
| | | this.setData({ |
| | | info |
| | | }) |
| | |
| | | this.setData({ current: e.detail.current }) |
| | | }, |
| | | priviewSpace(e) { |
| | | return |
| | | const url = e.currentTarget.dataset.url |
| | | const { |
| | | info |
| | |
| | | }).then(res => { |
| | | const index = enjoyList.findIndex( i =>(res.data && i.id === res.data.id) ) |
| | | this.setData({ |
| | | spaceList: res.data.spaceList || [], |
| | | info: { |
| | | ...res.data, |
| | | isEnjoy: index > -1 |