2024-05-18 15:28:29 +08:00
|
|
|
|
|
|
|
|
|
|
function panduan() {
|
|
|
|
|
|
$("#z_wentiyi").text("");
|
|
|
|
|
|
$("#z_daanyi").text("");
|
|
|
|
|
|
$("#z_wentier").text("");
|
|
|
|
|
|
$("#z_daaner").text("");
|
|
|
|
|
|
$("#z_yhmima").html("");
|
|
|
|
|
|
$("#z_qmima").text("");
|
|
|
|
|
|
if ($("#shezhi").is(":checked")) {
|
|
|
|
|
|
var tiao = Common_gsmima.seleectqus($("#zhanghao").val(), $("#yhmima").val()).value;
|
|
|
|
|
|
if (tiao != "") {
|
|
|
|
|
|
|
|
|
|
|
|
$("#wentiyi").attr("readonly", "readonly");
|
|
|
|
|
|
$("#wentier").attr("readonly", "readonly");
|
|
|
|
|
|
$("#wentiyi").css("background-color", "Gray");
|
|
|
|
|
|
$("#wentier").css("background-color", "Gray");
|
|
|
|
|
|
$("#z_zhanghao").html("账号密保已设置!");
|
|
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var fanhuicount = Common_gsmima.serchmingcheng($("#zhanghao").val()).value;
|
|
|
|
|
|
//查询是否存在问题
|
2024-05-20 17:40:13 +08:00
|
|
|
|
;
|
2024-05-18 15:28:29 +08:00
|
|
|
|
|
|
|
|
|
|
if (fanhuicount > 0) {
|
|
|
|
|
|
$("#z_zhanghao").html("账号匹配成功!");
|
|
|
|
|
|
$("#z_zhanghao").css("color", "#009933 ")
|
|
|
|
|
|
} else {
|
|
|
|
|
|
$("#z_zhanghao").html("请重新确认账号!");
|
|
|
|
|
|
$("#z_zhanghao").css("color", "red ")
|
|
|
|
|
|
return false;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ($("#wentiyi").val().replace(/(^\s*)|(\s*$)/g, "") == "") {
|
|
|
|
|
|
$("#z_zhanghao").css("color", "red ")
|
|
|
|
|
|
$("#z_wentiyi").text("问题不能为空!");
|
|
|
|
|
|
return false;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
$("#z_wentiyi").text("问题可使用!");
|
|
|
|
|
|
$("#z_wentiyi").css("color", "#009933 ")
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($("#daanyi").val().replace(/(^\s*)|(\s*$)/g, "") == "") {
|
|
|
|
|
|
$("#z_zhanghao").css("color", "red ")
|
|
|
|
|
|
$("#z_daanyi").text("答案不能为空!");
|
|
|
|
|
|
return false;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
$("#z_daanyi").text("答案可使用!");
|
|
|
|
|
|
$("#z_daanyi").css("color", "#009933 ")
|
|
|
|
|
|
}
|
|
|
|
|
|
if ($("#wentier").val().replace(/(^\s*)|(\s*$)/g, "") == "") {
|
|
|
|
|
|
$("#z_zhanghao").css("color", "red ")
|
|
|
|
|
|
$("#z_wentier").text("问题不能为空!");
|
|
|
|
|
|
return false;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
$("#z_wentier").text("问题可使用!");
|
|
|
|
|
|
$("#z_wentier").css("color", "#009933 ")
|
|
|
|
|
|
}
|
|
|
|
|
|
if ($("#daaner").val().replace(/(^\s*)|(\s*$)/g, "") == "") {
|
|
|
|
|
|
$("#z_daaner").text("答案不能为空!");
|
|
|
|
|
|
$("#z_zhanghao").css("color", "red ")
|
|
|
|
|
|
return false;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
$("#z_daaner").text("答案可使用!");
|
|
|
|
|
|
$("#z_daaner").css("color", "#009933 ")
|
|
|
|
|
|
}
|
|
|
|
|
|
var zhms = Common_gsmima.chamima($("#zhanghao").val(), $("#yhmima").val()).value;
|
|
|
|
|
|
if (zhms > 0) {
|
|
|
|
|
|
$("#z_yhmima").html("密码匹配!");
|
|
|
|
|
|
$("#z_yhmima").css("color", "#009933 ")
|
|
|
|
|
|
} else {
|
|
|
|
|
|
$("#z_yhmima").html("密码错误!");
|
|
|
|
|
|
$("#z_zhanghao").css("color", "red ")
|
|
|
|
|
|
return false;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
var fanhuicount = Common_gsmima.serchmingcheng($("#zhanghao").val()).value;
|
|
|
|
|
|
$("#wentiyi").val(Common_gsmima.seleectqus($("#zhanghao").val(), $("#yhmima").val()).value);
|
|
|
|
|
|
$("#wentier").val(Common_gsmima.seleectqus2($("#zhanghao").val(), $("#yhmima").val()).value);
|
|
|
|
|
|
if (fanhuicount > 0) {
|
|
|
|
|
|
$("#z_zhanghao").html("账号匹配成功!");
|
|
|
|
|
|
$("#z_zhanghao").css("color", "#009933 ")
|
|
|
|
|
|
} else {
|
|
|
|
|
|
$("#z_zhanghao").html("请重新确认账号!");
|
|
|
|
|
|
$("#z_zhanghao").css("color", "red ")
|
|
|
|
|
|
return false;
|
|
|
|
|
|
}
|
|
|
|
|
|
if ($("#wentiyi").val().replace(/(^\s*)|(\s*$)/g, "") == "") {
|
|
|
|
|
|
$("#z_zhanghao").css("color", "red ")
|
|
|
|
|
|
$("#z_wentiyi").text("没有问题可验证!");
|
|
|
|
|
|
return false;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
$("#z_wentiyi").text("");
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
if ($("#wentier").val().replace(/(^\s*)|(\s*$)/g, "") == "") {
|
|
|
|
|
|
$("#z_wentier").text("没有问题可验证!");
|
|
|
|
|
|
$("#z_zhanghao").css("color", "red ")
|
|
|
|
|
|
return false;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
$("#z_wentier").text("");
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($("#daanyi").val().replace(/(^\s*)|(\s*$)/g, "") == "") {
|
|
|
|
|
|
$("#z_daanyi").text("答案不能为空!");
|
|
|
|
|
|
$("#z_zhanghao").css("color", "red ")
|
|
|
|
|
|
return false;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
$("#z_daanyi").text("答案等待匹配!");
|
|
|
|
|
|
$("#z_daanyi").css("color", "#009933 ");
|
|
|
|
|
|
}
|
|
|
|
|
|
if ($("#daaner").val().replace(/(^\s*)|(\s*$)/g, "") == "") {
|
|
|
|
|
|
$("#z_daaner").text("答案不能为空!");
|
|
|
|
|
|
$("#z_zhanghao").css("color", "red ")
|
|
|
|
|
|
return false;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
$("#z_daaner").text("答案等待匹配!");
|
|
|
|
|
|
$("#z_daaner").css("color", "#009933 ");
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($("#qmima").val().replace(/(^\s*)|(\s*$)/g, "") != "") {
|
|
|
|
|
|
if ($("#xmima").val() != $("#qmima").val()) {
|
|
|
|
|
|
$("#z_zhanghao").css("color", "red ")
|
|
|
|
|
|
$("#z_qmima").text("两次密码输入不一致");
|
|
|
|
|
|
return false;
|
|
|
|
|
|
}
|
|
|
|
|
|
else {
|
|
|
|
|
|
|
|
|
|
|
|
$("#z_qmima").text("等待匹配");
|
|
|
|
|
|
$("#z_qmima").css("color", "#009933 ");
|
|
|
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
|
|
$("#z_qmima").text("");
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function xuan(x) {
|
|
|
|
|
|
if (x == 1) {
|
|
|
|
|
|
|
|
|
|
|
|
$("#mm1").css("display", "");
|
|
|
|
|
|
$("#mm2").css("display", "");
|
|
|
|
|
|
$("#mm").css("display", "none");
|
|
|
|
|
|
$("#wentiyi").attr("readonly", "readonly");
|
|
|
|
|
|
$("#wentier").attr("readonly", "readonly");
|
|
|
|
|
|
$("#wentiyi").css("background-color", "Gray");
|
|
|
|
|
|
$("#wentier").css("background-color", "Gray");
|
|
|
|
|
|
// gaimi();
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
|
|
$("#mm1").css("display", "none");
|
|
|
|
|
|
$("#mm2").css("display", "none");
|
|
|
|
|
|
$("#mm").css("display", "");
|
|
|
|
|
|
$("#wentiyi").removeAttr("readonly");
|
|
|
|
|
|
$("#wentier").removeAttr("readonly");
|
|
|
|
|
|
$("#wentiyi").css("background-color", "#ffffff");
|
|
|
|
|
|
$("#wentier").css("background-color", "#ffffff");
|
|
|
|
|
|
//jiami();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|