|
|
@@ -16,7 +16,7 @@
|
|
|
</view>
|
|
|
|
|
|
<view v-if="item.style == 'video'">
|
|
|
- <view class="video" @click="playVide"><video id="myVideo" :src="item.value" object-fit="contain" style="width:700upx;height:1100upx;"></video></view>
|
|
|
+ <video :id="`myVideo${index}`" show-mute-btn="true" :src="item.value" object-fit="contain" style="width:700upx;height:1100upx;"></video>
|
|
|
</view>
|
|
|
|
|
|
<view v-if="item.style == 'image'">
|
|
|
@@ -80,8 +80,8 @@ export default {
|
|
|
goTo(item){
|
|
|
this.$util.pageTo({ url: item.page})
|
|
|
},
|
|
|
- playVide(){
|
|
|
- this.videoContext = uni.createVideoContext('myVideo',this)
|
|
|
+ playVide(index){
|
|
|
+ this.videoContext = uni.createVideoContext('myVideo'+index,this)
|
|
|
this.videoContext.play()
|
|
|
}
|
|
|
},
|