|
@@ -3,6 +3,7 @@ const $ = require('jquery');
|
|
require('jquery-templates');
|
|
require('jquery-templates');
|
|
const md5 = require('js-md5');
|
|
const md5 = require('js-md5');
|
|
require("./modal.js")
|
|
require("./modal.js")
|
|
|
|
+const okIcon = require("./../images/checkOk.png")
|
|
const WarningIcon = require("./../images/icon-Warning.png")
|
|
const WarningIcon = require("./../images/icon-Warning.png")
|
|
const warnIcon = require("./../images/warn.png")
|
|
const warnIcon = require("./../images/warn.png")
|
|
const openEye = require("./../images/open-eye.png")
|
|
const openEye = require("./../images/open-eye.png")
|
|
@@ -102,7 +103,8 @@ function switchPwd(el) {
|
|
}
|
|
}
|
|
|
|
|
|
function toast(msg){
|
|
function toast(msg){
|
|
- $.alerModal({"message":msg,type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
|
|
|
|
|
|
+ const toast = `<div class="toast"><img src="${okIcon}" alt=""><p>${msg}</p></div>`;
|
|
|
|
+ $(toast).appendTo($(".alertModal"));
|
|
}
|
|
}
|
|
|
|
|
|
//绑定输入框事件
|
|
//绑定输入框事件
|
|
@@ -416,7 +418,7 @@ function changeWord(oldword, newword) {
|
|
toast("密码修改成功,请重新登录");
|
|
toast("密码修改成功,请重新登录");
|
|
setTimeout(()=>{
|
|
setTimeout(()=>{
|
|
window.location.href = './login.html'
|
|
window.location.href = './login.html'
|
|
- },1500);
|
|
|
|
|
|
+ },1000);
|
|
} else {
|
|
} else {
|
|
$(".oldWaring b").text(data.msg);
|
|
$(".oldWaring b").text(data.msg);
|
|
$(".oldWaring").show();
|
|
$(".oldWaring").show();
|