caipan_shop_admin/view/manager/slide/edit.html

65 lines
3.1 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

{layout name="manager/layout" /}
<div class="layuimini-container location-operate-page">
<div class="layuimini-main">
<div class="layui-form layuimini-form">
<!-- 显示位置 -->
<div class="layui-form-item">
<label class="layui-form-label required">显示位置</label>
<div class="layui-input-block">
<div id="position-list" data-menu="{$positionsJson ?? ''}"></div>
</div>
</div>
<div class="layui-form-item field-div ">
<label class="layui-form-label required">标题</label>
<div class="layui-input-block">
<input type="text" name="item[title]" placeholder="请输入标题" class="layui-input" value="{$item.title ?? ''}">
</div>
</div>
<div class="layui-form-item field-div ">
<label class="layui-form-label">跳转链接</label>
<div class="layui-input-block">
<input type="text" name="item[url]" placeholder="请输入跳转链接[选填]" class="layui-input" value="{$item.url ?? ''}">
</div>
</div>
<div class="layui-form-item layui-row field-div " >
<label class="layui-form-label required">轮播图:</label>
<div class="layui-inline layui-col-xs12 layui-col-md8">
<div class="layui-row upload-file-div">
<div class=" layui-col-xs12 layui-col-md8">
<input class="layui-input upload-file-value" name="item[src]" type="text" value="{$item.src ?? ''}">
<div class="layui-form-mid layui-word-aux">图片尺寸最低高度为200px</div>
</div>
<div class="layui-col-xs12 layui-col-md3">
<span>
<button type="button" class="layui-btn layui-btn-danger upload-btn">
<i class="fa fa-upload"></i> 上传
</button>
</span>
</div>
<ul class="layui-row layui-col-xs12 layui-col-md9 preview-list layui-col-space5"></ul>
</div>
</div>
</div>
<div class="layui-form-item layui-form-text field-div current-field-content"}>
<label class="layui-form-label">描述</label>
<div class="layui-input-block">
<textarea name="item[description]" class="layui-textarea">{$item.description ?? ''}</textarea>
</div>
</div>
<div class="layui-form-item">
<div class="layui-input-block">
<input type="hidden" name="id" value="{$id ?? 0}">
<button class="layui-btn layui-btn-normal" data-url="/manager/slide/edit" lay-submit lay-filter="saveBtn">确认保存</button>
</div>
</div>
</div>
</div>
</div>
<script src="__MANAGER__/js/slide.js?v={:mt_rand()}"></script>