From d0ba104b6ee00b03a3433e66384952c4a4a892c4 Mon Sep 17 00:00:00 2001
From: zuoxiao <470321431@qq.com>
Date: 星期六, 12 十月 2024 09:21:15 +0800
Subject: [PATCH] 1.tag切换到test。2.优化首页显示内容

---
 pages/home/home.js |   24 ++++++++++++++++--------
 1 files changed, 16 insertions(+), 8 deletions(-)

diff --git a/pages/home/home.js b/pages/home/home.js
index d0a7f0b..fa1c834 100644
--- a/pages/home/home.js
+++ b/pages/home/home.js
@@ -15,8 +15,8 @@
     myItem: {},
     waterIntakeName: "",
     image: "/images/ic_head_bg.jpg",
-    userPhone: "158****0723",
-    userName: "寮犱笁",
+    userPhone: "000****0000",
+    userName: "鏈煡",
     scrollViewHeight: 0,
     listData: [],
     isRefreshing: false,
@@ -229,11 +229,20 @@
       // 鍔犺浇瀹屾垚鍚庨殣钘忓姞杞藉姩鐢�
       wx.hideLoading();
       this.getOpenList();
-      wx.showToast({
-        title: '鍏抽榾鎴愬姛',
-        icon: 'success',
-        duration: 3000
-      })
+      if(response.content.data.success){
+        wx.showToast({
+          title: '鍏抽榾鎴愬姛',
+          icon: 'success',
+          duration: 3000
+        })
+      }else{
+        wx.showToast({
+          title: '鍏抽榾澶辫触',
+          icon: 'error',
+          duration: 3000
+        })
+      }
+   
     }).catch(error => {
       wx.hideLoading();
       this.setData({
@@ -243,7 +252,6 @@
       })
       // 澶勭悊閿欒鍝嶅簲
       console.error('璇锋眰澶辫触:', error);
-
     });
   },
   /**

--
Gitblit v1.8.0