拓维生物
成为全球值得信赖的药物CRO
登录
type: 1, title: " ", shadeClose: true, area: 'auto', shade: 0.48, content: $('.weixinPopup'), }); }); } }, error: function (e) { layer.msg('网络错误,请稍后再试~', {icon: 1, time: 3000}, function () { }); } }); $(".ewmPopup .transparent").click(function () { $(".ewmPopup").hide(); }) } ewmPopup(); function submit_login() { var email = $('#email').val(); if (!email) { _tips = layer.open({ title: '提示', content: "

请输入邮箱!

", btn: ['确认'], btnAlign: 'c', // 按钮居中 area: 'auto', shade: .48, move: false, }); return false; } var password = $('#password').val(); if (!email) { _tips = layer.open({ title: '提示', content: "

请输入密码!

", btn: ['确认'], btnAlign: 'c', // 按钮居中 area: 'auto', shade: .48, move: false, }); return false; } var privacy_btn = $('.privacy_btn').is(":checked"); if (!privacy_btn) { _tips = layer.open({ title: '提示', content: "

请阅读并同意《隐私政策》!

", btn: ['确认'], btnAlign: 'c', // 按钮居中 area: 'auto', shade: .48, move: false, }); return false; } layer.load(); $.ajax({ type: 'POST', url: "/login_action", data: {'email': email, 'password': password}, dataType: "JSON", success: function (res) { layer.closeAll(); if (res.code == 200) { window.location.href = domain_url; } else { _tips = layer.open({ title: '提示', content: "

" + res.msg + "

", btn: ['确认'], btnAlign: 'c', // 按钮居中 area: 'auto', shade: .48, move: false, }); } }, error: function (e) { layer.closeAll(); } }); } layui.use(function () { var $ = layui.$; var form = layui.form; var layer = layui.layer; var privacy; $(".privacyBtn").click(function () { privacy = layer.open({ type: 1, title: false, //不显示标题栏 closeBtn: 1, area: 'auto', shade: 0.48, id: '', //设定一个id,防止重复弹出 btn: ['我已阅读并同意条款'], btnAlign: 'c', moveType: 1, //拖拽模式,0或者1 content: $('.privacyPopup'), btn1: function () { $('.privacy_btn').prop('checked', true); form.render();//没有写这个,操作后没有效果 layer.close(privacy); } }); }) })