|
@@ -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=''}">
|
|
|
+ <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=''}">
|
|
|
- <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>
|