文件夹结构调整,新增模版自定义功能

This commit is contained in:
xiongxiaoyang
2020-12-26 19:13:07 +08:00
parent f03ab953d0
commit 6ad51908d5
601 changed files with 75656 additions and 8 deletions

View File

@ -0,0 +1,77 @@
var UserUtil = {
msgStyle: 'background-color:#333; color:#fff; text-align:center; border:none; font-size:20px; padding:10px;',
GetFavoritesNew: function () {
var bIdList = "";
$(".book_list").each(function () {
bIdList += "," + $(this).attr("vals");
});
if (bIdList != "") {
}
},
GetHistory: function () {
var bIdList = "";
$(".book_list").each(function () {
bIdList += "," + $(this).attr("vals");
});
if (bIdList != "") {
}
},
GetChapterInfo: function () {
var cIdList = "";
$(".showCName").each(function () {
cIdList += "," + $(this).attr("vals");
});
if (cIdList != "") {
}
},
SignDay: function () {
if (!signed) {
signed = true;
}
},
SignDayStatus: function () {
},
RegSendSms: function () {
var mob = $("#txtUName").val();
var cCode = $("#TxtChkCode").val();
if (mob != "" && cCode != "") {
$("#btnSendSms").attr("disabled", "disabled");
$("#txtUName").attr("readonly", "true");
}
else {
layer.open({
content: '手机号码和验证码必须填写',
style: UserUtil.msgStyle,
time: 2
});
}
},
GetPassSendSms: function () {
var mob = $("#txtMobile").val();
var cCode = $("#TxtChkCode").val();
if (mob != "" && cCode != "") {
$("#btnSendSms").attr("disabled", "disabled");
$("#txtMobile").attr("readonly", "true");
}
else {
layer.open({
content: '手机号码和验证码必须填写',
style: UserUtil.msgStyle,
time: 2
});
}
},
RegSmsWait: function () {
if (secondStep > 0) {
$("#btnSendSms").val("重新发送(" + secondStep + ")");
secondStep--;
setTimeout("UserUtil.RegSmsWait()", 1000);
}
else {
secondStep = 180;
$("#btnSendSms").val("重新获取验证码");
$("#btnSendSms").removeAttr("disabled");
$("#txtUName").removeAttr("readonly");
}
}
}