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