coupon-option.hbs 7.04 KB
<div class="right_col" role="main">
    <div class="col-md-12 col-sm-12 col-xs-12">
        <div class="x_panel">
            {{# content}}
                <div class="x_title">
                    <h2>创建券</h2>
                    <div class="clearfix"></div>
                </div>
                <form id="createForm" class="form-horizontal form-label-left">
                    <input class="form-imput" type="hidden" data-type="id" id="id" value="{{id}}">
                    <input id="type" type="hidden" value="{{type}}">
                    <input id="status" type="hidden" value="{{status}}">
                    <input id="couponDesc" type="hidden" value="{{couponDesc}}">
                    <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="actName">
                            券名称<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input class="form-control col-md-7 col-xs-12 form-imput"
                                   data-type="couponName"
                                   data-toggle="tooltip"
                                   data-placement="bottom"
                                   title="券名称不能为空"
                                   name="couponName"
                                   type="text"
                                   maxlength="50"
                                   value="{{couponName}}">
                        </div>
                    </div>
                    <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="actName">
                            商家名称<span class="required">(选填)</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input class="form-control col-md-7 col-xs-12 form-imput"
                                   data-type="shopName"
                                   data-toggle="tooltip"
                                   data-placement="bottom"
                                   title="商品名称不能为空"
                                   name="shopName"
                                   type="text"
                                   maxlength="50"
                                   value="{{shopName}}">
                        </div>
                    </div>
                    <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="actName">
                            商家logo图片<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <img src="{{shopLogoUrl}}" class="col-md-6 product-thumb {{#unless shopLogoUrl}}hide{{/unless}}">

                            <button type="button" class="btn btn-primary btn-upload-thumb" data-cover="{{shopLogoUrl}}">上传</button>
                        </div>
                    </div>
                    <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12">
                            券开启状态
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <label class="control-label col-md-1">
                                <input type="radio"  name="status" required="required"
                                       class="form-contro col-md-7 col-xs-12" value="0">

                            </label>
                            <label class="control-label col-md-1">
                                <input type="radio" name="status" required="required"
                                       class="form-contro col-md-7 col-xs-12" value="1">

                            </label>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12">
                            券类型
                        </label>
                        <div class="col-md-9 col-sm-9 col-xs-12">
                            <label class="control-label radi">
                                <input type="radio" name="type" required="required"
                                       class="form-contro col-md-4 col-xs-12" value="1">
                                通用码
                            </label>
                            <label class="control-label radi">
                                <input type="radio"  name="type" required="required"
                                       class="form-contro col-md-4 col-xs-12" value="2">
                                一人一码
                            </label>
                            <label class="control-label radi">
                                <input type="radio"  name="type" required="required"
                                       class="form-contro col-md-4 col-xs-12" value="3">
                                不用码
                            </label>
                        </div>
                    </div>
                    <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="actName">排序<span
                            class="required">*</span>
                        </label>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                            <input id="actVoteLimit" class="form-control col-md-2 form-imput"
                                   data-type="sort"
                                   data-toggle="tooltip" data-placement="bottom" title="排序"
                                   name="actVoteLimit"
                                   type="text"
                                   maxlength="10"
                                   value="{{sort}}"><span style="color:#d44950">备注:排序权重数大的排在前面</span>
                        </div>
                    </div>
                    <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="actName">券说明<span
                            class="required">*</span>
                        </label>
                        <div class="col-md-4 col-sm-4 col-xs-12">
                            <textarea class="form-control form-imput" data-type="couponDesc" rows="3" style="resize: none;height: 300px"></textarea>
                        </div>
                    </div>
                    <div class="item form-group">
                        <div class="col-md-2 col-md-offset-5 action-wrap">
                            <button type="button" class="btn btn-primary btn-save">保存</button>
                        </div>
                    </div>
                </form>
                <a id="upload-btn"></a>
            {{/ content}}
        </div>
    </div>
</div>