chuweiqiang 1 year ago
parent
commit
4da22233a2
2 changed files with 12 additions and 9 deletions
  1. 3 0
      app/data/controller/shop/Goods.php
  2. 9 9
      app/data/view/shop/goods/form.html

+ 3 - 0
app/data/controller/shop/Goods.php

@@ -213,6 +213,9 @@ class Goods extends Controller
             }
 
             $data['admin_id']=AdminService::getUserId();
+            if($data['admin_id'] == 10000){
+                $data['examine']=0;
+            }
 //            $data['examine']=0;
 
             $good = ShopGoodsItem::mk()->where(['goods_code' => $data['code']])->find();

+ 9 - 9
app/data/view/shop/goods/form.html

@@ -338,15 +338,15 @@
 </label>
 
 <script>
-    let editorContent;
-    let vo={:json_encode($vo?:null,256)};
-    let category=256;
-    require(['ckeditor'], function () {
-        editorContent=window.createEditor('[name=content]', {height: 350})
-        if(vo){
-            editorContent.setData(vo.content)
-        }
-    });
+    // let editorContent;
+    // let vo={:json_encode($vo?:null,256)};
+    // let category=256;
+    // require(['ckeditor'], function () {
+    //     editorContent=window.createEditor('[name=content]', {height: 350})
+    //     if(vo){
+    //         editorContent.setData(vo.content)
+    //     }
+    // });
     /*! 入会礼包切换 */
     window.form.on('radio(vip_entry)', setVipEntry);
     setVipEntry({value: ('{$vo.vip_entry|default="0"}')});