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>
</view> </view>
<u-popup v-model="videoshow" mode="center" closeable @close='videoshowfalse'> <u-popup v-model="videoshow" mode="center" closeable @close='videoshowfalse'>
<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>
</u-popup> </u-popup>
<u-toast ref="uToast" /> <u-toast ref="uToast" />
</view> </view>
@ -73,6 +76,7 @@
}], }],
trainingItemId: {}, //id trainingItemId: {}, //id
videoshow: false, // videoshow: false, //
videoshowtwo: false,
videoitem: { videoitem: {
watchTime: 0, watchTime: 0,
}, // }, //
@ -144,6 +148,7 @@
} }
}) })
} }
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

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