|
@@ -230,13 +230,13 @@ export default defineComponent({
|
|
|
const updateStat = async (pageBrowseTime = 10) => {
|
|
|
try {
|
|
|
const videoBrowseData = moreTime.value.length > 0 ? formatEffectiveTime(moreTime.value) : []
|
|
|
- let time = moreTime.value.length > 0 ? formatTimer(moreTime.value) : 0
|
|
|
- const videoCountTime = videoIntervalRef?.counter.value
|
|
|
+ const time = moreTime.value.length > 0 ? formatTimer(moreTime.value) : 0
|
|
|
+ // const videoCountTime = videoIntervalRef?.counter.value
|
|
|
const videoDuration = forms.player.duration
|
|
|
// 判断如何视屏播放时间大于视屏播放有效时间则说明数据有问题,进行重置数据
|
|
|
- if (time > videoCountTime && time < videoDuration) {
|
|
|
- time = videoCountTime
|
|
|
- }
|
|
|
+ // if (time > videoCountTime && time < videoDuration) {
|
|
|
+ // time = videoCountTime
|
|
|
+ // }
|
|
|
const rate = Math.floor((time / Math.floor(videoDuration)) * 100)
|
|
|
|
|
|
await request.post('/api-student/open/studentBrowseRecord/updateStat', {
|