let mlist = [], mnum = 0
window.alert = function (mstr) {
console.log("弹窗", mnum, mstr)
if (!mlist.includes(mstr)) {
mlist.push(mstr)
layer.open({
type: 1,
title: "弹窗",
content: mstr,
area: ['300px', '150px'],
offset: 'auto',
closeBtn: 1,
shade: 0.1,
shadeClose: false,
time: 0,
maxmin: false,
fixed: true,
resize: true,
end: function () {
--mnum
if (mnum < 1) mlist = []
mlist.pop()
console.log("end弹窗", mnum, mstr)
}
});
}
}
09-09
393
11-03
817