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

cost

... ... @@ -121,14 +121,13 @@
yes: function (index, layero) {
//do something
var iframeWin = window[layero.find('iframe')[0]['name']];
var selectedCategories = iframeWin.confirm();
console.log(selectedCategories);
if (selectedCategories.selectedCategoriesId.length == 0) {
var data = iframeWin.confirm();
console.log(data);
}
$('#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回调,需进行手工关闭
}
});
... ...