caipan_shop_admin/view/manager/mall/coupon/add.html

97 lines
4.0 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">
<input type="text" name="item[name]" lay-verify="required" lay-reqtext="名称不能为空" placeholder="请填写优惠券名称" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label required">使用时间</label>
<div class="layui-input-inline">
<input type="text" name="item[begin_at]" class="layui-input" value="{:date('Y-m-d H:i:s')}" id="deduct-start-at">
</div>
<div class="layui-form-mid layui-word-aux">-</div>
<div class="layui-input-inline">
<input type="text" name="item[end_at]" class="layui-input" value="{:date('Y-m-d H:i:s', strtotime('+7 days'))}" id="deduct-end-at">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">优惠种类</label>
<div class="layui-input-block">
<select name="item[type]">
{foreach $typeList as $key => $val}
<option value="{$key ?? ''}">{$val ?? ''}</option>
{/foreach}
</select>
</div>
</div>
<div class="layui-form-item field-div">
<label class="layui-form-label">消费金额</label>
<div class="layui-input-block">
<input type="number" name="item[condition]" class="layui-input" value="0" min="0">
</div>
</div>
<div class="layui-form-item field-div">
<label class="layui-form-label">减免额度</label>
<div class="layui-input-block">
<input type="number" name="item[amount]" class="layui-input" value="0" min="0">
</div>
</div>
<div class="layui-form-item field-div">
<label class="layui-form-label required">发行总量</label>
<div class="layui-input-block">
<input type="number" name="item[total]" class="layui-input" value="0" min="0">
</div>
</div>
<div class="layui-form-item layui-hide">
<label class="layui-form-label">推荐至广告</label>
<div class="layui-input-block">
<input type="radio" name="item[is_home]" class="layui-input" value="1" title="是">
<input type="radio" name="item[is_home]" class="layui-input" value="0" title="否" checked>
</div>
</div>
<div class="layui-form-item layui-row">
<label class="layui-form-label required">封面图</label>
<div class="layui-inline layui-col-xs12 layui-col-md8">
<div class="layui-row upload-file-div">
<input class="layui-input upload-file-value" name="item[cover]" type="hidden" value="{$item.cover ?? ''}">
<div class="layui-col-xs12 layui-col-md8">
<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>图片尺寸540px*600px</span>
</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">
<div class="layui-input-block">
<button class="layui-btn layui-btn-normal" data-url="/manager/mall/coupon/add" lay-submit lay-filter="saveBtn">确认保存</button>
</div>
</div>
</div>
</div>
</div>
<script src="__MANAGER__/js/mall/coupon.js?v={:mt_rand()}"></script>