Browse Source

bug修改

master
xpz2018 5 years ago
parent
commit
7f268ca241
1 changed files with 4 additions and 1 deletions
  1. 5
      pages/mall/order-info/index.js

5
pages/mall/order-info/index.js

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

Loading…
Cancel
Save