Просмотр исходного кода

器件在售商家下拉获取数据问题处理

yangc 8 лет назад
Родитель
Сommit
db7f7631e2
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      components/mobile/brand/ComponentDetail.vue

+ 1 - 1
components/mobile/brand/ComponentDetail.vue

@@ -229,7 +229,7 @@
     methods: {
       scroll: function () {
         let scrolled = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop
-        if (Math.ceil(scrolled + window.screen.availHeight) >= document.body.scrollHeight && !this.isSearchingMore && this.page < this.allPage) {
+        if (Math.ceil(scrolled + window.screen.availHeight) >= document.body.scrollHeight && !this.isSearchingMore && this.params.page < this.allPage) {
           this.getMoreStore()
         }
       },