This commit is contained in:
曹辉 2023-04-28 10:00:57 +08:00
parent 6f9ce48dfd
commit 2ecc410ce3
2 changed files with 9 additions and 3 deletions

View File

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

View File

@ -14,6 +14,7 @@
bar-height='7' bar-width='43' inactive-color='#A09F9F' active-color='#4271B9'>
</u-tabs>
<view class="content" v-if="tabcurrent==0">
<!-- <view class="" v-html="infoslist.trainingItemContent"></view> -->
<u-parse :html="infoslist.trainingItemContent"></u-parse>
</view>
<view class="directory" v-if="tabcurrent==1">