From 50dbd27f513d179e54c15822d0afad48b1219643 Mon Sep 17 00:00:00 2001 From: liyuanchao <438964165@qq.com> Date: Thu, 21 Aug 2025 16:15:37 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E9=A2=98=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/sys/msg/index.vue | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/pages/sys/msg/index.vue b/pages/sys/msg/index.vue index 5ee2b8f..76b08bf 100644 --- a/pages/sys/msg/index.vue +++ b/pages/sys/msg/index.vue @@ -293,6 +293,7 @@ export default { qrCodeId, visitorName, visitorUnit, + idCard, visitorPhone, visitingReason, interviewedPerson, @@ -311,8 +312,8 @@ export default { } // 验证公司 - if (!visitorUnit) { - return '请输入所属公司'; + if (!idCard) { + return '请输入证件号'; } // 验证电话 @@ -331,9 +332,9 @@ export default { } // 验证被访人 - if (!interviewedPerson) { - return '请输入被访人姓名'; - } + // if (!interviewedPerson) { + // return '请输入被访人姓名'; + // } // 验证车牌号(如果需要预约车位) // if (bookingParkingSpace && !licensePlate) { @@ -422,6 +423,7 @@ export default { const parsedData = JSON.parse(res.data); + if(parsedData.code == 200){ // 第二步:从解析后的数据中获取ossId const ossId = parsedData.data.ossId; console.log("ossId",ossId) @@ -436,6 +438,12 @@ export default { }) } }) + }else{ + uni.showToast({ + title: '上传失败', + icon: 'none' + }); + } // uni.showToast({