From 00bf17838b496e6fcfed2e521f9c27f8f0e3e3c7 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期一, 05 八月 2024 18:38:20 +0800
Subject: [PATCH] ‘’

---
 wechat_staff/pages/promotion/index.js |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/wechat_staff/pages/promotion/index.js b/wechat_staff/pages/promotion/index.js
index 42ce6bd..abb2a7c 100644
--- a/wechat_staff/pages/promotion/index.js
+++ b/wechat_staff/pages/promotion/index.js
@@ -23,6 +23,10 @@
       page:this.data.page,
       model:{type:0}})
       .then(res =>{
+        wx.stopPullDownRefresh()
+        if(this.data.page ==1){
+          this.setData({list:[]})
+        }
         if(this.data.page == res.data.page){ 
           res.data.records.forEach(element => { 
             element.createDate = moment(element.createDate).format("yyyy/MM/DD")  
@@ -108,7 +112,7 @@
                           }
                         })
                       }
-                  })
+                    })
                 } 
               }, fail(err) { 
                 wx.showToast({
@@ -182,7 +186,9 @@
    * 椤甸潰鐩稿叧浜嬩欢澶勭悊鍑芥暟--鐩戝惉鐢ㄦ埛涓嬫媺鍔ㄤ綔
    */
   onPullDownRefresh() {
-
+    console.log('涓嬫媺鍒锋柊')  
+    this.setData({ page: 1 })
+    this.getList() 
   },
  
   /**

--
Gitblit v1.9.3