在父模板定义子模板 带ID传过去
function ldgl(id) {
console.log(id)
//iframe窗
var index = layer.open({
type: 2,
title: '管理楼栋',
shadeClose: true,
shade: 0.5,
maxmin: true,
area: ['800px', '100%'],
content: '/admin/districts/index?id=' + id + "&apitype=1",
end: function () {
if (isok == 1) {
isok = 0;
table.reload('test', {
page: {
curr: 1 //重新从第 1 页开始
}
});
}
}
});
layer.full(index);
}
在接收页获取ID判断
, url: 'getList' + "?apitype=1&id={$Request.get.id}"