Skip to content

Commit

Permalink
新增 PwdService 服务类方便自定义重写密码相关实现
Browse files Browse the repository at this point in the history
  • Loading branch information
think-gem committed Jul 21, 2024
1 parent 5e51115 commit e4335eb
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@
function get_total(total, thisid) {
var thismeter = $('div[data-meter="' + thisid + '"]').removeClass();
thismeter.parent().removeClass().addClass(options.strengthMeterClass);
if (total == 0) {
thismeter.html('');
} else if (total == 1) {
if (total == 1) {
thismeter.parent().addClass('veryweak');
thismeter.addClass('veryweak').html('<p>'+options.veryweakText+'</p>');
} else if (total == 2) {
Expand All @@ -53,9 +51,11 @@
} else if (total == 3 || total == 4) {
thismeter.parent().addClass('medium');
thismeter.addClass('medium').html('<p>'+options.mediumText+'</p>');
} else {
} else if (total > 4) {
thismeter.parent().addClass('strong');
thismeter.addClass('strong').html('<p>'+options.strongText+'</p>');
} else {
thismeter.html('');
}
}

Expand Down

0 comments on commit e4335eb

Please sign in to comment.