|
@@ -183,7 +183,17 @@ export default {
|
|
|
if (self.user.address == null) {
|
|
|
weui.alert('地址不能为空!');
|
|
|
return;
|
|
|
+ } else if (self.user.address.length < 7) {
|
|
|
+ weui.alert('请填写完整地址,包括区/县信息!');
|
|
|
+ return;
|
|
|
+ } else if (self.user.address.indexOf('区')) {
|
|
|
+ weui.alert('请填写完整地址,包括区/县信息!');
|
|
|
+ return;
|
|
|
}
|
|
|
+ /* if (self.user.address && self.user.address.indexOf('区')) {
|
|
|
+ weui.alert('请填写完整地址,包括区/县信息!');
|
|
|
+ return;
|
|
|
+ } */
|
|
|
// 验证兑换码
|
|
|
if (self.code.pwd == null) {
|
|
|
weui.alert('请输入兑换券上的兑换码!');
|