|
@@ -1,124 +1,276 @@
|
|
|
|
+<%@ page import="java.util.Date" %>
|
|
<%@ page contentType="text/html;charset=UTF-8" %>
|
|
<%@ page contentType="text/html;charset=UTF-8" %>
|
|
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
|
|
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
|
|
<html>
|
|
<html>
|
|
<head>
|
|
<head>
|
|
- <title>超级会员优惠券管理列表</title>
|
|
|
|
|
|
+ <title>优惠券管理</title>
|
|
<meta name="decorator" content="default"/>
|
|
<meta name="decorator" content="default"/>
|
|
- <style type="text/css">
|
|
|
|
- .table th {
|
|
|
|
- text-align: center;
|
|
|
|
|
|
+ <style>
|
|
|
|
+ .coupon-wrap {
|
|
|
|
+ border: 1px solid #aaa;
|
|
|
|
+ padding: 20px 20px 0;
|
|
|
|
+ margin-bottom: 20px;
|
|
}
|
|
}
|
|
-
|
|
|
|
- .table td {
|
|
|
|
- text-align: center;
|
|
|
|
|
|
+ .couponType {
|
|
|
|
+ margin-right:15px;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|
|
- <script type="text/javascript">
|
|
|
|
- $(document).ready(function () {
|
|
|
|
-
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
- function page(n, s) {
|
|
|
|
- $("#pageNo").val(n);
|
|
|
|
- $("#pageSize").val(s);
|
|
|
|
- $("#searchForm").submit();
|
|
|
|
- return false;
|
|
|
|
- }
|
|
|
|
- </script>
|
|
|
|
</head>
|
|
</head>
|
|
<body>
|
|
<body>
|
|
<ul class="nav nav-tabs">
|
|
<ul class="nav nav-tabs">
|
|
<li class="active"><a href="${ctx}/vip/cmCoupon/">超级会员专属优惠券</a></li>
|
|
<li class="active"><a href="${ctx}/vip/cmCoupon/">超级会员专属优惠券</a></li>
|
|
|
|
+ <li class="active"><a href="${ctx}/vip/cmCoupon/form">${not empty cmCoupon.id?'编辑':'添加'}</a>
|
|
|
|
+ </li>
|
|
</ul>
|
|
</ul>
|
|
-<form:form id="searchForm" modelAttribute="cmCoupon" action="${ctx}/vip/cmCoupon/" method="post"
|
|
|
|
- class="breadcrumb form-search">
|
|
|
|
- <input type="hidden" name="couponType" value="4"/>
|
|
|
|
- <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
|
|
|
|
- <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
|
|
|
|
- <div class="ul-form">
|
|
|
|
-
|
|
|
|
- <label>优惠券类型:</label>
|
|
|
|
- <form:select path="couponType" class="input-medium">
|
|
|
|
- <form:option value="" label="全部"/>
|
|
|
|
- <form:option value="0" label="活动券"/>
|
|
|
|
- <form:option value="1" label="品类券"/>
|
|
|
|
- <form:option value="3" label="店铺券"/>
|
|
|
|
- </form:select>
|
|
|
|
- <label>优惠状态:</label>
|
|
|
|
- <form:select path="status" class="input-medium required">
|
|
|
|
- <form:option value="" label="所有"/>
|
|
|
|
- <form:option value="0" label="未生效"/>
|
|
|
|
- <form:option value="1" label="已生效"/>
|
|
|
|
- <form:option value="2" label="已关闭"/>
|
|
|
|
- <form:option value="3" label="已失效"/>
|
|
|
|
- </form:select>
|
|
|
|
- <label>优惠月份:</label>
|
|
|
|
- <input name="startDate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
|
|
|
|
- value="<fmt:formatDate value="${cmCoupon.startDate}" pattern="yyyy-MM"/>"
|
|
|
|
- onclick="WdatePicker({dateFmt:'yyyy-MM',isShowClear:false});"/>
|
|
|
|
- <input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
|
|
|
|
- <input class="btn btn-primary" style="width: 80px" onclick="window.location='${ctx}/vip/cmCoupon/add'"
|
|
|
|
- value="添加优惠券"/>
|
|
|
|
- <div class="clearfix"></div>
|
|
|
|
|
|
+<br/>
|
|
|
|
+<%--<font style="color: red;margin-left: 20px">品类券只适合在某种品类需要优惠时创建,适用于该品类商品和全部客户。</font><br><br>--%>
|
|
|
|
+<form:form id="inputForm" modelAttribute="svipcouponForm" action="${ctx}/vip/cmCoupon/save" method="post" class="form-horizontal">
|
|
|
|
+ <%-- <form:hidden path="id"/>--%>
|
|
|
|
+ <%-- <form:hidden path="productInfo" id="productInfo"/>--%>
|
|
|
|
+ <%-- <input type="hidden" name="couponType" value="1"/>--%>
|
|
|
|
+ <sys:message content="${message}"/>
|
|
|
|
+ <div class="control-group">
|
|
|
|
+ <label class="control-label"><font color="red">*</font>优惠月份:</label>
|
|
|
|
+ <div class="controls">
|
|
|
|
+ <form:input path="month" type="text" maxlength="20" class="input-medium Wdate" value="${startDate}"
|
|
|
|
+ onclick="WdatePicker({dateFmt:'yyyy-MM',isShowClear:false});"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="coupon-wrap">
|
|
|
|
+ <div class="control-group">
|
|
|
|
+ <label class="control-label"><font color="red">*</font><b>优惠券1:</b></label>
|
|
|
|
+ <div class="controls">
|
|
|
|
+ <form:radiobutton path="couponType1" class="couponType" label="请选择" value="99" checked="true" ></form:radiobutton>
|
|
|
|
+ <form:radiobutton path="couponType1" class="couponType" label="活动券" value="0"></form:radiobutton>
|
|
|
|
+ <form:radiobutton path="couponType1" class="couponType" label="品类券" value="1"></form:radiobutton>
|
|
|
|
+ <form:radiobutton path="couponType1" class="couponType" label="店铺券" value="3"></form:radiobutton>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="control-group coupon-line l0" style="display:none">
|
|
|
|
+ <label class="control-label"><font color="red">*</font>供应商:</label>
|
|
|
|
+ <div class="controls">
|
|
|
|
+ <a href="javascript:;">请选择供应商</a>
|
|
|
|
+ <form:hidden path="shopId1"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="control-group coupon-line l1" style="display:none">
|
|
|
|
+ <label class="control-label"><font color="red">*</font>优惠券金额:</label>
|
|
|
|
+ <div class="controls">
|
|
|
|
+ <form:input path="couponAmount1" htmlEscape="false" maxlength="20" class="input-xlarge required"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="control-group coupon-line l2" style="display:none">
|
|
|
|
+ <label class="control-label"><font color="red">*</font>优惠条件:</label>
|
|
|
|
+ <div class="controls"> 订单商品总额满
|
|
|
|
+ <form:input path="touchPrice1" htmlEscape="false" maxlength="20" class="input-medium required"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="control-group coupon-line l3" style="display:none">
|
|
|
|
+ <label class="control-label"><font color="red">*</font>优惠品类:</label>
|
|
|
|
+ <div class="controls">
|
|
|
|
+ <form:radiobutton path="categoryType1" value="1" label="产品" checked="${empty cmCoupon.categoryType ? true:false}"/>
|
|
|
|
+ <form:radiobutton path="categoryType1" value="2" label="仪器"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="control-group coupon-line l4" style="display:none">
|
|
|
|
+ <label class="control-label"><font color="red">*</font>优惠商品:</label>
|
|
|
|
+ <div class="controls">
|
|
|
|
+ <form:radiobutton path="productType1" value="1" label="全商城商品" checked="${empty cmCoupon.categoryType ? true:false}"/>
|
|
|
|
+ <form:radiobutton path="productType1" value="2" label="指定商品"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="coupon-wrap">
|
|
|
|
+ <div class="control-group">
|
|
|
|
+ <label class="control-label"><font color="red">*</font><b>优惠券2:</b></label>
|
|
|
|
+ <div class="controls">
|
|
|
|
+ <form:radiobutton path="couponType2" class="couponType" label="请选择" value="99" checked="true" ></form:radiobutton>
|
|
|
|
+ <form:radiobutton path="couponType2" class="couponType" label="活动券" value="0"></form:radiobutton>
|
|
|
|
+ <form:radiobutton path="couponType2" class="couponType" label="品类券" value="1"></form:radiobutton>
|
|
|
|
+ <form:radiobutton path="couponType2" class="couponType" label="店铺券" value="3"></form:radiobutton>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="control-group coupon-line l0" style="display:none">
|
|
|
|
+ <label class="control-label"><font color="red">*</font>供应商:</label>
|
|
|
|
+ <div class="controls">
|
|
|
|
+ <a href="javascript:;">请选择供应商</a>
|
|
|
|
+ <form:hidden path="shopId2"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="control-group coupon-line l1" style="display:none">
|
|
|
|
+ <label class="control-label"><font color="red">*</font>优惠券金额:</label>
|
|
|
|
+ <div class="controls">
|
|
|
|
+ <form:input path="couponAmount2" htmlEscape="false" maxlength="20" class="input-xlarge required"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="control-group coupon-line l2" style="display:none">
|
|
|
|
+ <label class="control-label"><font color="red">*</font>优惠条件:</label>
|
|
|
|
+ <div class="controls"> 订单商品总额满
|
|
|
|
+ <form:input path="touchPrice2" htmlEscape="false" maxlength="20" class="input-medium required"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="control-group coupon-line l3" style="display:none">
|
|
|
|
+ <label class="control-label"><font color="red">*</font>优惠品类:</label>
|
|
|
|
+ <div class="controls">
|
|
|
|
+ <form:radiobutton path="categoryType2" value="1" label="产品" checked="${empty cmCoupon.categoryType ? true:false}"/>
|
|
|
|
+ <form:radiobutton path="categoryType2" value="2" label="仪器"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="control-group coupon-line l4" style="display:none">
|
|
|
|
+ <label class="control-label"><font color="red">*</font>优惠商品:</label>
|
|
|
|
+ <div class="controls">
|
|
|
|
+ <form:radiobutton path="productType2" value="1" label="全商城商品" checked="${empty cmCoupon.categoryType ? true:false}"/>
|
|
|
|
+ <form:radiobutton path="productType2" value="2" label="指定商品"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="coupon-wrap">
|
|
|
|
+ <div class="control-group">
|
|
|
|
+ <label class="control-label"><font color="red">*</font><b>优惠券3:</b></label>
|
|
|
|
+ <div class="controls">
|
|
|
|
+ <form:radiobutton path="couponType3" class="couponType" label="请选择" value="99" checked="true" ></form:radiobutton>
|
|
|
|
+ <form:radiobutton path="couponType3" class="couponType" label="活动券" value="0"></form:radiobutton>
|
|
|
|
+ <form:radiobutton path="couponType3" class="couponType" label="品类券" value="1"></form:radiobutton>
|
|
|
|
+ <form:radiobutton path="couponType3" class="couponType" label="店铺券" value="3"></form:radiobutton>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="control-group coupon-line l0" style="display:none">
|
|
|
|
+ <label class="control-label"><font color="red">*</font>供应商:</label>
|
|
|
|
+ <div class="controls">
|
|
|
|
+ <a href="javascript:;">请选择供应商</a>
|
|
|
|
+ <form:hidden path="shopId3"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="control-group coupon-line l1" style="display:none">
|
|
|
|
+ <label class="control-label"><font color="red">*</font>优惠券金额:</label>
|
|
|
|
+ <div class="controls">
|
|
|
|
+ <form:input path="couponAmount3" htmlEscape="false" maxlength="20" class="input-xlarge required"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="control-group coupon-line l2" style="display:none">
|
|
|
|
+ <label class="control-label"><font color="red">*</font>优惠条件:</label>
|
|
|
|
+ <div class="controls"> 订单商品总额满
|
|
|
|
+ <form:input path="touchPrice3" htmlEscape="false" maxlength="20" class="input-medium required"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="control-group coupon-line l3" style="display:none">
|
|
|
|
+ <label class="control-label"><font color="red">*</font>优惠品类:</label>
|
|
|
|
+ <div class="controls">
|
|
|
|
+ <form:radiobutton path="categoryType3" value="1" label="产品" checked="${empty cmCoupon.categoryType ? true:false}"/>
|
|
|
|
+ <form:radiobutton path="categoryType3" value="2" label="仪器"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="control-group coupon-line l4" style="display:none">
|
|
|
|
+ <label class="control-label"><font color="red">*</font>优惠商品:</label>
|
|
|
|
+ <div class="controls">
|
|
|
|
+ <form:radiobutton path="productType3" value="1" label="全商城商品" checked="${empty cmCoupon.categoryType ? true:false}"/>
|
|
|
|
+ <form:radiobutton path="productType3" value="2" label="指定商品"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="coupon-wrap">
|
|
|
|
+ <div class="control-group">
|
|
|
|
+ <label class="control-label"><font color="red">*</font><b>优惠券4:</b></label>
|
|
|
|
+ <div class="controls">
|
|
|
|
+ <form:radiobutton path="couponType4" class="couponType" label="请选择" value="99" checked="true" ></form:radiobutton>
|
|
|
|
+ <form:radiobutton path="couponType4" class="couponType" label="活动券" value="0"></form:radiobutton>
|
|
|
|
+ <form:radiobutton path="couponType4" class="couponType" label="品类券" value="1"></form:radiobutton>
|
|
|
|
+ <form:radiobutton path="couponType4" class="couponType" label="店铺券" value="3"></form:radiobutton>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="control-group coupon-line l0" style="display:none">
|
|
|
|
+ <label class="control-label"><font color="red">*</font>供应商:</label>
|
|
|
|
+ <div class="controls">
|
|
|
|
+ <a href="javascript:;">请选择供应商</a>
|
|
|
|
+ <form:hidden path="shopId4"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="control-group coupon-line l1" style="display:none">
|
|
|
|
+ <label class="control-label"><font color="red">*</font>优惠券金额:</label>
|
|
|
|
+ <div class="controls">
|
|
|
|
+ <form:input path="couponAmount4" htmlEscape="false" maxlength="20" class="input-xlarge required"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="control-group coupon-line l2" style="display:none">
|
|
|
|
+ <label class="control-label"><font color="red">*</font>优惠条件:</label>
|
|
|
|
+ <div class="controls"> 订单商品总额满
|
|
|
|
+ <form:input path="touchPrice4" htmlEscape="false" maxlength="20" class="input-medium required"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="control-group coupon-line l3" style="display:none">
|
|
|
|
+ <label class="control-label"><font color="red">*</font>优惠品类:</label>
|
|
|
|
+ <div class="controls">
|
|
|
|
+ <form:radiobutton path="categoryType4" value="1" label="产品" checked="${empty cmCoupon.categoryType ? true:false}"/>
|
|
|
|
+ <form:radiobutton path="categoryType4" value="2" label="仪器"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="control-group coupon-line l4" style="display:none">
|
|
|
|
+ <label class="control-label"><font color="red">*</font>优惠商品:</label>
|
|
|
|
+ <div class="controls">
|
|
|
|
+ <form:radiobutton path="productType4" value="1" label="全商城商品" checked="${empty cmCoupon.categoryType ? true:false}"/>
|
|
|
|
+ <form:radiobutton path="productType4" value="2" label="指定商品"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="form-actions">
|
|
|
|
+ <input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>
|
|
|
|
+ <input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
|
|
</div>
|
|
</div>
|
|
</form:form>
|
|
</form:form>
|
|
-<sys:message content="${message}"/>
|
|
|
|
-<table id="contentTable" class="table table-striped table-bordered table-condensed">
|
|
|
|
- <thead>
|
|
|
|
- <tr>
|
|
|
|
- <th>优惠月份</th>
|
|
|
|
- <th>优惠券</th>
|
|
|
|
- <th>优惠状态</th>
|
|
|
|
- <th>操作</th>
|
|
|
|
- </tr>
|
|
|
|
- </thead>
|
|
|
|
- <tbody>
|
|
|
|
- <c:forEach items="${page.list}" var="cmCoupon">
|
|
|
|
- <tr>
|
|
|
|
- <td><fmt:formatDate value="${cmCoupon.startDate}" type="date" pattern="yyyy-MM"/></td>
|
|
|
|
- <td>
|
|
|
|
- <c:if test="${cmCoupon.couponType eq 0 && cmCoupon.productType eq '1'}">优惠券1:活动券¥${cmCoupon.couponAmount},满${cmCoupon.touchPrice}可用,
|
|
|
|
- 全商城商品通用
|
|
|
|
- </c:if>
|
|
|
|
- <br/>
|
|
|
|
- <c:if test="${cmCoupon.couponType eq 1}">优惠券2:品类券¥${cmCoupon.couponAmount},满${cmCoupon.touchPrice}可用,
|
|
|
|
- <c:if test="${cmCoupon.categoryType eq '2'}">仅可购买仪器类商品</c:if>
|
|
|
|
- <c:if test="${cmCoupon.categoryType eq '1'}">仅可购买产品类商品</c:if>
|
|
|
|
- </c:if>
|
|
|
|
- <br/>
|
|
|
|
- <c:if test="${cmCoupon.couponType eq 3}">优惠券3:店铺券¥${cmCoupon.couponAmount},满${cmCoupon.touchPrice}可用,仅可购买店铺
|
|
|
|
- ${cmCoupon.shopId}的商品
|
|
|
|
- </c:if>
|
|
|
|
- <br/>
|
|
|
|
- <c:if test="${cmCoupon.couponType eq 0 && cmCoupon.productType eq '2'}">优惠券4:活动券¥${cmCoupon.couponAmount},满${cmCoupon.touchPrice}可用,
|
|
|
|
- 仅可购买指定商品
|
|
|
|
- </c:if>
|
|
|
|
- </td>
|
|
|
|
- <td>
|
|
|
|
- <c:if test="${cmCoupon.status eq 0}">
|
|
|
|
- <font color="#800080">未生效</font>
|
|
|
|
- </c:if>
|
|
|
|
- <c:if test="${cmCoupon.status eq 1}">
|
|
|
|
- <font color="#00CC66">已生效</font>
|
|
|
|
- </c:if>
|
|
|
|
- <c:if test="${cmCoupon.status eq 2}">
|
|
|
|
- <font color="red">已关闭</font>
|
|
|
|
- </c:if>
|
|
|
|
- <c:if test="${cmCoupon.status eq 3}">
|
|
|
|
- <font color="#FF6600">已失效</font>
|
|
|
|
- </c:if>
|
|
|
|
- </td>
|
|
|
|
- <td>
|
|
|
|
- <a href="${ctx}/vip/cmCoupon/form?id=${cmCoupon.id}">编辑</a>
|
|
|
|
- <a href="${ctx}/vip/cmCoupon/close?id=${cmCoupon.id}"
|
|
|
|
- onclick="return confirmx('确定关闭该该月份的优惠券吗?关闭后该月份将不赠送优惠券?', this.href)">关闭</a>
|
|
|
|
- <a href="${ctx}/vip/cmCoupon/delete?id=${cmCoupon.id}"
|
|
|
|
- onclick="return confirmx('确定删除该月份的优惠券吗?删除后该月份将不赠送优惠券', this.href)">删除</a>
|
|
|
|
- </td>
|
|
|
|
- </tr>
|
|
|
|
- </c:forEach>
|
|
|
|
- </tbody>
|
|
|
|
-</table>
|
|
|
|
-<div class="pagination">${page}</div>
|
|
|
|
|
|
+<script>
|
|
|
|
+ $("body").on("change", ".couponType", function(){
|
|
|
|
+ var value = $(this).parent().find('input.couponType:checked').val()*1;
|
|
|
|
+ $(this).parents(".coupon-wrap").find(".coupon-line").hide();
|
|
|
|
+ if (0 === value) {
|
|
|
|
+ $(this).parents(".coupon-wrap").find(".coupon-line.l1").show();
|
|
|
|
+ $(this).parents(".coupon-wrap").find(".coupon-line.l2").show();
|
|
|
|
+ $(this).parents(".coupon-wrap").find(".coupon-line.l4").show();
|
|
|
|
+ } else if (1 === value) {
|
|
|
|
+ $(this).parents(".coupon-wrap").find(".coupon-line.l1").show();
|
|
|
|
+ $(this).parents(".coupon-wrap").find(".coupon-line.l2").show();
|
|
|
|
+ $(this).parents(".coupon-wrap").find(".coupon-line.l3").show();
|
|
|
|
+ } else if (3 === value) {
|
|
|
|
+ $(this).parents(".coupon-wrap").find(".coupon-line.l0").show();
|
|
|
|
+ $(this).parents(".coupon-wrap").find(".coupon-line.l1").show();
|
|
|
|
+ $(this).parents(".coupon-wrap").find(".coupon-line.l2").show();
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * @param obj
|
|
|
|
+ * jquery控制input只能输入数字
|
|
|
|
+ */
|
|
|
|
+ function onlynum(obj) {
|
|
|
|
+ obj.value = obj.value.replace(/[^\d]/g, ""); //清除"数字"以外的字符
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ $(document).ready(function () {
|
|
|
|
+ //$("#name").focus();
|
|
|
|
+ $("#inputForm").validate({
|
|
|
|
+ submitHandler: function (form) {
|
|
|
|
+ var couponAmount1 = $("#couponAmount1").val() * 1;
|
|
|
|
+ var touchPrice1 = $("#touchPrice1").val() * 1;
|
|
|
|
+ if (couponAmount1 >= touchPrice1) {
|
|
|
|
+ alertx("【优惠券1】优惠券金额必须小于优惠条件金额");
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ var month = $("#month").val();
|
|
|
|
+ // 判断月份 ...
|
|
|
|
+
|
|
|
|
+ loading('正在提交,请稍等...');
|
|
|
|
+ form.submit();
|
|
|
|
+ },
|
|
|
|
+ errorContainer: "#messageBox",
|
|
|
|
+ errorPlacement: function (error, element) {
|
|
|
|
+ $("#messageBox").text("输入有误,请先更正。");
|
|
|
|
+ if (element.is(":checkbox") || element.is(":radio") || element.parent().is(".input-append")) {
|
|
|
|
+ error.appendTo(element.parent().parent());
|
|
|
|
+ } else {
|
|
|
|
+ error.insertAfter(element);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+</script>
|
|
</body>
|
|
</body>
|
|
</html>
|
|
</html>
|