From 74d32fa0a73383c24feefcc8b4dd96e7f7c7a180 Mon Sep 17 00:00:00 2001 From: xiaozhiyong Date: Mon, 20 Nov 2023 13:24:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AppletCode/pages/index/index.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/AppletCode/pages/index/index.vue b/AppletCode/pages/index/index.vue index a6342b7..67f3c6d 100644 --- a/AppletCode/pages/index/index.vue +++ b/AppletCode/pages/index/index.vue @@ -280,9 +280,16 @@ submit() { this.checkFn('name'); this.checkFn('plateNumber'); - if (!this.fromStyle.nameType || !this.fromStyle.plateNumberType) { + if (!this.fromStyle.nameType) { uni.showToast({ - title: '还有信息没有填哦', + title: '请输入姓名', + icon: 'error' + }); + return + }; + if (!this.fromStyle.plateNumberType) { + uni.showToast({ + title: '车牌号格式有误', icon: 'error' }); return