mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-09-16 23:22:20 +08:00
引入sweetalert代替alert;用户注册密码长度及字符校验;注册页前端显示密码策略及样式优化;字体渲染显示网页逻辑调整;后端添加40004错误码
This commit is contained in:
@@ -39,17 +39,11 @@
|
||||
.then(function (response) {
|
||||
// 当接口成功返回时,动态设置css
|
||||
loadFont(response.data.url);
|
||||
$("html,body").css("transition", ".05s");
|
||||
setTimeout(() => {
|
||||
$("html,body").css("opacity", "1");
|
||||
}, 100)
|
||||
})
|
||||
.catch(function (error) {
|
||||
console.log("字体加载失败", error);
|
||||
$("html,body").css("transition", ".05s");
|
||||
setTimeout(() => {
|
||||
$("html,body").css("opacity", "1");
|
||||
}, 100)
|
||||
}).finally(function () {
|
||||
finishFontLoading();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -67,6 +61,12 @@
|
||||
console.log("字体加载成功");
|
||||
}
|
||||
|
||||
function finishFontLoading() {
|
||||
$("html,body").css("transition", ".05s");
|
||||
setTimeout(() => {
|
||||
$("html,body").css("opacity", "1");
|
||||
}, 100);
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
var allText = getPageText();
|
||||
@@ -74,7 +74,7 @@
|
||||
if ('<%= typeof(minfontOnLoad) === "undefined" ? "true" : minfontOnLoad %>' != "false") {
|
||||
fontmin(allText);
|
||||
} else {
|
||||
// $("html,body").css("opacity", "1");
|
||||
setTimeout(finishFontLoading, 1000);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
@@ -8,6 +8,9 @@
|
||||
<script src="/assets/lib/jquery/3.6.0/jquery.min.js"></script>
|
||||
<script src="/assets/lib/axios/0.26.1/axios.min.js"></script>
|
||||
|
||||
<!-- refer: https://www.sweetalert.cn/ -->
|
||||
<script src="/assets/lib/sweetalert/2.1.2/sweetalert.min.js"></script>
|
||||
|
||||
<script src="/assets/javascripts/httpRequestUtils.js"></script>
|
||||
<script src="/assets/javascripts/localStorageUtils.js"></script>
|
||||
<script>
|
||||
@@ -19,7 +22,6 @@
|
||||
/* 字体加载前先隐藏,不然文字会闪一下 */
|
||||
html, body { opacity: 0; }
|
||||
</style>
|
||||
|
||||
<script>
|
||||
/**
|
||||
* 获取用户浏览器指纹
|
||||
|
Reference in New Issue
Block a user