新增地址增加空格校验

master
Eratosici 5 years ago
parent aee51407d8
commit 5a4bf3e56a

@ -355,7 +355,8 @@ export default {
var mobile = ths.mobile; var mobile = ths.mobile;
var addr = ths.addr; var addr = ths.addr;
if (!receiver) { if (!receiver.trim()) {
ths.receiver = ''
uni.showToast({ uni.showToast({
title: '请输入收货人姓名', title: '请输入收货人姓名',
icon: "none" icon: "none"
@ -379,7 +380,8 @@ export default {
return; return;
} }
if (!addr) { if (!addr.trim()) {
ths.receiver = ''
uni.showToast({ uni.showToast({
title: '请输入详细地址', title: '请输入详细地址',
icon: "none" icon: "none"

Loading…
Cancel
Save