From 7f268ca241eef6193cf235576763afc402f9f8f1 Mon Sep 17 00:00:00 2001 From: xpz2018 <107107461@qq.com> Date: Thu, 28 May 2020 14:38:19 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/mall/order-info/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pages/mall/order-info/index.js b/pages/mall/order-info/index.js index 187fe3b..5a23f5c 100644 --- a/pages/mall/order-info/index.js +++ b/pages/mall/order-info/index.js @@ -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) {