From 7599bd1cee24e7c6877157a23cc17a2d8b6ed7be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E9=A3=9E=E6=B4=8B?= <15778543+xufeiyang6017@user.noreply.gitee.com> Date: Fri, 9 Jan 2026 09:37:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E7=BC=96=E8=BE=91=E8=B4=A7?= =?UTF-8?q?=E6=BA=90=E8=A1=A8=E5=8D=95=E9=AA=8C=E8=AF=81=EF=BC=8C=E7=A6=81?= =?UTF-8?q?=E6=AD=A2=E4=BD=BF=E7=94=A8=E6=97=A0=E6=95=88=E8=81=94=E7=B3=BB?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/goods-update/goods-update.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/pages/goods-update/goods-update.js b/pages/goods-update/goods-update.js index 6ae1e8d..253ccbc 100644 --- a/pages/goods-update/goods-update.js +++ b/pages/goods-update/goods-update.js @@ -811,6 +811,26 @@ Page({ return; } + // 验证联系人 + if (!editSupply.product_contact || editSupply.product_contact === '联系人信息暂不可用') { + wx.showToast({ + title: '请选择有效的联系人', + icon: 'none', + duration: 2000 + }); + return; + } + + // 验证联系电话 + if (!editSupply.contact_phone || editSupply.contact_phone === '暂无联系电话') { + wx.showToast({ + title: '请填写有效的联系电话', + icon: 'none', + duration: 2000 + }); + return; + } + wx.showLoading({ title: '保存中...', mask: true