Kirin před 2 roky
rodič
revize
dab3ce5442

+ 1 - 0
app/admin/model/system/SystemStore.php

@@ -59,6 +59,7 @@ class SystemStore extends BaseModel
             $storeInfo['valid_time'] = $storeInfo['valid_time'] ? explode(' - ', $storeInfo['valid_time']) : [];
             $storeInfo['valid_time'] = $storeInfo['valid_time'] ? explode(' - ', $storeInfo['valid_time']) : [];
             $storeInfo['day_time'] = $storeInfo['day_time'] ? explode(' - ', $storeInfo['day_time']) : [];
             $storeInfo['day_time'] = $storeInfo['day_time'] ? explode(' - ', $storeInfo['day_time']) : [];
             $storeInfo['address'] = $storeInfo['address'] ? explode(',', $storeInfo['address']) : [];
             $storeInfo['address'] = $storeInfo['address'] ? explode(',', $storeInfo['address']) : [];
+            $storeInfo['cid'] = $storeInfo['cid'] ? explode(',', $storeInfo['cid']) : [];
             $storeInfo['is_triple'] = $storeInfo['is_triple'] ? (string)$storeInfo['is_triple'] : "0";
             $storeInfo['is_triple'] = $storeInfo['is_triple'] ? (string)$storeInfo['is_triple'] : "0";
         } else {
         } else {
             $storeInfo['latlng'] = [];
             $storeInfo['latlng'] = [];

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

@@ -319,7 +319,7 @@
                 },
                 },
                 submit: function () {
                 submit: function () {
                     var that = this;
                     var that = this;
-                    console.log(that.form.cid);
+                    if (that.from.cid.length <= 0)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', '请输入正确的手机号码');