智慧保安APP验收版本
shuishen
2021-12-03 31a5c00aeb725b8aaccca1d9fab4f074aae4d22d
pages/home/home.vue
@@ -344,7 +344,7 @@
         getArtcilePageList() {
            var that = this;
            uni.request({
               url: this.$store.state.piAPI + "/blade-desk/notice/page?category=1&deptId=" + this.$store.state
               url: this.$store.state.piAPI + "/blade-desk/notice/page?category=2&deptId=" + this.$store.state
                  .UserData
                  .dept_id,
               method: 'GET',
@@ -356,10 +356,10 @@
               success: (res) => {
                  if (res.data.code == 200) {
                     if (res.data.data.records) {
                        //如果总数小于pageSize,不做其他操作
                        if (res.data.data.total < this.pagesize) {
                           that.newsList = res.data.data.records;
                           this.status = 'nomore'
                        } else {
                           if (res.data.data.records.length < this.pagesize) {
                              //如果数量小于分页数量,则为最后一页
@@ -369,13 +369,11 @@
                              this.status = 'loading';
                           }
                           res.data.data.records.forEach(item => {
                              console.log(item);
                              that.newsList.push(item);
                           })
                        }
                     }
                     uni.stopPullDownRefresh();
                  }
               }
            });