sys js and css move to static

This commit is contained in:
thinkgem
2024-07-21 18:33:37 +08:00
parent 808175d835
commit 5d1fe5236a
7 changed files with 250 additions and 2 deletions

View File

@@ -1,116 +0,0 @@
/*!
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
* No deletion without permission, or be held responsible to law.
*
* @author ThinkGem
* @version 2019-1-6
*/
$(function(){
$('#fp_validType').change(function(){
var val = $(this).val(), action = '';
$('.fp-element').addClass('hide').removeClass('block');
$('.fp-'+val).addClass('block').removeClass('hide');
setTimeout(function(){
$('#fp_loginCode').focus();
}, 100);
if (val == 'mobile' || val == 'email'){
var txt = (val == 'mobile' ? '手机' : '邮箱')
$('#fpValidCode').attr('placeholder', txt+'验证码')
.attr('data-msg-required', '请填写'+txt+'验证码.');
$('#sendFpValidCode').val('获取'+txt+'验证码');
action = ctxPath + '/account/savePwdByValidCode';
}else if(val == 'question'){
action = ctxPath + '/account/savePwdByPwdQuestion';
}
$('#forgetForm').attr('action', action);
}).change();
var waitTime = 60;
function sendTime(o) {
if (waitTime == 0) {
o.removeAttribute("disabled");
o.value = "获取验证码";
waitTime = 60;
} else {
o.setAttribute("disabled", true);
o.value = "重新发送(" + waitTime + ")";
waitTime--;
setTimeout(function() {
sendTime(o)
}, 1000);
}
}
$('#sendFpValidCode').click(function() {
var $this = this;
js.ajaxSubmit(ctxPath + '/account/getFpValidCode', {
validType: $('#fp_validType').val(),
loginCode : $('#fp_loginCode').val(),
validCode : $('#fp_validCode').val()
}, function(data){
js.showMessage(data.message);
if (data.result == 'true'){
sendTime($this);
$('#fpValidCode').focus();
}else{
$('#fp_validCodeImg').click();
}
});
});
$('#fp_getQuestion').click(function() {
js.ajaxSubmit(ctxPath + '/account/getPwdQuestion', {
loginCode : $('#fp_loginCode').val(),
validCode : $('#fp_validCode').val()
}, function(data){
js.showMessage(data.message);
if (data.result == 'true'){
$('#fp_q1').text(data.pwdQuestion);
$('#fp_q2').text(data.pwdQuestion2);
$('#fp_q3').text(data.pwdQuestion3);
}
});
});
if ($.fn.strength){
$("#fp_password").strength();
}
$('#forgetForm').validate({
ignore: ":hidden",
submitHandler: function(form) {
var $form = $(form),
action = $form.attr('action'),
data = $form.serializeArray(),
key = window.secretKey||$('#loginKey').data('key');
if (key != ''){
for (var i=0, l=data.length; i<l; i++){
if (data[i].name == 'pwdQuestionAnswer'){
data[i].value = DesUtils.encode($('#fp_pwdQuestionAnswer').val(), key);
}else if (data[i].name == 'pwdQuestionAnswer2'){
data[i].value = DesUtils.encode($('#fp_pwdQuestionAnswer2').val(), key);
}else if (data[i].name == 'pwdQuestionAnswer3'){
data[i].value = DesUtils.encode($('#fp_pwdQuestionAnswer3').val(), key);
}else if (data[i].name == 'password'){
data[i].value = DesUtils.encode($('#fp_password').val(), key);
}
}
}
js.ajaxSubmit(action, data, function(data, status, xhr){
if (data.result == "true"){
alert(data.message);
location = ctx + '/login';
}else{
js.showMessage(data.message);
}
});
}
});
$('#btnReset').click(function(){
location = ctx + '/login';
});
});

View File

@@ -1,26 +0,0 @@
.modify-log {word-break:break-all;}
.modify-log .title {padding:3px 5px 7px;margin-bottom:8px;border-bottom:1px solid #eee;color:#b82e2e;}
.modify-log .title .divider {padding:0 10px;color:#ccc;}
.modify-log .table th {font-weight:normal;}
.modify-log .table td {width:30%;vertical-align:middle!important;}
.modify-log .table th:first-child,
.modify-log table.table td:first-child {width:10%;}
.modify-log .table,
.modify-log .table .table {background:transparent;border-collapse:collapse!important;}
.modify-log .table.table-bordered th,
.modify-log .table.table-bordered td {border:1px solid #e1e1e1!important;}
.ui-jqgrid .modify-log tr.ui-state-hover.ui-row-ltr th,
.ui-jqgrid .modify-log tr.ui-state-hover.ui-row-ltr td {background-color:#f8f8f8;}
.ui-jqgrid .modify-log tr.ui-state-highlight.ui-row-ltr th,
.ui-jqgrid .modify-log tr.ui-state-highlight.ui-row-ltr td {background-color:#fafafa;}
.ui-jqgrid .modify-log tr.jqgrow th,
.ui-jqgrid .modify-log tr.jqgrow td {padding:3px 5px; height:auto;}
.skin-dark .modify-log .title {border-color:#333;color:#d03d3d;}
.skin-dark .modify-log .title .divider {color:#555;}
.skin-dark .modify-log .table {color:#adadad!important;}
.skin-dark .modify-log .table.table-bordered th,
.skin-dark .modify-log .table.table-bordered td {border:1px solid #3e3e3e!important;}
.skin-dark .ui-jqgrid .modify-log tr.ui-state-hover.ui-row-ltr th,
.skin-dark .ui-jqgrid .modify-log tr.ui-state-hover.ui-row-ltr td,
.skin-dark .ui-jqgrid .modify-log tr.ui-state-highlight.ui-row-ltr th,
.skin-dark .ui-jqgrid .modify-log tr.ui-state-highlight.ui-row-ltr td {background-color:#141414!important;}

View File

@@ -1,102 +0,0 @@
/*!
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
* No deletion without permission, or be held responsible to law.
*
* @author ThinkGem
* @version 2019-1-6
*/
$(function(){
$('#reg_validType').change(function(){
var val = $(this).val(), action = '';
$('.reg-element').addClass('hide').removeClass('block');
$('.reg-'+val).addClass('block').removeClass('hide');
setTimeout(function(){
$('#reg_loginCode').focus();
}, 100);
if (val == 'mobile' || val == 'email'){
var txt = (val == 'mobile' ? '手机' : '邮箱')
$('#regValidCode').attr('placeholder', txt+'验证码')
.attr('data-msg-required', '请填写'+txt+'验证码.');
$('#sendRegValidCode').val('获取'+txt+'验证码');
action = ctxPath + '/account/saveRegByValidCode';
}else if(val == 'question'){
action = ctxPath + '/account/savePwdByPwdQuestion';
}
$('#registerForm').attr('action', action);
}).change();
var waitTime = 60;
function sendTime(o) {
if (waitTime == 0) {
o.removeAttribute("disabled");
o.value = "获取验证码";
waitTime = 60;
} else {
o.setAttribute("disabled", true);
o.value = "重新发送(" + waitTime + ")";
waitTime--;
setTimeout(function() {
sendTime(o)
}, 1000);
}
}
$('#sendRegValidCode').click(function() {
var $this = this;
js.ajaxSubmit(ctxPath + '/account/getRegValidCode', {
validType: $('#reg_validType').val(),
corpCode_ : $('#reg_corpCode').val(),
corpName_ : $('#reg_corpName').val(),
loginCode : $('#reg_loginCode').val(),
userName : $('#reg_userName').val(),
email : $('#reg_email').val(),
mobile : $('#reg_mobile').val(),
userType: $('#reg_userType').val(),
validCode : $('#reg_validCode').val()
}, function(data){
js.showMessage(data.message);
if (data.result == 'true'){
sendTime($this);
$('#regValidCode').focus();
}else{
$('#reg_validCodeImg').click();
}
});
});
if ($.fn.strength){
$("#reg_password").strength();
}
$('#registerForm').validate({
ignore: ":hidden",
submitHandler: function(form) {
var $form = $(form),
action = $form.attr('action'),
data = $form.serializeArray(),
key = window.secretKey||$('#loginKey').data('key');
if (key != ''){
for (var i=0, l=data.length; i<l; i++){
if (data[i].name == 'password'){
data[i].value = DesUtils.encode($('#reg_password').val(), key);
}
}
}
js.ajaxSubmit(action, data, function(data, status, xhr){
if (data.result == "true"){
alert(data.message);
location = ctx + '/login';
}else{
js.showMessage(data.message);
}
});
}
});
$('#btnReset').click(function(){
location = ctx + '/login';
});
});