|
@@ -3,6 +3,7 @@ import {
|
|
|
submitPlayLog
|
|
|
} from '~/api/video'
|
|
|
let _observer
|
|
|
+let preId = ''
|
|
|
Component({
|
|
|
behaviors: [behavior],
|
|
|
properties: {
|
|
@@ -21,7 +22,8 @@ Component({
|
|
|
this._observer.relativeTo('.playLine')
|
|
|
.observe('.videoPreview', (res) => {
|
|
|
let intersectionRatio = res.intersectionRatio
|
|
|
- if (intersectionRatio > 0) {
|
|
|
+ if (intersectionRatio > 0 && preId != res.dataset.id) {
|
|
|
+ preId = res.dataset.id
|
|
|
submitPlayLog({
|
|
|
userReadId: res.dataset.id,
|
|
|
playStopTime: 1000
|