pages/home/home.js
@@ -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); }); }, /**