|
|
|
@ -66,6 +66,9 @@ Page({ |
|
|
|
imgList = result.data.imgList |
|
|
|
imgList.unshift(vurl) |
|
|
|
this.videoContext = wx.createVideoContext('video') |
|
|
|
} else if(vindex == 0){ |
|
|
|
imgList = result.data.imgList |
|
|
|
this.videoContext = wx.createVideoContext('video') |
|
|
|
} else { |
|
|
|
imgList = result.data.imgList |
|
|
|
} |
|
|
|
@ -125,8 +128,8 @@ Page({ |
|
|
|
} |
|
|
|
}, |
|
|
|
videoTap: function () { |
|
|
|
console.log('videoTap>>>') |
|
|
|
if (this.videoContext) { |
|
|
|
console.log('videoTap>>>') |
|
|
|
if (this.data.status == 0) { |
|
|
|
this.videoContext.play() |
|
|
|
} else if (this.data.status == 1) { |
|
|
|
|