Swipe to load on mobile phones and PCs

style="height: 64vh; overflow: auto"

 @scroll="loadImg($event)"

loadImg(event) {
    
    
      const _this = this;
      let el = event.target;
      if (el.scrollTop + el.clientHeight >= el.scrollHeight) {
    
    
        _this.page++;
        // _this.searchForm.start_cre_date = "";
        // _this.searchForm.end_cre_date = "";
        if (Number(localStorage.getItem("page_total")) < 10) {
    
    
          return;
        } else {
    
    
          _this.getScoreDateList();
        }
      }
    },

Guess you like

Origin blog.csdn.net/weixin_44694682/article/details/129546317