@layout("/common/_container.html"){
|
<style>
|
.newWidth {
|
max-width: 200px !important;
|
display: initial !important;
|
}
|
</style>
|
<div class="ibox float-e-margins">
|
<div class="ibox-content">
|
<div class="form-horizontal" id="merchantCouponInfoForm">
|
<input type="hidden" id="id" name="id" value="${item.id}">
|
<input type="hidden" id="type" name="id" value="${type}">
|
<input type="hidden" id="merchantId_" name="id" value="${item.merchantId}">
|
|
<div class="row">
|
<div class="col-sm-11">
|
<div class="form-group">
|
<label class="col-sm-2 control-label">商家</label>
|
<div class="col-sm-10 " style="padding-top: 0px">
|
<select class="form-control newWidth" id="merchantId">
|
@for(merchant in merchantList){
|
<option value="${merchant.id}">${merchant.name}</option>
|
@}
|
</select>
|
</div>
|
</div>
|
|
<div class="form-group">
|
<label class="col-sm-2 control-label">商家商品券:</label>
|
<div class="col-sm-10">
|
<input type="text" name="name" id="name" class="form-control newWidth" value="${item.name}"/>
|
</div>
|
</div>
|
|
@if(type==1){
|
<div class="form-group">
|
<label class="col-sm-2 control-label">赠送:</label>
|
<div class="col-sm-10">
|
满 <input type="text" name="fullAmount" id="fullAmount" value="${item.fullAmount}" class="form-control newWidth"/> 元,抵扣 <input
|
type="text" name="discount" id="discount" value="${item.discount}" class="form-control newWidth"/> 元。
|
</div>
|
</div>
|
@}
|
|
@if(type==2){
|
<div class="form-group">
|
<label class="col-sm-2 control-label">备注:</label>
|
<div class="col-sm-6">
|
<textarea class="form-control" id="content" maxlength="50"
|
style="height: 200px; ">${item.content}</textarea>
|
<div class="weui-textarea-counter" style="text-align: right;position: absolute;
|
right: 25px;bottom: 10px;"><span id="length">0</span>/50
|
</div>
|
</div>
|
</div>
|
@}
|
</div>
|
</div>
|
|
<div class="row btn-group-m-t">
|
<div class="col-sm-10 col-sm-offset-5">
|
<#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="MerchantCouponInfoDlg.editSubmit()"/>
|
<#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="MerchantCouponInfoDlg.close()"/>
|
</div>
|
</div>
|
</div>
|
|
</div>
|
</div>
|
<script src="${ctxPath}/static/modular/system/merchantCoupon/merchantCoupon_info.js"></script>
|
<script type="text/javascript">
|
$("#content").on("keyup",function () {
|
$("#length").text($("#content").val().length)
|
})
|
</script>
|
@}
|