Kirin 2 rokov pred
rodič
commit
f2f9608be2
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 2 1
      app/admin/view/system/system_store/add.php

+ 2 - 1
app/admin/view/system/system_store/add.php

@@ -320,7 +320,8 @@
                 submit: function () {
                 submit: function () {
                     var that = this;
                     var that = this;
                     console.log(that.form.cid);
                     console.log(that.form.cid);
-                    if (!that.form.name) return $eb.message('error', '请填写门店行名称');
+                    if (!that.form.cid) 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', '请输入正确的手机号码');
                     if (!that.form.address) return $eb.message('error', '请选择门店地址');
                     if (!that.form.address) return $eb.message('error', '请选择门店地址');