1. Close the popup layer (iframe layer, etc.) of individual pages
Just write the following code in the "close" method
var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
parent.layer.close(index); //再执行关闭
2. Popup window about the current page (inquiry layer, etc.)
Write the following code in the method of triggering the operation
//关闭当前弹窗
layer.closeAll();