wupengfei 2 年之前
父节点
当前提交
68b971c967
共有 3 个文件被更改,包括 37 次插入36 次删除
  1. 2 1
      .idea/workspace.xml
  2. 34 34
      application/store/view/banner/form.html
  3. 1 1
      application/store/view/banner/index.html

+ 2 - 1
.idea/workspace.xml

@@ -3,6 +3,7 @@
   <component name="ChangeListManager">
     <list default="true" id="a760c6e5-d38f-48d9-be27-0f7a4f48e29f" name="Default Changelist" comment="">
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/application/store/view/banner/form.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/store/view/banner/form.html" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/application/store/view/banner/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/store/view/banner/index.html" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
@@ -148,7 +149,7 @@
       <workItem from="1661734371076" duration="15282000" />
       <workItem from="1661820079823" duration="2898000" />
       <workItem from="1661907611720" duration="5931000" />
-      <workItem from="1661993135050" duration="810000" />
+      <workItem from="1661993135050" duration="1193000" />
     </task>
     <servers />
   </component>

+ 34 - 34
application/store/view/banner/form.html

@@ -7,46 +7,46 @@
 
     }
 </style>
-<div class="think-box-shadow">
+<link rel="stylesheet" href="/static/plugs/layui/css/layui.css"  media="all">
+<script src="/static/plugs/layui/layui.all.js" charset="utf-8"></script>
+<div class="think-box-shadow"  style="height: 100%">
 <form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
-    <div class="layui-card-body">
-
-        <div class="layui-form-item">
-            <label class="layui-form-label label-required">名称</label>
-            <div class="layui-input-block">
-                <input name="name" maxlength="20"  value='{$vo.name|default=""}' placeholder="请输入名称" class="layui-input">
+    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
+        <legend>商品编辑</legend>
+    </fieldset>
+    <div class="layui-tab-content">
+        <div class="layui-tab-item layui-show">
+            <div class="layui-form-item">
+                <label class="layui-form-label label-required">名称</label>
+                <div class="layui-input-block">
+                    <input name="name" maxlength="20"  value='{$vo.name|default=""}' placeholder="请输入名称" class="layui-input">
+                </div>
             </div>
-        </div>
+            <div class="layui-form-item">
+                <label class="layui-form-label label-required">图片</label>
+                <div class="layui-input-block">
+                    <input name="cover" type="hidden" value="{$vo.cover|default=''}">
+                    &nbsp; &nbsp;<span style="margin-right: 20px">建议尺寸宽700px 高330px </span>
+                </div>
 
-        <div class="layui-form-item">
-            <label class="layui-form-label label-required">图片</label>
-            <div class="layui-input-block">
-                <input name="cover" type="hidden" value="{$vo.cover|default=''}">
-                &nbsp; &nbsp;<span style="margin-right: 20px">建议尺寸宽700px 高330px </span>
             </div>
-
-        </div>
-
-
-        <div class="layui-form-item">
-            <label class="layui-form-label label-required">排序</label>
-            <div class="layui-input-block">
-                <input type="number" name="sort"  value='{$vo.sort|default=""}' placeholder="请输入排序号" class="layui-input">
+            <div class="layui-form-item">
+                <label class="layui-form-label label-required">排序</label>
+                <div class="layui-input-block">
+                    <input type="number" name="sort"  value='{$vo.sort|default=""}' placeholder="请输入排序号" class="layui-input">
+                </div>
             </div>
-        </div>
-
-        <div class="layui-form-item">
-            <label class="layui-form-label label-required">内容</label>
-            <div class="layui-input-block">
-                <textarea name="content">{$vo.content|default=""}</textarea>
+            <div class="layui-form-item">
+                <label class="layui-form-label label-required">内容</label>
+                <div class="layui-input-block">
+                    <textarea name="content">{$vo.content|default=""}</textarea>
+                </div>
+            </div>
+            {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
+            <div class="layui-form-item text-center">
+                <button class="layui-btn" type='submit'>保 存</button>
+                <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定取消编辑吗?" data-close>取消编辑</button>
             </div>
-        </div>
-
-
-        {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
-        <div class="layui-form-item text-center">
-            <button class="layui-btn" type='submit'>保 存</button>
-            <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定取消编辑吗?" data-close>取消编辑</button>
         </div>
     </div>
 </form>

+ 1 - 1
application/store/view/banner/index.html

@@ -1,7 +1,7 @@
 {extend name='admin@main'}
 
 {block name="button"}
-    <button data-modal='{:url("add")}' data-title="添加轮播图" class='layui-btn layui-btn-sm layui-btn-primary'>添加轮播图</button>
+    <button data-open='{:url("add")}' data-title="添加轮播图" class='layui-btn layui-btn-sm layui-btn-primary'>添加轮播图</button>
 {/block}
 
 {block name="content"}