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