123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874 |
-
- /*//信息提交,全部整合在这里(暂时不使用
- U.UN.subUserAllInfo = function () {
- var affirmP = $("#UU_N_AffirmP")[0].value;
- var newP = $("#UU_N_NewP")[0].value;
- var nowP = $("#UU_N_NowP")[0].value;
- if (nowP != "" || newP != "" || affirmP != "") { //三个输入框中有一个不为空则执行密码函数
- if (!U.U.SPW()) {
- alert("密码修改失败");
- return false;
- }
- }
- //密保码
- var affirmSC = $("#UU_N_AffirmSecurityCode")[0].value;
- var newSC = $("#UU_N_NewSecurityCode")[0].value;
- if (newSC != "" || affirmSC != "") {
- if (US.userInfo.SecurityAnswer == null || US.userInfo.SecurityAnswer == "") { //无密保码用户
- if (!U.U.SSC()) {
- alert("密保码修改失败");
- return false;
- }
- }
- else {
- var nowSC = $("#UU_N_NowSecurityCode")[0].value;
- if (nowSC != "") {
- if (!U.U.SSC()) {
- alert("密保码修改失败");
- return false;
- }
- }
- }
- }
- alert("信息已保存");
- return true;
- }*/
- /*-------------------------------------------------------*/
- //------------------------------------------------------------没使用的函数------------------------------------------------------------//
- //firefox居然连split getElmentById()都不怎么支持。哎。无奈放弃。
- //function US_Manage_UserDescriptCommand(obj) {
- // //哎,firefox徒有虚名啊。。网络上得传闻都是假的,事件传递老出毛病
- // //var target = U.M.GetEventTarget(e); //根据浏览器类型装载事件,在主js文件中定义。
- // //if (target.tagName.toLowerCase() == 'div') {
- // var _tagetarray = obj.getElementsByTagName("div")[0].innerHTML.split("|");
- // U.M.divdoubleClick(_tagetarray[0], _tagetarray[1]);
- // //}
- //}
- //U.U.UR = 0; //判断个人设置信息input文本框中所有格式是否错误的临时变量
- ////--------------------------------------------------------------------------------个人信息设置区域----------------------------------------------------------------------
- ////-----------------------------------------------------------------------------------初始化用户信息---------------------------------------------------------------------
- ////加载个人信息以及最近留言
- //U.U.UPD = function () {
- // if (!U.U.L.LARG()) {//判断用户是否登录
- // var j = 0;
- // var _UPF = $("#UU_N_UProDiv")[0]; //好友信息框
- // U.D.PopupWindow(_UPF); //弹窗
- // U.D.Tb.WindowRestore(_UPF, '', '个人信息设置'); //创建任务栏链接
- // $("img", _UPF)[0].src = U.M.GetImgU(US.userInfo.UserThumbnailImageHead);
- // var _USW = { "UserIDCard": "UU_N_mypost", "UserNickName": "UU_N_myname", "UserEmail": "UU_N_email", "UserTelephoneNumber": "UU_N_phone", "TrueName": "UU_N_TNameInput", "UserRemarks": "UU_N_resume", "UserThumbnailImageHead": "UU_N_Image", "TrueCurrency": "UU_ND_TrueCurrency", "VirtualCurrency": "UU_ND_VirtualCurrency" }; //需要改变的元素
- // for (var i in _USW) {
- // if (_USW.hasOwnProperty(i)) {
- // if (j > 6) { $("#" + _USW[i])[0].innerHTML = US.userInfo[i] || ""; }
- // else if (j > 5) { $("#" + _USW[i])[0].src = U.M.GetImgU(US.userInfo[i] || ""); }
- // else { $("#" + _USW[i])[0].value = US.userInfo[i] || ""; }
- // j++;
- // }
- // }
- // (US.userInfo.UserSex == false) ? $("#UU_N_FMSex")[0].checked = true : $("#UU_N_MSex")[0].checked = true; //设置性别。
- // if (!US.userInfo.SecurityAnswer) { $("div", $("#ChangeSecurityCode")[0])[1].style.display = "none"; }
- // U.U.CB(1); //视图切换
- // //如果用户已经通过认证,身份证上传按钮,姓名,身份证号不给修改。
- // if (US.userInfo.IsAllowAccess != 0) { $("#UU_N_TNameInput")[0].disabled = $("#UU_N_mypost")[0].disabled = true; $("#UU_N_Identitycardimg")[0].className = "UU_N_Identitys UD_NUB UU_N_Idenbg2"; $("#UU_N_BDTNFile")[0].disabled = true; }
- // U.U.LMBD($("#UU_ND_NYR")[0]); //加载用户生日
- // if (!U.MD.DynamicLoad("/js/UU/U.U.C.js", "js", [[U.U.LCJ, ([$("#UU_ND_CPC")[0]])]])) { U.U.LCJ($("#UU_ND_CPC")[0]); } //第一次加载Js的判断 加载用户城市
- // }
- //}
- ////切换视图
- //U.U.CB = function (T) {
- // var _USDW = [U.U.SIF, U.U.SMD, U.U.SPW, U.U.SSC, null];
- // var _USW = ["UU_N_rightDetail", "UU_N_moreDetail2", "UU_N_pwdblock", "UU_N_SecurityCodeblock", "UU_N_note"]; //切换的
- // for (var i = 0; i < _USW.length; i++) { $("#" + _USW[i])[0].style.display = "none"; } //全部隐藏
- // $("#" + _USW[T - 1])[0].style.display = "block"; //显示对应的
- // $("#UU_N_SB")[0].onclick = _USDW[T - 1]; //点击事件
- //}
- ////------------------------------------------------------------------------提交数据--------------------------------------------------------------
- ////提交修改后的个人信息,此处把数据提交到数据库
- //U.U.SIF = function () {
- // var _UDE = {}, _UDOD = $("#UU_N_rightDetail")[0], _UDID = $("input", _UDOD);
- // U.A.Request("UseStudioManage.ModifyUserInfo", ([US.userInfo.userid, (_UDE["TrueName"] = _UDID[5]), (_UDE["UserNickName"] = _UDID[0]), (_UDE["UserTelephoneNumber"] = _UDID[4]), (_UDE["UserIDCard"] = _UDID[6]), _UDE["UserIndividualitysignature"] = _UDID[7], _UDE["UserEmail"] = _UDID[3], _UDE["UserRemarks"] = _UDID[7], (_UDE["UserSex"] = _UDID[1].checked) ? 0 : 1]), U.U.AsynSIF, (["", _UDE])); //后台修改数据库
- //}
- ////修改个人信息异步
- //U.U.AsynSIF = function (request) {
- // var context = request.context, _UDE = context[1]; request = request.value;
- // if (request) { _UDE["UserEmail"] = US.userInfo["UserEmail"]; } //邮箱给占用了
- // _$(US.userInfo).Change(_UDE); $("#UF_UP_Maruee")[0].innerHTML = US.userInfo.UserIndividualitysignature;
- //}
- ////修改真实姓名和身份证
- //U.U.CUTN = function () {
- // var _UDID = $("input", $("#UU_N_rightDetail")[0]), _UDND = _UDID[5], _UDSD = _UDID[6], _UDCD = _UDID[7];
- // if (US.userInfo.IsAllowAccess == 0) {//如果没有认证的用户
- // if (_UDCD.value) { if (_UDND.value.Trim() && _UDSD.value.Trim()) { U.U.ICAF(_UDCD); _UDND.disabled = _UDSD.disabled = true; U.Alert("等待认证"); return true; } } else { alert("请上传身份证进行认证"); }
- // }
- // return false;
- //}
- ////------------------------------------------------------------------------------------------用户输入判断
- ////判断用户输入
- //U.U.ICC = function (UDTH, UDTD, UTF, UTP) {
- // UDTD.innerHTML = "";
- // if (UTF.test(UDTH)) { U.U.UR = true; }
- // else { U.U.UR = false; U.U.TE(UTP, UDTD); }
- // return U.U.UR;
- //}
- ////判断邮箱是否正确
- //U.U.SEM = function (UDOD, UAF) {
- // (UDOD.value != US.userInfo.UserEmail) && (U.A.Request("UseStudioManage.GetEmailValue", ([US.userInfo.userid, UDOD]), UAF || U.U.IE, ([""])))
- //}
- ////判断邮箱是否存在
- //U.U.IE = function (request) {
- // // request = request.value;
- // // var _UNE = $('#UU_N_ChangeEmailSpan')[0]
- // // _UNE.innerHTML = "";
- // // if (!request) {
- // // U.U.TE("此邮箱已被注册", _UNE);
- // // }
- //}
- ////判断身份证是否重复使用
- //U.U.SICM = function (SO) {
- // if (US.userInfo.useridCard != SO) U.A.Request("UseStudioManage.GetIDCardValue", ([US.userInfo.userid, SO]), U.U.AsynSICM, ([""]))
- //}
- ////ajax异步处理身份证,要求唯一 判断身份证是否存在
- //U.U.AsynSICM = function (request) {
- // request = request.value;
- // var _UNE = $('#UU_N_ChangeIdCardSpan')[0]
- // _UNE.innerHTML = "";
- // if (!request) {
- // U.U.TE("此身份证已被注册", _UNE);
- // }
- //}
- //U.U.TE = function (IST, SO) {
- // $$("div", { "className": "UU_N_cs UU_N_error" }, SO);
- // $$("div", { "className": "UU_N_float", "innerHTML": IST }, SO);
- //}
- ////设置是否正确的样式
- //U.U.SER = function (IST, SO) {
- // if (IST) { SO.className = "UU_N_cs UU_N_error"; }
- // else { SO.className = "UU_N_cs UU_N_right"; }
- // SO.innerHTML = "";
- // return IST;
- //}
- ////-------------------------------------------------------------------------------初始化生日地址------------------------------------------------------------------------
- ////----------------------------------------------------------------------添加数据
- ////保存数据
- //U.U.SMD = function () {
- // var _UCC = $("#UU_ND_Country")[0], _UP = $("#UU_ND_Province")[0], _UC = $("#UU_ND_City")[0], _UBY = $("#UU_ND_Birthday_year")[0], _UBM = $("#UU_ND_Birthday_month")[0], _UBD = $("#UU_ND_Birthday_day")[0], _UND = _UBY.value + "-" + _UBM.value + "-" + _UBD.value;
- // if (U.MT.SetDT(_UND, "-") != US.userInfo.Birthday || _UCC.value != US.userInfo.Country || _UP.value != US.userInfo.Province || _UC.value != US.userInfo.City) { U.A.Request("UseStudioManage.ModifyUserMoreDetail", ([US.userInfo.userid, _UCC.value, _UP.value, _UC.value, _UND]), U.U.AsynSMD, (["", { "Country": _UCC.value, "Province": _UP.value, "City": _UC.value, "Birthday": _UND}])); } //异步修改用户资料
- // U.U.CUD(); //重新检查资料完整度
- //}
- ////异步修改用户资料
- //U.U.AsynSMD = function (request) {
- // var context = request.context;
- // request = request.value;
- // if (request != null) {
- // U.U.CUIF(US.userInfo, context[1]);
- // U.Alert("详细信息保存成功");
- // return true;
- // }
- //}
- ////修改用户信息
- //U.U.CUIF = function (DA, F) {
- // for (var i in F) {
- // DA[i] = F[i];
- // }
- //}
- ////检测当前用户输入的密码是否正确
- //U.U.CNP = function (UDOD, UTF, UAF) {
- // var _UDE = UTF ? "SecurityCode" : "Password";
- // U.A.Request("UseStudioManage.ModifyCheck" + _UDE, ([US.userInfo.userid, UDOD.value]), U.U.AsynCNP, (["", UDOD, UTF, UAF]));
- //}
- ////异步判断密码是否正确
- //U.U.AsynCNP = function (request) {
- // var _UDOD, context = request.context, _UTF = context[2], _UAF = context[3]; request = request.value;
- // if (_UAF) { _UAF(context, request); }
- // else { _UDOD = $("#" + (_UTF ? "UU_N_Nowp" : "UU_N_NowSCSpan"))[0]; _UDOD.innerText = ""; (request) && (U.U.TE("密码错误", _UDOD)); }
- //}
- ////异步判断密保码是否正确
- //U.U.AsynNSC = function (request) {
- // var _UDOD, context = request.context, _UAF = context[2]; request = request.value;
- // if (_UAF) { _UAF(context, request); }
- // else { _UDOD = $("#UU_N_NowSCSpan")[0]; _UDOD.innerText = ""; U.U.TE("密保码错误", _UDOD); }
- //}
- ////提交修改密码
- //U.U.SPW = function () {
- // var _UDOD = $("#UU_N_AffirmP")[0];
- // if (!$("#UU_N_Nowp")[0].innerHTML && !$("#UU_N_Newp")[0].innerHTML && !$("#UU_N_ChangePassword")[0].innerHTML && $("#UU_N_NowIP")[0].value && $("#UU_N_NI")[0].value && $("#UU_N_AffirmP")[0].value) {
- // U.A.Request("UseStudioManage.ModifyUserPassword", ([_UDOD.value, US.userInfo.userid, US.userInfo.username, US.userInfo.SecurityAnswer, US.userInfo["OnUserId"]]), U.U.CPW, ([])); //保存到数据库
- // }
- // else { U.Alert("请正确填写资料"); }
- //}
- ////修改密码异步
- //U.U.CPW = function (request) {
- // var context = request.context; request = request.value;
- // if (request) {
- // US.userInfo.UserPassword = request;
- // $("#UU_N_ChangePassword")[0].innerHTML = $("#UU_N_NI")[0].value = $("#UU_N_NowIP")[0].value = $("#UU_N_AffirmP")[0].value = "";
- // U.Alert("密码修改成功");
- // }
- // else { U.Alert("密码修改失败,请重试"); }
- //}
- ////判断确认密码是否相同
- //U.U.CCPW = function (SO, NPW, NWPW, UCPW) {
- // UCPW.innerHTML = "";
- // var _USW = ""; var _TF = false;
- // if (SO.value && NWPW.value) {
- // if (SO.value == NWPW.value) {
- // if (SO.value.length < 6 || SO.value.length > 20) { _USW = "长度应为6-20位"; }
- // else if (!U.MS.PassWord.test(SO.value)) { _USW = "不支持特殊符号"; }
- // else if (SO.value == NPW.value || NWPW.value == NPW.value) { _USW = "新密码不得与旧密码相同"; }
- // else { _TF = true; }
- // }
- // else { _USW = "两次输入的密码不一致 "; }
- // }
- // if (_USW) {
- // U.U.TE(_USW, UCPW);
- // }
- // return _TF;
- //}
- ////通用密码检查
- //U.U.CNPW = function (SO, SP) {
- // SP.innerHTML = "";
- // if (SO.value) {
- // if (SO.value.length < 6 || SO.value.length > 20) { U.U.TE("长度应为6-20位", SP); }
- // else if (!U.MS.PassWord.test(SO.value)) { U.U.TE("不支持特殊符号", SP); }
- // }
- //}
- ////-------------------------------------------------------------------------------
- ////提交密保码
- //U.U.SSC = function () {
- // var _UASC = $("#UU_N_AffirmSC")[0];
- // if (!US.userInfo.SecurityAnswer) {
- // if (!$("#UU_N_NewSCSpan")[0].innerHTML && !$("#UU_N_ChangeSCSpan")[0].innerHTML && $("#UU_N_NewSC")[0].value && $("#UU_N_AffirmSC")[0].value) {
- // U.A.Request("UseStudioManage.EditSecurityCode", ([US.userInfo.userid, _UASC.value]), U.U.CS, ([])); //保存到数据库
- // $("div", $("#ChangeSecurityCode")[0])[1].style.display = "block";
- // }
- // else { U.Alert("请正确填写资料"); }
- // }
- // else {
- // if (!$("#UU_N_NowSCSpan")[0].innerHTML && !$("#UU_N_NewSCSpan")[0].innerHTML && !$("#UU_N_ChangeSCSpan")[0].innerHTML && $("#UU_N_NowSC")[0].value && $("#UU_N_NewSC")[0].value && $("#UU_N_AffirmSC")[0].value) {
- // U.A.Request("UseStudioManage.EditSecurityCode", ([US.userInfo.userid, _UASC.value]), U.U.CS, ([])); //保存到数据库
- // }
- // else { U.Alert("请正确填写资料"); }
- // }
- //}
- ////添加密保
- //U.U.CS = function (request) {
- // request = request.value; US.userInfo.SecurityAnswer = request;
- // $("#UU_N_NowSC")[0].value = $("#UU_N_NewSC")[0].value = $("#UU_N_AffirmSC")[0].value = $("#UU_N_ChangeSCSpan")[0].innerHTML = ""; //清空数据
- // U.U.CUD(); U.Alert("密保码修改成功"); //重新检查资料完整度
- //}
- ////--------------------------------------------------------------------------------------上传头像区域------------------------------------------------------------------
- ////上传头像显示
- //U.U.DP = function (T) {
- // var _UNCD = $("#UU_N_CD")[0];
- // $("div", _UNCD)[7].innerHTML = US.userInfo.UserNickName; //这里带数字,添加一个div会出错。
- // var _UNI = $("img", _UNCD).addAttrArray({ "onerror": [U.M.ImgError, (["this"])], "src": U.M.GetImgU(US.userInfo.UserThumbnailImageHead) });
- // $("div", _UNCD)[6].onclick = U.M.apply(this, [[U.M.StopBubble], [U.Img.Create, [([{ 'Thm': U.M.GetImgU(US.userInfo.UserThumbnailImageHead), 'Img': US.fs + US.userInfo.UserImageHead}])]]]);
- // U.U.LXP(T || 0); //用户历史头像
- // if (T == null) { U.D.PopupWindow(_UNCD); }
- //}
- ////查看历史头像
- //U.U.LDP = function (DH) {
- // var _UNIA = $("#UU_N_IA")[0];
- // _UNIA.innerHTML = "";
- // for (var i = 0; i < DH.length; i++) { if (i == 8) { break; } $$("img", { "onerror": U.M.ImgError, "className": "UU_N_FLL", "alt": "点击更换头像", "src": DH[i][0], "onclick": [[U.U.CP, ([DH[i]])]] }, _UNIA); }
- //}
- ////查看系统头像
- //U.U.LXP = function (T) {
- // var _U = "/img/UserHead/", _SW = [[_U + "nFacen.jpg"], [_U + "nFaceArt.jpg"], [_U + "212名.jpg"], [_U + "w551.png"], [_U + "w2.png"], [_U + "w3.png"]];
- // if (T == 1) { _SW = []; for (var i = US.userInfo.DiskHeadImg.length - 1; i >= 0; i--) { _SW.push([US.userInfo.DiskHeadImg[i].UserDirectoryUrl, US.fs + US.userInfo.DiskHeadImg[i].UserFilesServerName]); } }
- // U.U.LDP(_SW);
- //}
- ////修改用户头像查看
- //U.U.CP = function (URL) {
- // var _UR = URL[0] || this.src, _UDCD = $("#UU_N_CD")[0];
- // $("img", _UDCD).addAttrArray({ "src": URL }); $("div", _UDCD)[6].onclick = U.M.apply(this, [[U.M.StopBubble], [U.Img.Create, [([{ 'Thm': _UR, 'Img': URL[1] || _UR}])]]]);
- // $("#UU_N_BTT")[0].onclick = U.M.apply(this, [[U.U.CUIMG, ([URL, "this"])], [U.U.ULIMG, ([$('input', _UDCD)[0]])]]); //保存头像
- //}
- ////修改用户头像
- //U.U.CUIMG = function (UEI, SO) {
- // if (UEI[0] != US.fs + US.userInfo.UserThumbnailImageHead && UEI[0].indexOf("1473.cn") > -1) {//合法的链接地址同时又修改了用户头像
- // //修改所有页面中的头像。
- // U.U.TYMHimg(UEI[0]);
- // U.A.Request("UseStudioDisk.ModitfyHeadImage", ([US.userInfo.userid, (UEI[1] || UEI[0]).replace(US.fs, ""), UEI[0].replace(US.fs, "")]), U.M.apply(this, "U.Alert('修改用户头像成功')"), ([]));
- // _$(US.userInfo).Add({ "UserThumbnailImageHead": UEI[0], "UserImageHead": UEI[1] });
- // }
- // $('div', SO.parentNode.parentNode)[1].onclick();
- //}
- ////统一修改头像
- //U.U.TYMHimg = function (src) {
- // if (US.userInfo.userid) { $("img", $("#UD_UT")[0])[0].src = $("#UDK_LL_US_IM")[0].src = $("img", $("#UF_UP_UserBoard")[0])[0].src = $("img", $("#UU_N_CD")[0])[0].src = $("#UU_N_Image")[0].src = $("#U_U_L_HeadImg")[0].src = $("#UU_IC_Avatar")[0].src = $("img#UDK_LL_US_IM", $("#UseStudioUserDiskDiv" + US.userInfo.userid)[0])[0].src = src; }
- //}
- ////统一修改积分
- //U.U.TYMIC = function (VCSum) {
- // $("div#UDK_LL_VirC", $("#UseStudioUserDiskDiv" + US.userInfo.userid))[0].innerHTML = "积分:" + VCSum;
- // $("#UU_IC_VCSum")[0].innerHTML = $(".UU_OverIC")[0].innerHTML = $(".UU_OverIC")[1].innerHTML = VCSum;
- //}
- ////------------------------------------------------------------------------------------上传-----------------------------------------------------------------------------
- ////上传用户身份证(还没有上传到用户硬盘 只是获取css和html可以识别的图片base64编码)
- //U.U.UIDC = function (SO) {
- // var _PSO = SO.parentNode;
- // U.UP.uploading([SO], U.U.DI, (["idcardimg"]), "http://disk.1473.cn/USupfile.ashx?iframename=UploadIdCard");
- // _PSO.appendChild(SO);
- // U.U.UR = true; //把修改标志置为true.
- //}
- ////确认添加身份证图片时
- //U.U.ICAF = function (UDOD) {
- // var _UDPD = UDOD.parentNode;
- // U.UP.uploading([UDOD], U.U.UIAA, ([2]), "http://disk.1473.cn/USupfile.ashx?iframename=IDCardImage");
- // $("#UU_N_TNameInput")[0].disabled = $("#UU_N_mypost")[0].disabled = false;
- // _UDPD.appendChild(UDOD);
- //}
- ////添加身份证异步处理
- //U.U.UIAA = function (UIK) {
- // US.userInfo.IsAllowAccess = UIK;
- // $("#UU_N_mypost")[0].disabled = $("#UU_N_TNameInput")[0].disabled = true; //真实姓名文本框
- // $("#UU_N_Identitycardimg")[0].className = "UU_N_Identitys UD_NUB UU_N_Idenbg2";
- // $("#UU_N_Identitycardimg")[0].style.cursor = "default";
- //}
- ////------------------------------------------------------------------辅助函数-----------------------------------------------------------------------
- //判断个人简介
- //U.UN.ResumeTextBoxOnChange = function (obj, event) {
- // // var KeyCode = U.M.getKeyCode(event);
- // // var evt = U.M.GetEvent(event);
- // // if (obj.length > 134) {
- // // if (KeyCode != 40 && KeyCode != 39 && KeyCode != 38 && KeyCode != 37 && KeyCode != 46 && KeyCode != 8) {
- // // if (browser.firefox == true) { //判断是否是FF
- // // evt.preventDefault(); //firefox 禁止键盘输入
- // // }
- // // else {
- // // window.event.returnValue = false; //ie
- // // }
- // // }
- // // }
- //}
- //ajax异步处理邮箱,要求唯一。 判断是否存在此邮箱
- //function SetEmailMessage(obj) {
- // U.D.P.TSInfo();
- // var response = U.A.Request("UseStudioManage.GetEmailValue", ([obj])).value;
- // var emailtext = document.getElementById("UU_N_EmailTBox");
- // if (response == false) {
- // _useremailspan.innerHTML = "已经存在此邮箱";
- // }
- // else {
- // _useremailspan.style.color = "Black";
- // _useremailspan.innerHTML = "正确";
- // }
- //}
- //U.M.GetUserInfo_CallBack = function (response) {
- // var NewReply = "", NewUpload = "", GetUserInfo = "", _user = "", NewArticle = "";
- // var _usernewinfo = response.value;
- // //var US_Manage_OtherUsersInfoDiv = response.context[1];
- // var _otheruser = _usernewinfo[0]; //调用用户信息,不加var是全局变量,彭依选要特别注意这个地方。
- // var ArticleContent = _usernewinfo[1]; //用户最新文章
- // var ReplyContent = _usernewinfo[2]; //用户最新回复
- // var Upload = _usernewinfo[3]; //用户最新上传
- // /*------最新文章------*/
- // var userid = _otheruser.UserId;
- // if (typeof (ArticleContent[0]) == "undefined") {
- // NewArticle = "<div style='color:gray;margin-top:10px;'>该用户没有发表文章!</div>";
- // }
- // else {
- // for (i = 1; i < ArticleContent.length; i++) {
- // NewArticle += '<div style="margin-left:10px;width:100%; height:20px; cursor: pointer;">';
- // NewArticle += '<a title="' + ArticleContent[i].ArticleTitle + '" style=" text-decoration:none; float: left; color: Blue; cursor: hand; height:20px; " href="javascript:void(0);" onclick="U.M.divdoubleClick(\'UseStudioBlogSystemDiv\',null,\'' + userid + '\',\'\',\'' + ArticleContent[i].ArticleID + '\');return false;"> '; //根据用户ID和文章ID查看相关的文章内容内容
- // // NewArticle += '<a title="' + ArticleContent[i].ArticleTitle + '" style=" text-decoration:none; float: left; color: Blue; cursor: hand; height:20px; " href="javascript:void(0);" onclick="U.M.divdoubleClick(\'UseStudioBlogSystemDiv\',null,\'' + ArticleContent[i].ArticleID + '\',\'' + userid + '\');return false;"> '; //根据用户ID和文章ID查看相关的文章内容内容
- // NewArticle += ArticleContent[i].ArticleTitle.length > 8 ? ArticleContent[i].ArticleTitle.substring(0, 8) : ArticleContent[i].ArticleTitle; //显示文章标题时只显示8个字符串的长度
- // NewArticle += '</a>';
- // NewArticle += '<div class="GetLocalTime" style="padding-right:20px;">';
- // NewArticle += U.MT.getLocalTime(ArticleContent[i].ArticleAddTime.substring(7, ArticleContent[i].ArticleAddTime.length - 1)); //时间格式为:m月d日 h点min
- // NewArticle += '</div> </div>';
- // }
- // }
- // /*------最新回复------*/
- // if (typeof (ReplyContent[0]) == "undefined")
- // { NewReply = "<div style='color:gray;margin-top:10px;'>该用户没有最新回复!</div>" }
- // else {
- // for (i = 1; i < ReplyContent.length; i++) {
- // // NewReply += '<div style="margin-left: 10px; width: 100%; height: 20px;"onclick="U.M.divdoubleClick(\'UseStudioBlogSystemDiv\',null,\'' + ReplyContent[i].ArticleID + '\',\'' + userid + '\');return false;">'; //根据用户ID和回复查看相关的回复信息
- // NewReply += '<div style="margin-left: 10px; width: 100%; height: 20px;"onclick="U.M.divdoubleClick(\'UseStudioBlogSystemDiv\',null,\'' + userid + '\',\'' + ReplyContent[i].ArticleID + '\');return false;">'; //根据用户ID和回复查看相关的回复信息
- // NewReply += '<div style="float: left; color: Blue; cursor: pointer;">' + ReplyContent[i].ReplyContent + '</div>'; //显示回复内容
- // NewReply += ' <div class="GetLocalTime",style="padding-right:20px;"></div>';
- // NewReply += '<div class="GetLocalTime"style="padding-right:20px;">';
- // NewReply += U.MT.getLocalTime(ReplyContent[i].ReplyAddTime.substring(6, ReplyContent[i].ReplyAddTime.length - 1)); //时间格式为:m月d日 h点min
- // NewReply += '</div> </div>';
- // }
- // }
- // /*------最新上传------*/
- // if (Upload[1].length < 1) { NewUpload = "<div style='color:gray;margin-top:10px;'>该用户没有最新上传!</div>" }
- // else {
- // for (i = 0; i < Upload[1].length; i++) {
- // NewUpload += '<div onclick="U.Imges.CreatePhotoCase(\'' + Upload[1][i].UserFilesID + '\',this.getElementsByTagName(\'div\')[\'imgtruenamehiddendiv\'].innerHTML);" style="float: left; height: 55px;">' + //div onclick调用郭仁的图片浏览器(部分)
- // '<img alt="单击显示" onmouseover="U.U.dispImgBorder(this);" onmouseout="U.U.HidImgBorder(this);"style="border: 2px solid white; width: 50px; height: 50px; margin: 5px;" onerror="this.src=\'http://fs.1473.cn/yousi.png\'" src=\'' + Upload[0] + Upload[1][i].UseFilesServerThumbnailName + '\' />' + //用户的最新上传
- // '<div id="imgtruenamehiddendiv" style="display: none;">' + Upload[1][i].UserFilesServerName + '</div></div>';
- // }
- // }
- // /*------用户资料页面------*/
- // if (_otheruser.UserNickName == null) _otheruser.UserNickName = _otheruser.UserName;
- // var GetUserInfo = ""; //需要定义,否则是全局变量
- // GetUserInfo += '<div class="U_U_UserInfobase">'
- // GetUserInfo += '<div class="U_U_UserInfouserimg" onclick="U.Imges.CreatePhotoCase(this,this.getElementsByTagName(\'div\')[\'Userimgtruenamehiddendiv\'].innerHTML);"> '
- // GetUserInfo += '<img alt="单击显示" onmouseover="U.U.dispImgBorder(this);" onmouseout="U.U.HidImgBorder(this);" Style="border: 2px solid white;"Width="70" Height="70" ID="userheadImgControl" onerror="this.src=\'http://fs.1473.cn/yousi.png\'" src=\'' + _otheruser.UserThumbnailImageHead + '\' />'//用户的头像
- // GetUserInfo += '<div id="Userimgtruenamehiddendiv" style="display: none;">' + _otheruser.UserThumbnailImageHead + '</div></div>'
- // GetUserInfo += '<div class="U_U_UserInfotext">'
- // GetUserInfo += '<ul><li>用户呢称:' + _otheruser.UserNickName + '</li>'//用户昵称
- // GetUserInfo += '<li>登录ip:' + _otheruser.LoginIP + '</li>'//登录ip
- // GetUserInfo += '<li>所在城市:' + "谁来实现?" + '</li>'//所在城市
- // GetUserInfo += '<li>登录时间:' + U.MT.getAjaxTime(_otheruser.lastLoginDate) + '<li>'//用户最近登录时间
- // GetUserInfo += '<li>注册时间: ' + U.MT.getAjaxTime(_otheruser.RegisterDate) + '<li></ul></div></div>'//用户最近登录时间
- // GetUserInfo += '<div class="U_U_UserInfoimg U_U_UserInfocomputer" onclick="U.M.divdoubleClick(\'UseStudioUserDiskDiv\',\'7aeaab56-485f-4150-b781-8ffd86d593ce\',\'' + userid + '\');"></div>'//用户的电脑
- // GetUserInfo += '<div class="U_U_UserInfoimg U_U_UserInfophoto" onclick="U.M.divdoubleClick(\'UseStudioUserDiskDiv\',\'93553847-e299-464c-a0e2-c15872efb6ae\',\'' + userid + '\');"></div>'//用户的相册
- // //GetUserInfo += '<div class="U_U_UserInfoimg U_U_UserInfomusic" onclick="U.M.divdoubleClick(\'UseStudioUserDiskDiv\',\'8a2135ff-746a-43a8-97b8-552d228a00bb\',\'' + userid + '\');"></div>'//用户的音乐
- // GetUserInfo += '<div class="U_U_UserInfoimg U_U_UserInfomusic" onclick="U.Dk.Om(\'' + userid + '\');"></div>'//用户的音乐
- // GetUserInfo += '<div class="U_U_UserInfoimg U_U_UserInfoview" onclick="U.M.divdoubleClick(\'UseStudioUserDiskDiv\',\'bf21bf7a-1e95-4194-8e4a-e9334d7d998d\',\'' + userid + '\');"></div>'//用户的视频
- // GetUserInfo += '<div class="U_U_UserInfoimg U_U_UserInfostudy" onclick="U.M.divdoubleClick(\'UseStudioBlogSystemDiv\',null,\'' + userid + '\');"></div>'//用户的博客
- // _user += '<div class="U_U_UserInforecent">'
- // _user += '<div class="U_U_UserInforecentarticle">'
- // _user += '<div class="U_U_UserRecent" >最新文章:</div>'
- // _user += '<div>' + NewArticle + '</div></div>'//用户最新发表的3篇文章
- // _user += '<div class="U_U_UserInforecentreplay">'
- // _user += '<div class="U_U_UserRecent" >最近回复:</div>'
- // _user += '<div>' + NewReply + '</div></div>' //用户最新的3条回复信息
- // _user += '<div class="U_U_UserInforecentupload">'
- // _user += '<div class="U_U_UserRecent" >最近上传:</div>'
- // _user += '<div>' + NewUpload + '</div>'//用户最近的上传
- // _user += '</div></div></div>';
- // var _body = $$("div", { "className": "U_U_UserInfoimg U_U_UserInfobody", "innerHTML": GetUserInfo }, UD_NU_OUInfo);
- // var _div = $$("div", { "id": "UseStudioAteentionDiv", "className": "U_U_UserInfoimg U_U_UserInfointerest" }, _body);
- // _body.innerHTML += _user;
- // _body.getElementsByTagName("div")["UseStudioAteentionDiv"].onclick = U.M.StateFunction(_div, _otheruser, "U.M.UserAttention");
- //}
- //U.U.dispImgBorder = function (obj) {
- // obj.style.border = "2px solid lightgreen";
- //}
- ////鼠标离开是的效果
- //U.U.HidImgBorder = function (obj) {
- // obj.style.border = "2px solid white";
- //}
- ////---------------------------------------------------------------------新增用户的效果淡出效果--------------------------------------------------------------------
- //U.D.magnifyAppearClock; //用来保存“新增用户放大出现效果”的计时器
- //U.D.fadeOutClock; //用来保存“新增用户淡出效果”的计时器
- //U.D.controlVifrification = 100; //用来结束“新增用户淡出”的计时器
- //U.D.controlDivList = 5; //用来控制数组
- //U.D.judgeLast = 0; //用来判断是否要还原最后一组
- //U.D.NetAdditionlist = new Array(); //用来保存“新增用户”数组
- //U.D.NetAdditionShow = function (_listnewFriends) { //创建“新增用户”数组
- // for (var i = 0; i < _listnewFriends.length; i++) { //循环创建“新增用户”的div
- // var NetAddition = document.createElement("div");
- // NetAddition.style.cssText = "position: absolute; left:" + window.screen.width / 2 + "px; top:" + window.screen.height / 2 + "px;";
- // NetAddition.innerHTML = "<img style ='width:0px; height:0px; box-shadow: 0px 0px 10px #3d3d3d; border-radius: 5px 5px 5px 5px;' src='" + _listnewFriends[i].UserThumbnailImageHead + "' onclick=\"U.U.I.POUW('" + _listnewFriends[i].UserId + "',this.parentNode)\"/>"
- // document.body.appendChild(NetAddition);
- // U.D.NetAdditionlist[i] = NetAddition; //将“新增用户”的div对象保存到数组中
- // }
- // var _closeClock = document.createElement("div"); //用来关闭计时器
- // _closeClock.innerHTML = "<span title='关闭效果' class='Dic closeIcon' onmouseout=\"this.className='Dic closeIcon'\" onmouseover=\"this.className='Dic closelight'\" onclick=\"U.D.closeClock(this)\"></span>";
- // _closeClock.style.cssText = "position: absolute; left:" + window.screen.width / 4 * 3 + "px; top:" + window.screen.height / 9 * 4 + "px; ";
- // document.body.appendChild(_closeClock);
- // U.D.magnifyAppearClock = setInterval(function () { //开始使用“新增用户放大出现效果”的计时器
- // U.D.magnifyAppear();
- // }, 50);
- //}
- //U.D.closeClock = function (obj) {
- // clearInterval(U.D.fadeOutClock); //删除淡出计时器
- // U.D.fadeOutClock = null;
- // clearInterval(U.D.magnifyAppearClock); //删除“新增用户放大出现效果”的计时器
- // U.D.magnifyAppearClock = null;
- // for (var i = 0; i < U.D.NetAdditionlist.length; i++) { //这里是将新增用户的div隐藏,也可以改成删除,根据具体的情况而定
- // U.D.NetAdditionlist[i].style.display = "none";
- // }
- // obj.parentNode.style.display = "none";
- //}
- //U.D.magnifyAppear = function () { //新增用户放大出现效果
- // if (parseInt(U.D.NetAdditionlist[U.D.controlDivList - 5].firstChild.style.width) > 70) { //当当前的数组的图片宽度>70px时,让当前数组淡出,开始对下一组数组的操作
- // U.D.controlDivList = U.D.controlDivList + 5; //将下一组的下标赋予变量
- // U.D.controlVifrification = 100;
- // clearInterval(U.D.fadeOutClock); //删除淡出计时器
- // U.D.fadeOutClock = null;
- // U.D.fadeOutClock = setInterval(function () { //让当前的数组淡出
- // U.D.fadeOut();
- // }, 20);
- // if (U.D.judgeLast == 1) { //将最后一组还原
- // for (var i = 40; i < 45; i++) {
- // U.D.NetAdditionlist[i].firstChild.style.width = "0px";
- // U.D.NetAdditionlist[i].firstChild.style.height = "0px";
- // U.D.NetAdditionlist[i].style.left = window.screen.width / 2 + "px";
- // U.D.NetAdditionlist[i].style.top = window.screen.height / 2 + "px";
- // U.D.NetAdditionlist[i].style.opacity = 1;
- // }
- // U.D.judgeLast = 0;
- // }
- // if (U.D.controlDivList > 45) { //当已经出现的新增用户超过了45个,还原全部(除了最后一组)
- // U.D.controlDivList = 5;
- // for (var i = 0; i < 40; i++) {
- // U.D.NetAdditionlist[i].firstChild.style.width = "0px";
- // U.D.NetAdditionlist[i].firstChild.style.height = "0px";
- // U.D.NetAdditionlist[i].style.left = window.screen.width / 2 + "px";
- // U.D.NetAdditionlist[i].style.top = window.screen.height / 2 + "px";
- // U.D.NetAdditionlist[i].style.opacity = 1;
- // }
- // U.D.judgeLast = 1;
- // }
- // return;
- // }
- // for (var k = U.D.controlDivList - 5; k < U.D.controlDivList; k++) {
- // U.D.NetAdditionlist[k].firstChild.style.width = parseInt(U.D.NetAdditionlist[k].firstChild.style.width) + 1 + "px";
- // U.D.NetAdditionlist[k].firstChild.style.height = parseInt(U.D.NetAdditionlist[k].firstChild.style.height) + 1 + "px";
- // U.D.NetAdditionlist[k].style.top = parseInt(U.D.NetAdditionlist[k].style.top) + 1 + "px";
- // if (k % 5 == 0) {
- // U.D.NetAdditionlist[k].style.left = parseInt(U.D.NetAdditionlist[k].style.left) - 4 + "px";
- // }
- // if (k % 5 == 1) {
- // U.D.NetAdditionlist[k].style.left = parseInt(U.D.NetAdditionlist[k].style.left) - 2 + "px";
- // }
- // // if (k % 5 == 2) {
- // // U.D.NetAdditionlist[k].style.left = parseInt(U.D.NetAdditionlist[k].style.left) + 1 + "px";
- // // }
- // if (k % 5 == 3) {
- // U.D.NetAdditionlist[k].style.left = parseInt(U.D.NetAdditionlist[k].style.left) + 2 + "px";
- // }
- // if (k % 5 == 4) {
- // U.D.NetAdditionlist[k].style.left = parseInt(U.D.NetAdditionlist[k].style.left) + 4 + "px";
- // }
- // }
- //}
- //U.D.fadeOut = function () { //新增用户淡出效果
- // U.D.controlVifrification--;
- // if (U.D.controlDivList - 10 < 0) { //如果U.D.controlDivList - 10小于0,表示是最后一组
- // for (var k = 40; k < 45; k++) {
- // U.D.NetAdditionlist[k].style.top = parseInt(U.D.NetAdditionlist[k].style.top) + 1 + "px";
- // U.D.NetAdditionlist[k].style.opacity = U.D.controlVifrification * 0.01;
- // }
- // }
- // else {
- // for (var k = U.D.controlDivList - 10; k < U.D.controlDivList - 5; k++) {
- // U.D.NetAdditionlist[k].style.top = parseInt(U.D.NetAdditionlist[k].style.top) + 1 + "px";
- // U.D.NetAdditionlist[k].style.opacity = U.D.controlVifrification * 0.01;
- // }
- // }
- //}
- //U.U.R._stop = 0, _clear = 0, U.U.R._rightValue = -270, _showOrHidden = 0; /*各参数分别为停止 清除计时器 距离 伸缩判断*/
- //var mysign = 1;
- //U.U.R.showOrHidde = function (_BgimgObj, obj) {
- // if (U.U.R.userMove == 1) { /*如果用户把整个可收缩的大div 拖出来又想回到原位*/
- // obj.style.left = null; /*由于拖动的时候改变的是对象的left值 但是我的展开和收缩改变的是right的值,left和right冲突,所以要清空left的值。。。。*/
- // obj.style.right = "-270px";
- // obj.style.top = "80px";
- // _BgimgObj.style.backgroundImage = "url(/img/Desktop.png)";
- // _BgimgObj.style.backgroundPosition = "-597px -393px";
- // mysign = 0;
- // }
- // else {
- // if (mysign == 0) {
- // if (U.U.R.userMove == 0) {
- // U.U.R._stop = 0, _clear = 0, U.U.R._rightValue = -270, _showOrHidden = 0; /*如果用户展开了大的div再进行移动到自己喜欢的位置 然后他收缩到原来的位置,那么下一次应该执行展开 _showOrHidden = 0;代表要执行展开*/
- // mysign = 1;
- // }
- // }
- // _clear = setInterval(function () { executeShowOrHidden(_BgimgObj, obj) }, 1);
- // }
- // U.U.R.userMove = 0;
- //}
- /*_showOrHidden == 0 为展开 1为收缩*/
- //function executeShowOrHidden(_BgimgObj, obj) {
- // _BgimgObj.style.backgroundImage = "url(/img/Desktop.png)";
- // if (_showOrHidden == 0) {
- // obj.style.left = null; /*由于拖动的时候改变的是对象的left值 但是我的展开和收缩改变的是right的值,left和right冲突,所以要清空left的值。。。。*/
- // U.U.R._stop++;
- // if (U.U.R._stop < 4) {
- // U.U.R._rightValue = U.U.R._rightValue + 66
- // }
- // else
- // U.U.R._rightValue = U.U.R._rightValue + 36;
- // obj.style.right = U.U.R._rightValue + "px";
- // if (U.U.R._stop == 5) {
- // window.clearInterval(_clear); /*停止计时器*/
- // _showOrHidden = 1;
- // U.U.R._stop = 0;
- // }
- // _BgimgObj.style.backgroundPosition = "-566px -393px";
- // }
- // else {
- // U.U.R._stop++;
- // if (U.U.R._stop < 3) {
- // U.U.R._rightValue = U.U.R._rightValue - 36;
- // }
- // else
- // U.U.R._rightValue = U.U.R._rightValue - 66;
- // obj.style.right = U.U.R._rightValue + "px";
- // if (U.U.R._stop == 5) {
- // window.clearInterval(_clear);
- // _showOrHidden = 0;
- // U.U.R._stop = 0;
- // }
- // _BgimgObj.style.backgroundPosition = "-597px -393px";
- // }
- //}
- /*切换微博 QQ等应用*/
- //U.U.R.changeApp = function (obj, appId) {
- // var appObj = U.M.getTrueChildNodes(obj.childNodes); //获取所有聊天,微博,硬盘,邮件div
- // var appObjIframe = obj.getElementsByTagName("iframe")["UF_UP_UMblogIframe"]; //微博Iframe。
- // for (var i = 0; i < appObj.length; i++) {
- // appObj[i].style.display = "none";
- // }
- // if (appObj[0].id == appId) { //这个是聊天
- // appObj[0].style.display = "block";
- // document.getElementById("UseStudioQQControldiv").style.display = "block";
- // }
- // else if (appObj[1].id == appId) { //这个是微博
- // appObj[1].style.display = "block";
- // appObjIframe.src = "/usercontrols/iframepages/UserAttentionPage.aspx";
- // }
- // else
- // appObj[2].style.display = "block"; //这个是邮箱
- //}
- ////登陆后刷新论坛、博客、以及其他页面
- //U.U.R.RefreshForumEtc = function () {
- // var IframeWindow = document.getElementById("UseStudioStudyControlDivIframe");
- // if (IframeWindow == null) return;
- // if (IframeWindow.contentWindow.document.getElementById("recordreplyarticleidinput").innerHTML != "") {
- // IframeWindow.contentWindow.US.BlogPub.Replydataput(IframeWindow.contentWindow.document.getElementById("recordreplyarticleidinput").innerHTML, "true");
- // }
- //}
- //生日的onchange事件
- U.U.ND.CheckMonth = function (value) {
- U.U.ND.AddOptions(U.MT.getDateOfMonth(value, $("#UU_ND_Birthday_year")[0].value), "", $("#UU_ND_Birthday_day")[0], 0);
- }
- //绑定邮箱
- U.UN.BindingEamil = function () {
- U.A.Request('UseStudioManage.usestudiousergetpassword', ([US.userInfo.username]), U.UN.ABind) //发送绑定邮箱
- }
- //绑定邮箱异步
- U.UN.ABind = function (response) {
- response = response.value;
- response.value == false ? alert("发送失败,请联系管理员!") : alert("请5分钟后到注册邮箱查收信息!");
- }
- //提交数据修改用户签名
- U.UN.ChangeUserSignature = function (AmendUserSignature) {
- US.userInfo.UserIndividualitysignature = AmendUserSignature;
- parent.$("#UF_UP_Maruee")[0].innerHTML = AmendUserSignature; //个人设置信息个性签名赋值好友头部个性签名
- }
- //判断每个用户信息是否空
- //U.UN.DecisionUserNews = function (UserObj) {
- // if (UserObj == "null" || UserObj == null) { UserObj = ""; }
- // return UserObj;
- //}
- //判断用户昵称是否正确
- U.UN.UserNickNameTextboxOnChange = function (SO) {
- var _UCN = $("#UU_N_Myname")[0];
- if (U.U.SER(!U.MS.NickName.test(SO), _UCN)) { U.U.UR = false; }
- else { U.U.UR = true; U.Alert("请填写正确的姓名"); } //显示是否正确
- }
- //判断要修改用户名 且修改的用户名是否正确
- U.UN.TrueNameOnChange = function (SO) {
- var _CheckTrueName = $("#UU_N_TNameSpan")[0];
- if (U.U.SER(!U.MS.TrueName.test(obj), _CheckTrueName)) { U.U.UR = false; } //非必填,所以不要阻止其他项目的修改
- else { U.U.UR = true; U.Alert("中文英文均可但不能超出25个字符"); }
- }
- //判断邮箱格式是否正确
- U.UN.EmailTextBoxOnChange = function (SO) {
- var _UCE = $("#UU_N_Email")[0];
- if (U.U.SER(!U.MS.Email.test(SO), _UCE)) { U.U.UR = false; }
- else { _UCE.innerHTML = "正在识别"; U.U.SEM(SO, _UCE); }
- }
- //判断身份证格式是否正确
- U.UN.IDCardTextBoxOnChange = function (obj) {
- var CheckIdCard = $("#UU_N_Mypost")[0];
- if (obj == US.userInfo.useridCard) { CheckIdCard.className = ""; return; }
- if (U.U.SER(!U.MS.ChineseIdCard.test(obj), CheckIdCard)) { U.U.UR = false; }
- else { CheckIdCard.innerHTML = "正在识别"; U.U.SICM(obj, CheckIdCard); }
- }
- //判断个性签名是否修改
- U.UN.ChangeUIDST = function (obj) {
- US.userInfo.UserIndividualitysignature == obj ? U.U.UR = false : U.U.UR = true;
- }
- //点开判断
- U.UN.JudgeDisplayPrompt = function () {
- // $("#UU_N_Myname")[0].className = "UU_N_Notice";
- // $("#UU_N_Email")[0].className = "UU_N_Notice";
- // $("#UU_N_Telephone")[0].className = "UU_N_Notice";
- // $("#UU_N_TNameSpan")[0].className = "UU_N_Notice";
- // $("#UU_N_Mypost")[0].className = "UU_N_Notice";
- }
- //-----------------------------------------------------------------用户信息成功提交后------------------------------------------------------
- //修改使用用户头像
- U.UN.ModiitfyHeadImage = function (UserFilesServerName, UseFilesServerThumbnailName) {
- var ImgS = $("#UU_N_NP")[0];
- ImgS.src = UserFilesServerName;
- ImgS.alt = UseFilesServerThumbnailName;
- }
- //提交数据修改用户头像
- U.UN.ChangeUserHead = function () {
- var HeadImg = $("#UU_N_NP")[0]; //判断头像是否默认或是否改变头像
- if (US.userInfo.UserThumbnailImageHead != HeadImg.src) {
- var UserFilesServerName = "";
- var UseFilesServerThumbnailNameb = "";
- if (HeadImg.src.indexOf("http://fs.1473.cn") != -1) { //使用历史头像直接修改数据库
- UserFilesServerName = HeadImg.src.replace("background-image:url(", "").replace(");", "").replace("http://fs.1473.cn/", "");
- UseFilesServerThumbnailNameb = HeadImg.alt.replace("background-image:url(", "").replace(");", "").replace("http://fs.1473.cn/", "");
- U.A.Request("UseStudioDisk.ModitfyUserHeadImage", ([US.userInfo.userid, UserFilesServerName, UseFilesServerThumbnailNameb]));
- $("#UU_N_Image")[0].src = HeadImg.src;
- U.F.T.UN('changetimg', UserFilesServerName); //修改用户头像
- }
- else {
- var UserFilesServerName = HeadImg.src;
- UserFilesServerName = UserFilesServerName.substring(18, UserFilesServerName.length);
- var UseFilesServerThumbnailNameb = HeadImg.alt;
- U.A.Request("UseStudioDisk.ModitfyUserHeadImage", ([US.userInfo.userid, UserFilesServerName, UseFilesServerThumbnailNameb]));
- $("#UU_N_Image")[0].src = HeadImg.src;
- U.F.T.UN('changetimg', UserFilesServerName); //修改用户头像
- var obj = $("#UU_N_HeadImageInput")[0];
- U.U.ULIMG(obj);
- U.UN.MyUpLoadImg();
- }
- alert("修改用户头像成功");
- }
- }
- //-----------------------------------------------------------------用户信息输入判断---------------------------------------------------------------
- //--------------------------------------------------------------------上传区域---------------------------------------------------------------
- //上传用户头像(还没有上传到用户硬盘 只是获取css和html可以识别的图片base64编码)
- U.U.GLUI = function (obj) {
- var FileType = ".gif,.GIF,.jpg,.JPG,.jpeg,.JPEG,.png,.PNG,.bmp,.BMP"; //允许上传的文件类型
- if (U.UP.UploadFileType(obj, FileType) == false) { alert("图片加载失败或图片类型不符合,请重新选择!"); return; } //用户上传的格式不匹配
- var _HeadImagediv = obj.parentNode;
- U.UP.uploading([obj], U.U.DI, (["headimg"]), "http://disk.1473.cn/USupfile.ashx?iframename=Userprofile"); //上传图片的异步处理
- _HeadImagediv.appendChild(obj);
- //_HeadImagediv.style.display = "none";
- }
- //上传头像到硬盘
- U.U.ULIMG = function (obj) {
- var _pictureway = obj.parentNode.getElementsByTagName("input")["UU_N_HeadImageInput"];
- var _HeadImagediv = obj.parentNode;
- //var _HeadImagediv = $("#UU_N_HeadDiv")[0];
- U.UP.uploading([_pictureway], U.U.AsynULIMG, ([]), "http://disk.1473.cn/USupfile.ashx?iframename=UploadHeadImage");
- _HeadImagediv.appendChild(_pictureway);
- }
- //确认添加身份证图片时
- U.U.ICAF = function (obj) {
- if (obj != undefined) {
- var _IdCardParent = $("#UU_N_IdCardParent")[0];
- U.UP.uploading([obj], U.U.UIAA, (2), "http://disk.1473.cn/USupfile.ashx?iframename=IDCardImage");
- _IdCardParent.appendChild(obj);
- }
- }
- //上传头像到硬盘异步
- U.U.AsynULIMG = function (response) {
- response = response.value;
- U.F.T.UN('changetimg', response.UseFilesServerThumbnailName);
- U.Dk.M.ufinfoarray('add', response);
- }
- //-------------------------------------------------------------------------功能区---------------------------------------------------------------
- //显示修改头像的框
- U.UN.HeadUserImage = function () {
- var div = $("#UU_N_HeadDiv")[0];
- if (div.style.display != "block") { div.style.display = "block"; U.UN.MyUpLoadImg(); }
- else { div.style.display = "none"; }
- }
- //显示用户上传过的头像
- U.UN.MyUpLoadImg = function () {
- var MyImgDiv = $("#UU_N_ImgFrame")[0], MyImg;
- MyImgDiv.innerHTML = "";
- var DiskHeadImg = U.Dk.M.seqencing(US.userInfo.DiskHeadImg); //正确排序用户上传头像
- for (var j = 0; j < 12; j++) {
- if (US.userInfo.DiskHeadImg[j]) {
- MyImg = $$("div", { "className": "UU_N_HeadBorder" }, MyImgDiv);
- _backgroundway = DiskHeadImg[j]["UserDirectoryUrl"].replace("background-image:url(", "").replace(");", "");
- var IMgS = $$("img", { "src": _backgroundway, "alt": US.userInfo.DiskHeadImg[j].UserallDirectoryName, "className": "UU_N_HeadImg", "onclick": [U.UN.ModiitfyHeadImage, (["this.src", _backgroundway])], "onerror": [U.M.ImgError, (["this"])] }, MyImg);
- }
- }
- }
|