var index = layer.open({
title: '编辑用户',
type: 2,
shade: 0.2,
maxmin: true,
shadeClose: true,
area: ['100%', '100%'],
content: localhostPath + '/page/table/edit.html',
success: function (layero, index) {
var body = layui.layer.getChildFrame('body', index);
console.log(data);
body.find("input[name='username']").val(data.username);
body.find("input[name='sex'][title='"+data.sex+"']").prop("checked",data.sex);
body.find("input[name='phone']").val(data.phone);
// body.find("#news_content").val(edit.content);
// body.find(".newsStatus select").val(edit.newsStatus);
// body.find(".openness input[name='openness'][title='" + edit.newsLook + "']").prop("checked", "checked");
// body.find(".newsTop input[name='newsTop']").prop("checked", edit.newsTop);
form.render();
setTimeout(function () {
layui.layer.tips('点击此处返回列表', '.layui-layer-setwin .layui-layer-close', {
tips: 3
});
}, 500)
}
});
$(window).on("resize", function () {
layer.full(index);
});
return false;