This commit is contained in:
曹辉 2023-04-28 10:31:15 +08:00
parent 06c315d06a
commit 3a0886249d
2 changed files with 6 additions and 20 deletions

View File

@ -42,14 +42,9 @@
</view> </view>
</view> </view>
<u-popup v-model="videoshow" mode="center" closeable @close='videoshowfalse'> <u-popup v-model="videoshow" mode="center" closeable @close='videoshowfalse'>
<view class="" v-if="videoshow"> <video id="video" v-if="videoshow" :src="baseurl+videoitem.itemDirectoryUrl" @timeupdate='videotimeupdate'
<video id="video" v-if="videoshowtwo" :src="baseurl+videoitem.itemDirectoryUrl" :initial-time='videoitem.watchTime' @error='videoerror' :custom-cache="false"
@timeupdate='videotimeupdate' :initial-time='videoitem.watchTime' @error='videoerror' @play='videoplays'></video>
:custom-cache="false" @play='videoplays'></video>
<video id="video" v-if="!videoshowtwo" :src="baseurl+videoitem.itemDirectoryUrl"
@timeupdate='videotimeupdate' :initial-time='videoitem.watchTime' @error='videoerror'
:custom-cache="false" @play='videoplays'></video>
</view>
</u-popup> </u-popup>
<u-toast ref="uToast" /> <u-toast ref="uToast" />
</view> </view>
@ -79,7 +74,6 @@
trainingItemId: undefined, //id trainingItemId: undefined, //id
trainingOrderNo: undefined, //orderno trainingOrderNo: undefined, //orderno
videoshow: false, // videoshow: false, //
videoshowtwo: false,
videoitem: { videoitem: {
watchTime: 0, watchTime: 0,
}, // }, //
@ -169,7 +163,6 @@
} }
}) })
} }
this.videoshowtwo = !this.videoshowtwo
this.videoshow = true this.videoshow = true
this.videoContext = uni.createVideoContext('video', this) this.videoContext = uni.createVideoContext('video', this)
} else { } else {

View File

@ -42,14 +42,9 @@
</view> </view>
</view> </view>
<u-popup v-model="videoshow" mode="center" closeable @close='videoshowfalse'> <u-popup v-model="videoshow" mode="center" closeable @close='videoshowfalse'>
<view class="" v-if="videoshow"> <video id="video" v-if="videoshow" :src="baseurl+videoitem.itemDirectoryUrl" @timeupdate='videotimeupdate'
<video id="video" v-if="videoshowtwo" :src="baseurl+videoitem.itemDirectoryUrl" :initial-time='videoitem.watchTime' @error='videoerror' :custom-cache="false"
@timeupdate='videotimeupdate' :initial-time='videoitem.watchTime' @error='videoerror' @play='videoplays'></video>
:custom-cache="false" @play='videoplays'></video>
<video id="video" v-if="!videoshowtwo" :src="baseurl+videoitem.itemDirectoryUrl"
@timeupdate='videotimeupdate' :initial-time='videoitem.watchTime' @error='videoerror'
:custom-cache="false" @play='videoplays'></video>
</view>
</u-popup> </u-popup>
<u-toast ref="uToast" /> <u-toast ref="uToast" />
</view> </view>
@ -78,7 +73,6 @@
}], }],
trainingItemId: {}, //id trainingItemId: {}, //id
videoshow: false, // videoshow: false, //
videoshowtwo: false,
videoitem: { videoitem: {
watchTime: 0, watchTime: 0,
}, // }, //
@ -157,7 +151,6 @@
} }
}) })
} }
this.videoshowtwo = !this.videoshowtwo
this.videoshow = true this.videoshow = true
this.videoContext = uni.createVideoContext('video', this) this.videoContext = uni.createVideoContext('video', this)
} else { } else {