dubug
This commit is contained in:
parent
3a7b742362
commit
44c3a59bc9
@ -6,7 +6,7 @@
|
||||
"serve": "vue-cli-service serve",
|
||||
"build": "vue-cli-service build",
|
||||
"lint": "vue-cli-service lint",
|
||||
"push": "git add ./ & git commit -m 'dubug' & git push origin master"
|
||||
"push": "git add ./ && git commit -m 'dubug' && git push origin master"
|
||||
},
|
||||
"dependencies": {
|
||||
"vue": "^2.5.17",
|
||||
|
||||
@ -94,6 +94,7 @@
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
currentPlayIndex: 0,
|
||||
isPlaying: true,
|
||||
isCommenting: false,
|
||||
isSharing: false,
|
||||
@ -132,6 +133,16 @@
|
||||
window.scrollTo(0, 0);
|
||||
self.isCommenting = false;
|
||||
self.isSharing = false;
|
||||
if (self.isPlaying) {
|
||||
let currentVideo = self.$refs.video[self.currentPlayIndex];
|
||||
currentVideo.pause();
|
||||
self.isPlaying = false;
|
||||
}else {
|
||||
let currentVideo = self.$refs.video[self.currentPlayIndex];
|
||||
currentVideo.play();
|
||||
self.isPlaying = true;
|
||||
}
|
||||
|
||||
},
|
||||
},
|
||||
},
|
||||
@ -143,7 +154,7 @@
|
||||
on: {
|
||||
slideChange() {
|
||||
let dateLength = self.data.length;
|
||||
let index = this.activeIndex;
|
||||
let index = self.currentPlayIndex = this.activeIndex;
|
||||
console.log(index);
|
||||
console.log(dateLength)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user