pages/waterIntake/waterIntake.js
@@ -84,13 +84,10 @@ wx.hideLoading(); // 处理错误响应 console.error('请求失败:', error); if (error.code === "1002") { wx.showToast({ title: '开阀失败', icon: 'error', duration: 3000 // 提示的持续时间,单位毫秒 }) } this.setData({ showErrorDialog: true, errorData: error.msg }) }); }, @@ -235,6 +232,11 @@ this.setData({ showConfirm: false }) }, closeErrorDialog() { this.setData({ showErrorDialog: false }) } })