yyxz.js 1.08 KB
layui.use('element', function () {
    let element = layui.element; //导航的hover效果、二级菜单等功能,需要依赖element模块
    //监听导航点击
    element.on('nav(demo)', function (elem) {
        //console.log(elem)
        layer.msg(elem.text());
    });
});
var accept = $('.accept');
$('.next_button button').click(function () {
    if (!accept.is(':checked')) {
        layui.use('layer', function () {
            var layer = layui.layer;
            layer.open({
                title: '标题'
                , content: '请先选择同意协议'
            });
        });
    } else {
        layui.use('layer', function () {
            var layer = layui.layer;
            layer.confirm('本人承诺所填的预约信息属实,如有虚假,将承担法律责任', {
                title: '真实准确的承诺',
                btn: ['不同意', '同意进入下一步'] //按钮
            }, function () {
                layer.closeAll();
            }, function () {
                window.location.href = "./xzqy.html";
            });
        });
    }
})