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

cost

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