caipan_shop_admin/view/manager/archives/add.html

124 lines
7.2 KiB
HTML
Executable File
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="parent-menu" data-show="{$showList ?? ''}" data-menu="{$jsonList ?? ''}"></div>
</div>
</div>
<!-- 标题 -->
<div class="layui-form-item field-div current-field-title" {if !in_array('title', $currentList)} style="display:none;" {/if}>
<label class="layui-form-label required">标题</label>
<div class="layui-input-block">
<input type="text" name="title" lay-verify="required" lay-reqtext="标题不能为空" placeholder="请输入标题" class="layui-input" value="{$item.title ?? ''}">
</div>
</div>
<!-- 副标题 -->
<div class="layui-form-item field-div current-field-subtitle" {if !in_array('title', $currentList)} style="display:none;" {/if}>
<label class="layui-form-label">副标题</label>
<div class="layui-input-block">
<input type="text" name="subtitle" placeholder="请输入副标题" class="layui-input" value="{$item.subtitle ?? ''}">
</div>
</div>
<div class="layui-form-item layui-row field-div current-field-cover" {if !in_array('cover', $currentList)} style="display:none;" {/if}>
<label class="layui-form-label">封面:</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="cover" type="text" value="">
<div class="layui-form-mid layui-word-aux">
图片尺寸500*400
</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>
<span><button type="button" class="layui-btn layui-btn-primary upload-choose-btn" data-type="image" data-multiple="false"><i class="fa fa-list"></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-row field-div current-field-video" {if !in_array('video', $currentList)} style="display:none;" {/if}>
<label class="layui-form-label">视频:</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="video" type="text" value="">
</div>
<div class="layui-col-xs12 layui-col-md3">
<span>
<button type="button" class="layui-btn layui-btn-danger upload-btn" data-url="/manager/upload/video" data-field="video_video" data-accept="video" data-mimetype="video/*" data-exts="mp4|ogv|webm">
<i class="fa fa-upload"></i> 上传
</button>
</span>
<span><button type="button" class="layui-btn layui-btn-primary upload-choose-btn" data-url="/manager/attachment/video" data-type="video" data-multiple="false"><i class="fa fa-list"></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-row field-div current-field-images" {if !in_array('images', $currentList)} style="display:none;" {/if}">
<label class="layui-form-label">组图:</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="images" type="text">
<div class="layui-form-mid layui-word-aux">
尺寸500*400
</div>
</div>
<div class="layui-col-xs12 layui-col-md3">
<span>
<button type="button" class="layui-btn layui-btn-danger upload-btn" data-multiple="true">
<i class="fa fa-upload"></i> 上传
</button>
</span>
<span><button type="button" class="layui-btn layui-btn-primary upload-choose-btn" data-url="/manager/attachment/image" data-type="image" data-multiple="true"><i class="fa fa-list"></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 field-div current-field-hot" {if !in_array('hot', $currentList)} style="display:none;" {/if}>
<label class="layui-form-label">热门</label>
<div class="layui-input-block">
<input type="radio" name="hot" value="1" title="是" >
<input type="radio" name="hot" value="0" title="否" checked>
</div>
</div>
<!-- 内容 -->
<div class="layui-form-item layui-form-text field-div current-field-content" {if !in_array('content', $currentList)} style="display:none;" {/if}>
<label class="layui-form-label">内容</label>
<div class="layui-input-block editor-text">
<div class="editor"></div>
<textarea name="content" class="layui-textarea layui-hide">{$item.content??''}</textarea>
</div>
</div>
<div class="layui-form-item">
<div class="layui-input-block">
<input type="hidden" id="item-id" value="{$item.id ?? 0}">
<button class="layui-btn layui-btn-normal" data-url="/manager/archives/add" lay-submit lay-filter="saveBtn">确认保存</button>
</div>
</div>
</div>
</div>
</div>
<script src="__MANAGER__/js/archives.js?v={:mt_rand()}"></script>