| | |
| | | let videoPlay = this.selectComponent('.videoPlay'); |
| | | if(videoPlay){ |
| | | videoPlay.startPlayVideo(videourl,this ); |
| | | } |
| | | } |
| | | }, |
| | | priviewFull(e){ |
| | | const item = e.currentTarget.dataset.item |
| | |
| | | const item = e.currentTarget.dataset.item |
| | | console.log('item', item); |
| | | if(item.openType == 'video'){ |
| | | wx.previewMedia({ |
| | | sources: [{ url: item.openContent, type: 'video' }] |
| | | }) |
| | | let videoPlay = this.selectComponent('.videoPlay'); |
| | | if(videoPlay){ |
| | | videoPlay.startPlayVideo(item.openContent,this ); |
| | | } |
| | | } |
| | | if(item.openType == 'link'){ |
| | | wx.navigateTo({ |
| | |
| | | cateList[activeIndex].tempParamCode = null |
| | | console.log(1) |
| | | } |
| | | this.setData({ cateList }) |
| | | console.log(cateList) |
| | | this.setData({ cateList }) |
| | | }, |
| | | cancelParam() { |
| | | const { cateList } = this.data |