| | |
| | | const { |
| | | videourl |
| | | } = e.currentTarget.dataset |
| | | wx.previewMedia({ |
| | | sources: [{ |
| | | url: videourl, |
| | | type: 'video' |
| | | }] |
| | | }) |
| | | let videoPlay = this.selectComponent('.videoPlay'); |
| | | if(videoPlay){ |
| | | videoPlay.startPlayVideo(videourl,this ); |
| | | } |
| | | // wx.previewMedia({ |
| | | // sources: [{ |
| | | // url: videourl, |
| | | // type: 'video' |
| | | // }] |
| | | // }) |
| | | }, |
| | | goserHeight: function (e) { |
| | | const serviceHeight = e.detail.height |
| | |
| | | }) |
| | | }, |
| | | consultClick(e) { |
| | | const id = e.currentTarget.dataset.id |
| | | const item = e.currentTarget.dataset.id |
| | | actionDo({ |
| | | actionType: 'view', |
| | | id: id |
| | | id: item.id |
| | | }) |
| | | wx.navigateTo({ |
| | | url: '/pages/consult/detail?id=' + id |
| | | }) |
| | | if(item.contentType == 'link'){ |
| | | wx.navigateTo({ |
| | | url: '/pages/webView/index', |
| | | success: function(res) { |
| | | // 通过eventChannel向被打开页面传送数据 |
| | | res.eventChannel.emit('acceptDataFromOpenerPage', { link: item.content, title: item.title }) |
| | | } |
| | | }) |
| | | }else{ |
| | | wx.navigateTo({ |
| | | url: '/pages/consult/detail?id='+item.id, |
| | | }) |
| | | } |
| | | // wx.navigateTo({ |
| | | // url: '/pages/consult/detail?id=' + id |
| | | // }) |
| | | }, |
| | | bannerClick(e) { |
| | | const { |