setter
parent
aae2aa342d
commit
cdd84a43af
|
@ -16,7 +16,61 @@
|
|||
</div>
|
||||
<hr/>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">首页推荐位</label>
|
||||
<div class="layui-input-block">
|
||||
<div class="recommend-item upload-file-div">
|
||||
<div class="recommend-img">
|
||||
<ul class="preview-list"></ul>
|
||||
<input type="hidden" class="upload-file-value" name="recommendMore" value="{:$recommendMore ?? ''}">
|
||||
</div>
|
||||
<div class="recommend-content">
|
||||
<span class="layui-input">更多</span>
|
||||
<div class="img-change-operate">
|
||||
<button type="button" class="layui-btn layui-btn-info upload-btn">
|
||||
<i class="fa fa-upload"></i> 上传
|
||||
</button>
|
||||
</div>
|
||||
<p class="word-aux">更多只能修改ICON图片</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="recommend-list">
|
||||
{if isset($recommend) && !empty($recommend)}
|
||||
{foreach $recommend as $i => $item}
|
||||
<div class="recommend-item upload-file-div">
|
||||
<div class="recommend-img">
|
||||
<ul class="preview-list"></ul>
|
||||
<input type="hidden" class="upload-file-value" name="recommend[{$i}][icon]" value="{:$item['icon'] ?? ''}">
|
||||
</div>
|
||||
<div class="recommend-content">
|
||||
<input type="text" name="recommend[{$i}][name]" autocomplete="off" placeholder="ICON标题" class="layui-input" value="{:$item['name'] ?? ''}">
|
||||
<input type="text" name="recommend[{$i}][link]" autocomplete="off" placeholder="跳转页面" class="layui-input" value="{:$item['link'] ?? ''}">
|
||||
<input type="text" name="recommend[{$i}][sort]" autoComplete="off" placeholder="排序号" class="layui-input" value="{:$item['sort'] ?? 1}">
|
||||
<div class="img-change-operate">
|
||||
<button type="button" class="layui-btn layui-btn-info upload-btn" data-multiple="0">
|
||||
<i class="fa fa-upload"></i> 上传
|
||||
</button>
|
||||
<button type="button" class="layui-btn layui-btn-danger del-recommend">
|
||||
<i class="fa fa-trash"></i> 删除
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<div class="recommend-item">
|
||||
<button type="button" class="layui-btn layui-btn-normal btn-add-recommend">
|
||||
<i class="fa fa-plus-square-o"></i> 添加推荐位
|
||||
</button>
|
||||
<span class="word-aux">图标大小为 120 * 120</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<hr/>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">底部导航设置</label>
|
||||
<div class="layui-input-block">
|
||||
|
|
Loading…
Reference in New Issue