chuweiqiang 1 rok pred
rodič
commit
3ccded2476

+ 13 - 0
app/admin/view/best_knowledge_ad/ad_form.html

@@ -26,6 +26,14 @@
             <span class="help-label"><b>排序</b>News Title</span>
             <input class="layui-input" type="number" name="sort" placeholder="排序" required value='{$vo.sort|default="0"}'>
         </label>
+
+        <div class="layui-form-item layui-row layui-col-space15">
+            <label class="layui-col-xs12 relative">
+                <span class="color-green font-w7">详情</span>
+                <textarea placeholder="广告详情" required class="layui-textarea" name="content">{$vo.content|default=""}</textarea>
+            </label>
+        </div>
+
         <div class="hr-line-dashed"></div>
         {notempty name='vo.id'}<input name='id' type='hidden' value='{$vo.id}'>{/notempty}
 
@@ -39,5 +47,10 @@
 
 <script>
     $('input[name="images"]').uploadOneImage();
+    window.form.render();
+    require(['ckeditor', 'angular'], function () {
+        window.createEditor('[name="content"]', {
+        });
+    })
 </script>
 {/block}

+ 12 - 0
app/admin/view/xw/ad_form.html

@@ -29,6 +29,13 @@
         <div class="hr-line-dashed"></div>
         {notempty name='vo.id'}<input name='id' type='hidden' value='{$vo.id}'>{/notempty}
 
+        <div class="layui-form-item layui-row layui-col-space15">
+            <label class="layui-col-xs12 relative">
+                <span class="color-green font-w7">详情</span>
+                <textarea placeholder="广告详情" required class="layui-textarea" name="content">{$vo.content|default=""}</textarea>
+            </label>
+        </div>
+
         <div class="layui-form-item text-center">
             <button class="layui-btn" type="submit">保存数据</button>
             <button class="layui-btn layui-btn-danger" data-close type='button'>取消编辑</button>
@@ -39,5 +46,10 @@
 
 <script>
     $('input[name="images"]').uploadOneImage();
+    window.form.render();
+    require(['ckeditor', 'angular'], function () {
+        window.createEditor('[name="content"]', {
+        });
+    })
 </script>
 {/block}