|
@@ -742,7 +742,7 @@ $(document).on("click", ".edit", function () { |
|
@@ -742,7 +742,7 @@ $(document).on("click", ".edit", function () { |
742
|
}else if(item.contentData.template_name =='divideImage'){
|
742
|
}else if(item.contentData.template_name =='divideImage'){
|
743
|
if (item.contentData.data.length!=0 && item.contentData.data[0].src!=''){
|
743
|
if (item.contentData.data.length!=0 && item.contentData.data[0].src!=''){
|
744
|
item.contentData.isDefault = '2'; //自定义
|
744
|
item.contentData.isDefault = '2'; //自定义
|
745
|
- item.contentData.divideColour = '1'; // 切换的时候默认灰色
|
745
|
+ item.contentData.divideColour = '2'; // 切换的时候默认灰色
|
746
|
}
|
746
|
}
|
747
|
Bll.module = $.extend(true, {}, item);
|
747
|
Bll.module = $.extend(true, {}, item);
|
748
|
Bll.renderDialog("divideImage-template");
|
748
|
Bll.renderDialog("divideImage-template");
|
|
@@ -2431,7 +2431,10 @@ var BT = []; |
|
@@ -2431,7 +2431,10 @@ var BT = []; |
2431
|
|
2431
|
|
2432
|
BT.push({
|
2432
|
BT.push({
|
2433
|
"channel":"app",
|
2433
|
"channel":"app",
|
2434
|
- "buttonNames":['focus','newUserFloor','guessLike','splitJointImg','newSingleImage','twoPicture','newProductListFloor','popularListFloor','newProductListMerge','findGoodsListFloor','imageListFloor','recommendContentFive','limitSaleListFloor','editorTalk','shopActivityListFloor','shopFloor','tabFloor','textNav','tfGoodsList','recommendGoodsGroup','guangRqFloor','guangShowOrderFloor','timeImage']
|
2434
|
+ "buttonNames":['splitJointImg','twoPicture','newSingleImage','imageListFloor','divideImage','focus','newUserFloor',
|
|
|
2435
|
+ 'guessLike','newProductListFloor',
|
|
|
2436
|
+ 'popularListFloor','newProductListMerge','findGoodsListFloor','recommendContentFive','limitSaleListFloor','editorTalk',
|
|
|
2437
|
+ 'shopActivityListFloor','shopFloor','tabFloor','textNav','tfGoodsList','recommendGoodsGroup','guangRqFloor','guangShowOrderFloor','timeImage']
|
2435
|
});
|
2438
|
});
|
2436
|
BT.push({
|
2439
|
BT.push({
|
2437
|
"channel":"pc",
|
2440
|
"channel":"pc",
|
|
@@ -2457,17 +2460,24 @@ $(document).on("click", ".button-type a", function() { |
|
@@ -2457,17 +2460,24 @@ $(document).on("click", ".button-type a", function() { |
2457
|
Bll.__render(".contents", "template_content_btns", {btns: originButton});
|
2460
|
Bll.__render(".contents", "template_content_btns", {btns: originButton});
|
2458
|
}else{
|
2461
|
}else{
|
2459
|
|
2462
|
|
2460
|
- for(var i = 0; i < BT.length; i++) {
|
|
|
2461
|
- if(BT[i].channel==channel){
|
|
|
2462
|
- var buttonNames = BT[i].buttonNames;
|
|
|
2463
|
- for(var t=0;t<originButton.length;t++){
|
|
|
2464
|
- if(buttonNames.indexOf(originButton[t].template_name)>-1){
|
|
|
2465
|
- Button_content.push(originButton[t]);
|
2463
|
+ var buttonMap = {};
|
|
|
2464
|
+ for(var t=0;t<originButton.length;t++){
|
|
|
2465
|
+ buttonMap[originButton[t].template_name] = originButton[t];
|
|
|
2466
|
+ }
|
|
|
2467
|
+
|
|
|
2468
|
+ for(var i = 0; i < BT.length; i++) {
|
|
|
2469
|
+ if(BT[i].channel==channel){
|
|
|
2470
|
+
|
|
|
2471
|
+ var buttonNames = BT[i].buttonNames;
|
|
|
2472
|
+ for(var j=0; j<buttonNames.length; j++){
|
|
|
2473
|
+ if (buttonMap[buttonNames[j]] != null){
|
|
|
2474
|
+ Button_content.push(buttonMap[buttonNames[j]]);
|
|
|
2475
|
+ }
|
2466
|
}
|
2476
|
}
|
|
|
2477
|
+
|
2467
|
}
|
2478
|
}
|
2468
|
}
|
2479
|
}
|
2469
|
- }
|
|
|
2470
|
- Bll.__render(".contents", "template_content_btns", {btns: Button_content});
|
2480
|
+ Bll.__render(".contents", "template_content_btns", {btns: Button_content});
|
2471
|
}
|
2481
|
}
|
2472
|
$(".button-type").removeClass("active");
|
2482
|
$(".button-type").removeClass("active");
|
2473
|
$(".button-type a").each(function(index) {
|
2483
|
$(".button-type a").each(function(index) {
|