1837 lines
75 KiB
JavaScript
1837 lines
75 KiB
JavaScript
function pwdLevel(value) {
|
||
var pattern_1 = /^.*([\W_])+.*$/i;
|
||
var pattern_2 = /^.*([a-zA-Z])+.*$/i;
|
||
var pattern_3 = /^.*([0-9])+.*$/i;
|
||
var level = 0;
|
||
if (value.length > 10) {
|
||
level++;
|
||
}
|
||
if (pattern_1.test(value)) {
|
||
level++;
|
||
}
|
||
if (pattern_2.test(value)) {
|
||
level++;
|
||
}
|
||
if (pattern_3.test(value)) {
|
||
level++;
|
||
}
|
||
if (level > 3) {
|
||
level = 3;
|
||
}
|
||
return level;
|
||
}
|
||
// ÐÝÃß
|
||
function sleepm(numberMillis) {
|
||
var now = new Date();
|
||
var exitTime = now.getTime() + numberMillis;
|
||
while (true) {
|
||
now = new Date();
|
||
if (now.getTime() > exitTime) return;
|
||
}
|
||
}
|
||
var weakPwdArray = ["123456", "123456789", "111111", "5201314", "12345678", "123123", "password", "1314520", "123321", "7758521", "1234567", "5211314", "666666", "520520", "woaini", "520131", "11111111", "888888", "hotmail.com", "112233", "123654", "654321", "1234567890", "a123456", "88888888", "163.com", "000000", "yahoo.com.cn", "sohu.com", "yahoo.cn", "111222tianya", "163.COM", "tom.com", "139.com", "wangyut2", "pp.com", "yahoo.com", "147258369", "123123123", "147258", "987654321", "100200", "zxcvbnm", "123456a", "521521", "7758258", "111222", "110110", "1314521", "11111111", "12345678", "a321654", "111111", "123123", "5201314", "00000000", "q123456", "123123123", "aaaaaa", "a123456789", "qq123456", "11112222", "woaini1314", "a123123", "a111111", "123321", "a5201314", "z123456", "liuchang", "a000000", "1314520", "asd123", "88888888", "1234567890", "7758521", "1234567", "woaini520", "147258369", "123456789a", "woaini123", "q1q1q1q1", "a12345678", "qwe123", "123456q", "121212", "asdasd", "999999", "1111111", "123698745", "137900", "159357", "iloveyou", "222222", "31415926", "123456", "111111", "123456789", "123123", "9958123", "woaini521", "5201314", "18n28n24a5", "abc123", "password", "123qwe", "123456789", "12345678", "11111111", "dearbook", "00000000", "123123123", "1234567890", "88888888", "111111111", "147258369", "987654321", "aaaaaaaa", "1111111111", "66666666", "a123456789", "11223344", "1qaz2wsx", "xiazhili", "789456123", "password", "87654321", "qqqqqqqq", "000000000", "qwertyuiop", "qq123456", "iloveyou", "31415926", "12344321", "0000000000", "asdfghjkl", "1q2w3e4r", "123456abc", "0123456789", "123654789", "12121212", "qazwsxedc", "abcd1234", "12341234", "110110110", "asdasdasd", "123456", "22222222", "123321123", "abc123456", "a12345678", "123456123", "a1234567", "1234qwer", "qwertyui", "123456789a", "qq.com", "369369", "163.com", "ohwe1zvq", "xiekai1121", "19860210", "1984130", "81251310", "502058", "162534", "690929", "601445", "1814325", "as1230", "zz123456", "280213676", "198773", "4861111", "328658", "19890608", "198428", "880126", "6516415", "111213", "195561", "780525", "6586123", "caonima99", "168816", "123654987", "qq776491", "hahabaobao", "198541", "540707", "leqing123", "5403693", "123456", "123456789", "111111", "5201314", "123123", "12345678", "1314520", "123321", "7758521", "1234567", "5211314", "520520", "woaini", "520131", "666666", "RAND#a#8", "hotmail.com", "112233", "123654", "888888", "654321", "1234567890", "a123456"];
|
||
|
||
function verc() {
|
||
$("#JD_Verification1").click();
|
||
}
|
||
function verc2() {
|
||
$("#JD_Verification2").click();
|
||
}
|
||
var validateRegExp = {
|
||
decmal: "^([+-]?)\\d*\\.\\d+$",
|
||
// ¸¡µãÊý
|
||
decmal1: "^[1-9]\\d*.\\d*|0.\\d*[1-9]\\d*$",
|
||
// Õý¸¡µãÊý
|
||
decmal2: "^-([1-9]\\d*.\\d*|0.\\d*[1-9]\\d*)$",
|
||
// ¸º¸¡µãÊý
|
||
decmal3: "^-?([1-9]\\d*.\\d*|0.\\d*[1-9]\\d*|0?.0+|0)$",
|
||
// ¸¡µãÊý
|
||
decmal4: "^[1-9]\\d*.\\d*|0.\\d*[1-9]\\d*|0?.0+|0$",
|
||
// ·Ç¸º¸¡µãÊý£¨Õý¸¡µãÊý + 0£©
|
||
decmal5: "^(-([1-9]\\d*.\\d*|0.\\d*[1-9]\\d*))|0?.0+|0$",
|
||
// ·ÇÕý¸¡µãÊý£¨¸º¸¡µãÊý +
|
||
// 0£©
|
||
intege: "^-?[1-9]\\d*$",
|
||
// ÕûÊý
|
||
intege1: "^[1-9]\\d*$",
|
||
// ÕýÕûÊý
|
||
intege2: "^-[1-9]\\d*$",
|
||
// ¸ºÕûÊý
|
||
num: "^([+-]?)\\d*\\.?\\d+$",
|
||
// Êý×Ö
|
||
num1: "^[1-9]\\d*|0$",
|
||
// ÕýÊý£¨ÕýÕûÊý + 0£©
|
||
num2: "^-[1-9]\\d*|0$",
|
||
// ¸ºÊý£¨¸ºÕûÊý + 0£©
|
||
ascii: "^[\\x00-\\xFF]+$",
|
||
// ½öACSII×Ö·û
|
||
chinese: "^[\\u4e00-\\u9fa5]+$",
|
||
// ½öÖÐÎÄ
|
||
color: "^[a-fA-F0-9]{6}$",
|
||
// ÑÕÉ«
|
||
date: "^\\d{4}(\\-|\\/|\.)\\d{1,2}\\1\\d{1,2}$",
|
||
// ÈÕÆÚ
|
||
email: "^\\w+((-\\w+)|(\\.\\w+))*\\@[A-Za-z0-9]+((\\.|-)[A-Za-z0-9]+)*\\.[A-Za-z0-9]+$",
|
||
// Óʼþ
|
||
idcard: "^[1-9]([0-9]{14}|[0-9]{17})$",
|
||
// Éí·ÝÖ¤
|
||
ip4: "^(25[0-5]|2[0-4]\\d|[0-1]\\d{2}|[1-9]?\\d)\\.(25[0-5]|2[0-4]\\d|[0-1]\\d{2}|[1-9]?\\d)\\.(25[0-5]|2[0-4]\\d|[0-1]\\d{2}|[1-9]?\\d)\\.(25[0-5]|2[0-4]\\d|[0-1]\\d{2}|[1-9]?\\d)$",
|
||
// ipµØÖ·
|
||
letter: "^[A-Za-z]+$",
|
||
// ×Öĸ
|
||
letter_l: "^[a-z]+$",
|
||
// Сд×Öĸ
|
||
letter_u: "^[A-Z]+$",
|
||
// ´óд×Öĸ
|
||
mobile: "^0?(13|15|18|14|17)[0-9]{9}$",
|
||
// ÊÖ»ú
|
||
notempty: "^\\S+$",
|
||
// ·Ç¿Õ
|
||
password: "^.*[A-Za-z0-9\\w_-]+.*$",
|
||
// ÃÜÂë
|
||
fullNumber: "^[0-9]+$",
|
||
// Êý×Ö
|
||
picture: "(.*)\\.(jpg|bmp|gif|ico|pcx|jpeg|tif|png|raw|tga)$",
|
||
// ͼƬ
|
||
qq: "^[1-9]*[1-9][0-9]*$",
|
||
// QQºÅÂë
|
||
rar: "(.*)\\.(rar|zip|7zip|tgz)$",
|
||
// ѹËõÎļþ
|
||
tel: "^[0-9\-()£¨£©]{7,18}$",
|
||
// µç»°ºÅÂëµÄº¯Êý(°üÀ¨ÑéÖ¤¹úÄÚÇøºÅ,¹ú¼ÊÇøºÅ,·Ö»úºÅ)
|
||
url: "^http[s]?:\\/\\/([\\w-]+\\.)+[\\w-]+([\\w-./?%&=]*)?$",
|
||
// url
|
||
username: "^[A-Za-z0-9_\\-\\u4e00-\\u9fa5]+$",
|
||
// »§Ãû
|
||
deptname: "^[A-Za-z0-9_()£¨£©\\-\\u4e00-\\u9fa5]+$",
|
||
// µ¥Î»Ãû
|
||
zipcode: "^\\d{6}$",
|
||
// Óʱà
|
||
realname: "^[A-Za-z\\u4e00-\\u9fa5]+$",
|
||
// ÕæÊµÐÕÃû
|
||
companyname: "^[A-Za-z0-9_()£¨£©\\-\\u4e00-\\u9fa5]+$",
|
||
companyaddr: "^[A-Za-z0-9_()£¨£©\\#\\-\\u4e00-\\u9fa5]+$",
|
||
companysite: "^http[s]?:\\/\\/([\\w-]+\\.)+[\\w-]+([\\w-./?%&#=]*)?$"
|
||
};
|
||
// Ö÷º¯Êý
|
||
(function($) {
|
||
$.fn.jdValidate = function(option, callback, def) {
|
||
var ele = this;
|
||
var id = ele.attr("id");
|
||
var type = ele.attr("type");
|
||
var rel = ele.attr("rel");
|
||
var _onFocus = $("#" + id + validateSettings.onFocus.container);
|
||
var _succeed = $("#" + id + validateSettings.succeed.container);
|
||
var _isNull = $("#" + id + validateSettings.isNull.container);
|
||
var _error = $("#" + id + validateSettings.error.container);
|
||
if (def == true) {
|
||
var str = ele.val();
|
||
var tag = ele.attr("sta");
|
||
if (str == "" || str == "-1") {
|
||
validateSettings.isNull.run({
|
||
prompts: option,
|
||
element: ele,
|
||
isNullEle: _isNull,
|
||
succeedEle: _succeed
|
||
},
|
||
option.isNull);
|
||
} else if (tag == 1 || tag == 2) {
|
||
return;
|
||
} else {
|
||
callback({
|
||
prompts: option,
|
||
element: ele,
|
||
value: str,
|
||
errorEle: _error,
|
||
succeedEle: _succeed
|
||
});
|
||
}
|
||
} else {
|
||
if (typeof def == "string") {
|
||
ele.val(def);
|
||
}
|
||
if (type == "checkbox" || type == "radio") {
|
||
if (ele.attr("checked") == true) {
|
||
ele.attr("sta", validateSettings.succeed.state);
|
||
}
|
||
}
|
||
switch (type) {
|
||
case "text":
|
||
case "password":
|
||
ele.bind("focus",
|
||
function() {
|
||
var str = ele.val();
|
||
if (str == def) {
|
||
ele.val("");
|
||
}
|
||
validateSettings.onFocus.run({
|
||
prompts: option,
|
||
element: ele,
|
||
value: str,
|
||
onFocusEle: _onFocus,
|
||
succeedEle: _succeed
|
||
},
|
||
option.onFocus, option.onFocusExpand);
|
||
}).bind("blur",
|
||
function() {
|
||
var str = ele.val();
|
||
if (str == "") {
|
||
ele.val(def);
|
||
}
|
||
if (validateRules.isNull(str)) {
|
||
validateSettings.isNull.run({
|
||
prompts: option,
|
||
element: ele,
|
||
value: str,
|
||
isNullEle: _isNull,
|
||
succeedEle: _succeed
|
||
},
|
||
"");
|
||
} else {
|
||
callback({
|
||
prompts: option,
|
||
element: ele,
|
||
value: str,
|
||
errorEle: _error,
|
||
isNullEle: _isNull,
|
||
succeedEle: _succeed
|
||
});
|
||
}
|
||
});
|
||
break;
|
||
default:
|
||
if (rel && rel == "select") {
|
||
ele.bind("change",
|
||
function() {
|
||
var str = ele.val();
|
||
callback({
|
||
prompts: option,
|
||
element: ele,
|
||
value: str,
|
||
errorEle: _error,
|
||
isNullEle: _isNull,
|
||
succeedEle: _succeed
|
||
});
|
||
})
|
||
} else {
|
||
ele.bind("click",
|
||
function() {
|
||
callback({
|
||
prompts: option,
|
||
element: ele,
|
||
errorEle: _error,
|
||
isNullEle: _isNull,
|
||
succeedEle: _succeed
|
||
});
|
||
})
|
||
}
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
})(jQuery);
|
||
|
||
// ÅäÖÃ
|
||
var validateSettings = {
|
||
onFocus: {
|
||
state: null,
|
||
container: "_error",
|
||
style: "focus",
|
||
run: function(option, str, expands) {
|
||
if (!validateRules.checkType(option.element)) {
|
||
option.element.removeClass(validateSettings.INPUT_style2).addClass(validateSettings.INPUT_style1);
|
||
}
|
||
option.succeedEle.removeClass(validateSettings.succeed.style);
|
||
option.onFocusEle.removeClass().addClass(validateSettings.onFocus.style).html(str);
|
||
if (expands) {
|
||
expands();
|
||
}
|
||
}
|
||
},
|
||
isNull: {
|
||
state: 0,
|
||
container: "_error",
|
||
style: "null",
|
||
run: function(option, str) {
|
||
option.element.attr("sta", 0);
|
||
if (!validateRules.checkType(option.element)) {
|
||
if (str == "") {
|
||
option.element.removeClass(validateSettings.INPUT_style2).removeClass(validateSettings.INPUT_style1);
|
||
} else {
|
||
option.element.removeClass(validateSettings.INPUT_style1).addClass(validateSettings.INPUT_style2);
|
||
}
|
||
}
|
||
|
||
option.succeedEle.removeClass(validateSettings.succeed.style);
|
||
if (str == "") {
|
||
option.isNullEle.removeClass().addClass(validateSettings.isNull.style).html(str);
|
||
} else {
|
||
option.isNullEle.removeClass().addClass(validateSettings.error.style).html(str);
|
||
}
|
||
}
|
||
},
|
||
error: {
|
||
state: 1,
|
||
container: "_error",
|
||
style: "error",
|
||
run: function(option, str) {
|
||
option.element.attr("sta", 1);
|
||
if (!validateRules.checkType(option.element)) {
|
||
option.element.removeClass(validateSettings.INPUT_style1).addClass(validateSettings.INPUT_style2);
|
||
}
|
||
|
||
option.succeedEle.removeClass(validateSettings.succeed.style);
|
||
option.errorEle.removeClass().addClass(validateSettings.error.style).html(str);
|
||
}
|
||
},
|
||
succeed: {
|
||
state: 2,
|
||
container: "_succeed",
|
||
style: "succeed",
|
||
run: function(option) {
|
||
option.element.attr("sta", 2);
|
||
option.errorEle.empty();
|
||
if (!validateRules.checkType(option.element)) {
|
||
option.element.removeClass(validateSettings.INPUT_style1).removeClass(validateSettings.INPUT_style2);
|
||
}
|
||
|
||
option.succeedEle.addClass(validateSettings.succeed.style);
|
||
option.errorEle.removeClass();
|
||
}
|
||
},
|
||
INPUT_style1: "highlight1",
|
||
INPUT_style2: "highlight2"
|
||
}
|
||
|
||
// ÑéÖ¤¹æÔò
|
||
var validateRules = {
|
||
isNull: function(str) {
|
||
return (str == "" || typeof str != "string");
|
||
},
|
||
betweenLength: function(str, _min, _max) {
|
||
return (str.length >= _min && str.length <= _max);
|
||
},
|
||
isUid: function(str) {
|
||
return new RegExp(validateRegExp.username).test(str);
|
||
},
|
||
fullNumberName: function(str) {
|
||
return new RegExp(validateRegExp.fullNumber).test(str);
|
||
},
|
||
isPwd: function(str) {
|
||
return /^.*([\W_a-zA-z0-9-])+.*$/i.test(str);
|
||
},
|
||
isPwdRepeat: function(str1, str2) {
|
||
return (str1 == str2);
|
||
},
|
||
isEmail: function(str) {
|
||
return new RegExp(validateRegExp.email).test(str);
|
||
},
|
||
isTel: function(str) {
|
||
return new RegExp(validateRegExp.tel).test(str);
|
||
},
|
||
isMobile: function(str) {
|
||
return new RegExp(validateRegExp.mobile).test(str);
|
||
},
|
||
checkType: function(element) {
|
||
return (element.attr("type") == "checkbox" || element.attr("type") == "radio" || element.attr("rel") == "select");
|
||
},
|
||
isRealName: function(str) {
|
||
return new RegExp(validateRegExp.realname).test(str);
|
||
},
|
||
isCompanyname: function(str) {
|
||
return new RegExp(validateRegExp.companyname).test(str);
|
||
},
|
||
isCompanyaddr: function(str) {
|
||
return new RegExp(validateRegExp.companyaddr).test(str);
|
||
},
|
||
isCompanysite: function(str) {
|
||
return new RegExp(validateRegExp.companysite).test(str);
|
||
},
|
||
simplePwd: function(str) {
|
||
// var pin = $("#regName").val();
|
||
// if (pin.length > 0) {
|
||
// pin = strTrim(pin);
|
||
// if (pin == str) {
|
||
// return true;
|
||
// }
|
||
// }
|
||
return pwdLevel(str) == 1;
|
||
},
|
||
weakPwd: function(str) {
|
||
for (var i = 0; i < weakPwdArray.length; i++) {
|
||
if (weakPwdArray[i] == str) {
|
||
return true;
|
||
}
|
||
}
|
||
return false;
|
||
}
|
||
};
|
||
// ÑéÖ¤Îı¾
|
||
var validatePrompt = {
|
||
regName: {
|
||
//onFocus: "4-20λ×Ö·û£¬Ö§³ÖÖÐÓ¢ÎÄ¡¢Êý×Ö¼°\"-\"¡¢\"_\"×éºÏ",
|
||
onFocus:"4-20λ×Ö·û,Ö§³Öºº×Ö¡¢×Öĸ¡¢Êý×Ö¼°\"-\"¡¢\"_\"×éºÏ",
|
||
succeed: "",
|
||
isNull: "ÇëÊäÈëÓû§Ãû",
|
||
error: {
|
||
beUsed: "¸ÃÓû§ÃûÒѱ»Ê¹Óã¬ÇëÖØÐÂÊäÈë¡£Èç¹ûÄúÊǸÃÓû§£¬ÇëÁ¢¿Ì<a href='https://passport.jd.com/uc/login' class='flk13'>µÇ¼</a>",
|
||
badLength: "Óû§Ãû³¤¶ÈÖ»ÄÜÔÚ4-20λ×Ö·ûÖ®¼ä",
|
||
badFormat: "Óû§ÃûÖ»ÄÜÓÉÖÐÎÄ¡¢Ó¢ÎÄ¡¢Êý×Ö¼°\"-\"¡¢\"_\"×é³É",
|
||
fullNumberName: "Óû§Ãû²»ÄÜÊÇ´¿Êý×Ö£¬ÇëÖØÐÂÊäÈë"
|
||
},
|
||
onFocusExpand: function() {
|
||
$("#morePinDiv").removeClass().addClass("intelligent-error hide");
|
||
}
|
||
},
|
||
|
||
pwd: {
|
||
onFocus: "<span>6-20λ×Ö·û£¬½¨ÒéÓÉ×Öĸ£¬Êý×ֺͷûºÅÁ½ÖÖÒÔÉÏ×éºÏ</span>",
|
||
succeed: "",
|
||
isNull: "ÇëÊäÈëÃÜÂë",
|
||
error: {
|
||
badLength: "ÃÜÂ볤¶ÈÖ»ÄÜÔÚ6-20λ×Ö·ûÖ®¼ä",
|
||
badFormat: "ÃÜÂëÖ»ÄÜÓÉÓ¢ÎÄ¡¢Êý×Ö¼°±êµã·ûºÅ×é³É",
|
||
simplePwd: "<span>¸ÃÃÜÂë±È½Ï¼òµ¥£¬Óб»µÁ·çÏÕ£¬½¨ÒéÄú¸ü¸ÄΪ¸´ÔÓÃÜÂ룬Èç×Öĸ+Êý×ÖµÄ×éºÏ</span>",
|
||
weakPwd: "<span>¸ÃÃÜÂë±È½Ï¼òµ¥£¬Óб»µÁ·çÏÕ£¬½¨ÒéÄú¸ü¸ÄΪ¸´ÔÓÃÜÂë</span>"
|
||
},
|
||
onFocusExpand: function() {
|
||
$("#pwdstrength").hide();
|
||
}
|
||
},
|
||
pwdRepeat: {
|
||
onFocus: "ÇëÔÙ´ÎÊäÈëÃÜÂë",
|
||
succeed: "",
|
||
isNull: "ÇëÈ·ÈÏÃÜÂë",
|
||
error: {
|
||
badLength: "ÃÜÂ볤¶ÈÖ»ÄÜÔÚ6-20λ×Ö·ûÖ®¼ä",
|
||
badFormat2: "Á½´ÎÊäÈëÃÜÂë²»Ò»ÖÂ",
|
||
badFormat1: "ÃÜÂëÖ»ÄÜÓÉÓ¢ÎÄ¡¢Êý×Ö¼°±êµã·ûºÅ×é³É"
|
||
}
|
||
},
|
||
phone: {
|
||
onFocus: "ÇëÊäÈëÊÖ»úºÅÂë",
|
||
succeed: "",
|
||
isNull: "ÇëÊäÈëÊÖ»úºÅÂë",
|
||
error: ""
|
||
},
|
||
protocol: {
|
||
onFocus: "",
|
||
succeed: "",
|
||
isNull: "ÇëÏÈÔĶÁ²¢Í¬Òâ¡¶¾©¶«Óû§×¢²áÐÒé¡·",
|
||
error: ""
|
||
},
|
||
empty: {
|
||
onFocus: "",
|
||
succeed: "",
|
||
isNull: "",
|
||
error: ""
|
||
}
|
||
};
|
||
|
||
var nameold, morePinOld, emailResult;
|
||
var namestate = false;
|
||
// »Øµ÷º¯Êý
|
||
var validateFunction = {
|
||
regName: function(option) {
|
||
$("#intelligent-regName").empty().hide();
|
||
var regName = option.value;
|
||
if (validateRules.isNull(regName) || regName == '') {
|
||
option.element.removeClass(validateSettings.INPUT_style2).removeClass(validateSettings.INPUT_style1);
|
||
$("#regName_error").removeClass().empty();
|
||
return;
|
||
}
|
||
$("#authcodeDiv").show();
|
||
checkPin(option);
|
||
},
|
||
|
||
pwd: function(option) {
|
||
var str1 = option.value;
|
||
var regName = $("#regName").val();
|
||
if ((validateRules.isNull(regName) == false) && (regName != '') && regName == str1) {
|
||
$("#pwdstrength").hide();
|
||
validateSettings.error.run(option, "<span>ÄúµÄÃÜÂëÓëÕË»§ÐÅÏ¢Ì«ÖØºÏ£¬Óб»µÁ·çÏÕ£¬Çë»»Ò»¸öÃÜÂë</span>");
|
||
return;
|
||
}
|
||
|
||
//var str2 = $("#pwdRepeat").val();
|
||
$("#pwdRepeat").blur();
|
||
var format = validateRules.isPwd(option.value);
|
||
var length = validateRules.betweenLength(option.value, 6, 20);
|
||
|
||
$("#pwdstrength").hide();
|
||
if (!length && format) {
|
||
validateSettings.error.run(option, option.prompts.error.badLength);
|
||
} else if (!length && !format) {
|
||
validateSettings.error.run(option, option.prompts.error.badFormat);
|
||
} else if (length && !format) {
|
||
validateSettings.error.run(option, option.prompts.error.badFormat);
|
||
} else if (validateRules.weakPwd(str1)) {
|
||
validateSettings.error.run(option, option.prompts.error.weakPwd);
|
||
} else {
|
||
|
||
validateSettings.succeed.run(option);
|
||
validateFunction.pwdstrength();
|
||
if (validateRules.simplePwd(str1)) {
|
||
$("#pwd_error").removeClass().addClass("focus");
|
||
$("#pwd_error").empty().html(option.prompts.error.simplePwd);
|
||
return;
|
||
}
|
||
}
|
||
// if (str2 == str1) {
|
||
// $("#pwdRepeat").focus();
|
||
// }
|
||
},
|
||
pwdRepeat: function(option) {
|
||
var str1 = option.value;
|
||
var str2 = $("#pwd").val();
|
||
var length = validateRules.betweenLength(option.value, 6, 20);
|
||
var format2 = validateRules.isPwdRepeat(str1, str2);
|
||
var format1 = validateRules.isPwd(str1);
|
||
if (!length) {
|
||
validateSettings.error.run(option, option.prompts.error.badLength);
|
||
} else {
|
||
if (!format1) {
|
||
validateSettings.error.run(option, option.prompts.error.badFormat1);
|
||
} else {
|
||
if (!format2) {
|
||
validateSettings.error.run(option, option.prompts.error.badFormat2);
|
||
} else {
|
||
validateSettings.succeed.run(option);
|
||
}
|
||
}
|
||
}
|
||
},
|
||
// mobileCode: function(option) {
|
||
// var bool = validateRules.isNull(option.value);
|
||
// if (bool) {
|
||
// validateSettings.error.run(option, option.prompts.error);
|
||
// return;
|
||
// } else {
|
||
// validateSettings.succeed.run(option);
|
||
// }
|
||
// },
|
||
protocol: function(option) {
|
||
if (option.element.attr("checked") == true) {
|
||
option.element.attr("sta", validateSettings.succeed.state);
|
||
option.errorEle.html("");
|
||
} else {
|
||
option.element.attr("sta", validateSettings.isNull.state);
|
||
option.succeedEle.removeClass(validateSettings.succeed.style);
|
||
}
|
||
},
|
||
pwdstrength: function() {
|
||
var element = $("#pwdstrength");
|
||
var value = $("#pwd").val();
|
||
if (value.length >= 6 && validateRules.isPwd(value)) {
|
||
$("#pwd_error").removeClass('focus');
|
||
$("#pwd_error").empty();
|
||
element.show();
|
||
var level = pwdLevel(value);
|
||
switch (level) {
|
||
case 1:
|
||
element.removeClass().addClass("strengthA");
|
||
break;
|
||
case 2:
|
||
element.removeClass().addClass("strengthB");
|
||
break;
|
||
case 3:
|
||
element.removeClass().addClass("strengthC");
|
||
break;
|
||
default:
|
||
break;
|
||
}
|
||
} else {
|
||
element.hide();
|
||
}
|
||
},
|
||
checkGroup: function(elements) {
|
||
for (var i = 0; i < elements.length; i++) {
|
||
if (elements[i].checked) {
|
||
return true;
|
||
}
|
||
}
|
||
return false;
|
||
},
|
||
checkSelectGroup: function(elements) {
|
||
for (var i = 0; i < elements.length; i++) {
|
||
if (elements[i].value == -1) {
|
||
return false;
|
||
}
|
||
}
|
||
return true;
|
||
},
|
||
|
||
FORM_submit: function(elements) {
|
||
var bool = true;
|
||
for (var i = 0; i < elements.length; i++) {
|
||
if ($(elements[i]).attr("sta") == 2) {
|
||
bool = true;
|
||
} else {
|
||
bool = false;
|
||
break;
|
||
}
|
||
}
|
||
|
||
return bool;
|
||
}
|
||
};
|
||
|
||
// ¼ì²éÓû§Ãû
|
||
var checkpin = -10;
|
||
function checkPin(option) {
|
||
var pin = option.value;
|
||
if (!validateRules.betweenLength(pin.replace(/[^\x00-\xff]/g, "**"), 4, 20)) {
|
||
validateSettings.error.run(option, option.prompts.error.badLength);
|
||
return false;
|
||
}
|
||
|
||
if (!validateRules.isUid(pin)) {
|
||
validateSettings.error.run(option, option.prompts.error.badFormat);
|
||
return;
|
||
}
|
||
if (validateRules.fullNumberName(pin)) {
|
||
validateSettings.error.run(option, option.prompts.error.fullNumberName);
|
||
return;
|
||
}
|
||
if (!namestate || nameold != pin) {
|
||
if (nameold != pin) {
|
||
nameold = pin;
|
||
option.errorEle.html("<em style='color:#999'>¼ìÑéÖС¡</em>");
|
||
$.getJSON("../validateuser/isPinEngaged?pin=" + escape(pin) + "&r=" + Math.random(),
|
||
function(date) {
|
||
checkpin = date.success;
|
||
if (date.success == 0) {
|
||
validateSettings.succeed.run(option);
|
||
namestate = true;
|
||
} else if (date.success == 2) {
|
||
validateSettings.error.run(option, "Óû§Ãû°üº¬ÁË·Ç·¨´Ê");
|
||
namestate = false;
|
||
} else {
|
||
validateSettings.error.run(option, "<span>" + option.prompts.error.beUsed.replace("{1}", option.value) + "</span>");
|
||
namestate = false;
|
||
morePinOld = date.morePin;
|
||
if (date.morePin != null && date.morePin.length > 0) {
|
||
var html = ""
|
||
for (var i = 0; i < date.morePin.length; i++) {
|
||
html += "<div class='item-fore'><input name='morePinRadio' onclick='selectMe(this);' type='radio' class='radio' value='" + date.morePin[i] + "'/><label>" + date.morePin[i] + "</label></div>"
|
||
}
|
||
$("#morePinGroom").empty();
|
||
$("#morePinGroom").html(html);
|
||
$("#morePinDiv").removeClass().addClass("intelligent-error");
|
||
}
|
||
}
|
||
});
|
||
} else {
|
||
|
||
if (checkpin == 2) {
|
||
validateSettings.error.run(option, "Óû§Ãû°üº¬ÁË·Ç·¨´Ê");
|
||
} else {
|
||
validateSettings.error.run(option, "<span>" + option.prompts.error.beUsed.replace("{1}", option.value) + "</span>");
|
||
if (morePinOld != null && morePinOld.length > 0) {
|
||
$("#morePinDiv").removeClass().addClass("intelligent-error");
|
||
}
|
||
}
|
||
namestate = false;
|
||
}
|
||
} else {
|
||
validateSettings.succeed.run(option);
|
||
}
|
||
}
|
||
|
||
function selectMe(option) {
|
||
$("#morePinDiv").removeClass().addClass("intelligent-error hide");
|
||
$("#regName").val(option.value);
|
||
$("#regName").blur();
|
||
}
|
||
// Ö÷Á÷³Ì·¢ËÍÊÖ»úÑéÖ¤Âë
|
||
function sendMobileCode() {
|
||
if ($("#sendMobileCode").attr("disabled")) {
|
||
return;
|
||
}
|
||
mobileCodeHide();
|
||
var mobile = $("#phone").val();
|
||
if (validateRules.isNull(mobile)) {
|
||
$("#phone_error").removeClass().addClass("error").html("ÇëÊäÈëÊÖ»úºÅ");
|
||
$("#phone_error").show();
|
||
return;
|
||
}
|
||
if (!validateRules.isMobile(mobile)) {
|
||
$("#phone_error").removeClass().addClass("error").html("ÊÖ»úºÅÂë¸ñʽÓÐÎó£¬ÇëÊäÈëÕýÈ·µÄÊÖ»úºÅ");
|
||
$("#phone_error").show();
|
||
return;
|
||
}
|
||
$('#mobileCode').removeClass("highlight2");
|
||
// ¼ì²âÊÖ»úºÅÂëÊÇ·ñ´æÔÚ
|
||
$.getJSON("../validateuser/isMobileEngaged?mobile=" + mobile + "&r=" + Math.random(),
|
||
function(result) {
|
||
if (result.success == 0) {
|
||
$('#phone').removeClass().addClass("text");
|
||
$("#phone_error").html("");
|
||
$("#phone_error").hide();
|
||
$("#phone_succeed").removeClass().addClass("blank succeed");
|
||
mobileFlags = true;
|
||
sendmCode();
|
||
}
|
||
|
||
if (result.success == 1) {
|
||
$('#phone').removeClass().addClass('text highlight3');
|
||
$("#phone_error").html("ÊÖ»úºÅÒÑ×¢²á£¬¼ÌÐø×¢²á½«ÓëÔÕ˺Žâ°ó");
|
||
$("#phone_error").removeClass().addClass("cue");
|
||
$("#phone_error").show();
|
||
$("#phone_succeed").removeClass().addClass("blank cue-ico");
|
||
mobileFlags = false;
|
||
var state = $("#state").val();
|
||
if (state == "unbind") {
|
||
sendmCode();
|
||
} else {
|
||
mobileEngagedStyle();
|
||
}
|
||
}
|
||
|
||
if (result.success == 2) {
|
||
$('#phone').removeClass().addClass('text highlight2');
|
||
$("#phone_error").html("¸ÃÊÖ»úºÅÒѱ»ÆäËüÕË»§°ó¶¨£¬"+result.ub+"ÌìÄÚ²»¿É¸Ä°ó");
|
||
$("#phone_error").removeClass().addClass("error");
|
||
$("#phone_error").show();
|
||
$("#phone_succeed").removeClass().addClass("");
|
||
mobileFlags = false;
|
||
}
|
||
});
|
||
|
||
}
|
||
// ÊÖ»ú×¢²á·¢ËÍÑéÖ¤Âëtarget
|
||
function sendmCode() {
|
||
if ($("#sendMobileCode").attr("disabled") || delayFlag == false) {
|
||
return;
|
||
}
|
||
var state = $("#state").val();
|
||
if (state != "unbind") {
|
||
$("#rebind").remove();
|
||
$("#mobileCodeDiv").show();
|
||
}
|
||
$("#sendMobileCode").attr("disabled", "disabled");
|
||
jQuery.ajax({
|
||
type: "get",
|
||
url: "../notifyuser/mobileCode?state=" + state + "&mobile=" + $("#phone").val() + "&r=" + Math.random(),
|
||
success: function(result) {
|
||
if (result) {
|
||
var obj = eval(result);
|
||
if (obj.rs == 1 || obj.remain) {
|
||
$("#mobileCode_error").addClass("hide");
|
||
$("#dyMobileButton").html("120ÃëºóÖØÐ»ñÈ¡");
|
||
if (obj.remain) {
|
||
$("#mobileCodeSucMessage").empty().html(obj.remain);
|
||
} else {
|
||
if (state == "unbind") {
|
||
$("#mobileCode_error").removeClass().addClass("cue").empty().html("УÑéÂëÒÑ·¢ËÍ,×¢²á³É¹¦ºóÊÖ»úºÅ½«ÓëÔÕʺŽâ°ó");
|
||
$("#mobileCode_error").show();
|
||
} else {
|
||
$("#mobileCode_error").removeClass().empty().html("ÑéÖ¤ÂëÒÑ·¢ËÍ£¬Çë²éÊÕ¶ÌÐÅ¡£");
|
||
$("#mobileCode_error").show();
|
||
}
|
||
}
|
||
|
||
setTimeout(countDown, 1000);
|
||
$("#sendMobileCode").removeClass().addClass("btn btn-15").attr("disabled", "disabled");
|
||
$("#mobileCode").removeAttr("disabled");
|
||
}
|
||
if (obj.rs == -1) {
|
||
mobileCodeError("ÍøÂ緱棬ÇëÉÔºóÖØÐ»ñÈ¡ÑéÖ¤Âë");
|
||
}
|
||
if (obj.info) {
|
||
if (obj.info == "¸ÃÊÖ»úºÅÒѱ»Ê¹Óã¬Çë¸ü»»ºÅÂë") {
|
||
mobileEngagedStyle();
|
||
} else {
|
||
mobileCodeError(obj.info);
|
||
}
|
||
|
||
}
|
||
|
||
if (obj.rs == -2) {
|
||
mobileCodeError("ÍøÂ緱棬ÇëÉÔºóÖØÐ»ñÈ¡ÑéÖ¤Âë");
|
||
}
|
||
}
|
||
}
|
||
});
|
||
}
|
||
// ÓÊÏäÑéÖ¤·¢ËÍÑéÖ¤Âëtarget
|
||
function sendmCode1() {
|
||
if ($("#sendMobileCode1").attr("disabled") || delayFlag1 == false) {
|
||
return;
|
||
}
|
||
$("#rebind1").remove();
|
||
$("#mobileCodeDiv1").show();
|
||
$("#sendMobileCode1").attr("disabled", "disabled");
|
||
var state = $("#state").val();
|
||
jQuery.ajax({
|
||
type: "get",
|
||
url: "../notifyuser/mobileCode?state=" + state + "&mobile=" + $("#phone1").val() + "&r=" + Math.random(),
|
||
success: function(result) {
|
||
if (result) {
|
||
var obj = eval(result);
|
||
if (obj.rs == 1 || obj.remain) {
|
||
$("#mobileCode1_error").addClass("hide");
|
||
$("#dyMobileButton1").html("120ÃëºóÖØÐ»ñÈ¡");
|
||
if (obj.remain) {
|
||
$("#mobileCodeSucMessage1").empty().html(obj.remain);
|
||
} else {
|
||
if (state == "unbind") {
|
||
$("#mobileCodeSucMessage1").removeClass().addClass("cue").empty().html("УÑéÂëÒÑ·¢ËÍ,×¢²á³É¹¦ºóÊÖ»úºÅ½«ÓëÔÕʺŽâ°ó");
|
||
} else {
|
||
$("#mobileCodeSucMessage1").empty().html("ÑéÖ¤ÂëÒÑ·¢ËÍ£¬Çë²éÊÕ¶ÌÐÅ¡£");
|
||
}
|
||
}
|
||
|
||
setTimeout(countDown1, 1000);
|
||
$("#sendMobileCode1").removeClass().addClass("btn btn-15").attr("disabled", "disabled");
|
||
$("#mobileCode1").removeAttr("disabled");
|
||
}
|
||
if (obj.rs == -1) {
|
||
$("#mobileCode1_error").html("ÍøÂ緱棬ÇëÉÔºóÖØÐ»ñÈ¡ÑéÖ¤Âë");
|
||
$("#mobileCode1_error").removeClass().addClass("error");
|
||
$("#mobileCode1_error").show();
|
||
$("#sendMobileCode1").removeClass().addClass("btn").removeAttr("disabled");
|
||
}
|
||
if (obj.info) {
|
||
if (obj.info == "¸ÃÊÖ»úºÅÒѱ»Ê¹Óã¬Çë¸ü»»ºÅÂë") {
|
||
mobileEngagedStyle1();
|
||
} else {
|
||
$("#mobileCode1_error").html(obj.info);
|
||
$("#mobileCode1_error").removeClass().addClass("error");
|
||
$("#mobileCode1_error").show();
|
||
$("#sendMobileCode1").removeClass().addClass("btn").removeAttr("disabled");
|
||
}
|
||
}
|
||
|
||
if (obj.rs == -2) {
|
||
$("#mobileCode1_error").html("ÍøÂ緱棬ÇëÉÔºóÖØÐ»ñÈ¡ÑéÖ¤Âë");
|
||
$("#mobileCode1_error").removeClass().addClass("error");
|
||
$("#mobileCode1_error").show();
|
||
$("#sendMobileCode1").removeClass().addClass("btn").removeAttr("disabled");
|
||
}
|
||
}
|
||
}
|
||
});
|
||
}
|
||
// ´ÎÁ÷³Ì·¢ËÍÊÖ»úÑéÖ¤Âë
|
||
function sendMobileCode1() {
|
||
if ($("#sendMobileCode1").attr("disabled")) {
|
||
return;
|
||
}
|
||
var mobile = $("#phone1").val();
|
||
if (validateRules.isNull(mobile)) {
|
||
$('#phone1').addClass('highlight2');
|
||
$("#phone1_succeed").removeClass().addClass("blank error-ico");
|
||
$("#phone1_error").removeClass().addClass("error").html("ÇëÊäÈëÊÖ»úºÅ");
|
||
$("#phone1_error").show();
|
||
return;
|
||
}
|
||
if (!validateRules.isMobile(mobile)) {
|
||
$("#phone1_error").removeClass().addClass("error").html("ÊÖ»úºÅÂë¸ñʽÓÐÎó£¬ÇëÊäÈëÕýÈ·µÄÊÖ»úºÅ");
|
||
$("#phone1_error").show();
|
||
$("#phone1_succeed").removeClass().addClass("blank error-ico");
|
||
return;
|
||
}
|
||
|
||
var mobile = $("#phone1").val();
|
||
if (mobile == "") {
|
||
$('#phone1').removeClass().addClass("text");
|
||
$("#phone1_error").hide();
|
||
$('#phone1_succeed').removeClass('error-ico');
|
||
mobileFlag = false;
|
||
return;
|
||
}
|
||
if (!validateRules.isMobile(mobile)) {
|
||
$("#phone1_error").html("ÊÖ»úºÅÂë¸ñʽÓÐÎó£¬ÇëÊäÈëÕýÈ·µÄÊÖ»úºÅ");
|
||
$("#phone1_error").removeClass().addClass("error");
|
||
$("#phone1_succeed").removeClass().addClass("blank error-ico");
|
||
$("#phone1_error").show();
|
||
$('#phone1').removeClass("highlight1").addClass('highlight2');
|
||
mobileFlag = false;
|
||
return;
|
||
}
|
||
$("#mobileCode1_error").removeClass().empty();
|
||
$("#mobileCode1_error").hide();
|
||
$('#mobileCode1').removeClass("highlight2");
|
||
// ¼ì²âÊÖ»úºÅÂëÊÇ·ñ´æÔÚ
|
||
$.getJSON("../validateuser/isMobileEngaged?mobile=" + mobile + "&r=" + Math.random(),
|
||
function(result) {
|
||
if (result.success == 0) {
|
||
$('#phone1').removeClass().addClass("text");
|
||
$("#phone1_error").html("");
|
||
$("#phone1_error").hide();
|
||
$("#phone1_succeed").removeClass().addClass("blank succeed");
|
||
mobileFlags = true;
|
||
sendmCode1();
|
||
return;
|
||
}
|
||
if (result.success == 1) {
|
||
$('#phone1').removeClass().addClass('text highlight3');
|
||
$("#phone1_error").html("ÊÖ»úºÅÒÑ×¢²á£¬¼ÌÐø×¢²á½«ÓëÔÕ˺Žâ°ó");
|
||
$("#phone1_error").removeClass().addClass("cue");
|
||
$("#phone1_error").show();
|
||
$("#phone1_succeed").removeClass().addClass("blank cue-ico");
|
||
mobileFlags = false;
|
||
var state = $("#state").val();
|
||
if (state == "unbind") {
|
||
sendmCode1();
|
||
} else {
|
||
mobileEngagedStyle1();
|
||
}
|
||
return;
|
||
}
|
||
if (result.success == 2) {
|
||
$('#phone1').removeClass().addClass('text highlight2');
|
||
$("#phone_error").html("¸ÃÊÖ»úºÅÒѱ»ÆäËüÕË»§°ó¶¨£¬"+result.ub+"ÌìÄÚ²»¿É¸Ä°ó");
|
||
$("#phone1_error").removeClass().addClass("error");
|
||
$("#phone1_error").show();
|
||
$("#phone1_succeed").removeClass().addClass("blank error-ico");
|
||
// $("#sendMobileCode1").attr("disabled", "disabled");
|
||
mobileFlags = false;
|
||
}
|
||
});
|
||
}
|
||
|
||
var oldEmail, emailCheckResult;
|
||
// ÓÊÏäÑéÖ¤ÐÅÏ¢Ìîд
|
||
function sendRegMail() {
|
||
var mail = $("#mail").val();
|
||
var authcode1 = $("#authcode1").val();
|
||
if (mail == "") {
|
||
$("#mail_error").removeClass().addClass("error").html("ÇëÊäÈëÓÊÏä");
|
||
$("#mail_error").show();
|
||
$('#mail_succeed').addClass('error-ico');
|
||
$('#mail').addClass('highlight2');
|
||
return;
|
||
}
|
||
var email = strTrim(mail);
|
||
var format = validateRules.isEmail(email);
|
||
var format2 = validateRules.betweenLength(email, 0, 50);
|
||
if (!format) {
|
||
$("#mail_error").html("ÓÊÏ䵨ַ²»ÕýÈ·£¬ÇëÖØÐÂÊäÈë");
|
||
$('#mail_succeed').addClass('error-ico');
|
||
$('#mail').addClass('highlight2');
|
||
return;
|
||
} else {
|
||
if (!format2) {
|
||
$('#mail_error').removeClass().addClass("error");
|
||
$("#mail_error").html("ÓÊÏ䵨ַ³¤¶ÈÓ¦ÔÚ4-50¸ö×Ö·ûÖ®¼ä");
|
||
$('#mail_succeed').addClass('error-ico');
|
||
$('#mail').removeClass("highlight1").addClass('highlight2');
|
||
return;
|
||
} else {
|
||
// if (oldEmail == email) {
|
||
// if (emailCheckResult == 1) {
|
||
// emailEngagedStyle();
|
||
// return;
|
||
// }
|
||
// if (emailCheckResult == 2) {
|
||
// emailFormatErrorStyle();
|
||
// return;
|
||
// }
|
||
// return;
|
||
// }
|
||
// oldEmail = email;
|
||
$.getJSON("../validateuser/isEmailEngaged?email=" + escape(email) + "&r=" + Math.random(),
|
||
function(result) {
|
||
emailResult = result.success;
|
||
emailCheckResult = emailResult;
|
||
// ÓÊÏäδ±»ÑéÖ¤ ¿É×¢²á
|
||
if (emailResult == 0) {
|
||
$("#emailMg").val(email);
|
||
$("#authcodeMg").val(authcode1);
|
||
jdThickBoxclose();
|
||
$("#dyMobileButton1").html("»ñÈ¡¶ÌÐÅÑéÖ¤Âë");
|
||
jQuery.jdThickBox({
|
||
type: "text",
|
||
width: 500,
|
||
height: 260,
|
||
source: $('#box01').html(),
|
||
title: "ÑéÖ¤ÊÖ»ú",
|
||
_close_val: "¡Á",
|
||
_con: "opinioncon",
|
||
_titleOn: true
|
||
});
|
||
}
|
||
if (emailResult == 1) {
|
||
emailEngagedStyle();
|
||
return;
|
||
}
|
||
if (emailResult == 2) {
|
||
emailFormatErrorStyle();
|
||
return;
|
||
}
|
||
});
|
||
|
||
}
|
||
}
|
||
}
|
||
|
||
function emailEngagedStyle() {
|
||
$('#mail_succeed').addClass('error-ico');
|
||
$('#mail_error').removeClass().addClass("error");
|
||
$("#mail_error").html("¸ÃÓÊÏäÒѱ»Ê¹Óã¬Çë¸ü»»ÆäËüÓÊÏä");
|
||
}
|
||
|
||
function emailFormatErrorStyle() {
|
||
$('#mail_succeed').addClass('error-ico');
|
||
$('#mail_error').removeClass().addClass("error");
|
||
$("#mail_error").html("ÓÊÏ䵨ַ²»ÕýÈ·£¬ÇëÖØÐÂÊäÈë");
|
||
}
|
||
|
||
// ÓÊÏäÑéÖ¤ ÑéÖ¤ÊÖ»ú Ìá½»×¢²á
|
||
function mobileReg() {
|
||
var mail = $("#emailMg").val();
|
||
var authcode = $("#authcodeMg").val();
|
||
var email = strTrim(mail);
|
||
var format = validateRules.isEmail(email);
|
||
var format2 = validateRules.betweenLength(email, 0, 50);
|
||
if (!format) {
|
||
$("#mail_error").html("ÓÊÏ䵨ַ²»ÕýÈ·£¬ÇëÖØÐÂÊäÈë");
|
||
return;
|
||
} else if (!format2) {
|
||
$("#mail_error").html("ÓÊÏ䵨ַ³¤¶ÈÓ¦ÔÚ4-50¸ö×Ö·ûÖ®¼ä");
|
||
return;
|
||
}
|
||
|
||
var mobile = $("#phone1").val();
|
||
var phonevalue = $("#phone").val();
|
||
var mobileCode = $("#mobileCode1").val();
|
||
if (mobile == "") {
|
||
$('#phone1').addClass('highlight2');
|
||
$("#phone1_error").removeClass().addClass("error").html("ÇëÊäÈëÊÖ»úºÅ");
|
||
$("#phone1_error").show();
|
||
$("#phone1_succeed").removeClass().addClass("blank error-ico");
|
||
}
|
||
|
||
if (mobileCode == "") {
|
||
$('#mobileCode1').addClass('highlight2');
|
||
$("#mobileCodeSucMessage1").empty();
|
||
$("#mobileCodeSucMessage1").removeClass();
|
||
$("#mobileCode1_error").html("ÇëÊäÈë¶ÌÐÅÑéÖ¤Âë");
|
||
$("#mobileCode1_error").removeClass().addClass("error");
|
||
$("#mobileCode1_error").show();
|
||
return;
|
||
}
|
||
if (mobile == "") {
|
||
$('#phone1').addClass('highlight2');
|
||
$("#phone1_error").removeClass().addClass("error").html("ÇëÊäÈëÊÖ»úºÅ");
|
||
$("#phone1_error").show();
|
||
$("#phone1_succeed").removeClass().addClass("blank error-ico");
|
||
return;
|
||
} else if (validateRules.isNull(mobile) || !validateRules.isMobile(mobile)) {
|
||
$("#phone1_error").html("ÊÖ»úºÅÂë¸ñʽÓÐÎó£¬ÇëÊäÈëÕýÈ·µÄÊÖ»úºÅ");
|
||
$("#phone1_error").removeClass().addClass("error");
|
||
$("#phone1_succeed").removeClass().addClass("blank error-ico");
|
||
$("#phone1_error").show();
|
||
$('#phone1').removeClass().addClass('text highlight2');
|
||
$("#mobileCodeDiv1").show();
|
||
mobileFlag = false;
|
||
return;
|
||
}
|
||
var state = $("#state").val();
|
||
if (state == "unbind") {
|
||
mobileFlag = true;
|
||
}
|
||
if (mobileFlag) {
|
||
var paramList = $("#personRegForm").serialize() + "&email=" + email;
|
||
var temp = paramList.replace("phone=" + phonevalue, "phone=" + mobile);
|
||
var params = temp.replace("mobileCode=", "mobileCode=" + mobileCode);
|
||
params = params.replace("authcode=", "authcode=" + authcode);
|
||
$.ajax({
|
||
type: "POST",
|
||
url: "../register/sendRegEmail?r=" + Math.random() + "&" + location.search.substring(1),
|
||
contentType: "application/x-www-form-urlencoded; charset=utf-8",
|
||
data: params,
|
||
success: function(result) {
|
||
var obj = eval(result);
|
||
var emailResult = obj.success;
|
||
var key = obj.k;
|
||
if (emailResult == 0) {
|
||
jdThickBoxclose();
|
||
jQuery.jdThickBox({
|
||
type: "text",
|
||
width: 510,
|
||
height: 280,
|
||
source: '<div class="thickbox-tip fz14">' + '<div class="icon-box">' + '<span class="succ-icon m-icon"></span>' + '<div class="item-fore">' + '<div class="ftx-02 info-succ">ÕË»§¸ü°²È«¹ºÎï¸ü·ÅÐÄ</div>' + '</div>' + '</div>' + '<div class="msg-txt">' + 'ϵͳÒÑÏòÄúµÄÓÊÏä <strong class="ftx-01">' + $("#emailMg").val() + '</strong> ·¢ËÍÁËÒ»·âÑéÖ¤Óʼþ£¬ÇëÄúµÇ¼ÓÊÏ䣬µã»÷ÓʼþÖеÄÁ´½ÓÍê³ÉÓÊÏäÑéÖ¤¡£Èç¹û³¬¹ý2·ÖÖÓδÊÕµ½Óʼþ£¬Äú¿ÉÒÔ<a href="#none" onclick="reSendEmail(\'' + $("#emailMg").val() + '\',\'' + key + '\');" class="ftx-05">ÖØÐ·¢ËÍ</a>' + '</div>' + '<div class="mt10 ftx-01"> <span id="reSendEmailSuccess"></span></div>' + '<div class="mt20">' + '<a href="#" id="emailLogin" class="btn-red">µÇ¼ÓÊÏä</a>'
|
||
// +'<a href="#none"
|
||
// onclick="changeEmail();"
|
||
// class="ftx-05 fr">·µ»ØÓÊÏäÐÞ¸Ä</a>'
|
||
+ '<span class="clr"></span>' + '</div>' + '</div>',
|
||
title: "ÎÂܰÌáʾ",
|
||
_close_val: "¡Á",
|
||
_con: "opinioncon",
|
||
_titleOn: true
|
||
});
|
||
|
||
initEmailLoginUrl(email);
|
||
} else {
|
||
$("#mobileCodeSucMessage1").removeClass().empty();
|
||
$("#mobileCode1_error").html(obj.info);
|
||
$("#mobileCode1_error").removeClass().addClass("error");
|
||
$("#mobileCode1_error").show();
|
||
$("#sendMobileCode1").removeClass().addClass("btn").removeAttr("disabled");
|
||
}
|
||
}
|
||
});
|
||
}
|
||
}
|
||
function mobileCodeError(content) {
|
||
$("#mobileCode_error").html(content);
|
||
$("#mobileCode_error").removeClass().addClass("error");
|
||
$("#mobileCode_error").show();
|
||
$("#sendMobileCode").removeClass().addClass("btn").removeAttr("disabled");
|
||
}
|
||
function mobileCodeHide() {
|
||
$("#mobileCode_error").html("");
|
||
$("#mobileCode_error").removeClass().addClass("error");
|
||
$("#mobileCode_error").hide();
|
||
}
|
||
var delayTime = 120;
|
||
var delayFlag = true;
|
||
function countDown() {
|
||
delayTime--;
|
||
$("#sendMobileCode").attr("disabled", "disabled");
|
||
$("#dyMobileButton").html(delayTime + 'ÃëºóÖØÐ»ñÈ¡');
|
||
if (delayTime == 1) {
|
||
delayTime = 120;
|
||
$("#mobileCodeSucMessage").removeClass().empty();
|
||
$("#dyMobileButton").html("»ñÈ¡¶ÌÐÅÑéÖ¤Âë");
|
||
$("#mobileCode_error").addClass("hide");
|
||
$("#sendMobileCode").removeClass().addClass("btn").removeAttr("disabled");
|
||
delayFlag = true;
|
||
} else {
|
||
delayFlag = false;
|
||
setTimeout(countDown, 1000);
|
||
}
|
||
}
|
||
var delayTime1 = 120;
|
||
var delayFlag1 = true;
|
||
function countDown1() {
|
||
delayTime1--;
|
||
$("#sendMobileCode1").attr("disabled", "disabled");
|
||
$("#dyMobileButton1").html(delayTime1 + 'ÃëºóÖØÐ»ñÈ¡');
|
||
if (delayTime1 == 1) {
|
||
delayTime1 = 120;
|
||
$("#mobileCodeSucMessage1").removeClass().empty();
|
||
$("#dyMobileButton1").html("»ñÈ¡¶ÌÐÅÑéÖ¤Âë");
|
||
$("#mobileCode1_error").removeClass().empty();
|
||
$("#mobileCode1_error").hide();
|
||
$("#sendMobileCode1").removeClass().addClass("btn").removeAttr("disabled");
|
||
delayFlag1 = true;
|
||
} else {
|
||
delayFlag1 = false;
|
||
countDown1.timer = setTimeout(countDown1, 1000);
|
||
}
|
||
}
|
||
countDown1.timer = '';
|
||
function strTrim(str) {
|
||
return str.replace(/(^\s*)|(\s*$)/g, "");
|
||
}
|
||
|
||
$("#regName").blur(function() {
|
||
setTimeout(function() {
|
||
if ($("#schoolid").val() == "") {
|
||
$("#schoolinput").val("");
|
||
$("#hnschool").val("-1");
|
||
$("#hnschool").attr("sta", 0);
|
||
$("#schoolinput_succeed").removeClass("succeed");
|
||
} else {
|
||
$("#hnschool").val("1");
|
||
$("#hnschool").attr("sta", 2);
|
||
$("#schoolinput_error").html("");
|
||
$("#schoolinput_succeed").addClass("succeed");
|
||
}
|
||
$('#intelligent-school').hide().empty();
|
||
$("#hnseli").val("-1");
|
||
},
|
||
200)
|
||
})
|
||
|
||
function showHideProtocol() {
|
||
var protocolNode = $('.protocol-box');
|
||
if (!protocolNode.is(':hidden')) {
|
||
protocolNode.hide();
|
||
} else {
|
||
protocolNode.show();
|
||
}
|
||
return false;
|
||
}
|
||
|
||
function validateRegName() {
|
||
var loginName = $("#regName").val();
|
||
if (validateRules.isNull(loginName) || loginName == '') {
|
||
$("#regName").val("");
|
||
$("#regName").attr({
|
||
"class": "text highlight2"
|
||
});
|
||
$("#regName_error").html("ÇëÊäÈëÓû§Ãû").show().attr({
|
||
"class": "error"
|
||
});
|
||
return false;
|
||
}
|
||
return true;
|
||
}
|
||
$("#regist .tab li").hover(function() {
|
||
if ($(this).hasClass("curr")) {} else {
|
||
$(this).addClass("new");
|
||
}
|
||
},
|
||
function() {
|
||
if ($(this).hasClass("curr")) {} else {
|
||
$(this).removeClass("new");
|
||
}
|
||
})
|
||
|
||
$("#registsubmit").hover(function() {
|
||
$(this).addClass("hover-btn")
|
||
},
|
||
function() {
|
||
|
||
$(this).removeClass("hover-btn")
|
||
})
|
||
|
||
// Ö÷Á÷³ÌÊÖ»ú»ñµÃ½¹µãʼþ
|
||
function phoneFocus() {
|
||
var mobile = $("#phone").val();
|
||
if (oldMobile == mobile && mobile != "") {
|
||
return;
|
||
}
|
||
$("#phone_succeed").removeClass("blank succeed");
|
||
$('#phone').removeClass().addClass('text highlight1');
|
||
$("#phone_error").removeClass().addClass("focus").html("Íê³ÉÑéÖ¤ºó£¬Äú¿ÉÒÔÓøÃÊÖ»úºÅµÇ¼ºÍÕÒ»ØÃÜÂë");
|
||
$("#phone_error").show();
|
||
$('#phone_succeed').removeClass('error-ico');
|
||
}
|
||
//Ö÷Á÷³ÌÊÖ»ú»ñµÃ½¹µãʼþ
|
||
function phoneOtherFocus() {
|
||
var mobile = $("#phone").val();
|
||
if (oldMobile == mobile && mobile != "") {
|
||
return;
|
||
}
|
||
$("#phone_succeed").removeClass("blank succeed");
|
||
$('#phone').removeClass().addClass('text highlight1');
|
||
$("#phone_error").removeClass().addClass("focus").html("ÇëÊäÈëÊÖ»úºÅÂë");
|
||
$("#phone_error").show();
|
||
$('#phone_succeed').removeClass('error-ico');
|
||
}
|
||
// ´ÎÁ÷³ÌÊÖ»ú»ñµÃ½¹µãʼþ
|
||
function phone1Focus() {
|
||
var mobile1 = $("#phone1").val();
|
||
if (oldMobile1 == mobile1 && mobile1 != "") {
|
||
return;
|
||
}
|
||
$("#phone1_succeed").removeClass();
|
||
$('#phone1').removeClass().addClass('text highlight1');
|
||
$("#phone1_error").removeClass().addClass("focus").html("Íê³ÉÑéÖ¤ºó£¬Äú¿ÉÒÔÓøÃÊÖ»úºÅµÇ¼ºÍÕÒ»ØÃÜÂë");
|
||
$("#phone1_error").show();
|
||
$('#phone1_succeed').removeClass('error-ico');
|
||
}
|
||
|
||
var oldMobile, mobileResult;
|
||
// Ö÷Á÷³Ì¼ì²éÊÖ»ú
|
||
function phoneBlur() {
|
||
var mobile = $("#phone").val();
|
||
|
||
if (mobile == "") {
|
||
$('#phone').removeClass().addClass('text');
|
||
$("#phone_error").removeClass().html("");
|
||
$("#phone_error").hide();
|
||
$("#rebind").remove();
|
||
$("#mobileCodeDiv").show();
|
||
$("#phone_succeed").removeClass().addClass("");
|
||
oldMobile = mobile;
|
||
mobileFlags = false;
|
||
return;
|
||
}
|
||
if (oldMobile == mobile && mobile != "") {
|
||
// δÐÞ¸ÄÊÖ»úºÅ
|
||
// showMobileCheckResult(mobileResult);
|
||
return;
|
||
}
|
||
oldMobile = mobile;
|
||
if (validateRules.isNull(mobile) || !validateRules.isMobile(mobile)) {
|
||
$('#phone').removeClass().addClass('text highlight2');
|
||
$("#phone_error").html("ÊÖ»úºÅÂë¸ñʽÓÐÎó£¬ÇëÊäÈëÕýÈ·µÄÊÖ»úºÅ");
|
||
$("#phone_error").removeClass().addClass("error");
|
||
$("#phone_error").show();
|
||
$("#phone_succeed").removeClass().addClass("");
|
||
$("#rebind").remove();
|
||
$("#mobileCodeDiv").show();
|
||
mobileFlags = false;
|
||
return;
|
||
}
|
||
$("#mobileCodeSucMessage").removeClass().empty();
|
||
$("#mobileCode_error").html("");
|
||
$("#mobileCode_error").hide();
|
||
$("#state").val("");
|
||
// ¼ì²âÊÖ»úºÅÂëÊÇ·ñ´æÔÚ
|
||
$.getJSON("../validateuser/isMobileEngaged?mobile=" + mobile + "&r=" + Math.random(),
|
||
function(result) {
|
||
|
||
mobileResult = result.success;
|
||
// if (mobileResult != 2) {
|
||
// if ($("#sendMobileCode").attr("disabled")) {
|
||
// return;
|
||
// }
|
||
// $("#sendMobileCode").removeAttr("disabled");
|
||
// }
|
||
$("#sendMobileCode").removeAttr("disabled");
|
||
if (result.success == 0) {
|
||
mobileOkStyle();
|
||
}
|
||
|
||
if (result.success == 1) {
|
||
mobileEngagedStyle();
|
||
}
|
||
|
||
if (result.success == 2) {
|
||
mobileBindedStyle(result.ub);
|
||
// $("#sendMobileCode").attr("disabled", "disabled");
|
||
}
|
||
});
|
||
}
|
||
//Ö÷Á÷³Ì¼ì²éÊÖ»ú
|
||
function phoneKeyup() {
|
||
var mobile = $("#phone").val();
|
||
var mobileLength=mobile.length;
|
||
if(mobileLength != 11)
|
||
{
|
||
return;
|
||
}
|
||
if (mobile == "") {
|
||
$('#phone').removeClass().addClass('text');
|
||
$("#phone_error").removeClass().html("");
|
||
$("#phone_error").hide();
|
||
$("#rebind").remove();
|
||
$("#mobileCodeDiv").show();
|
||
$("#phone_succeed").removeClass().addClass("");
|
||
oldMobile = mobile;
|
||
mobileFlags = false;
|
||
return;
|
||
}
|
||
if (oldMobile == mobile && mobile != "") {
|
||
// δÐÞ¸ÄÊÖ»úºÅ
|
||
// showMobileCheckResult(mobileResult);
|
||
return;
|
||
}
|
||
oldMobile = mobile;
|
||
if (validateRules.isNull(mobile) || !validateRules.isMobile(mobile)) {
|
||
$('#phone').removeClass().addClass('text highlight2');
|
||
$("#phone_error").html("ÊÖ»úºÅÂë¸ñʽÓÐÎó£¬ÇëÊäÈëÕýÈ·µÄÊÖ»úºÅ");
|
||
$("#phone_error").removeClass().addClass("error");
|
||
$("#phone_error").show();
|
||
$("#phone_succeed").removeClass().addClass("");
|
||
$("#rebind").remove();
|
||
$("#mobileCodeDiv").show();
|
||
mobileFlags = false;
|
||
return;
|
||
}
|
||
$("#mobileCodeSucMessage").removeClass().empty();
|
||
$("#mobileCode_error").html("");
|
||
$("#mobileCode_error").hide();
|
||
$("#state").val("");
|
||
// ¼ì²âÊÖ»úºÅÂëÊÇ·ñ´æÔÚ
|
||
$.getJSON("../validateuser/isMobileEngaged?mobile=" + mobile + "&r=" + Math.random(),
|
||
function(result) {
|
||
|
||
mobileResult = result.success;
|
||
// if (mobileResult != 2) {
|
||
// if ($("#sendMobileCode").attr("disabled")) {
|
||
// return;
|
||
// }
|
||
// $("#sendMobileCode").removeAttr("disabled");
|
||
// }
|
||
$("#sendMobileCode").removeAttr("disabled");
|
||
if (result.success == 0) {
|
||
mobileOkStyle();
|
||
}
|
||
|
||
if (result.success == 1) {
|
||
mobileEngagedStyle();
|
||
}
|
||
|
||
if (result.success == 2) {
|
||
mobileBindedStyle(result.ub);
|
||
// $("#sendMobileCode").attr("disabled", "disabled");
|
||
}
|
||
});
|
||
}
|
||
|
||
//Ö÷Á÷³Ì¼ì²éÊÖ»ú
|
||
function phoneOtherBlur() {
|
||
var mobile = $("#phone").val();
|
||
|
||
if (mobile == "") {
|
||
$('#phone').removeClass().addClass('text');
|
||
$("#phone_error").removeClass().html("");
|
||
$("#phone_error").hide();
|
||
$("#phone_succeed").removeClass().addClass("");
|
||
oldMobile = mobile;
|
||
mobileFlags = false;
|
||
return;
|
||
}
|
||
if (oldMobile == mobile && mobile != "") {
|
||
// δÐÞ¸ÄÊÖ»úºÅ
|
||
// showMobileCheckResult(mobileResult);
|
||
return;
|
||
}
|
||
oldMobile = mobile;
|
||
if (validateRules.isNull(mobile) || !validateRules.isMobile(mobile)) {
|
||
$('#phone').removeClass().addClass('text highlight2');
|
||
$("#phone_error").html("ÊÖ»úºÅÂë¸ñʽÓÐÎó£¬ÇëÊäÈëÕýÈ·µÄÊÖ»úºÅ");
|
||
$("#phone_error").removeClass().addClass("error");
|
||
$("#phone_error").show();
|
||
$("#phone_succeed").removeClass().addClass("");
|
||
mobileFlags = false;
|
||
return;
|
||
}
|
||
// ¼ì²âÊÖ»úºÅÂëÊÇ·ñ´æÔÚ
|
||
$.getJSON("../validateuser/isMobileEngaged?mobile=" + mobile + "&r=" + Math.random(),
|
||
function(result) {
|
||
|
||
mobileResult = result.success;
|
||
// if (mobileResult != 2) {
|
||
// if ($("#sendMobileCode").attr("disabled")) {
|
||
// return;
|
||
// }
|
||
// $("#sendMobileCode").removeAttr("disabled");
|
||
// }
|
||
$("#sendMobileCode").removeAttr("disabled");
|
||
if (result.success == 0) {
|
||
mobileOkStyle();
|
||
}
|
||
|
||
if (result.success == 1 || result.success == 2) {
|
||
$('#phone').removeClass().addClass('text highlight2');
|
||
$("#phone_error").html("¸ÃÊÖ»úºÅÒѱ»°ó¶¨£¬Çë¸ü»»ÊÖ»úºÅ");
|
||
$("#phone_error").removeClass().addClass("error");
|
||
$("#phone_error").show();
|
||
$("#phone_succeed").removeClass().addClass("");
|
||
mobileFlags = false;
|
||
}
|
||
|
||
});
|
||
}
|
||
//Ö÷Á÷³Ì¼ì²éÊÖ»ú
|
||
function phoneOtherKeyup() {
|
||
var mobile = $("#phone").val();
|
||
var mobileLength=mobile.length;
|
||
if(mobileLength != 11)
|
||
{
|
||
return;
|
||
}
|
||
if (mobile == "") {
|
||
$('#phone').removeClass().addClass('text');
|
||
$("#phone_error").removeClass().html("");
|
||
$("#phone_error").hide();
|
||
$("#phone_succeed").removeClass().addClass("");
|
||
oldMobile = mobile;
|
||
mobileFlags = false;
|
||
return;
|
||
}
|
||
if (oldMobile == mobile && mobile != "") {
|
||
// δÐÞ¸ÄÊÖ»úºÅ
|
||
// showMobileCheckResult(mobileResult);
|
||
return;
|
||
}
|
||
oldMobile = mobile;
|
||
if (validateRules.isNull(mobile) || !validateRules.isMobile(mobile)) {
|
||
$('#phone').removeClass().addClass('text highlight2');
|
||
$("#phone_error").html("ÊÖ»úºÅÂë¸ñʽÓÐÎó£¬ÇëÊäÈëÕýÈ·µÄÊÖ»úºÅ");
|
||
$("#phone_error").removeClass().addClass("error");
|
||
$("#phone_error").show();
|
||
$("#phone_succeed").removeClass().addClass("");
|
||
mobileFlags = false;
|
||
return;
|
||
}
|
||
// ¼ì²âÊÖ»úºÅÂëÊÇ·ñ´æÔÚ
|
||
$.getJSON("../validateuser/isMobileEngaged?mobile=" + mobile + "&r=" + Math.random(),
|
||
function(result) {
|
||
|
||
mobileResult = result.success;
|
||
// if (mobileResult != 2) {
|
||
// if ($("#sendMobileCode").attr("disabled")) {
|
||
// return;
|
||
// }
|
||
// $("#sendMobileCode").removeAttr("disabled");
|
||
// }
|
||
$("#sendMobileCode").removeAttr("disabled");
|
||
if (result.success == 0) {
|
||
mobileOkStyle();
|
||
}
|
||
|
||
if (result.success == 1 || result.success == 2) {
|
||
$('#phone').removeClass().addClass('text highlight2');
|
||
$("#phone_error").html("¸ÃÊÖ»úºÅÒѱ»°ó¶¨£¬Çë¸ü»»ÊÖ»úºÅ");
|
||
$("#phone_error").removeClass().addClass("error");
|
||
$("#phone_error").show();
|
||
$("#phone_succeed").removeClass().addClass("");
|
||
mobileFlags = false;
|
||
}
|
||
});
|
||
}
|
||
function showMobileCheckResult(result) {
|
||
if (result == 0) {
|
||
mobileOkStyle();
|
||
}
|
||
if (result == 1) {
|
||
mobileEngagedStyle();
|
||
}
|
||
if (result == 2) {
|
||
mobileBindedStyle();
|
||
}
|
||
}
|
||
|
||
function mobileOkStyle() {
|
||
$('#phone').removeClass().addClass("text");
|
||
$("#phone_error").html("");
|
||
$("#phone_error").hide();
|
||
$("#phone_succeed").removeClass().addClass("blank succeed");
|
||
$("#mobileCode_error").removeClass().empty();
|
||
$("#mobileCodeDiv").show();
|
||
$("#rebind").remove();
|
||
$("#mobileCodeDiv").show();
|
||
mobileFlags = true;
|
||
}
|
||
|
||
function mobileBindedStyle(ub) {
|
||
$('#phone').removeClass().addClass('text highlight2');
|
||
$("#phone_error").html("¸ÃÊÖ»úºÅÒѱ»ÆäËüÕË»§°ó¶¨£¬"+ub+"ÌìÄÚ²»¿É¸Ä°ó");
|
||
$("#phone_error").removeClass().addClass("error");
|
||
$("#phone_error").show();
|
||
$("#phone_succeed").removeClass().addClass("");
|
||
$("#rebind").remove();
|
||
$("#mobileCodeDiv").show();
|
||
mobileFlags = false;
|
||
}
|
||
|
||
function mobileEngagedStyle() {
|
||
$('#phone').removeClass().addClass('text highlight3');
|
||
$("#phone_error").html("ÊÖ»úºÅÒÑ×¢²á£¬¼ÌÐø×¢²á½«ÓëÔÕ˺Žâ°ó");
|
||
$("#phone_error").removeClass().addClass("cue");
|
||
$("#phone_error").show();
|
||
$("#phone_succeed").removeClass().addClass("blank cue-ico");
|
||
$("#rebind").remove();
|
||
$('#dphone').after('<div class="item" id="rebind"> <span class="label"> </span><div class="fl item-ifo item-ifo-extra"> <a href="javascript:;" onclick="unbind();" class="btn-comm"><span>¼ÌÐø×¢²á</span></a> </div> </div>');
|
||
$("#mobileCodeDiv").hide();
|
||
mobileFlags = false;
|
||
}
|
||
function showMobileCheckResult1(result) {
|
||
if (result == 0) {
|
||
mobileOkStyle1();
|
||
}
|
||
if (result == 1) {
|
||
mobileEngagedStyle1();
|
||
}
|
||
if (result == 2) {
|
||
mobileBindedStyle1();
|
||
}
|
||
}
|
||
function mobileOkStyle1() {
|
||
$('#phone1').removeClass().addClass("text");
|
||
$("#phone1_error").removeClass().addClass("success");
|
||
$("#phone1_error").html("´ËÊÖ»úºÅ¿ÉÓÃ");
|
||
$("#phone1_succeed").removeClass().addClass("blank succeed");
|
||
$("#mobileCodeDiv1").show();
|
||
$("#dmcode1").show();
|
||
$("#rebind1").remove();
|
||
mobileFlag = true;
|
||
return;
|
||
}
|
||
|
||
function mobileBindedStyle1(ub) {
|
||
$('#phone1').removeClass().addClass('text highlight2');
|
||
$("#phone1_error").html("¸ÃÊÖ»úºÅÒѱ»ÆäËüÕË»§°ó¶¨£¬"+ub+"ÌìÄÚ²»¿É¸Ä°ó");
|
||
$("#phone1_error").removeClass().addClass("error");
|
||
$("#phone1_succeed").removeClass().addClass("blank error-ico");
|
||
$("#phone1_error").show();
|
||
$('#phone1').removeClass("highlight1").addClass('highlight2');
|
||
$("#sendMobileCode1").attr("disabled", "disabled");
|
||
$("#mobileCodeDiv1").show();
|
||
$("#rebind1").remove();
|
||
mobileFlag = false;
|
||
return;
|
||
}
|
||
|
||
function mobileEngagedStyle1() {
|
||
$('#phone1').removeClass().addClass('text highlight3');
|
||
$("#phone1_error").html("ÊÖ»úºÅÒÑ×¢²á£¬¼ÌÐø×¢²á½«ÓëÔÕ˺Žâ°ó");
|
||
$("#phone1_error").removeClass().addClass("cue");
|
||
$("#phone1_succeed").removeClass().addClass("blank cue-ico");
|
||
$("#phone1_error").show();
|
||
$("#rebind1").remove();
|
||
$('#dphone1').after('<div class="item" id="rebind1"><span class="label"> </span><div class="fl item-ifo"><a href="javascript:void(0);" onclick="unbind1();" class="btn btn-comm"><span>¼ÌÐø×¢²á</span></a></div></div>');
|
||
$("#mobileCodeDiv1").hide();
|
||
mobileFlag = false;
|
||
return;
|
||
}
|
||
// ´ÎÁ÷³ÌÊÖ»úʧȥ½¹µãʼþ
|
||
var mobileFlag = false;
|
||
var oldMobile1, mobileResult1;
|
||
function phone1Blur() {
|
||
var mobile = $("#phone1").val();
|
||
if (mobile == "") {
|
||
$('#phone1').removeClass().addClass("text");
|
||
$("#phone1_error").hide();
|
||
$('#phone1_succeed').removeClass();
|
||
$("#rebind1").remove();
|
||
$("#dmcode1").show();
|
||
$("#mobileCodeDiv1").show();
|
||
oldMobile1 = mobile;
|
||
mobileFlag = false;
|
||
return;
|
||
}
|
||
if (oldMobile1 == mobile && mobile != "") {
|
||
// δÐÞ¸ÄÊÖ»úºÅ
|
||
// showMobileCheckResult1(mobileResult1);
|
||
return;
|
||
}
|
||
oldMobile1 = mobile;
|
||
|
||
if (validateRules.isNull(mobile) || !validateRules.isMobile(mobile)) {
|
||
$("#phone1_error").html("ÊÖ»úºÅÂë¸ñʽÓÐÎó£¬ÇëÊäÈëÕýÈ·µÄÊÖ»úºÅ");
|
||
$("#phone1_error").removeClass().addClass("error");
|
||
$("#phone1_succeed").removeClass().addClass("blank error-ico");
|
||
$("#phone1_error").show();
|
||
$('#phone1').removeClass().addClass('text highlight2');
|
||
$("#mobileCodeDiv1").show();
|
||
$("#rebind1").remove();
|
||
$("#dmcode1").show();
|
||
mobileFlag = false;
|
||
return;
|
||
}
|
||
$("#state").val("");
|
||
$("#mobileCodeSucMessage1").removeClass().empty();
|
||
$("#mobileCode1_error").removeClass().empty();
|
||
$("#mobileCode1_error").hide();
|
||
$('#mobileCode1').removeClass("highlight2");
|
||
// ¼ì²âÊÖ»úºÅÂëÊÇ·ñ´æÔÚ
|
||
$.getJSON("../validateuser/isMobileEngaged?mobile=" + mobile + "&r=" + Math.random(),
|
||
function(result) {
|
||
// mobileResult1 = result.success;
|
||
// if (mobileResult1 != 2) {
|
||
// if ($("#sendMobileCode1").attr("disabled")) {
|
||
// return;
|
||
// }
|
||
// $("#sendMobileCode1").removeAttr("disabled");
|
||
// }
|
||
$("#sendMobileCode1").removeAttr("disabled");
|
||
if (result.success == 0) {
|
||
mobileOkStyle1();
|
||
}
|
||
|
||
if (result.success == 1) {
|
||
mobileEngagedStyle1();
|
||
}
|
||
|
||
if (result.success == 2) {
|
||
mobileBindedStyle1(result.ub);
|
||
// $("#sendMobileCode1").attr("disabled", "disabled");
|
||
}
|
||
});
|
||
}
|
||
function phone1Keyup() {
|
||
var mobile = $("#phone1").val();
|
||
var mobileLength=mobile.length;
|
||
if(mobileLength != 11)
|
||
{
|
||
return;
|
||
}
|
||
if (mobile == "") {
|
||
$('#phone1').removeClass().addClass("text");
|
||
$("#phone1_error").hide();
|
||
$('#phone1_succeed').removeClass();
|
||
$("#rebind1").remove();
|
||
$("#dmcode1").show();
|
||
$("#mobileCodeDiv1").show();
|
||
oldMobile1 = mobile;
|
||
mobileFlag = false;
|
||
return;
|
||
}
|
||
if (oldMobile1 == mobile && mobile != "") {
|
||
// δÐÞ¸ÄÊÖ»úºÅ
|
||
// showMobileCheckResult1(mobileResult1);
|
||
return;
|
||
}
|
||
oldMobile1 = mobile;
|
||
|
||
if (validateRules.isNull(mobile) || !validateRules.isMobile(mobile)) {
|
||
$("#phone1_error").html("ÊÖ»úºÅÂë¸ñʽÓÐÎó£¬ÇëÊäÈëÕýÈ·µÄÊÖ»úºÅ");
|
||
$("#phone1_error").removeClass().addClass("error");
|
||
$("#phone1_succeed").removeClass().addClass("blank error-ico");
|
||
$("#phone1_error").show();
|
||
$('#phone1').removeClass().addClass('text highlight2');
|
||
$("#mobileCodeDiv1").show();
|
||
$("#rebind1").remove();
|
||
$("#dmcode1").show();
|
||
mobileFlag = false;
|
||
return;
|
||
}
|
||
$("#state").val("");
|
||
$("#mobileCodeSucMessage1").removeClass().empty();
|
||
$("#mobileCode1_error").removeClass().empty();
|
||
$("#mobileCode1_error").hide();
|
||
$('#mobileCode1').removeClass("highlight2");
|
||
// ¼ì²âÊÖ»úºÅÂëÊÇ·ñ´æÔÚ
|
||
$.getJSON("../validateuser/isMobileEngaged?mobile=" + mobile + "&r=" + Math.random(),
|
||
function(result) {
|
||
// mobileResult1 = result.success;
|
||
// if (mobileResult1 != 2) {
|
||
// if ($("#sendMobileCode1").attr("disabled")) {
|
||
// return;
|
||
// }
|
||
// $("#sendMobileCode1").removeAttr("disabled");
|
||
// }
|
||
$("#sendMobileCode1").removeAttr("disabled");
|
||
if (result.success == 0) {
|
||
mobileOkStyle1();
|
||
}
|
||
|
||
if (result.success == 1) {
|
||
mobileEngagedStyle1();
|
||
}
|
||
|
||
if (result.success == 2) {
|
||
mobileBindedStyle1(result.ub);
|
||
// $("#sendMobileCode1").attr("disabled", "disabled");
|
||
}
|
||
});
|
||
}
|
||
// ´ÎÁ÷³Ì¶ÌÐÅÑéÖ¤Âë»ñµÃ½¹µãʼþ
|
||
function mobileCodeFocus() {
|
||
$('#mobileCode').removeClass().addClass('text text-1 highlight1');
|
||
$("#mobileCode_error").hide();
|
||
}
|
||
// ´ÎÁ÷³Ì¶ÌÐÅÑéÖ¤Âë»ñµÃʧȥʼþ
|
||
function mobileCodeBlur() {
|
||
$('#mobileCode').removeClass().addClass("text text-1");
|
||
$("#mobileCode_error").hide();
|
||
}
|
||
// ´ÎÁ÷³Ì¶ÌÐÅÑéÖ¤Âë»ñµÃ½¹µãʼþ
|
||
function mobileCode1Focus() {
|
||
$('#mobileCode1').removeClass().addClass('text text-1 highlight1');
|
||
$("#mobileCode1_error").hide();
|
||
}
|
||
// ´ÎÁ÷³Ì¶ÌÐÅÑéÖ¤Âë»ñµÃʧȥʼþ
|
||
function mobileCode1Blur() {
|
||
$('#mobileCode1').removeClass().addClass("text text-1");
|
||
$("#mobileCode1_error").hide();
|
||
$('#mobileCode1_succeed').removeClass('error-ico');
|
||
}
|
||
// ½â°ó°´Å¥Ê¼þ
|
||
function unbind() {
|
||
$("#state").val("unbind");
|
||
$("#mobileCodeDiv").show();
|
||
$("#rebind").remove();
|
||
// sendmCode();
|
||
sendMobileCode();
|
||
}
|
||
// ´ÎÁ÷³Ì½â°ó°´Å¥Ê¼þ
|
||
function unbind1() {
|
||
$("#state").val("unbind");
|
||
$("#mobileCodeDiv1").show();
|
||
$("#rebind1").remove();
|
||
sendMobileCode1();
|
||
}
|
||
// Óû§ÐÒé
|
||
$(function() {
|
||
$('#protocol').click(function() {
|
||
jQuery.jdThickBox({
|
||
type: "text",
|
||
title: "¾©¶«Óû§×¢²áÐÒé",
|
||
width: 922,
|
||
height: 450,
|
||
source: "<div class=\" regist-2013\">" + "<div class=\"regist-bor\">" + "<div class=\"mc\">" + "<div id=\"protocol-con\">" + " <h4>¾©¶«Óû§×¢²áÐÒé</h4>" +
|
||
|
||
" <p>" + " ±¾ÐÒéÊÇÄúÓ뾩¶«ÍøÕ¾£¨¼ò³Æ\"±¾Õ¾\"£¬ÍøÖ·£ºwww.jd.com£©ËùÓÐÕߣ¨ÒÔϼò³ÆÎª\"¾©¶«\"£©Ö®¼ä¾Í¾©¶«ÍøÕ¾·þÎñµÈÏà¹ØÊÂÒËËù¶©Á¢µÄÆõÔ¼£¬ÇëÄú×ÐϸÔĶÁ±¾×¢²áÐÒ飬Äúµã»÷\"ͬÒâ²¢¼ÌÐø\"°´Å¥ºó£¬±¾ÐÒé¼´¹¹³É¶ÔË«·½ÓÐÔ¼ÊøÁ¦µÄ·¨ÂÉÎļþ¡£</p>" + " <h5> µÚ1Ìõ ±¾Õ¾·þÎñÌõ¿îµÄÈ·ÈϺͽÓÄÉ</h5>" +
|
||
|
||
" <p>" + " <strong>1.1</strong>±¾Õ¾µÄ¸÷Ïîµç×Ó·þÎñµÄËùÓÐȨºÍÔË×÷Ȩ¹é¾©¶«ËùÓС£Óû§Í¬ÒâËùÓÐ×¢²áÐÒéÌõ¿î²¢Íê³É×¢²á³ÌÐò£¬²ÅÄܳÉΪ±¾Õ¾µÄÕýʽÓû§¡£Óû§È·ÈÏ£º±¾ÐÒéÌõ¿îÊÇ´¦ÀíË«·½È¨ÀûÒåÎñµÄÆõÔ¼£¬Ê¼ÖÕÓÐЧ£¬·¨ÂÉÁíÓÐÇ¿ÖÆÐԹ涨»òË«·½ÁíÓÐÌØ±ðÔ¼¶¨µÄ£¬ÒÀÆä¹æ¶¨¡£" + " </p>" +
|
||
|
||
" <p>" + " <strong>1.2</strong>Óû§µã»÷ͬÒâ±¾ÐÒéµÄ£¬¼´ÊÓΪÓû§È·ÈÏ×Ô¼º¾ßÓÐÏíÊܱ¾Õ¾·þÎñ¡¢Ïµ¥¹ºÎïµÈÏàÓ¦µÄȨÀûÄÜÁ¦ºÍÐÐΪÄÜÁ¦£¬Äܹ»¶ÀÁ¢³Ðµ£·¨ÂÉÔðÈΡ£</p>" +
|
||
|
||
" <p>" + " <strong>1.3</strong>Èç¹ûÄúÔÚ18ÖÜËêÒÔÏ£¬ÄúÖ»ÄÜÔÚ¸¸Ä¸»ò¼à»¤È˵ļ໤²ÎÓëϲÅÄÜʹÓñ¾Õ¾¡£</p>" +
|
||
|
||
" <p>" + " <strong>1.4</strong>¾©¶«±£ÁôÔÚÖлªÈËÃñ¹²ºÍ¹ú´ó½µØÇø·¨Ê©ÐÐÖ®·¨ÂÉÔÊÐíµÄ·¶Î§ÄÚ¶À×Ô¾ö¶¨¾Ü¾ø·þÎñ¡¢¹Ø±ÕÓû§ÕË»§¡¢Çå³ý»ò±à¼ÄÚÈÝ»òÈ¡Ïû¶©µ¥µÄȨÀû¡£</p>" + " <h5> µÚ2Ìõ ±¾Õ¾·þÎñ</h5>" +
|
||
|
||
" <p>" + " <strong>2.1</strong>¾©¶«Í¨¹ý»¥ÁªÍøÒÀ·¨ÎªÓû§Ìṩ»¥ÁªÍøÐÅÏ¢µÈ·þÎñ£¬Óû§ÔÚÍêȫͬÒâ±¾ÐÒé¼°±¾Õ¾¹æ¶¨µÄÇé¿öÏ£¬·½ÓÐȨʹÓñ¾Õ¾µÄÏà¹Ø·þÎñ¡£</p>" +
|
||
|
||
" <p>" + " <strong>2.2</strong>Óû§±ØÐë×ÔÐÐ×¼±¸ÈçÏÂÉ豸ºÍ³Ðµ£ÈçÏ¿ªÖ§£º£¨1£©ÉÏÍøÉ豸£¬°üÀ¨²¢²»ÏÞÓÚµçÄÔ»òÕ߯äËûÉÏÍøÖÕ¶Ë¡¢µ÷ÖÆ½âµ÷Æ÷¼°ÆäËû±Ø±¸µÄÉÏÍø×°Ö㻣¨2£©ÉÏÍø¿ªÖ§£¬°üÀ¨²¢²»ÏÞÓÚÍøÂç½ÓÈë·Ñ¡¢ÉÏÍøÉ豸×âÓ÷ѡ¢ÊÖ»úÁ÷Á¿·ÑµÈ¡£" + " </p>" + " <h5> µÚ3Ìõ Óû§ÐÅÏ¢</h5>" +
|
||
|
||
" <p>" + " <strong>3.1</strong>Óû§Ó¦×ÔÐгÏÐÅÏò±¾Õ¾Ìṩע²á×ÊÁÏ£¬Óû§Í¬ÒâÆäÌṩµÄ×¢²á×ÊÁÏÕæÊµ¡¢×¼È·¡¢ÍêÕû¡¢ºÏ·¨ÓÐЧ£¬Óû§×¢²á×ÊÁÏÈçÓб䶯µÄ£¬Ó¦¼°Ê±¸üÐÂÆä×¢²á×ÊÁÏ¡£Èç¹ûÓû§ÌṩµÄ×¢²á×ÊÁϲ»ºÏ·¨¡¢²»ÕæÊµ¡¢²»×¼È·¡¢²»Ï꾡µÄ£¬Óû§Ðè³Ðµ£Òò´ËÒýÆðµÄÏàÓ¦ÔðÈμ°ºó¹û£¬²¢ÇÒ¾©¶«±£ÁôÖÕÖ¹Óû§Ê¹Óþ©¶«¸÷Ïî·þÎñµÄȨÀû¡£" + " </p>" +
|
||
|
||
" <p>" + " <strong>3.2</strong>Óû§ÔÚ±¾Õ¾½øÐÐä¯ÀÀ¡¢Ïµ¥¹ºÎïµÈ»î¶¯Ê±£¬Éæ¼°Óû§ÕæÊµÐÕÃû/Ãû³Æ¡¢Í¨ÐŵØÖ·¡¢ÁªÏµµç»°¡¢µç×ÓÓÊÏäµÈÒþ˽ÐÅÏ¢µÄ£¬±¾Õ¾½«ÓèÒÔÑϸñ±£ÃÜ£¬³ý·ÇµÃµ½Óû§µÄÊÚȨ»ò·¨ÂÉÁíÓй涨£¬±¾Õ¾²»»áÏòÍâ½çÅû¶Óû§Òþ˽ÐÅÏ¢¡£" + " </p>" +
|
||
|
||
" <p>" + " <strong>3.3</strong>Óû§×¢²á³É¹¦ºó£¬½«²úÉúÓû§ÃûºÍÃÜÂëµÈÕË»§ÐÅÏ¢£¬Äú¿ÉÒÔ¸ù¾Ý±¾Õ¾¹æ¶¨¸Ä±äÄúµÄÃÜÂë¡£Óû§Ó¦½÷É÷ºÏÀíµÄ±£´æ¡¢Ê¹ÓÃÆäÓû§ÃûºÍÃÜÂë¡£Óû§Èô·¢ÏÖÈκηǷ¨Ê¹ÓÃÓû§Õ˺Żò´æÔÚ°²È«Â©¶´µÄÇé¿ö£¬ÇëÁ¢¼´Í¨Öª±¾Õ¾²¢Ïò¹«°²»ú¹Ø±¨°¸¡£" + " </p>" +
|
||
|
||
" <p>" + " <strong>3.4</strong><strong>Óû§Í¬Ò⣬¾©¶«ÓµÓÐͨ¹ýÓʼþ¡¢¶ÌÐŵ绰µÈÐÎʽ£¬ÏòÔÚ±¾Õ¾×¢²á¡¢¹ºÎïÓû§¡¢ÊÕ»õÈË·¢ËͶ©µ¥ÐÅÏ¢¡¢´ÙÏú»î¶¯µÈ¸æÖªÐÅÏ¢µÄȨÀû¡£</strong></p>" +
|
||
|
||
" <p>" + " <strong>3.5</strong><strong>Óû§²»µÃ½«ÔÚ±¾Õ¾×¢²á»ñµÃµÄÕË»§½è¸øËûÈËʹÓ㬷ñÔòÓû§Ó¦³Ðµ£Óɴ˲úÉúµÄÈ«²¿ÔðÈΣ¬²¢Óëʵ¼ÊʹÓÃÈ˳е£Á¬´øÔðÈΡ£</strong></p>" +
|
||
|
||
" <p>" + " <strong>3.6</strong><strong>Óû§Í¬Ò⣬¾©¶«ÓÐȨʹÓÃÓû§µÄ×¢²áÐÅÏ¢¡¢Óû§Ãû¡¢ÃÜÂëµÈÐÅÏ¢£¬µÇ¼½øÈëÓû§µÄ×¢²áÕË»§£¬½øÐÐÖ¤¾Ý±£È«£¬°üÀ¨µ«²»ÏÞÓÚ¹«Ö¤¡¢¼ûÖ¤µÈ¡£</strong></p>" + " <h5> µÚ4Ìõ Óû§ÒÀ·¨ÑÔÐÐÒåÎñ</h5>" +
|
||
|
||
" <p> ±¾ÐÒéÒÀ¾Ý¹ú¼ÒÏà¹Ø·¨ÂÉ·¨¹æ¹æÕÂÖÆ¶¨£¬Óû§Í¬ÒâÑϸñ×ñÊØÒÔÏÂÒåÎñ£º</p>" +
|
||
|
||
" <p>" + " <strong>£¨1£©</strong>²»µÃ´«Êä»ò·¢±í£ºÉ¿¶¯¿¹¾Ü¡¢ÆÆ»µÏÜ·¨ºÍ·¨ÂÉ¡¢ÐÐÕþ·¨¹æÊµÊ©µÄÑÔÂÛ£¬É¿¶¯µß¸²¹ú¼ÒÕþȨ£¬ÍÆ·Éç»áÖ÷ÒåÖÆ¶ÈµÄÑÔÂÛ£¬É¿¶¯·ÖÁѹú¼Ò¡¢ÆÆ»µ¹ú¼ÒͳһµÄµÄÑÔÂÛ£¬É¿¶¯Ãñ×å³ðºÞ¡¢Ãñ×åÆçÊÓ¡¢ÆÆ»µÃñ×åÍŽáµÄÑÔÂÛ£»" + " </p>" +
|
||
|
||
" <p>" + " <strong>£¨2£©</strong>´ÓÖйú´ó½Ïò¾³Íâ´«Êä×ÊÁÏÐÅϢʱ±ØÐë·ûºÏÖйúÓйط¨¹æ£»</p>" +
|
||
|
||
" <p>" + " <strong>£¨3£©</strong>²»µÃÀûÓñ¾Õ¾´ÓÊÂÏ´Ç®¡¢ÇÔÈ¡ÉÌÒµÃØÃÜ¡¢ÇÔÈ¡¸öÈËÐÅÏ¢µÈÎ¥·¨·¸×ï»î¶¯£»" + " </p>" +
|
||
|
||
" <p>" + " <strong>£¨4£©</strong>²»µÃ¸ÉÈű¾Õ¾µÄÕý³£ÔËת£¬²»µÃÇÖÈë±¾Õ¾¼°¹ú¼Ò¼ÆËã»úÐÅϢϵͳ£»</p>" +
|
||
|
||
" <p>" + " <strong>£¨5£©</strong>²»µÃ´«Êä»ò·¢±íÈκÎÎ¥·¨·¸×ïµÄ¡¢É§ÈÅÐԵġ¢ÖÐÉËËûÈ˵ġ¢ÈèÂîÐԵġ¢¿ÖÏÅÐԵġ¢É˺¦ÐԵġ¢Ó¹Ë׵ģ¬Òù»àµÄ¡¢²»ÎÄÃ÷µÄµÈÐÅÏ¢×ÊÁÏ£»</p>" +
|
||
|
||
" <p>" + " <strong>£¨6£©</strong>²»µÃ´«Êä»ò·¢±íË𺦹ú¼ÒÉç»á¹«¹²ÀûÒæºÍÉæ¼°¹ú¼Ò°²È«µÄÐÅÏ¢×ÊÁÏ»òÑÔÂÛ£»</p>" +
|
||
|
||
" <p>" + " <strong>£¨7£©</strong>²»µÃ½ÌËôËûÈË´Óʱ¾ÌõËù½ûÖ¹µÄÐÐΪ£»</p>" +
|
||
|
||
" <p>" + " <strong>£¨8£©</strong>²»µÃÀûÓÃÔÚ±¾Õ¾×¢²áµÄÕË»§½øÐÐIJÀûÐÔ¾Óª»î¶¯£»</p>" +
|
||
|
||
" <p>" + " <strong>£¨9£©</strong>²»µÃ·¢²¼ÈκÎÇÖ·¸ËûÈËÖø×÷Ȩ¡¢É̱êȨµÈ֪ʶ²úȨ»òºÏ·¨È¨ÀûµÄÄÚÈÝ£»</p>" +
|
||
|
||
" <p>" + " Óû§Ó¦²»Ê±¹Ø×¢²¢×ñÊØ±¾Õ¾²»Ê±¹«²¼»òÐ޸ĵĸ÷ÀàºÏ·¨¹æÔò¹æ¶¨¡£</p>" +
|
||
|
||
" <p>" + " <strong>±¾Õ¾±£ÓÐɾ³ýÕ¾ÄÚ¸÷À಻·ûºÏ·¨ÂÉÕþ²ß»ò²»ÕæÊµµÄÐÅÏ¢ÄÚÈݶøÎÞÐë֪ͨÓû§µÄȨÀû¡£</strong></p>" +
|
||
|
||
" <p>" + " <strong>ÈôÓû§Î´×ñÊØÒÔÉϹ涨µÄ£¬±¾Õ¾ÓÐȨ×÷³ö¶ÀÁ¢Åжϲ¢²ÉÈ¡ÔÝÍ£»ò¹Ø±ÕÓû§ÕʺŵȴëÊ©¡£</strong>Óû§Ðë¶Ô×Ô¼ºÔÚÍøÉϵÄÑÔÂÛºÍÐÐΪ³Ðµ£·¨ÂÉÔðÈΡ£</p>" + " <h5> µÚ5Ìõ ÉÌÆ·ÐÅÏ¢</h5>" +
|
||
|
||
" <p>" + " ±¾Õ¾ÉϵÄÉÌÆ·¼Û¸ñ¡¢ÊýÁ¿¡¢ÊÇ·ñÓлõµÈÉÌÆ·ÐÅÏ¢ËæÊ±¶¼ÓпÉÄÜ·¢Éú±ä¶¯£¬±¾Õ¾²»×÷ÌØ±ð֪ͨ¡£ÓÉÓÚÍøÕ¾ÉÏÉÌÆ·ÐÅÏ¢µÄÊýÁ¿¼«ÆäÅÓ´ó£¬ËäÈ»±¾Õ¾»á¾¡×î´óŬÁ¦±£Ö¤ÄúËùä¯ÀÀÉÌÆ·ÐÅÏ¢µÄ׼ȷÐÔ£¬µ«ÓÉÓÚÖÚËùÖÜÖªµÄ»¥ÁªÍø¼¼ÊõÒòËØµÈ¿Í¹ÛÔÒò´æÔÚ£¬±¾Õ¾ÍøÒ³ÏÔʾµÄÐÅÏ¢¿ÉÄÜ»áÓÐÒ»¶¨µÄÖͺóÐÔ»ò²î´í£¬¶Ô´ËÇéÐÎÄú֪Ϥ²¢Àí½â£»¾©¶«»¶Ó¾À´í£¬²¢»áÊÓÇé¿ö¸øÓè¾À´íÕßÒ»¶¨µÄ½±Àø¡£</p>" +
|
||
|
||
" <p> Ϊ±íÊö±ãÀû£¬ÉÌÆ·ºÍ·þÎñ¼ò³ÆÎª\"ÉÌÆ·\"»ò\"»õÎï\"¡£</p>" + " <h5> µÚ6Ìõ ¶©µ¥</h5>" +
|
||
|
||
" <p>" + " <strong>6.1</strong>ÔÚÄú϶©µ¥Ê±£¬ÇëÄú×ÐϸȷÈÏËù¹ºÉÌÆ·µÄÃû³Æ¡¢¼Û¸ñ¡¢ÊýÁ¿¡¢Ðͺ𢹿¸ñ¡¢³ß´ç¡¢ÁªÏµµØÖ·¡¢µç»°¡¢ÊÕ»õÈ˵ÈÐÅÏ¢¡£<span>ÊÕ»õÈËÓëÓû§±¾È˲»Ò»Öµģ¬ÊÕ»õÈ˵ÄÐÐΪºÍÒâ˼±íʾÊÓΪÓû§µÄÐÐΪºÍÒâ˼±íʾ£¬Óû§Ó¦¶ÔÊÕ»õÈ˵ÄÐÐΪ¼°Òâ˼±íʾµÄ·¨Âɺó¹û³Ðµ£Á¬´øÔðÈΡ£</span>" + " </p>" +
|
||
|
||
" <p>" + " <strong>6.2</strong><strong>³ý·¨ÂÉÁíÓÐÇ¿ÖÆÐԹ涨Í⣬˫·½Ô¼¶¨ÈçÏ£º±¾Õ¾ÉÏÏúÊÛ·½Õ¹Ê¾µÄÉÌÆ·ºÍ¼Û¸ñµÈÐÅÏ¢½ö½öÊǽ»Ò×ÐÅÏ¢µÄ·¢²¼£¬Äúϵ¥Ê±ÐëÌîдÄúÏ£Íû¹ºÂòµÄÉÌÆ·ÊýÁ¿¡¢¼Û¿î¼°Ö§¸¶·½Ê½¡¢ÊÕ»õÈË¡¢ÁªÏµ·½Ê½¡¢ÊÕ»õµØÖ·µÈÄÚÈÝ£»ÏµÍ³Éú³ÉµÄ¶©µ¥ÐÅÏ¢ÊǼÆËã»úÐÅϢϵͳ¸ù¾ÝÄúÌîдµÄÄÚÈÝ×Ô¶¯Éú³ÉµÄÊý¾Ý£¬½öÊÇÄúÏòÏúÊÛ·½·¢³öµÄ½»Ò×ËßÇó£»ÏúÊÛ·½ÊÕµ½ÄúµÄ¶©µ¥ÐÅÏ¢ºó£¬Ö»ÓÐÔÚÏúÊÛ·½½«ÄúÔÚ¶©µ¥Öж©¹ºµÄÉÌÆ·´Ó²Ö¿âʵ¼ÊÖ±½ÓÏòÄú·¢³öʱ£¨ ÒÔÉÌÆ·³ö¿âΪ±êÖ¾£©£¬·½ÊÓΪÄúÓëÏúÊÛ·½Ö®¼ä¾Íʵ¼ÊÖ±½ÓÏòÄú·¢³öµÄÉÌÆ·½¨Á¢Á˽»Ò×¹ØÏµ£»Èç¹ûÄúÔÚÒ»·Ý¶©µ¥Àï¶©¹ºÁ˶àÖÖÉÌÆ·²¢ÇÒÏúÊÛ·½Ö»¸øÄú·¢³öÁ˲¿·ÖÉÌÆ·Ê±£¬ÄúÓëÏúÊÛ·½Ö®¼ä½ö¾Íʵ¼ÊÖ±½ÓÏòÄú·¢³öµÄÉÌÆ·½¨Á¢Á˽»Ò×¹ØÏµ£»Ö»ÓÐÔÚÏúÊÛ·½Êµ¼ÊÖ±½ÓÏòÄú·¢³öÁ˶©µ¥Öж©¹ºµÄÆäËûÉÌÆ·Ê±£¬ÄúºÍÏúÊÛ·½Ö®¼ä¾Í¶©µ¥ÖÐ¸ÃÆäËûÒÑʵ¼ÊÖ±½ÓÏòÄú·¢³öµÄÉÌÆ·²Å³ÉÁ¢½»Ò×¹ØÏµ¡£Äú¿ÉÒÔËæÊ±µÇ¼ÄúÔÚ±¾Õ¾×¢²áµÄÕË»§£¬²éѯÄúµÄ¶©µ¥×´Ì¬¡£</strong>" + " </p>" +
|
||
|
||
" <p>" + " <strong>6.3</strong><strong>ÓÉÓÚÊг¡±ä»¯¼°¸÷ÖÖÒÔºÏÀíÉÌҵŬÁ¦ÄÑÒÔ¿ØÖƵÄÒòËØµÄÓ°Ï죬±¾Õ¾ÎÞ·¨±£Ö¤ÄúÌá½»µÄ¶©µ¥ÐÅÏ¢ÖÐÏ£Íû¹ºÂòµÄÉÌÆ·¶¼»áÓлõ£»ÈçÄúÄ⹺ÂòµÄÉÌÆ·£¬·¢Éúȱ»õ£¬ÄúÓÐȨȡÏû¶©µ¥¡£</strong>" + " </p>" + " <h5> µÚ7Ìõ ÅäËÍ</h5>" +
|
||
|
||
" <p>" + " <strong>7.1</strong>ÏúÊÛ·½½«»á°ÑÉÌÆ·£¨»õÎË͵½ÄúËùÖ¸¶¨µÄÊÕ»õµØÖ·£¬ËùÓÐÔÚ±¾Õ¾ÉÏÁгöµÄËÍ»õʱ¼äΪ²Î¿¼Ê±¼ä£¬²Î¿¼Ê±¼äµÄ¼ÆËãÊǸù¾Ý¿â´æ×´¿ö¡¢Õý³£µÄ´¦Àí¹ý³ÌºÍËÍ»õʱ¼ä¡¢ËÍ»õµØµãµÄ»ù´¡ÉϹÀ¼ÆµÃ³öµÄ¡£</p>" + "" + " <p>" + " <strong>7.2</strong>ÒòÈçÏÂÇé¿öÔì³É¶©µ¥ÑÓ³Ù»òÎÞ·¨ÅäË͵ȣ¬ÏúÊÛ·½²»³Ðµ£ÑÓ³ÙÅäË͵ÄÔðÈΣº</p>" +
|
||
|
||
" <p>" + " <strong>£¨1£©</strong>Óû§ÌṩµÄÐÅÏ¢´íÎó¡¢µØÖ·²»ÏêϸµÈÔÒòµ¼Öµģ»" + " </p>" +
|
||
|
||
" <p>" + " <strong>£¨2£©</strong>»õÎïËÍ´ïºóÎÞÈËÇ©ÊÕ£¬µ¼ÖÂÎÞ·¨ÅäËÍ»òÑÓ³ÙÅäË͵ģ»</p>" +
|
||
|
||
" <p>" + " <strong>£¨3£©</strong>ÇéÊÆ±ä¸üÒòËØµ¼Öµģ»</p>" +
|
||
|
||
" <p>" + " <strong>£¨4£©</strong>²»¿É¿¹Á¦ÒòËØµ¼Öµģ¬ÀýÈ磺×ÔÈ»ÔÖº¦¡¢½»Í¨½äÑÏ¡¢Í»·¢Õ½ÕùµÈ¡£</p>" + " <h5> µÚ8Ìõ ËùÓÐȨ¼°ÖªÊ¶²úȨÌõ¿î</h5>" +
|
||
|
||
" <p>" + " <strong>8.1</strong><strong>Óû§Ò»µ©½ÓÊܱ¾ÐÒ飬¼´±íÃ÷¸ÃÓû§Ö÷¶¯½«ÆäÔÚÈκÎʱ¼ä¶ÎÔÚ±¾Õ¾·¢±íµÄÈκÎÐÎʽµÄÐÅÏ¢ÄÚÈÝ£¨°üÀ¨µ«²»ÏÞÓÚ¿Í»§ÆÀ¼Û¡¢¿Í»§×Éѯ¡¢¸÷Àà»°ÌâÎÄÕµÈÐÅÏ¢ÄÚÈÝ£©µÄ²Æ²úÐÔȨÀûµÈÈκοÉתÈõÄȨÀû£¬ÈçÖø×÷Ȩ²Æ²úȨ£¨°üÀ¨²¢²»ÏÞÓÚ£º¸´ÖÆÈ¨¡¢·¢ÐÐȨ¡¢³ö×âȨ¡¢Õ¹ÀÀȨ¡¢±íÑÝȨ¡¢·ÅӳȨ¡¢¹ã²¥È¨¡¢ÐÅÏ¢ÍøÂç´«²¥È¨¡¢ÉãÖÆÈ¨¡¢¸Ä±àȨ¡¢·ÒëȨ¡¢»ã±àȨÒÔ¼°Ó¦µ±ÓÉÖø×÷ȨÈËÏíÓÐµÄÆäËû¿ÉתÈÃȨÀû£©£¬È«²¿¶À¼ÒÇÒ²»¿É³·ÏúµØ×ªÈøø¾©¶«ËùÓУ¬Óû§Í¬Ò⾩¶«ÓÐȨ¾ÍÈκÎÖ÷ÌåÇÖȨ¶øµ¥¶ÀÌáÆðËßËÏ¡£</strong>" + " </p>" +
|
||
|
||
" <p>" + " <strong>8.2</strong><strong>±¾ÐÒéÒѾ¹¹³É¡¶ÖлªÈËÃñ¹²ºÍ¹úÖø×÷Ȩ·¨¡·µÚ¶þÊ®ÎåÌõ£¨ÌõÎÄÐòºÅÒÀÕÕ2011Äê°æÖø×÷Ȩ·¨È·¶¨£©¼°Ïà¹Ø·¨Âɹ涨µÄÖø×÷²Æ²úȨµÈȨÀûתÈÃÊéÃæÐÒ飬ÆäЧÁ¦¼°ÓÚÓû§ÔÚ¾©¶«ÍøÕ¾ÉÏ·¢²¼µÄÈκÎÊÜÖø×÷Ȩ·¨±£»¤µÄ×÷Æ·ÄÚÈÝ£¬ÎÞÂ۸õÈÄÚÈÝÐγÉÓÚ±¾ÐÒé¶©Á¢Ç°»¹ÊDZ¾ÐÒé¶©Á¢ºó¡£</strong>" + " </p>" +
|
||
|
||
" <p>" + " <strong>8.3</strong><strong>Óû§Í¬Òâ²¢Òѳä·ÖÁ˽ⱾÐÒéµÄÌõ¿î£¬³Ðŵ²»½«ÒÑ·¢±íÓÚ±¾Õ¾µÄÐÅÏ¢£¬ÒÔÈκÎÐÎʽ·¢²¼»òÊÚȨÆäËüÖ÷ÌåÒÔÈκη½Ê½Ê¹Ó㨰üÀ¨µ«²»ÏÞÓÚÔÚ¸÷ÀàÍøÕ¾¡¢Ã½ÌåÉÏʹÓã©¡£</strong></p>" +
|
||
|
||
" <p>" + " <strong>8.4</strong><strong>¾©¶«ÊDZ¾Õ¾µÄÖÆ×÷Õß,ÓµÓдËÍøÕ¾ÄÚÈݼ°×ÊÔ´µÄÖø×÷ȨµÈºÏ·¨È¨Àû,Êܹú¼Ò·¨Âɱ£»¤,ÓÐȨ²»Ê±µØ¶Ô±¾ÐÒé¼°±¾Õ¾µÄÄÚÈݽøÐÐÐ޸쬲¢ÔÚ±¾Õ¾ÕÅÌù£¬ÎÞÐëÁíÐÐ֪ͨÓû§¡£ÔÚ·¨ÂÉÔÊÐíµÄ×î´óÏÞ¶È·¶Î§ÄÚ£¬¾©¶«¶Ô±¾ÐÒé¼°±¾Õ¾ÄÚÈÝÓµÓнâÊÍȨ¡£</strong>" + " </p>" +
|
||
|
||
" <p>" + " <strong>8.5</strong><strong>³ý·¨ÂÉÁíÓÐÇ¿ÖÆÐԹ涨Í⣬δ¾¾©¶«Ã÷È·µÄÌØ±ðÊéÃæÐí¿É,Èκε¥Î»»ò¸öÈ˲»µÃÒÔÈκη½Ê½·Ç·¨µØÈ«²¿»ò²¿·Ö¸´ÖÆ¡¢×ªÔØ¡¢ÒýÓá¢Á´½Ó¡¢×¥È¡»òÒÔÆäËû·½Ê½Ê¹Óñ¾Õ¾µÄÐÅÏ¢ÄÚÈÝ£¬·ñÔò£¬¾©¶«ÓÐȨ׷¾¿Æä·¨ÂÉÔðÈΡ£</strong>" + " </p>" + " <p>" + " <strong>8.6</strong>±¾Õ¾Ëù¿¯µÇµÄ×ÊÁÏÐÅÏ¢£¨ÖîÈçÎÄ×Ö¡¢Í¼±í¡¢±êʶ¡¢°´Å¥Í¼±ê¡¢Í¼Ïñ¡¢ÉùÒôÎļþƬ¶Î¡¢Êý×ÖÏÂÔØ¡¢Êý¾Ý±à¼ºÍÈí¼þ£©£¬¾ùÊǾ©¶«»òÆäÄÚÈÝÌṩÕߵIJƲú£¬ÊÜÖйúºÍ¹ú¼Ê°æÈ¨·¨µÄ±£»¤¡£±¾Õ¾ÉÏËùÓÐÄÚÈݵĻã±àÊǾ©¶«µÄÅÅËû²Æ²ú£¬ÊÜÖйúºÍ¹ú¼Ê°æÈ¨·¨µÄ±£»¤¡£±¾Õ¾ÉÏËùÓÐÈí¼þ¶¼ÊǾ©¶«»òÆä¹ØÁª¹«Ë¾»òÆäÈí¼þ¹©Ó¦É̵IJƲú£¬ÊÜÖйúºÍ¹ú¼Ê°æÈ¨·¨µÄ±£»¤¡£" + " </p>" + " <h5> µÚ9Ìõ ÔðÈÎÏÞÖÆ¼°²»³Ðŵµ£±£</h5>" + " <p>" + " <strong>³ý·ÇÁíÓÐÃ÷È·µÄÊéÃæËµÃ÷,±¾Õ¾¼°ÆäËù°üº¬µÄ»òÒÔÆäËü·½Ê½Í¨¹ý±¾Õ¾Ìṩ¸øÄúµÄÈ«²¿ÐÅÏ¢¡¢ÄÚÈÝ¡¢²ÄÁÏ¡¢²úÆ·£¨°üÀ¨Èí¼þ£©ºÍ·þÎñ£¬¾ùÊÇÔÚ\"°´ÏÖ×´\"ºÍ\"°´ÏÖÓÐ\"µÄ»ù´¡ÉÏÌṩµÄ¡£</strong></p>" +
|
||
|
||
" <p>" + " <strong>³ý·ÇÁíÓÐÃ÷È·µÄÊéÃæËµÃ÷,¾©¶«²»¶Ô±¾Õ¾µÄÔËÓª¼°Æä°üº¬ÔÚ±¾ÍøÕ¾ÉϵÄÐÅÏ¢¡¢ÄÚÈÝ¡¢²ÄÁÏ¡¢²úÆ·£¨°üÀ¨Èí¼þ£©»ò·þÎñ×÷ÈκÎÐÎʽµÄ¡¢Ã÷ʾ»òĬʾµÄÉùÃ÷»òµ£±££¨¸ù¾ÝÖлªÈËÃñ¹²ºÍ¹ú·¨ÂÉÁíÓй涨µÄÒÔÍ⣩¡£</strong>" + " </p>" + " <p>" + " <strong>¾©¶«²»µ£±£±¾Õ¾Ëù°üº¬µÄ»òÒÔÆäËü·½Ê½Í¨¹ý±¾Õ¾Ìṩ¸øÄúµÄÈ«²¿ÐÅÏ¢¡¢ÄÚÈÝ¡¢²ÄÁÏ¡¢²úÆ·£¨°üÀ¨Èí¼þ£©ºÍ·þÎñ¡¢Æä·þÎñÆ÷»ò´Ó±¾Õ¾·¢³öµÄµç×ÓÐżþ¡¢ÐÅϢûÓв¡¶¾»òÆäËûÓк¦³É·Ö¡£</strong></p>" + " <p>" + " <strong>ÈçÒò²»¿É¿¹Á¦»òÆäËü±¾Õ¾ÎÞ·¨¿ØÖƵÄÔÒòʹ±¾Õ¾ÏúÊÛϵͳ±ÀÀ£»òÎÞ·¨Õý³£Ê¹Óõ¼ÖÂÍøÉϽ»Ò×ÎÞ·¨Íê³É»ò¶ªÊ§ÓйصÄÐÅÏ¢¡¢¼Ç¼µÈ£¬¾©¶«»áºÏÀíµØ¾¡Á¦ÐÖú´¦ÀíÉÆºóÊÂÒË¡£</strong></p>" + " <h5> µÚ10Ìõ ÐÒé¸üм°Óû§¹Ø×¢ÒåÎñ</h5>" + " ¸ù¾Ý¹ú¼Ò·¨ÂÉ·¨¹æ±ä»¯¼°ÍøÕ¾ÔËÓªÐèÒª£¬¾©¶«ÓÐȨ¶Ô±¾ÐÒéÌõ¿î²»Ê±µØ½øÐÐÐ޸ģ¬Ð޸ĺóµÄÐÒéÒ»µ©±»ÕÅÌùÔÚ±¾Õ¾Éϼ´ÉúЧ£¬²¢´úÌæÔÀ´µÄÐÒé¡£Óû§¿ÉËæÊ±µÇ¼²éÔÄ×îÐÂÐÒ飻<strong><em>Óû§ÓÐÒåÎñ²»Ê±¹Ø×¢²¢ÔĶÁ×îаæµÄÐÒé¼°ÍøÕ¾¹«¸æ¡£ÈçÓû§²»Í¬Òâ¸üкóµÄÐÒ飬¿ÉÒÔÇÒÓ¦Á¢¼´Í£Ö¹½ÓÊܾ©¶«ÍøÕ¾ÒÀ¾Ý±¾ÐÒéÌṩµÄ·þÎñ£»ÈçÓû§¼ÌÐøÊ¹Óñ¾ÍøÕ¾ÌṩµÄ·þÎñµÄ£¬¼´ÊÓΪͬÒâ¸üкóµÄÐÒé¡£¾©¶«½¨ÒéÄúÔÚʹÓñ¾Õ¾Ö®Ç°ÔĶÁ±¾ÐÒé¼°±¾Õ¾µÄ¹«¸æ¡£</em></strong>" + " Èç¹û±¾ÐÒéÖÐÈκÎÒ»Ìõ±»ÊÓΪ·ÏÖ¹¡¢ÎÞЧ»òÒòÈκÎÀíÓɲ»¿ÉÖ´ÐУ¬¸ÃÌõÓ¦ÊÓΪ¿É·ÖµÄÇÒ²¢²»Ó°ÏìÈÎºÎÆäÓàÌõ¿îµÄÓÐЧÐԺͿÉÖ´ÐÐÐÔ¡£" + " <h5> µÚ11Ìõ ·¨ÂɹÜϽºÍÊÊÓÃ</h5>" + " ±¾ÐÒéµÄ¶©Á¢¡¢Ö´ÐкͽâÊͼ°ÕùÒéµÄ½â¾ö¾ùÓ¦ÊÊÓÃÔÚÖлªÈËÃñ¹²ºÍ¹ú´ó½µØÇøÊÊÓÃÖ®ÓÐЧ·¨ÂÉ£¨µ«²»°üÀ¨Æä³åÍ»·¨¹æÔò£©¡£ Èç·¢Éú±¾ÐÒéÓëÊÊÓÃÖ®·¨ÂÉÏàµÖ´¥Ê±£¬ÔòÕâЩÌõ¿î½«ÍêÈ«°´·¨ÂÉ¹æ¶¨ÖØÐ½âÊÍ£¬¶øÆäËüÓÐЧÌõ¿î¼ÌÐøÓÐЧ¡£" + " ÈçµÞÔ¼·½¾Í±¾ÐÒéÄÚÈÝ»òÆäÖ´Ðз¢ÉúÈκÎÕùÒ飬˫·½Ó¦¾¡Á¦ÓѺÃÐÉ̽â¾ö£»ÐÉ̲»³Éʱ£¬ÈκÎÒ»·½¾ù¿ÉÏòÓйÜϽȨµÄÖлªÈËÃñ¹²ºÍ¹ú´ó½µØÇø·¨ÔºÌáÆðËßËÏ¡£" + " <h5> µÚ12Ìõ ÆäËû </h5>" + " <p>" + " <strong>12.1</strong>¾©¶«ÍøÕ¾ËùÓÐÕßÊÇÖ¸ÔÚÕþ¸®²¿ÃÅÒÀ·¨Ðí¿É»ò±¸°¸µÄ¾©¶«ÍøÕ¾¾ÓªÖ÷Ìå¡£</p>" +
|
||
|
||
" <p>" + " <strong>12.2</strong>¾©¶«×ðÖØÓû§ºÍÏû·ÑÕߵĺϷ¨È¨Àû£¬±¾ÐÒé¼°±¾ÍøÕ¾ÉÏ·¢²¼µÄ¸÷Àà¹æÔò¡¢ÉùÃ÷µÈÆäËûÄÚÈÝ£¬¾ùÊÇΪÁ˸üºÃµÄ¡¢¸ü¼Ó±ãÀûµÄΪÓû§ºÍÏû·ÑÕßÌṩ·þÎñ¡£±¾Õ¾»¶ÓÓû§ºÍÉç»á¸÷½çÌá³öÒâ¼ûºÍ½¨Ò飬¾©¶«½«ÐéÐĽÓÊܲ¢ÊÊʱÐ޸ı¾ÐÒé¼°±¾Õ¾Éϵĸ÷Àà¹æÔò¡£" + " </p>" +
|
||
|
||
" <p>" + " <strong>12.3</strong><span>±¾ÐÒéÄÚÈÝÖÐÒÔºÚÌå¡¢¼Ó´Ö¡¢Ï»®Ïß¡¢Ð±ÌåµÈ·½Ê½ÏÔÖø±êʶµÄÌõ¿î£¬ÇëÓû§×ÅÖØÔĶÁ¡£</span></p>" + " <p>" + " <strong>12.4</strong><span>Äúµã»÷±¾ÐÒéÏ·½µÄ\"ͬÒâ²¢¼ÌÐø\"°´Å¥¼´ÊÓΪÄúÍêÈ«½ÓÊܱ¾ÐÒ飬ÔÚµã»÷֮ǰÇëÄúÔÙ´ÎÈ·ÈÏÒÑ֪Ϥ²¢ÍêÈ«Àí½â±¾ÐÒéµÄÈ«²¿ÄÚÈÝ¡£</span></p>" + "</div>" + " <div class=\"btnt\">" + " <input class=\"btn-img\" type=\''button\" value='ͬÒâ²¢¼ÌÐø' onclick='protocolReg();'/>" + " </div>" + "</div>" + "</div>" + "</div>",
|
||
_autoReposi: true
|
||
});
|
||
});
|
||
}); |