Bladeren bron

与后端联调完善农业云H5之“政策法规”列表展示、详情信息预览等功能

张启 4 jaren geleden
bovenliggende
commit
4f55b9ab87
1 gewijzigde bestanden met toevoegingen van 15 en 3 verwijderingen
  1. 15 3
      pages/regulations/index.vue

+ 15 - 3
pages/regulations/index.vue

@@ -55,7 +55,9 @@
 </template>
 
 <script>
-import { regulationsListData } from '@/agrcloud-api/regulations';
+import {
+  regulationsListData
+} from '@/agrcloud-api/regulations';
 import uniLoadMore from "@/agrcloud-components/uni-load-more/uni-load-more.vue"
 
 export default {
@@ -91,6 +93,7 @@ export default {
       this.loadStatus = 'loading';
 
       regulationsListData(this.pagination).then(res => {
+        debugger
         // 数据总条数
         this.pageTotal = res.total || 0;
 
@@ -139,7 +142,8 @@ export default {
       });
     },
     handleScrolltolower() {
-      this.loadStatus = 'loading'
+      debugger;
+      this.loadStatus = 'loading';
       if (this.pagination.pageNum - 1 >= this.pageCount) {
         this.loadStatus = 'noMores';
         return;
@@ -162,7 +166,8 @@ export default {
 }
 </script>
 
-<style lang="scss" scoped>
+<style lang="scss"
+  scoped>
 .regulations {
   padding-top: 25rpx;
   width: 100%;
@@ -170,6 +175,13 @@ export default {
   .regulations-content {
     width: 100%;
 
+    .scroll-Y {
+      height: calc(
+        100vh - 88rpx - 100rpx - env(safe-area-inset-bottom) -
+          var(--status-bar-height)
+      );
+    }
+
     .regulations-listbody {
       width: 100%;