💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
~~~ <!--_meta 作为公共模版分离出去--> {include file="common/top" /} <!--/meta 作为公共模版分离出去--> <body> <!--_header 作为公共模版分离出去--> {include file="common/header" /} <!--/_header 作为公共模版分离出去--> <!--_menu 作为公共模版分离出去--> {include file="common/left" /} <!--/_menu 作为公共模版分离出去--> <section class="Hui-article-box"> <nav class="breadcrumb"><i class="Hui-iconfont"></i> <a href="/" class="maincolor">首页</a> <span class="c-999 en">&gt;</span> <span class="c-666">空白页</span> </nav> <div class="Hui-article"> {block name="right"}{/block} </div> </section> <script type="text/javascript"> $(function () { // 设置单选按钮样式 $('.skin-minimal input').iCheck({ checkboxClass: 'icheckbox-blue', radioClass: 'iradio-blue', increaseArea: '20%' }); // 表单提交 $("form").submit(function (e) { var res = $(this).serialize(); var url = $(this).attr('action'); $.ajax({ url: url, data: res, type: 'post', success: function (data) { if (data.code == 1) { layer.alert(data.msg, {icon: 6}, function (index) { layer.close(index); window.location.href = "{:url('index')}"; }); } else { layer.alert(data.msg, {icon: 5}, function (index) { layer.close(index); }); } } }); return false; // 阻止表单跳转 }); // 删除 $('.del').click(function () { var url = $(this).attr('link'); layer.confirm('你确定要此操作吗?', { icon: 5, btn: ['确定', '取消'] //按钮 }, function () { $.get(url, function (data) { if (data.code == 1) { layer.alert(data.msg, {icon: 6}, function (index) { layer.close(index); window.location.reload(); }); } else { layer.alert(data.msg); } }); }); }); // 退出 $('.logout').click(function () { var url = $(this).attr('link'); layer.confirm('你确定要此操作吗?', { icon: 5, btn: ['确定', '取消'] //按钮 }, function () { $.get(url, function (data) { if (data.code == 1) { layer.alert(data.msg, {icon: 6}, function (index) { layer.close(index); window.location.reload(); }); } else { layer.alert(data.msg); } }); }); }); }); </script> {block name="js"}{/block} </body> </html> ~~~