|
@@ -11,18 +11,17 @@
|
|
<body>
|
|
<body>
|
|
<ul class="nav nav-tabs">
|
|
<ul class="nav nav-tabs">
|
|
<li class="active"><a href="${ctx}/svip/cmSvipHistory/">超级会员列表</a></li>
|
|
<li class="active"><a href="${ctx}/svip/cmSvipHistory/">超级会员列表</a></li>
|
|
- <li><a href="${ctx}/super/cmSvipPackage/">赠送超级会员</a></li>
|
|
|
|
|
|
+ <li><a href="${ctx}/svip/cmSvipGive/">赠送超级会员</a></li>
|
|
</ul>
|
|
</ul>
|
|
<br/>
|
|
<br/>
|
|
-<form:form id="inputForm" modelAttribute="cmSvipPackage" action="${ctx}/super/cmSvipPackage/update" method="post"
|
|
|
|
|
|
+<form:form id="inputForm" modelAttribute="cmSvipGive" action="${ctx}/svip/cmSvipGive/save" method="post"
|
|
class="form-horizontal">
|
|
class="form-horizontal">
|
|
<sys:message content="${message}"/>
|
|
<sys:message content="${message}"/>
|
|
|
|
|
|
- <div class="control-group" id="couponClub" hidden="hidden">
|
|
|
|
|
|
+ <div class="control-group" id="couponClub">
|
|
<label class="control-label"><font color="red">*</font>机构:</label>
|
|
<label class="control-label"><font color="red">*</font>机构:</label>
|
|
<div class="controls">
|
|
<div class="controls">
|
|
<a href="javascript:void(0);" onclick="showSelectClub()" id="chooseClub">请选择机构</a>
|
|
<a href="javascript:void(0);" onclick="showSelectClub()" id="chooseClub">请选择机构</a>
|
|
- <input type="hidden" name="userId" id="userId" value="${cmCoupon.userId}">
|
|
|
|
<table id="contentTableClub" class="table table-striped table-bordered table-condensed" hidden="hidden">
|
|
<table id="contentTableClub" class="table table-striped table-bordered table-condensed" hidden="hidden">
|
|
<thead>
|
|
<thead>
|
|
<tr>
|
|
<tr>
|
|
@@ -40,8 +39,7 @@
|
|
<div class="control-group">
|
|
<div class="control-group">
|
|
<label class="control-label"><span class="help-inline"><font color="red">*</font> </span>赠送套餐:</label>
|
|
<label class="control-label"><span class="help-inline"><font color="red">*</font> </span>赠送套餐:</label>
|
|
<div class="controls">
|
|
<div class="controls">
|
|
- 3个月超级会员,售价:<form:input path="month" htmlEscape="false" class="input-xlarge2" style="width: 60px"
|
|
|
|
- onblur="checkNum()"/>
|
|
|
|
|
|
+ <form:input path="month" htmlEscape="false" class="input-xlarge2" style="width: 60px"/> 个月
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -51,7 +49,62 @@
|
|
</form:form>
|
|
</form:form>
|
|
</body>
|
|
</body>
|
|
<script>
|
|
<script>
|
|
|
|
+ //点击添加机构
|
|
|
|
+ function showSelectClub() {
|
|
|
|
+ var url = "${ctx}/coupon/cmCoupon/toAddClub";
|
|
|
|
+ var title = '';
|
|
|
|
+ title = "选择机构";
|
|
|
|
+ top.$.jBox("iframe:" + url, {
|
|
|
|
+ iframeScrolling: 'yes',
|
|
|
|
+ width: $(top.document).width() - 400,
|
|
|
|
+ height: $(top.document).height() - 160,
|
|
|
|
+ persistent: true,
|
|
|
|
+ title: title,
|
|
|
|
+ buttons: {"确定": '1', "取消": '-1'},
|
|
|
|
+ submit: function (v, h, f) {
|
|
|
|
+ //确定
|
|
|
|
+ var $jboxFrame = top.$('#jbox-iframe');
|
|
|
|
+ var $mainFrame = top.$('#mainFrame');
|
|
|
|
+ if ('1' == v && 1 == $jboxFrame.size() && 1 == $mainFrame.size()) {
|
|
|
|
+ var items = $jboxFrame[0].contentWindow.getCheckedItems();
|
|
|
|
+ console.log(items);
|
|
|
|
+ insertHtmlClub(items);
|
|
|
|
+ }
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ function insertHtmlClub(data) {
|
|
|
|
+ var html = '<tr>' +
|
|
|
|
+ '<td>' +
|
|
|
|
+ data.name +
|
|
|
|
+ '</td>' +
|
|
|
|
+ '<td>' +
|
|
|
|
+ data.shortName +
|
|
|
|
+ '</td>' +
|
|
|
|
+ '<td>' +
|
|
|
|
+ data.linkMan +
|
|
|
|
+ '</td>' +
|
|
|
|
+ '<td>' +
|
|
|
|
+ data.contractMobile +
|
|
|
|
+ '</td>' +
|
|
|
|
+ '<td>' +
|
|
|
|
+ '<a href="javascript:;" onclick="deleteClub()">删除</a>' +
|
|
|
|
+ '</td>' +
|
|
|
|
+ '</tr>';
|
|
|
|
+ $("#contentTableClub").show();
|
|
|
|
+ $("#chooseClub").hide();
|
|
|
|
+ $("#hotSearchClub").html(html);
|
|
|
|
+ $("#userId").val(data.userID);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function deleteClub() {
|
|
|
|
+ $("#hotSearchClub").html("");
|
|
|
|
+ $("#contentTableClub").hide();
|
|
|
|
+ $("#chooseClub").show();
|
|
|
|
+ $("#userId").val("");
|
|
|
|
+ }
|
|
|
|
|
|
</script>
|
|
</script>
|
|
</html>
|
|
</html>
|