From 744c16a15432461394e1e2dbdfaea34a766fcc6b Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期四, 01 八月 2024 08:53:29 +0800
Subject: [PATCH] ‘’

---
 wechat_jiaxuan/pages/userinfo/favorite.js |   21 ++++++---------------
 1 files changed, 6 insertions(+), 15 deletions(-)

diff --git a/wechat_jiaxuan/pages/userinfo/favorite.js b/wechat_jiaxuan/pages/userinfo/favorite.js
index e5d8b73..c191d9f 100644
--- a/wechat_jiaxuan/pages/userinfo/favorite.js
+++ b/wechat_jiaxuan/pages/userinfo/favorite.js
@@ -17,6 +17,12 @@
   onLoad(options) {
     this.getList()
   },
+  onPullDownRefresh: function () {
+    console.log('涓嬫媺鍒锋柊');
+    this.setData({ dataList: [], pageNum: 1, total: 0 })
+    wx.stopPullDownRefresh()
+    this.getList()
+  },
   onReachBottom() {
     console.log('瑙﹀簳浜嬩欢');
     const { total, dataList, pageNum } = this.data
@@ -101,21 +107,6 @@
   onUnload() {
 
   },
-
-  /**
-   * 椤甸潰鐩稿叧浜嬩欢澶勭悊鍑芥暟--鐩戝惉鐢ㄦ埛涓嬫媺鍔ㄤ綔
-   */
-  onPullDownRefresh() {
-
-  },
-
-  /**
-   * 椤甸潰涓婃媺瑙﹀簳浜嬩欢鐨勫鐞嗗嚱鏁�
-   */
-
-  /**
-   * 鐢ㄦ埛鐐瑰嚮鍙充笂瑙掑垎浜�
-   */
   onShareAppMessage() {
 
   }

--
Gitblit v1.9.3