Files
aurora-admin/frameworks/ConfirmModal.html
T

41 lines
1.7 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Aurora Admin · ConfirmModal(普通 H5)</title>
<link rel="stylesheet" href="../.design_library/aurora-admin/colors_and_type.css" />
<link rel="stylesheet" href="ConfirmModal.css" />
<style>body{margin:0;padding:24px;background:#F5F7FA;}</style>
</head>
<body>
<button id="open">删除确认</button>
<div class="aa-modal-mask" id="mask" style="display:none">
<div class="aa-confirm is-danger">
<div class="aa-confirm-head">
<span class="aa-confirm-icon">!</span>
<div class="aa-confirm-title">删除该成员?</div>
</div>
<div class="aa-confirm-content">删除后该成员将无法访问系统,且不可恢复。</div>
<label class="aa-confirm-extra"><input type="checkbox" id="dont" /> 不再提示</label>
<div class="aa-confirm-footer">
<button class="aa-confirm-btn" id="cancel">取消</button>
<button class="aa-confirm-btn danger" id="ok">删除</button>
</div>
</div>
</div>
<script>
var mask = document.getElementById('mask');
document.getElementById('open').onclick = function () { mask.style.display = 'flex'; };
document.getElementById('cancel').onclick = function () { mask.style.display = 'none'; };
document.getElementById('ok').onclick = function () {
alert('已删除' + (document.getElementById('dont').checked ? '(不再提示)' : ''));
mask.style.display = 'none';
};
mask.addEventListener('click', function (e) { if (e.target === mask) mask.style.display = 'none'; });
</script>
</body>
</html>