| | |
| | | import { getZhongTaiVideoPage, getCataLogTagList } from '../../api/index' |
| | | import { getZhongTaiVideoPage, getCataLogTagList ,refreshEnjoy} from '../../api/index' |
| | | Page({ |
| | | |
| | | /** |
| | |
| | | }, |
| | | itemClick(e) { |
| | | 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' }] |
| | | // }) |
| | | }, |
| | | cateClick(e) { |
| | | const { code } = e.target.dataset |
| | |
| | | * 生命周期函数--监听页面显示 |
| | | */ |
| | | onShow() { |
| | | |
| | | refreshEnjoy(this) |
| | | }, |
| | | |
| | | /** |