...
|
...
|
@@ -94,14 +94,14 @@ var Bll = { |
|
|
}
|
|
|
}
|
|
|
},
|
|
|
|
|
|
//modified by jie.pang@yoho.cn:20160812 去掉隐藏的功能
|
|
|
checkSortNum: function () {
|
|
|
if ($('.sort-wrap').find('.row').size() > 1) {
|
|
|
$('.sort-wrap').find('.row').find('.add-sort-btn').hide().end().find('.del-sort-btn').show();
|
|
|
$('.sort-wrap').find('.row:last').find('.add-sort-btn').show().end().find('.del-sort-btn').show();
|
|
|
} else {
|
|
|
$('.sort-wrap').find('.row:first').find('.add-sort-btn').show().end().find('.del-sort-btn').hide();
|
|
|
}
|
|
|
// if ($('.sort-wrap').find('.row').size() > 1) {
|
|
|
// $('.sort-wrap').find('.row').find('.add-sort-btn').hide().end().find('.del-sort-btn').show();
|
|
|
// $('.sort-wrap').find('.row:last').find('.add-sort-btn').show().end().find('.del-sort-btn').show();
|
|
|
// } else {
|
|
|
// $('.sort-wrap').find('.row:first').find('.add-sort-btn').show().end().find('.del-sort-btn').hide();
|
|
|
// }
|
|
|
},
|
|
|
setTabTree: function () {//分类数据,设置tabTree
|
|
|
var data = {}, NUMN = {};
|
...
|
...
|
@@ -247,6 +247,8 @@ var initSort = function () {//初始化分类弹框 |
|
|
|
|
|
}
|
|
|
couponBean.sortLimit = ids.join(',');
|
|
|
}else{
|
|
|
couponBean.sortLimit="";
|
|
|
}
|
|
|
if (Bll.selectSorts.length > 0) {
|
|
|
var sorts = [], sortList = [];
|
...
|
...
|
@@ -262,6 +264,9 @@ var initSort = function () {//初始化分类弹框 |
|
|
|
|
|
couponBean.sortsList = sortList.join(";");
|
|
|
Bll.__render(couponBean, type);
|
|
|
}else{
|
|
|
couponBean.sortsList = "";
|
|
|
Bll.__render(couponBean, type);
|
|
|
}
|
|
|
},
|
|
|
css: "btn btn-primary"
|
...
|
...
|
|