92 lines
4.8 KiB
HTML
Executable File
92 lines
4.8 KiB
HTML
Executable File
<div class="layui-card layui-col-md12">
|
||
<div class="layui-card-body">
|
||
<form class="layui-form" data-action="{:url('manager.product/add')}">
|
||
<input type="hidden" name="__token__" value="{$_token}" />
|
||
<strong style="color: #f20000; font-size: 12px; display: block; line-height: 1;">注意*号为必填选项!</strong>
|
||
<hr style="margin: 20px 0;">
|
||
<div class="layui-form-itemBox3 between">
|
||
<div class="layui-form-item">
|
||
<label class="layui-form-label">标题<em>*</em></label>
|
||
<div class="layui-input-block">
|
||
<input class="layui-input" type="text" name="item[title]" maxlength="60" />
|
||
</div>
|
||
</div>
|
||
<div class="layui-form-item"><div class="layui-form-mid layui-word-aux">注:标题请勿超过60个字符</div></div>
|
||
</div>
|
||
<div class="layui-form-itemBox3 between">
|
||
<div class="layui-form-item">
|
||
<label class="layui-form-label">描述</label>
|
||
<div class="layui-input-block">
|
||
<textarea name="item[description]" class="layui-textarea"></textarea>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<!-- <div class="layui-form-item">-->
|
||
<!-- <label class="layui-form-label">封面图</label>-->
|
||
<!-- <div class="layui-input-block">-->
|
||
<!-- {:widget('manager.upload/image',['imgSize' => $imgSize])}-->
|
||
<!-- </div>-->
|
||
<!-- </div>-->
|
||
<!-- <div class="layui-form-item">-->
|
||
<!-- <label class="layui-form-label">二维码</label>-->
|
||
<!-- <div class="layui-input-block">-->
|
||
<!-- {:widget('manager.upload/image',['append' => '_qr','imgSize' => '70px*70px 不传则使用默认配置的二维码', 'src' => ''])}-->
|
||
<!-- </div>-->
|
||
<!-- </div>-->
|
||
<div class="layui-form-item">
|
||
<label class="layui-form-label">产品组图</label>
|
||
<div class="layui-input-block">
|
||
{:widget('manager.upload/multi',['append' => '_images','imgs' => $item.value??'', 'num' => $item.num??10, 'imgSize' => '620px*420px', 'fields' => false])}
|
||
</div>
|
||
</div>
|
||
|
||
<!-- <div class="layui-form-itemBox3 between">-->
|
||
<!-- <div class="layui-form-item">-->
|
||
<!-- <label class="layui-form-label">联系方式</label>-->
|
||
<!-- <div class="layui-input-block">-->
|
||
<!-- <input class="layui-input" type="text" name="item[phone]" maxlength="60" value="" placeholder="选填,默认使用配置中数据"/>-->
|
||
<!-- </div>-->
|
||
<!-- </div>-->
|
||
<!-- </div>-->
|
||
|
||
<!-- <div class="layui-form-itemBox3 between">-->
|
||
<!-- <div class="layui-form-item">-->
|
||
<!-- <label class="layui-form-label">QQ号</label>-->
|
||
<!-- <div class="layui-input-block">-->
|
||
<!-- <input class="layui-input" type="number" name="item[qq]" maxlength="60" value="" placeholder="选填,默认使用配置中数据"/>-->
|
||
<!-- </div>-->
|
||
<!-- </div>-->
|
||
<!-- </div>-->
|
||
|
||
<div class="layui-form-item">
|
||
<label class="layui-form-label">客户价值</label>
|
||
<div class="layui-input-block editor-text">
|
||
<textarea name="item[content]" class="layui-textarea tinymce-editor"></textarea>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="layui-form-item">
|
||
<label class="layui-form-label">主要参数</label>
|
||
<div class="layui-input-block editor-text">
|
||
<textarea name="item[params]" class="layui-textarea tinymce-editor"></textarea>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="layui-form-item">
|
||
<label class="layui-form-label">状态</label>
|
||
<div class="layui-inline">
|
||
<input type="radio" name="item[visible]" value="0" title="隐藏" />
|
||
<input type="radio" name="item[visible]" value="1" title="正常" checked />
|
||
</div>
|
||
</div>
|
||
|
||
<div class="layui-form-item">
|
||
<label class="layui-form-label"></label>
|
||
<div class="layui-inline">
|
||
<button type="button" class="layui-btn layui-btn-normal" lay-submit lay-filter="submitAll">保存</button>
|
||
</div>
|
||
</div>
|
||
<input type="hidden" class="layui-input" name="item[category_id]" value="{$category.id}" />
|
||
</form>
|
||
</div>
|
||
</div> |