mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-11-07 19:40:49 +08:00
17 lines
574 B
PHP
17 lines
574 B
PHP
$(function(){
|
||
ua.listen();
|
||
|
||
// 关闭按钮:弹窗内关闭当前 iframe;非弹窗场景(直接以标签页打开)返回上一页
|
||
$('#notice-read-close').on('click', function () {
|
||
var parentLayer = (window.parent && window.parent.layui) ? window.parent.layui.layer : null;
|
||
if (parentLayer) {
|
||
var index = parentLayer.getFrameIndex(window.name);
|
||
if (index !== undefined && index !== null) {
|
||
parentLayer.close(index);
|
||
return;
|
||
}
|
||
}
|
||
history.back();
|
||
});
|
||
})
|