From 2faa6546a9f9ddb29f81cbc9770fc25b95703695 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期五, 26 七月 2024 17:02:39 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 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