From cdca21c0c12fa79ad4e85321d0f0960c0c4c3f33 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期五, 06 三月 2026 10:56:17 +0800
Subject: [PATCH] 优化
---
mini-program/pages/new-address/new-address.vue | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/mini-program/pages/new-address/new-address.vue b/mini-program/pages/new-address/new-address.vue
index 45de06b..008184c 100644
--- a/mini-program/pages/new-address/new-address.vue
+++ b/mini-program/pages/new-address/new-address.vue
@@ -117,6 +117,22 @@
})
},
submit() {
+ if (!this.form.name) return uni.showToast({
+ title: '鏀朵欢浜轰笉鑳戒负绌猴紒',
+ icon: 'none'
+ })
+ if (!this.form.phone) return uni.showToast({
+ title: '鑱旂郴鐢佃瘽涓嶈兘涓虹┖锛�',
+ icon: 'none'
+ })
+ if (!this.form.areaName) return uni.showToast({
+ title: '鎵�鍦ㄥ湴鍖轰笉鑳戒负绌猴紒',
+ icon: 'none'
+ })
+ if (!this.form.addr) return uni.showToast({
+ title: '璇︾粏鍦板潃涓嶈兘涓虹┖锛�',
+ icon: 'none'
+ })
if (this.type === 1) {
this.$u.api.createAddr(this.form)
.then(res => {
--
Gitblit v1.9.3