手机及PC上划加载

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();
        }
      }
    },

你可能感兴趣的:(vue.js,前端)