|
|
|
|
@ -68,6 +68,24 @@ Page({
|
|
|
|
|
showfixToast:false,
|
|
|
|
|
current:0,
|
|
|
|
|
},
|
|
|
|
|
showVideo (e) {
|
|
|
|
|
console.log(e.target.dataset.id);
|
|
|
|
|
console.log(wx.getSystemInfo());
|
|
|
|
|
var that = this;
|
|
|
|
|
|
|
|
|
|
this.videoContext = wx.createVideoContext(`${e.target.dataset.id}`, this);
|
|
|
|
|
this.videoContext.requestFullScreen();
|
|
|
|
|
this.videoContext.hideStatusBar();
|
|
|
|
|
this.videoContext.play();
|
|
|
|
|
// setTimeout(() => {
|
|
|
|
|
// that.setData({
|
|
|
|
|
// isShareShow: true,
|
|
|
|
|
// });
|
|
|
|
|
// }, 500);
|
|
|
|
|
},
|
|
|
|
|
fullScreen(){
|
|
|
|
|
this.videoContext.stop();
|
|
|
|
|
},
|
|
|
|
|
doNothing(){},
|
|
|
|
|
closeFix(){
|
|
|
|
|
this.setData({
|
|
|
|
|
|