mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-11-10 13:00:49 +08:00
feat(notice): 我的消息与订阅设置个人域页面
This commit is contained in:
16
extend/base/admin/view/notice/read.js
Normal file
16
extend/base/admin/view/notice/read.js
Normal file
@@ -0,0 +1,16 @@
|
||||
$(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();
|
||||
});
|
||||
})
|
||||
Reference in New Issue
Block a user