修改
This commit is contained in:
parent
26b2bef4c7
commit
3f27818655
@ -13,11 +13,11 @@
|
||||
<view class="directory" v-if="tabcurrent==1">
|
||||
<view class="item" v-for="(item,index) in list.trainingItemDirectoryList" :key="index">
|
||||
<view class="text">
|
||||
<span class='DirectoryName'>{{item.itemDirectoryName}}</span>
|
||||
<span class='texttitle'>{{item.itemDirectoryTitle}}</span>
|
||||
<span class='DirectoryName'>{{item.itemDirectoryName?item.itemDirectoryName:''}}</span>
|
||||
<span class='texttitle'>{{item.itemDirectoryTitle?item.itemDirectoryTitle:''}}</span>
|
||||
</view>
|
||||
<view class="Introduce">
|
||||
{{item.itemDirectoryIntroduce}}
|
||||
{{item.itemDirectoryIntroduce?item.itemDirectoryIntroduce:''}}
|
||||
</view>
|
||||
<view class="play" v-if="!item.trainingOrderStatus" @tap='novideo'>
|
||||
开始播放
|
||||
@ -93,23 +93,31 @@
|
||||
},
|
||||
//视频播放
|
||||
videoplay(item) {
|
||||
if (!item.watchTime) {
|
||||
this.videoitem.watchTime = 0
|
||||
}
|
||||
this.videoitem = item
|
||||
if (item.itemDirectoryWatchStatus == 'WATCHED') {
|
||||
getTrainingItemWatchRecord(this.videoitem.trainingOrderId, this.videoitem.trainingItemId, this
|
||||
.videoitem
|
||||
.trainingItemDirectoryId, this.videoitem.nurseStationPersonId).then(res => {
|
||||
if (res.code == 200) {
|
||||
if (res.data.watchTime) {
|
||||
this.videoitem.watchTime = res.data.watchTime
|
||||
this.videoitem.watchTime = this.formatsecond(this.videoitem.watchTime)
|
||||
if (item.itemDirectoryUrl) {
|
||||
if (!item.watchTime) {
|
||||
this.videoitem.watchTime = 0
|
||||
}
|
||||
this.videoitem = item
|
||||
if (item.itemDirectoryWatchStatus == 'WATCHED') {
|
||||
getTrainingItemWatchRecord(this.videoitem.trainingOrderId, this.videoitem.trainingItemId, this
|
||||
.videoitem
|
||||
.trainingItemDirectoryId, this.videoitem.nurseStationPersonId).then(res => {
|
||||
if (res.code == 200) {
|
||||
if (res.data.watchTime) {
|
||||
this.videoitem.watchTime = res.data.watchTime
|
||||
this.videoitem.watchTime = this.formatsecond(this.videoitem.watchTime)
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
this.videoshow = true
|
||||
} else {
|
||||
this.$refs.uToast.show({
|
||||
title: '暂无视频',
|
||||
type: 'error',
|
||||
duration: '2000'
|
||||
})
|
||||
}
|
||||
this.videoshow = true
|
||||
},
|
||||
info() {
|
||||
selectNurseAppletPersonTrainingItemDetailsList(this.trainingItemId, this.nurseStationPersonId).then(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user