修改
This commit is contained in:
parent
3f27818655
commit
776914092a
@ -13,11 +13,11 @@
|
||||
<view class="directory" v-if="tabcurrent==1">
|
||||
<view class="item" v-for="(item,index) in list.trainingOrderItemDirectoryVOList" :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="" v-if="trainingOrderStatus=='PAY'">
|
||||
<view class="play" @tap='videoplay(item)'
|
||||
@ -103,26 +103,34 @@
|
||||
},
|
||||
//视频播放
|
||||
videoplay(item) {
|
||||
if (!item.watchTime) {
|
||||
this.videoitem.watchTime = 0
|
||||
}
|
||||
this.videoitem = item
|
||||
this.videoitem.trainingOrderId = this.list.trainingOrderId
|
||||
this.videoitem.trainingItemId = this.list.trainingItemId
|
||||
this.videoitem.nurseStationPersonId = this.nurseStationPersonId
|
||||
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
|
||||
this.videoitem.trainingOrderId = this.list.trainingOrderId
|
||||
this.videoitem.trainingItemId = this.list.trainingItemId
|
||||
this.videoitem.nurseStationPersonId = this.nurseStationPersonId
|
||||
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() {
|
||||
selectTrainingOrderVideoDetails(this.trainingItemId, this.trainingOrderNo).then(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user