|
@@ -698,17 +698,36 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- function showSelect(couponId) {
|
|
|
- var url = "${ctx}/coupon/cmCoupon/redemptionCode?couponId=" + couponId;
|
|
|
+ //点击添加
|
|
|
+ function showSelect() {
|
|
|
+ var url = "${ctx}/coupon/cmCoupon/toAddProduct?productIds=" + productIds;
|
|
|
var title = '';
|
|
|
- title = "查看兑换码";
|
|
|
+ title = "选择商品";
|
|
|
top.$.jBox("iframe:" + url, {
|
|
|
iframeScrolling: 'yes',
|
|
|
- width: $(top.document).width() - 750,
|
|
|
- height: $(top.document).height() - 300,
|
|
|
+ width: $(top.document).width() - 400,
|
|
|
+ height: $(top.document).height() - 160,
|
|
|
persistent: true,
|
|
|
title: title,
|
|
|
- buttons: {"确定": '1'}
|
|
|
+ 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);
|
|
|
+ console.log(items[0]);
|
|
|
+ for (var i = 0; i < items.length; i++) {
|
|
|
+ console.log(items[i]);
|
|
|
+ imageList.push(items[i]);
|
|
|
+ $('#contentTable').show();
|
|
|
+ $("#del").removeAttr("disabled");
|
|
|
+ batchSaveSort();
|
|
|
+ };
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+ }
|
|
|
});
|
|
|
}
|
|
|
|