quanyawei
2023-11-15 53ae51f7111fe62f0011d304268cbfe1261b36f1
pages/actionChange/agencyPage/index.vue
@@ -203,17 +203,6 @@
            return data
         }
      },
      onReachBottom() {
         //这里是判断是否需要继续掉接口
         if (this.isLoading) {
            console.log('1122111')
            this.status = 'loading'
            //请求一次接口,页码就++
            this.page.currentPage = ++this.page.currentPage
            //根据索引,点击哪个tab加载哪个
            this.getWorkOrder()
         }
      },
      mounted() {},
      filters: {
         stateFormatter(val) {
@@ -223,14 +212,21 @@
      },
      onLoad: () => {},
      methods: {
         onBottom() {
            //这里是判断是否需要继续掉接口
            console.log('1122111')
            this.status = 'loading'
            //请求一次接口,页码就++
            this.page.currentPage = ++this.page.currentPage
            //根据索引,点击哪个tab加载哪个
            this.getWorkOrder()
         },
         getLoadmore() {
            if (this.isLoading) {
               this.status = 'loading'
               //请求一次接口,页码就++
               this.page.currentPage = ++this.page.currentPage
               //根据索引,点击哪个tab加载哪个
               this.getWorkOrder()
            }
            this.status = 'loading'
            //请求一次接口,页码就++
            this.page.currentPage = ++this.page.currentPage
            //根据索引,点击哪个tab加载哪个
            this.getWorkOrder()
         },
         async onChooseAvatar(e) {
            const {
@@ -372,6 +368,10 @@
   }
</script>
<style scoped lang="scss">
   page {
      height: 101vh;
   }
   /deep/.uni-page-head {
      display: none;
   }