1
This commit is contained in:
parent
71e996f589
commit
f605de093f
@ -1268,12 +1268,12 @@ export default {
|
|||||||
let that = this;
|
let that = this;
|
||||||
this.autoPlay = true;
|
this.autoPlay = true;
|
||||||
localStorage.setItem("autoPlay", JSON.stringify(this.autoPlay));
|
localStorage.setItem("autoPlay", JSON.stringify(this.autoPlay));
|
||||||
var num=this.listNumber.find(item => item.id == that.limitUserId)
|
var num=this.listNumber.find(item => item.id == that.limitUserId).num
|
||||||
clearInterval(this.timer2) && this.timer2;
|
clearInterval(this.timer2) && this.timer2;
|
||||||
var maxNum=num?num:0
|
var maxNum=num?num:0
|
||||||
this.timer2 = setInterval(() => {
|
this.timer2 = setInterval(() => {
|
||||||
that.popContentCurrent++;
|
that.popContentCurrent++;
|
||||||
if (that.popContentCurrent >= maxNum) {
|
if (that.popContentCurrent > maxNum) {
|
||||||
that.popContentCurrent = 1;
|
that.popContentCurrent = 1;
|
||||||
}
|
}
|
||||||
}, 3000);
|
}, 3000);
|
||||||
@ -1329,13 +1329,14 @@ export default {
|
|||||||
if (this.autoPlay) {
|
if (this.autoPlay) {
|
||||||
clearInterval(this.timer2) && this.timer2;
|
clearInterval(this.timer2) && this.timer2;
|
||||||
console.log(this.limitUserId);
|
console.log(this.limitUserId);
|
||||||
var num=this.listNumber.find(item => item.id == that.limitUserId)
|
var num=this.listNumber.find(item => item.id == that.limitUserId).num
|
||||||
var maxNum=num?num:0
|
var maxNum=num?num:0
|
||||||
this.timer2 = setInterval(() => {
|
this.timer2 = setInterval(() => {
|
||||||
that.popContentCurrent++;
|
that.popContentCurrent++;
|
||||||
if (that.popContentCurrent >= maxNum) {
|
if (that.popContentCurrent > maxNum) {
|
||||||
that.popContentCurrent = 1;
|
that.popContentCurrent = 1;
|
||||||
}
|
}
|
||||||
|
console.log( that.popContentCurrent);
|
||||||
}, 3000);
|
}, 3000);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user