| | |
| | | wx.navigateTo({ |
| | | url: '/pages/webView/index', |
| | | success: function(res) { |
| | | // 通过eventChannel向被打开页面传送数据 |
| | | res.eventChannel.emit('acceptDataFromOpenerPage', { link, title }) |
| | | } |
| | | // 通过eventChannel向被打开页面传送数据 |
| | | console.log(link+"--------------------") |
| | | res.eventChannel.emit('data',{link:link,title:title} ); |
| | | } |
| | | }) |
| | | }, |
| | | openShare() { |
| | | this.setData({showShare: true}) |
| | | }, |
| | | priviewLayout() { |
| | | wx.previewImage({ |
| | | urls: [this.data.info.layoutUlr] |
| | | }) |
| | | }, |
| | | priviewSpace(e) { |
| | | const url = e.currentTarget.dataset.url |
| | | const index = e.currentTarget.dataset.index |
| | | const { info } = this.data |
| | | wx.previewImage({ |
| | | urls: info.apiSpaceCaseVos[index].imgList, |
| | | current: url |
| | | }) |
| | | }, |
| | | handleShare() { |
| | | console.log('点击了分享'); |
| | |
| | | actionType: flag ? 'collect' : 'collect_cancel' |
| | | }).then(res => { |
| | | info.isCollection = flag |
| | | wx.showToast({title: flag ? '收藏成功' : '取消收藏'}) |
| | | wx.showToast({title: flag ? '收藏成功' : '取消收藏',icon: 'none'}) |
| | | this.setData({ |
| | | info |
| | | }) |
| | | }) |
| | | wx.setStorageSync('conentCountTemp', this.data.info) |
| | | }) |
| | | } |
| | | }, |
| | |
| | | this.setData({info}) |
| | | wx.showToast({ |
| | | title: actionType == 'collect' ? '收藏成功' : '取消收藏', |
| | | icon: 'none' |
| | | }) |
| | | }) |
| | | }, |
| | |
| | | }}) |
| | | wx.setNavigationBarTitle({ |
| | | title: res.data.title |
| | | }) |
| | | }) |
| | | wx.setStorageSync('conentCountTemp', this.data.info) |
| | | }) |
| | | }, |
| | | handleDesign() { |
| | |
| | | */ |
| | | onShow() { |
| | | refreshEnjoy(this) |
| | | |
| | | }, |
| | | |
| | | /** |