Commit 1ba474889f20ed0642c4c52f2d10c8ebafe8d4ea
1 parent
92eda369
购好物,首页,热销排行向左滑动处理~
Showing
1 changed file
with
1 additions
and
1 deletions
src/components/marqueeCom/marqueeCom.vue
| ... | ... | @@ -202,7 +202,7 @@ |
| 202 | 202 | } else { |
| 203 | 203 | |
| 204 | 204 | // 修正this.control.distance的位置值 |
| 205 | - this.$set(this.control, 'distance', -(this.$refs.items[0].clientWidth * (this.$refs.items.length - this.options.minCount))); | |
| 205 | + this.$set(this.control, 'distance', -(this.$refs.items[0].clientWidth * (this.$refs.items.length - this.options.minCount)) + 1); | |
| 206 | 206 | } |
| 207 | 207 | |
| 208 | 208 | // 设置移动 | ... | ... |