修改
This commit is contained in:
parent
6ff9ecb478
commit
3100488aab
@ -24,12 +24,12 @@
|
|||||||
v-if="item.itemDirectoryWatchStatus=='NOT_WATCHED'">
|
v-if="item.itemDirectoryWatchStatus=='NOT_WATCHED'">
|
||||||
开始播放
|
开始播放
|
||||||
</view>
|
</view>
|
||||||
<view class="play"
|
<view class="play" @tap='videoplay(item)'
|
||||||
:style="item.itemDirectoryWatchStatus=='WATCHED'?'background-color: #4271B9;color:#3D7DCA':''"
|
:style="item.itemDirectoryWatchStatus=='WATCHED'?'background-color: #E3EAF5;color:#3D7DCA':''"
|
||||||
v-if="item.itemDirectoryWatchStatus=='WATCHED'">
|
v-if="item.itemDirectoryWatchStatus=='WATCHED'">
|
||||||
继续播放
|
继续播放
|
||||||
</view>
|
</view>
|
||||||
<view class="play"
|
<view class="play" @tap='videoplay(item)'
|
||||||
:style="item.itemDirectoryWatchStatus=='FINISHED_READING'?'background-color: #E6E6E6;color:#76777B':''"
|
:style="item.itemDirectoryWatchStatus=='FINISHED_READING'?'background-color: #E6E6E6;color:#76777B':''"
|
||||||
v-if="item.itemDirectoryWatchStatus=='FINISHED_READING'">
|
v-if="item.itemDirectoryWatchStatus=='FINISHED_READING'">
|
||||||
已看完
|
已看完
|
||||||
@ -79,7 +79,8 @@
|
|||||||
},
|
},
|
||||||
//关闭播放弹出框
|
//关闭播放弹出框
|
||||||
videoshowfalse() {
|
videoshowfalse() {
|
||||||
this.videoitem.watchTime = this.formatSeconds(this.videoitem.watchTime)
|
this.videoitem.watchTime = '00:00:01'
|
||||||
|
// this.videoitem.watchTime = this.formatSeconds(this.videoitem.watchTime)
|
||||||
insertTrainingItemWatchRecord(this.videoitem).then(res => {
|
insertTrainingItemWatchRecord(this.videoitem).then(res => {
|
||||||
this.videoitem.watchTime = 0
|
this.videoitem.watchTime = 0
|
||||||
this.info();
|
this.info();
|
||||||
@ -106,7 +107,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {}
|
}
|
||||||
this.videoshow = true
|
this.videoshow = true
|
||||||
},
|
},
|
||||||
info() {
|
info() {
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
<view class="Introduce">
|
<view class="Introduce">
|
||||||
{{item.itemDirectoryIntroduce}}
|
{{item.itemDirectoryIntroduce}}
|
||||||
</view>
|
</view>
|
||||||
<view class="play" v-if="!item.trainingOrderStatus" @tap='videoplay(item)'>
|
<view class="play" v-if="!item.trainingOrderStatus">
|
||||||
开始播放
|
开始播放
|
||||||
</view>
|
</view>
|
||||||
<view class="" v-if="item.trainingOrderStatus=='PAY'">
|
<view class="" v-if="item.trainingOrderStatus=='PAY'">
|
||||||
@ -107,7 +107,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {}
|
}
|
||||||
this.videoshow = true
|
this.videoshow = true
|
||||||
},
|
},
|
||||||
info() {
|
info() {
|
||||||
|
|||||||
@ -160,9 +160,14 @@
|
|||||||
},
|
},
|
||||||
//我的学习
|
//我的学习
|
||||||
goOrderlist() {
|
goOrderlist() {
|
||||||
uni.navigateTo({
|
const personRoleLoginFlag = uni.getStorageSync('personRoleLoginFlag');
|
||||||
url: '/pages/Orderlist/Orderlist'
|
if (personRoleLoginFlag) {
|
||||||
})
|
uni.navigateTo({
|
||||||
|
url: '/pages/Orderlist/Orderlist'
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.gologin();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
//敬请期待
|
//敬请期待
|
||||||
gostudy() {
|
gostudy() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user