Initial commit

This commit is contained in:
易焱
2019-07-30 18:14:32 +08:00
commit daa60cf523
1624 changed files with 90832 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
if(window.top!==window.self){window.top.location=window.location};
layui.use(['element'], function () {
var $ = layui.jquery;
$(document).on('click', '.captcha-img', function () {
var src = this.src.split("?")[0];
this.src = src + "?" + Math.random();
});
$(document).on('click', '.ajax-login', function (e) {
e.preventDefault();
var form = $(this).parents("form");
var url = form.attr("action");
var serializeArray = form.serializeArray();
$.post(url, serializeArray, function (result) {
if(result.code != 200){
$('.captcha-img').click();
}
$.fn.Messager(result);
});
})
});