|
|
@@ -319,7 +319,7 @@
|
|
|
},
|
|
|
submit: function () {
|
|
|
var that = this;
|
|
|
- if (that.from.cid.length <= 0)return $eb.message('error', '请选择门店分类');
|
|
|
+ if (!that.from.cid)return $eb.message('error', '请选择门店分类');
|
|
|
if (!that.form.name) return $eb.message('error', '请填写门店行名称');
|
|
|
if (!that.form.phone) return $eb.message('error', '请输入手机号码');
|
|
|
if (!that.isPhone(that.form.phone)) return $eb.message('error', '请输入正确的手机号码');
|