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({