作者 董瑞恩
1 个管道 的构建 通过 耗费 0 秒

cost

@@ -121,14 +121,13 @@ @@ -121,14 +121,13 @@
121 yes: function (index, layero) { 121 yes: function (index, layero) {
122 //do something 122 //do something
123 var iframeWin = window[layero.find('iframe')[0]['name']]; 123 var iframeWin = window[layero.find('iframe')[0]['name']];
124 - var selectedCategories = iframeWin.confirm();  
125 - console.log(selectedCategories);  
126 - if (selectedCategories.selectedCategoriesId.length == 0) { 124 + var data = iframeWin.confirm();
  125 +
  126 +
  127 +
  128 +
  129 + console.log(data);
127 130
128 - }  
129 - $('#js-categories-id-input').val(selectedCategories.selectedCategoriesId.join(','));  
130 - $('#js-categories-name-input').val(selectedCategories.selectedCategoriesName.join(' '));  
131 - console.log(layer.getFrameIndex(index));  
132 layer.close(index); //如果设定了yes回调,需进行手工关闭 131 layer.close(index); //如果设定了yes回调,需进行手工关闭
133 } 132 }
134 }); 133 });