|
@@ -1,131 +1,131 @@
|
|
|
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
|
|
|
|
|
|
- <div class="form-group">
|
|
|
- <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
|
|
|
- <div class="col-xs-12 col-sm-8">
|
|
|
- <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="form-group">
|
|
|
- <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
|
|
|
- <div class="col-xs-12 col-sm-8">
|
|
|
- <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text" value="">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="form-group">
|
|
|
- <label class="control-label col-xs-12 col-sm-2">{:__('Desc')}:</label>
|
|
|
- <div class="col-xs-12 col-sm-8">
|
|
|
- <textarea id="c-desc" class="form-control " rows="5" name="row[desc]" cols="50"></textarea>
|
|
|
+ <div class="panel panel-default" style="margin-bottom: 20px;">
|
|
|
+ <div class="panel-heading" style="padding: 10px 15px; border-left: 4px solid #18bc9c;">
|
|
|
+ <h3 class="panel-title" style="font-size: 14px; font-weight: bold;">基本信息</h3>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
<div class="form-group">
|
|
|
- <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
|
|
|
+ <label class="control-label col-xs-12 col-sm-2">{:__('活动名称')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<div class="input-group">
|
|
|
- <input id="c-image" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="">
|
|
|
- <div class="input-group-addon no-border no-padding">
|
|
|
- <span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
|
|
|
- <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
|
|
|
- </div>
|
|
|
- <span class="msg-box n-right" for="c-image"></span>
|
|
|
+ <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" placeholder="请输入活动名称" value="" maxlength="20">
|
|
|
+ <span class="input-group-addon" id="name-count">0/20</span>
|
|
|
+ <span class="msg-box n-right" for="c-name" style="position:absolute;display:inline-block;margin-top:5px;"></span>
|
|
|
</div>
|
|
|
- <ul class="row list-inline faupload-preview" id="p-image"></ul>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="form-group">
|
|
|
- <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
|
|
|
- <div class="col-xs-12 col-sm-8">
|
|
|
- <input id="c-type" data-rule="required" class="form-control" name="row[type]" type="text" value="">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="form-group">
|
|
|
- <label class="control-label col-xs-12 col-sm-2">{:__('Goods_type')}:</label>
|
|
|
- <div class="col-xs-12 col-sm-8">
|
|
|
- <input id="c-goods_type" data-rule="required" class="form-control" name="row[goods_type]" type="text" value="">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="form-group">
|
|
|
- <label class="control-label col-xs-12 col-sm-2">{:__('Goods_info')}:</label>
|
|
|
- <div class="col-xs-12 col-sm-8">
|
|
|
- <textarea id="c-goods_info" class="form-control " rows="5" name="row[goods_info]" cols="50"></textarea>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="form-group">
|
|
|
- <label class="control-label col-xs-12 col-sm-2">{:__('Class')}:</label>
|
|
|
- <div class="col-xs-12 col-sm-8">
|
|
|
- <input id="c-class" data-rule="required" class="form-control" name="row[class]" type="text" value="">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="form-group">
|
|
|
- <label class="control-label col-xs-12 col-sm-2">{:__('Class_category')}:</label>
|
|
|
- <div class="col-xs-12 col-sm-8">
|
|
|
- <input id="c-class_category" data-rule="required" class="form-control" name="row[class_category]" type="text" value="">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="form-group">
|
|
|
- <label class="control-label col-xs-12 col-sm-2">{:__('Relate_member')}:</label>
|
|
|
- <div class="col-xs-12 col-sm-8">
|
|
|
- <input id="c-relate_member" data-rule="required" class="form-control" name="row[relate_member]" type="text" value="">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="form-group">
|
|
|
- <label class="control-label col-xs-12 col-sm-2">{:__('Active_value')}:</label>
|
|
|
- <div class="col-xs-12 col-sm-8">
|
|
|
- <textarea id="c-active_value" class="form-control " rows="5" name="row[active_value]" cols="50"></textarea>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="form-group">
|
|
|
- <label class="control-label col-xs-12 col-sm-2">{:__('Start_time')}:</label>
|
|
|
- <div class="col-xs-12 col-sm-8">
|
|
|
- <input id="c-start_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[start_time]" type="text" value="{:date('Y-m-d H:i:s')}">
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
<div class="form-group">
|
|
|
- <label class="control-label col-xs-12 col-sm-2">{:__('End_time')}:</label>
|
|
|
+ <label class="control-label col-xs-12 col-sm-2">{:__('活动期限')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
- <input id="c-end_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[end_time]" type="text" value="{:date('Y-m-d H:i:s')}">
|
|
|
+ <div class="input-group">
|
|
|
+ <input id="c-start_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[start_time]" type="text" value="{:date('Y-m-d H:i:s')}" placeholder="开始时间">
|
|
|
+ <span class="input-group-addon">~</span>
|
|
|
+ <input id="c-end_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[end_time]" type="text" value="{:date('Y-m-d H:i:s', strtotime('+7 days'))}" placeholder="结束时间">
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
<div class="form-group">
|
|
|
- <label class="control-label col-xs-12 col-sm-2">{:__('Activity_status')}:</label>
|
|
|
- <div class="col-xs-12 col-sm-8">
|
|
|
- <input id="c-activity_status" data-rule="required" class="form-control" name="row[activity_status]" type="text" value="">
|
|
|
+ <label class="control-label col-xs-12 col-sm-2">{:__('活动渠道')}:</label>
|
|
|
+ <div class="col-xs-12 col-sm-8">
|
|
|
+ <label class="checkbox-inline">
|
|
|
+ <input type="checkbox" name="row[channels][]" value="wechat"> 微信公众号
|
|
|
+ </label>
|
|
|
+ <label class="checkbox-inline">
|
|
|
+ <input type="checkbox" name="row[channels][]" value="miniapp"> 微信小程序
|
|
|
+ </label>
|
|
|
+ <label class="checkbox-inline">
|
|
|
+ <input type="checkbox" name="row[channels][]" value="h5"> 手机浏览器H5
|
|
|
+ </label>
|
|
|
+ <label class="checkbox-inline">
|
|
|
+ <input type="checkbox" name="row[channels][]" value="tiktok"> 头条/抖音小程序
|
|
|
+ </label>
|
|
|
+ <label class="checkbox-inline">
|
|
|
+ <input type="checkbox" name="row[channels][]" value="app"> APP
|
|
|
+ </label>
|
|
|
+ <label class="checkbox-inline">
|
|
|
+ <input type="checkbox" name="row[channels][]" value="pc"> PC版
|
|
|
+ </label>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
<div class="form-group">
|
|
|
- <label class="control-label col-xs-12 col-sm-2">{:__('Active_order_money')}:</label>
|
|
|
+ <label class="control-label col-xs-12 col-sm-2">{:__('选择商品')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
- <input id="c-active_order_money" data-rule="required" class="form-control" step="0.01" name="row[active_order_money]" type="number" value="0.00">
|
|
|
+ <button type="button" id="select-goods" class="btn btn-primary">选择商品</button>
|
|
|
+ <div id="selected-goods-container" class="margin-top-10"></div>
|
|
|
+ <input type="hidden" name="row[goods_ids]" id="goods-ids" value="">
|
|
|
+ <input type="hidden" name="row[discount_data]" id="discount-data" value="">
|
|
|
+ <p class="help-block">提示:秒杀价格将按照设置的折扣计算,折扣范围0.1~10折</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="form-group">
|
|
|
- <label class="control-label col-xs-12 col-sm-2">{:__('Active_order_num')}:</label>
|
|
|
- <div class="col-xs-12 col-sm-8">
|
|
|
- <input id="c-active_order_num" data-rule="required" class="form-control" name="row[active_order_num]" type="number" value="0">
|
|
|
+ <div class="panel panel-default" style="margin-bottom: 20px;">
|
|
|
+ <div class="panel-heading" style="padding: 10px 15px; border-left: 4px solid #18bc9c;">
|
|
|
+ <h3 class="panel-title" style="font-size: 14px; font-weight: bold;">规则设置</h3>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
- <label class="control-label col-xs-12 col-sm-2">{:__('Active_member_num')}:</label>
|
|
|
+ <label class="control-label col-xs-12 col-sm-2">{:__('活动主图')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
- <input id="c-active_member_num" data-rule="required" class="form-control" name="row[active_member_num]" type="number" value="0">
|
|
|
+ <div class="input-group">
|
|
|
+ <input id="c-image" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="">
|
|
|
+ <div class="input-group-addon no-border no-padding">
|
|
|
+ <span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
|
|
|
+ <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
|
|
|
+ </div>
|
|
|
+ <span class="msg-box n-right" for="c-image"></span>
|
|
|
+ </div>
|
|
|
+ <ul class="row list-inline faupload-preview" id="p-image"></ul>
|
|
|
+ <p class="help-block">活动落地页的顶部图片,建议尺寸750px*340px</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
<div class="form-group">
|
|
|
- <label class="control-label col-xs-12 col-sm-2">{:__('Active_success_num')}:</label>
|
|
|
+ <label class="control-label col-xs-12 col-sm-2">{:__('限购次数')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
- <input id="c-active_success_num" data-rule="required" class="form-control" name="row[active_success_num]" type="number" value="0">
|
|
|
+ <div style="margin-bottom: 15px;">
|
|
|
+ <label class="radio-inline" style="margin-right: 20px;">
|
|
|
+ <input type="radio" name="row[purchase_limit_type]" value="0" checked> 不限制
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div style="margin-bottom: 15px; display: flex; align-items: center;">
|
|
|
+ <label class="radio-inline" style="margin-right: 20px; min-width: 220px;">
|
|
|
+ <input type="radio" name="row[purchase_limit_type]" value="1"> 活动期内每人最多购买
|
|
|
+ </label>
|
|
|
+ <div style="display: flex; align-items: center;">
|
|
|
+ <input type="number" class="form-control" name="row[purchase_limit_total]" placeholder="请输入" min="1" disabled style="width: 300px;">
|
|
|
+ <span style="margin-left: 10px;">件</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div style="margin-bottom: 15px; display: flex; align-items: center;">
|
|
|
+ <label class="radio-inline" style="margin-right: 20px; min-width: 220px;">
|
|
|
+ <input type="radio" name="row[purchase_limit_type]" value="2"> 活动期内每人每天最多购买
|
|
|
+ </label>
|
|
|
+ <div style="display: flex; align-items: center;">
|
|
|
+ <input type="number" class="form-control" name="row[purchase_limit_daily]" placeholder="请输入" min="1" disabled style="width: 300px;">
|
|
|
+ <span style="margin-left: 10px;">件</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
<div class="form-group">
|
|
|
- <label class="control-label col-xs-12 col-sm-2">{:__('Is_del')}:</label>
|
|
|
+ <label class="control-label col-xs-12 col-sm-2">{:__('活动描述')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
- <input id="c-is_del" data-rule="required" class="form-control" name="row[is_del]" type="number" value="0">
|
|
|
+ <textarea id="c-desc" class="form-control editor" rows="5" name="row[desc]" cols="50"></textarea>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
<div class="form-group layer-footer">
|
|
|
<label class="control-label col-xs-12 col-sm-2"></label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
- <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
|
|
|
+ <button type="submit" class="btn btn-primary btn-embossed">{:__('提交')}</button>
|
|
|
+ <button type="reset" class="btn btn-default btn-embossed">{:__('重置')}</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</form>
|
|
|
+
|