Browse Source

no message

linwenxin 5 months ago
parent
commit
5eb34c8128
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/packageEnter/pages/insurance/myInsurance/index.vue

+ 6 - 0
src/packageEnter/pages/insurance/myInsurance/index.vue

@@ -24,6 +24,7 @@
         </view>
       </view>
     </view>
+    <Loading :loadStatus="loadStatus" :dataList="list" />
     <zjDialogPicker
       ref="websitDialog"
       :isShow="isShowWebsitDialog"
@@ -51,6 +52,7 @@ export default {
   },
   data() {
     return {
+      loadStatus: 0,
       list: [],
       websitId: '',
       baoxiandangqianxianxitishi: [],
@@ -62,10 +64,12 @@ export default {
     uni.showLoading({
       title: '加载中'
     })
+    this.loadStatus = 1
     this.$api.post('/worker/myPolicy', { pageNum: 1, pageSize: -1 }).then(res => {
       this.$nextTick(() => {
         uni.hideLoading()
       })
+      this.loadStatus = 2
       this.list = res?.data?.records || []
     })
     this.$api.post('/worker/remind').then(res => {
@@ -76,10 +80,12 @@ export default {
     // 触发下拉刷新
     refresherrefresh(e) {
       this.refresherTriggered = true
+      this.loadStatus = 1
       this.$api.post('/worker/myPolicy', { pageNum: 1, pageSize: -1 }).then(res => {
         this.$nextTick(() => {
           this.refresherTriggered = false
         })
+        this.loadStatus = 2
         this.list = res?.data?.records || []
       })
     },