Commit e7f3d18a by 前端

修改轮播切换为循环播放

1 parent 4524fdf5
...@@ -105,6 +105,7 @@ export default { ...@@ -105,6 +105,7 @@ export default {
prevClick() { prevClick() {
let index = this.current let index = this.current
if (index == 0) { if (index == 0) {
this.current = 3;
return false return false
} }
this.current = index - 1 this.current = index - 1
...@@ -114,6 +115,7 @@ export default { ...@@ -114,6 +115,7 @@ export default {
nextClick() { nextClick() {
let index = this.current let index = this.current
if (index == 3) { if (index == 3) {
this.current = 1;
return false return false
} }
this.current = index + 1 this.current = index + 1
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!