notfunction.js 47 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874
  1. 
  2. /*//信息提交,全部整合在这里(暂时不使用
  3. U.UN.subUserAllInfo = function () {
  4. var affirmP = $("#UU_N_AffirmP")[0].value;
  5. var newP = $("#UU_N_NewP")[0].value;
  6. var nowP = $("#UU_N_NowP")[0].value;
  7. if (nowP != "" || newP != "" || affirmP != "") { //三个输入框中有一个不为空则执行密码函数
  8. if (!U.U.SPW()) {
  9. alert("密码修改失败");
  10. return false;
  11. }
  12. }
  13. //密保码
  14. var affirmSC = $("#UU_N_AffirmSecurityCode")[0].value;
  15. var newSC = $("#UU_N_NewSecurityCode")[0].value;
  16. if (newSC != "" || affirmSC != "") {
  17. if (US.userInfo.SecurityAnswer == null || US.userInfo.SecurityAnswer == "") { //无密保码用户
  18. if (!U.U.SSC()) {
  19. alert("密保码修改失败");
  20. return false;
  21. }
  22. }
  23. else {
  24. var nowSC = $("#UU_N_NowSecurityCode")[0].value;
  25. if (nowSC != "") {
  26. if (!U.U.SSC()) {
  27. alert("密保码修改失败");
  28. return false;
  29. }
  30. }
  31. }
  32. }
  33. alert("信息已保存");
  34. return true;
  35. }*/
  36. /*-------------------------------------------------------*/
  37. //------------------------------------------------------------没使用的函数------------------------------------------------------------//
  38. //firefox居然连split getElmentById()都不怎么支持。哎。无奈放弃。
  39. //function US_Manage_UserDescriptCommand(obj) {
  40. // //哎,firefox徒有虚名啊。。网络上得传闻都是假的,事件传递老出毛病
  41. // //var target = U.M.GetEventTarget(e); //根据浏览器类型装载事件,在主js文件中定义。
  42. // //if (target.tagName.toLowerCase() == 'div') {
  43. // var _tagetarray = obj.getElementsByTagName("div")[0].innerHTML.split("|");
  44. // U.M.divdoubleClick(_tagetarray[0], _tagetarray[1]);
  45. // //}
  46. //}
  47. //U.U.UR = 0; //判断个人设置信息input文本框中所有格式是否错误的临时变量
  48. ////--------------------------------------------------------------------------------个人信息设置区域----------------------------------------------------------------------
  49. ////-----------------------------------------------------------------------------------初始化用户信息---------------------------------------------------------------------
  50. ////加载个人信息以及最近留言
  51. //U.U.UPD = function () {
  52. // if (!U.U.L.LARG()) {//判断用户是否登录
  53. // var j = 0;
  54. // var _UPF = $("#UU_N_UProDiv")[0]; //好友信息框
  55. // U.D.PopupWindow(_UPF); //弹窗
  56. // U.D.Tb.WindowRestore(_UPF, '', '个人信息设置'); //创建任务栏链接
  57. // $("img", _UPF)[0].src = U.M.GetImgU(US.userInfo.UserThumbnailImageHead);
  58. // 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" }; //需要改变的元素
  59. // for (var i in _USW) {
  60. // if (_USW.hasOwnProperty(i)) {
  61. // if (j > 6) { $("#" + _USW[i])[0].innerHTML = US.userInfo[i] || ""; }
  62. // else if (j > 5) { $("#" + _USW[i])[0].src = U.M.GetImgU(US.userInfo[i] || ""); }
  63. // else { $("#" + _USW[i])[0].value = US.userInfo[i] || ""; }
  64. // j++;
  65. // }
  66. // }
  67. // (US.userInfo.UserSex == false) ? $("#UU_N_FMSex")[0].checked = true : $("#UU_N_MSex")[0].checked = true; //设置性别。
  68. // if (!US.userInfo.SecurityAnswer) { $("div", $("#ChangeSecurityCode")[0])[1].style.display = "none"; }
  69. // U.U.CB(1); //视图切换
  70. // //如果用户已经通过认证,身份证上传按钮,姓名,身份证号不给修改。
  71. // 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; }
  72. // U.U.LMBD($("#UU_ND_NYR")[0]); //加载用户生日
  73. // 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的判断 加载用户城市
  74. // }
  75. //}
  76. ////切换视图
  77. //U.U.CB = function (T) {
  78. // var _USDW = [U.U.SIF, U.U.SMD, U.U.SPW, U.U.SSC, null];
  79. // var _USW = ["UU_N_rightDetail", "UU_N_moreDetail2", "UU_N_pwdblock", "UU_N_SecurityCodeblock", "UU_N_note"]; //切换的
  80. // for (var i = 0; i < _USW.length; i++) { $("#" + _USW[i])[0].style.display = "none"; } //全部隐藏
  81. // $("#" + _USW[T - 1])[0].style.display = "block"; //显示对应的
  82. // $("#UU_N_SB")[0].onclick = _USDW[T - 1]; //点击事件
  83. //}
  84. ////------------------------------------------------------------------------提交数据--------------------------------------------------------------
  85. ////提交修改后的个人信息,此处把数据提交到数据库
  86. //U.U.SIF = function () {
  87. // var _UDE = {}, _UDOD = $("#UU_N_rightDetail")[0], _UDID = $("input", _UDOD);
  88. // 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])); //后台修改数据库
  89. //}
  90. ////修改个人信息异步
  91. //U.U.AsynSIF = function (request) {
  92. // var context = request.context, _UDE = context[1]; request = request.value;
  93. // if (request) { _UDE["UserEmail"] = US.userInfo["UserEmail"]; } //邮箱给占用了
  94. // _$(US.userInfo).Change(_UDE); $("#UF_UP_Maruee")[0].innerHTML = US.userInfo.UserIndividualitysignature;
  95. //}
  96. ////修改真实姓名和身份证
  97. //U.U.CUTN = function () {
  98. // var _UDID = $("input", $("#UU_N_rightDetail")[0]), _UDND = _UDID[5], _UDSD = _UDID[6], _UDCD = _UDID[7];
  99. // if (US.userInfo.IsAllowAccess == 0) {//如果没有认证的用户
  100. // 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("请上传身份证进行认证"); }
  101. // }
  102. // return false;
  103. //}
  104. ////------------------------------------------------------------------------------------------用户输入判断
  105. ////判断用户输入
  106. //U.U.ICC = function (UDTH, UDTD, UTF, UTP) {
  107. // UDTD.innerHTML = "";
  108. // if (UTF.test(UDTH)) { U.U.UR = true; }
  109. // else { U.U.UR = false; U.U.TE(UTP, UDTD); }
  110. // return U.U.UR;
  111. //}
  112. ////判断邮箱是否正确
  113. //U.U.SEM = function (UDOD, UAF) {
  114. // (UDOD.value != US.userInfo.UserEmail) && (U.A.Request("UseStudioManage.GetEmailValue", ([US.userInfo.userid, UDOD]), UAF || U.U.IE, ([""])))
  115. //}
  116. ////判断邮箱是否存在
  117. //U.U.IE = function (request) {
  118. // // request = request.value;
  119. // // var _UNE = $('#UU_N_ChangeEmailSpan')[0]
  120. // // _UNE.innerHTML = "";
  121. // // if (!request) {
  122. // // U.U.TE("此邮箱已被注册", _UNE);
  123. // // }
  124. //}
  125. ////判断身份证是否重复使用
  126. //U.U.SICM = function (SO) {
  127. // if (US.userInfo.useridCard != SO) U.A.Request("UseStudioManage.GetIDCardValue", ([US.userInfo.userid, SO]), U.U.AsynSICM, ([""]))
  128. //}
  129. ////ajax异步处理身份证,要求唯一 判断身份证是否存在
  130. //U.U.AsynSICM = function (request) {
  131. // request = request.value;
  132. // var _UNE = $('#UU_N_ChangeIdCardSpan')[0]
  133. // _UNE.innerHTML = "";
  134. // if (!request) {
  135. // U.U.TE("此身份证已被注册", _UNE);
  136. // }
  137. //}
  138. //U.U.TE = function (IST, SO) {
  139. // $$("div", { "className": "UU_N_cs UU_N_error" }, SO);
  140. // $$("div", { "className": "UU_N_float", "innerHTML": IST }, SO);
  141. //}
  142. ////设置是否正确的样式
  143. //U.U.SER = function (IST, SO) {
  144. // if (IST) { SO.className = "UU_N_cs UU_N_error"; }
  145. // else { SO.className = "UU_N_cs UU_N_right"; }
  146. // SO.innerHTML = "";
  147. // return IST;
  148. //}
  149. ////-------------------------------------------------------------------------------初始化生日地址------------------------------------------------------------------------
  150. ////----------------------------------------------------------------------添加数据
  151. ////保存数据
  152. //U.U.SMD = function () {
  153. // 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;
  154. // 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}])); } //异步修改用户资料
  155. // U.U.CUD(); //重新检查资料完整度
  156. //}
  157. ////异步修改用户资料
  158. //U.U.AsynSMD = function (request) {
  159. // var context = request.context;
  160. // request = request.value;
  161. // if (request != null) {
  162. // U.U.CUIF(US.userInfo, context[1]);
  163. // U.Alert("详细信息保存成功");
  164. // return true;
  165. // }
  166. //}
  167. ////修改用户信息
  168. //U.U.CUIF = function (DA, F) {
  169. // for (var i in F) {
  170. // DA[i] = F[i];
  171. // }
  172. //}
  173. ////检测当前用户输入的密码是否正确
  174. //U.U.CNP = function (UDOD, UTF, UAF) {
  175. // var _UDE = UTF ? "SecurityCode" : "Password";
  176. // U.A.Request("UseStudioManage.ModifyCheck" + _UDE, ([US.userInfo.userid, UDOD.value]), U.U.AsynCNP, (["", UDOD, UTF, UAF]));
  177. //}
  178. ////异步判断密码是否正确
  179. //U.U.AsynCNP = function (request) {
  180. // var _UDOD, context = request.context, _UTF = context[2], _UAF = context[3]; request = request.value;
  181. // if (_UAF) { _UAF(context, request); }
  182. // else { _UDOD = $("#" + (_UTF ? "UU_N_Nowp" : "UU_N_NowSCSpan"))[0]; _UDOD.innerText = ""; (request) && (U.U.TE("密码错误", _UDOD)); }
  183. //}
  184. ////异步判断密保码是否正确
  185. //U.U.AsynNSC = function (request) {
  186. // var _UDOD, context = request.context, _UAF = context[2]; request = request.value;
  187. // if (_UAF) { _UAF(context, request); }
  188. // else { _UDOD = $("#UU_N_NowSCSpan")[0]; _UDOD.innerText = ""; U.U.TE("密保码错误", _UDOD); }
  189. //}
  190. ////提交修改密码
  191. //U.U.SPW = function () {
  192. // var _UDOD = $("#UU_N_AffirmP")[0];
  193. // 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) {
  194. // U.A.Request("UseStudioManage.ModifyUserPassword", ([_UDOD.value, US.userInfo.userid, US.userInfo.username, US.userInfo.SecurityAnswer, US.userInfo["OnUserId"]]), U.U.CPW, ([])); //保存到数据库
  195. // }
  196. // else { U.Alert("请正确填写资料"); }
  197. //}
  198. ////修改密码异步
  199. //U.U.CPW = function (request) {
  200. // var context = request.context; request = request.value;
  201. // if (request) {
  202. // US.userInfo.UserPassword = request;
  203. // $("#UU_N_ChangePassword")[0].innerHTML = $("#UU_N_NI")[0].value = $("#UU_N_NowIP")[0].value = $("#UU_N_AffirmP")[0].value = "";
  204. // U.Alert("密码修改成功");
  205. // }
  206. // else { U.Alert("密码修改失败,请重试"); }
  207. //}
  208. ////判断确认密码是否相同
  209. //U.U.CCPW = function (SO, NPW, NWPW, UCPW) {
  210. // UCPW.innerHTML = "";
  211. // var _USW = ""; var _TF = false;
  212. // if (SO.value && NWPW.value) {
  213. // if (SO.value == NWPW.value) {
  214. // if (SO.value.length < 6 || SO.value.length > 20) { _USW = "长度应为6-20位"; }
  215. // else if (!U.MS.PassWord.test(SO.value)) { _USW = "不支持特殊符号"; }
  216. // else if (SO.value == NPW.value || NWPW.value == NPW.value) { _USW = "新密码不得与旧密码相同"; }
  217. // else { _TF = true; }
  218. // }
  219. // else { _USW = "两次输入的密码不一致 "; }
  220. // }
  221. // if (_USW) {
  222. // U.U.TE(_USW, UCPW);
  223. // }
  224. // return _TF;
  225. //}
  226. ////通用密码检查
  227. //U.U.CNPW = function (SO, SP) {
  228. // SP.innerHTML = "";
  229. // if (SO.value) {
  230. // if (SO.value.length < 6 || SO.value.length > 20) { U.U.TE("长度应为6-20位", SP); }
  231. // else if (!U.MS.PassWord.test(SO.value)) { U.U.TE("不支持特殊符号", SP); }
  232. // }
  233. //}
  234. ////-------------------------------------------------------------------------------
  235. ////提交密保码
  236. //U.U.SSC = function () {
  237. // var _UASC = $("#UU_N_AffirmSC")[0];
  238. // if (!US.userInfo.SecurityAnswer) {
  239. // if (!$("#UU_N_NewSCSpan")[0].innerHTML && !$("#UU_N_ChangeSCSpan")[0].innerHTML && $("#UU_N_NewSC")[0].value && $("#UU_N_AffirmSC")[0].value) {
  240. // U.A.Request("UseStudioManage.EditSecurityCode", ([US.userInfo.userid, _UASC.value]), U.U.CS, ([])); //保存到数据库
  241. // $("div", $("#ChangeSecurityCode")[0])[1].style.display = "block";
  242. // }
  243. // else { U.Alert("请正确填写资料"); }
  244. // }
  245. // else {
  246. // 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) {
  247. // U.A.Request("UseStudioManage.EditSecurityCode", ([US.userInfo.userid, _UASC.value]), U.U.CS, ([])); //保存到数据库
  248. // }
  249. // else { U.Alert("请正确填写资料"); }
  250. // }
  251. //}
  252. ////添加密保
  253. //U.U.CS = function (request) {
  254. // request = request.value; US.userInfo.SecurityAnswer = request;
  255. // $("#UU_N_NowSC")[0].value = $("#UU_N_NewSC")[0].value = $("#UU_N_AffirmSC")[0].value = $("#UU_N_ChangeSCSpan")[0].innerHTML = ""; //清空数据
  256. // U.U.CUD(); U.Alert("密保码修改成功"); //重新检查资料完整度
  257. //}
  258. ////--------------------------------------------------------------------------------------上传头像区域------------------------------------------------------------------
  259. ////上传头像显示
  260. //U.U.DP = function (T) {
  261. // var _UNCD = $("#UU_N_CD")[0];
  262. // $("div", _UNCD)[7].innerHTML = US.userInfo.UserNickName; //这里带数字,添加一个div会出错。
  263. // var _UNI = $("img", _UNCD).addAttrArray({ "onerror": [U.M.ImgError, (["this"])], "src": U.M.GetImgU(US.userInfo.UserThumbnailImageHead) });
  264. // $("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}])]]]);
  265. // U.U.LXP(T || 0); //用户历史头像
  266. // if (T == null) { U.D.PopupWindow(_UNCD); }
  267. //}
  268. ////查看历史头像
  269. //U.U.LDP = function (DH) {
  270. // var _UNIA = $("#UU_N_IA")[0];
  271. // _UNIA.innerHTML = "";
  272. // 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); }
  273. //}
  274. ////查看系统头像
  275. //U.U.LXP = function (T) {
  276. // var _U = "/img/UserHead/", _SW = [[_U + "nFacen.jpg"], [_U + "nFaceArt.jpg"], [_U + "212名.jpg"], [_U + "w551.png"], [_U + "w2.png"], [_U + "w3.png"]];
  277. // 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]); } }
  278. // U.U.LDP(_SW);
  279. //}
  280. ////修改用户头像查看
  281. //U.U.CP = function (URL) {
  282. // var _UR = URL[0] || this.src, _UDCD = $("#UU_N_CD")[0];
  283. // $("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}])]]]);
  284. // $("#UU_N_BTT")[0].onclick = U.M.apply(this, [[U.U.CUIMG, ([URL, "this"])], [U.U.ULIMG, ([$('input', _UDCD)[0]])]]); //保存头像
  285. //}
  286. ////修改用户头像
  287. //U.U.CUIMG = function (UEI, SO) {
  288. // if (UEI[0] != US.fs + US.userInfo.UserThumbnailImageHead && UEI[0].indexOf("1473.cn") > -1) {//合法的链接地址同时又修改了用户头像
  289. // //修改所有页面中的头像。
  290. // U.U.TYMHimg(UEI[0]);
  291. // 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('修改用户头像成功')"), ([]));
  292. // _$(US.userInfo).Add({ "UserThumbnailImageHead": UEI[0], "UserImageHead": UEI[1] });
  293. // }
  294. // $('div', SO.parentNode.parentNode)[1].onclick();
  295. //}
  296. ////统一修改头像
  297. //U.U.TYMHimg = function (src) {
  298. // 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; }
  299. //}
  300. ////统一修改积分
  301. //U.U.TYMIC = function (VCSum) {
  302. // $("div#UDK_LL_VirC", $("#UseStudioUserDiskDiv" + US.userInfo.userid))[0].innerHTML = "积分:" + VCSum;
  303. // $("#UU_IC_VCSum")[0].innerHTML = $(".UU_OverIC")[0].innerHTML = $(".UU_OverIC")[1].innerHTML = VCSum;
  304. //}
  305. ////------------------------------------------------------------------------------------上传-----------------------------------------------------------------------------
  306. ////上传用户身份证(还没有上传到用户硬盘 只是获取css和html可以识别的图片base64编码)
  307. //U.U.UIDC = function (SO) {
  308. // var _PSO = SO.parentNode;
  309. // U.UP.uploading([SO], U.U.DI, (["idcardimg"]), "http://disk.1473.cn/USupfile.ashx?iframename=UploadIdCard");
  310. // _PSO.appendChild(SO);
  311. // U.U.UR = true; //把修改标志置为true.
  312. //}
  313. ////确认添加身份证图片时
  314. //U.U.ICAF = function (UDOD) {
  315. // var _UDPD = UDOD.parentNode;
  316. // U.UP.uploading([UDOD], U.U.UIAA, ([2]), "http://disk.1473.cn/USupfile.ashx?iframename=IDCardImage");
  317. // $("#UU_N_TNameInput")[0].disabled = $("#UU_N_mypost")[0].disabled = false;
  318. // _UDPD.appendChild(UDOD);
  319. //}
  320. ////添加身份证异步处理
  321. //U.U.UIAA = function (UIK) {
  322. // US.userInfo.IsAllowAccess = UIK;
  323. // $("#UU_N_mypost")[0].disabled = $("#UU_N_TNameInput")[0].disabled = true; //真实姓名文本框
  324. // $("#UU_N_Identitycardimg")[0].className = "UU_N_Identitys UD_NUB UU_N_Idenbg2";
  325. // $("#UU_N_Identitycardimg")[0].style.cursor = "default";
  326. //}
  327. ////------------------------------------------------------------------辅助函数-----------------------------------------------------------------------
  328. //判断个人简介
  329. //U.UN.ResumeTextBoxOnChange = function (obj, event) {
  330. // // var KeyCode = U.M.getKeyCode(event);
  331. // // var evt = U.M.GetEvent(event);
  332. // // if (obj.length > 134) {
  333. // // if (KeyCode != 40 && KeyCode != 39 && KeyCode != 38 && KeyCode != 37 && KeyCode != 46 && KeyCode != 8) {
  334. // // if (browser.firefox == true) { //判断是否是FF
  335. // // evt.preventDefault(); //firefox 禁止键盘输入
  336. // // }
  337. // // else {
  338. // // window.event.returnValue = false; //ie
  339. // // }
  340. // // }
  341. // // }
  342. //}
  343. //ajax异步处理邮箱,要求唯一。 判断是否存在此邮箱
  344. //function SetEmailMessage(obj) {
  345. // U.D.P.TSInfo();
  346. // var response = U.A.Request("UseStudioManage.GetEmailValue", ([obj])).value;
  347. // var emailtext = document.getElementById("UU_N_EmailTBox");
  348. // if (response == false) {
  349. // _useremailspan.innerHTML = "已经存在此邮箱";
  350. // }
  351. // else {
  352. // _useremailspan.style.color = "Black";
  353. // _useremailspan.innerHTML = "正确";
  354. // }
  355. //}
  356. //U.M.GetUserInfo_CallBack = function (response) {
  357. // var NewReply = "", NewUpload = "", GetUserInfo = "", _user = "", NewArticle = "";
  358. // var _usernewinfo = response.value;
  359. // //var US_Manage_OtherUsersInfoDiv = response.context[1];
  360. // var _otheruser = _usernewinfo[0]; //调用用户信息,不加var是全局变量,彭依选要特别注意这个地方。
  361. // var ArticleContent = _usernewinfo[1]; //用户最新文章
  362. // var ReplyContent = _usernewinfo[2]; //用户最新回复
  363. // var Upload = _usernewinfo[3]; //用户最新上传
  364. // /*------最新文章------*/
  365. // var userid = _otheruser.UserId;
  366. // if (typeof (ArticleContent[0]) == "undefined") {
  367. // NewArticle = "<div style='color:gray;margin-top:10px;'>该用户没有发表文章!</div>";
  368. // }
  369. // else {
  370. // for (i = 1; i < ArticleContent.length; i++) {
  371. // NewArticle += '<div style="margin-left:10px;width:100%; height:20px; cursor: pointer;">';
  372. // 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查看相关的文章内容内容
  373. // // 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查看相关的文章内容内容
  374. // NewArticle += ArticleContent[i].ArticleTitle.length > 8 ? ArticleContent[i].ArticleTitle.substring(0, 8) : ArticleContent[i].ArticleTitle; //显示文章标题时只显示8个字符串的长度
  375. // NewArticle += '</a>';
  376. // NewArticle += '<div class="GetLocalTime" style="padding-right:20px;">';
  377. // NewArticle += U.MT.getLocalTime(ArticleContent[i].ArticleAddTime.substring(7, ArticleContent[i].ArticleAddTime.length - 1)); //时间格式为:m月d日 h点min
  378. // NewArticle += '</div> </div>';
  379. // }
  380. // }
  381. // /*------最新回复------*/
  382. // if (typeof (ReplyContent[0]) == "undefined")
  383. // { NewReply = "<div style='color:gray;margin-top:10px;'>该用户没有最新回复!</div>" }
  384. // else {
  385. // for (i = 1; i < ReplyContent.length; i++) {
  386. // // NewReply += '<div style="margin-left: 10px; width: 100%; height: 20px;"onclick="U.M.divdoubleClick(\'UseStudioBlogSystemDiv\',null,\'' + ReplyContent[i].ArticleID + '\',\'' + userid + '\');return false;">'; //根据用户ID和回复查看相关的回复信息
  387. // NewReply += '<div style="margin-left: 10px; width: 100%; height: 20px;"onclick="U.M.divdoubleClick(\'UseStudioBlogSystemDiv\',null,\'' + userid + '\',\'' + ReplyContent[i].ArticleID + '\');return false;">'; //根据用户ID和回复查看相关的回复信息
  388. // NewReply += '<div style="float: left; color: Blue; cursor: pointer;">' + ReplyContent[i].ReplyContent + '</div>'; //显示回复内容
  389. // NewReply += ' <div class="GetLocalTime",style="padding-right:20px;"></div>';
  390. // NewReply += '<div class="GetLocalTime"style="padding-right:20px;">';
  391. // NewReply += U.MT.getLocalTime(ReplyContent[i].ReplyAddTime.substring(6, ReplyContent[i].ReplyAddTime.length - 1)); //时间格式为:m月d日 h点min
  392. // NewReply += '</div> </div>';
  393. // }
  394. // }
  395. // /*------最新上传------*/
  396. // if (Upload[1].length < 1) { NewUpload = "<div style='color:gray;margin-top:10px;'>该用户没有最新上传!</div>" }
  397. // else {
  398. // for (i = 0; i < Upload[1].length; i++) {
  399. // NewUpload += '<div onclick="U.Imges.CreatePhotoCase(\'' + Upload[1][i].UserFilesID + '\',this.getElementsByTagName(\'div\')[\'imgtruenamehiddendiv\'].innerHTML);" style="float: left; height: 55px;">' + //div onclick调用郭仁的图片浏览器(部分)
  400. // '<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 + '\' />' + //用户的最新上传
  401. // '<div id="imgtruenamehiddendiv" style="display: none;">' + Upload[1][i].UserFilesServerName + '</div></div>';
  402. // }
  403. // }
  404. // /*------用户资料页面------*/
  405. // if (_otheruser.UserNickName == null) _otheruser.UserNickName = _otheruser.UserName;
  406. // var GetUserInfo = ""; //需要定义,否则是全局变量
  407. // GetUserInfo += '<div class="U_U_UserInfobase">'
  408. // GetUserInfo += '<div class="U_U_UserInfouserimg" onclick="U.Imges.CreatePhotoCase(this,this.getElementsByTagName(\'div\')[\'Userimgtruenamehiddendiv\'].innerHTML);"> '
  409. // 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 + '\' />'//用户的头像
  410. // GetUserInfo += '<div id="Userimgtruenamehiddendiv" style="display: none;">' + _otheruser.UserThumbnailImageHead + '</div></div>'
  411. // GetUserInfo += '<div class="U_U_UserInfotext">'
  412. // GetUserInfo += '<ul><li>用户呢称:' + _otheruser.UserNickName + '</li>'//用户昵称
  413. // GetUserInfo += '<li>登录ip:' + _otheruser.LoginIP + '</li>'//登录ip
  414. // GetUserInfo += '<li>所在城市:' + "谁来实现?" + '</li>'//所在城市
  415. // GetUserInfo += '<li>登录时间:' + U.MT.getAjaxTime(_otheruser.lastLoginDate) + '<li>'//用户最近登录时间
  416. // GetUserInfo += '<li>注册时间: ' + U.MT.getAjaxTime(_otheruser.RegisterDate) + '<li></ul></div></div>'//用户最近登录时间
  417. // GetUserInfo += '<div class="U_U_UserInfoimg U_U_UserInfocomputer" onclick="U.M.divdoubleClick(\'UseStudioUserDiskDiv\',\'7aeaab56-485f-4150-b781-8ffd86d593ce\',\'' + userid + '\');"></div>'//用户的电脑
  418. // GetUserInfo += '<div class="U_U_UserInfoimg U_U_UserInfophoto" onclick="U.M.divdoubleClick(\'UseStudioUserDiskDiv\',\'93553847-e299-464c-a0e2-c15872efb6ae\',\'' + userid + '\');"></div>'//用户的相册
  419. // //GetUserInfo += '<div class="U_U_UserInfoimg U_U_UserInfomusic" onclick="U.M.divdoubleClick(\'UseStudioUserDiskDiv\',\'8a2135ff-746a-43a8-97b8-552d228a00bb\',\'' + userid + '\');"></div>'//用户的音乐
  420. // GetUserInfo += '<div class="U_U_UserInfoimg U_U_UserInfomusic" onclick="U.Dk.Om(\'' + userid + '\');"></div>'//用户的音乐
  421. // GetUserInfo += '<div class="U_U_UserInfoimg U_U_UserInfoview" onclick="U.M.divdoubleClick(\'UseStudioUserDiskDiv\',\'bf21bf7a-1e95-4194-8e4a-e9334d7d998d\',\'' + userid + '\');"></div>'//用户的视频
  422. // GetUserInfo += '<div class="U_U_UserInfoimg U_U_UserInfostudy" onclick="U.M.divdoubleClick(\'UseStudioBlogSystemDiv\',null,\'' + userid + '\');"></div>'//用户的博客
  423. // _user += '<div class="U_U_UserInforecent">'
  424. // _user += '<div class="U_U_UserInforecentarticle">'
  425. // _user += '<div class="U_U_UserRecent" >最新文章:</div>'
  426. // _user += '<div>' + NewArticle + '</div></div>'//用户最新发表的3篇文章
  427. // _user += '<div class="U_U_UserInforecentreplay">'
  428. // _user += '<div class="U_U_UserRecent" >最近回复:</div>'
  429. // _user += '<div>' + NewReply + '</div></div>' //用户最新的3条回复信息
  430. // _user += '<div class="U_U_UserInforecentupload">'
  431. // _user += '<div class="U_U_UserRecent" >最近上传:</div>'
  432. // _user += '<div>' + NewUpload + '</div>'//用户最近的上传
  433. // _user += '</div></div></div>';
  434. // var _body = $$("div", { "className": "U_U_UserInfoimg U_U_UserInfobody", "innerHTML": GetUserInfo }, UD_NU_OUInfo);
  435. // var _div = $$("div", { "id": "UseStudioAteentionDiv", "className": "U_U_UserInfoimg U_U_UserInfointerest" }, _body);
  436. // _body.innerHTML += _user;
  437. // _body.getElementsByTagName("div")["UseStudioAteentionDiv"].onclick = U.M.StateFunction(_div, _otheruser, "U.M.UserAttention");
  438. //}
  439. //U.U.dispImgBorder = function (obj) {
  440. // obj.style.border = "2px solid lightgreen";
  441. //}
  442. ////鼠标离开是的效果
  443. //U.U.HidImgBorder = function (obj) {
  444. // obj.style.border = "2px solid white";
  445. //}
  446. ////---------------------------------------------------------------------新增用户的效果淡出效果--------------------------------------------------------------------
  447. //U.D.magnifyAppearClock; //用来保存“新增用户放大出现效果”的计时器
  448. //U.D.fadeOutClock; //用来保存“新增用户淡出效果”的计时器
  449. //U.D.controlVifrification = 100; //用来结束“新增用户淡出”的计时器
  450. //U.D.controlDivList = 5; //用来控制数组
  451. //U.D.judgeLast = 0; //用来判断是否要还原最后一组
  452. //U.D.NetAdditionlist = new Array(); //用来保存“新增用户”数组
  453. //U.D.NetAdditionShow = function (_listnewFriends) { //创建“新增用户”数组
  454. // for (var i = 0; i < _listnewFriends.length; i++) { //循环创建“新增用户”的div
  455. // var NetAddition = document.createElement("div");
  456. // NetAddition.style.cssText = "position: absolute; left:" + window.screen.width / 2 + "px; top:" + window.screen.height / 2 + "px;";
  457. // 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)\"/>"
  458. // document.body.appendChild(NetAddition);
  459. // U.D.NetAdditionlist[i] = NetAddition; //将“新增用户”的div对象保存到数组中
  460. // }
  461. // var _closeClock = document.createElement("div"); //用来关闭计时器
  462. // _closeClock.innerHTML = "<span title='关闭效果' class='Dic closeIcon' onmouseout=\"this.className='Dic closeIcon'\" onmouseover=\"this.className='Dic closelight'\" onclick=\"U.D.closeClock(this)\"></span>";
  463. // _closeClock.style.cssText = "position: absolute; left:" + window.screen.width / 4 * 3 + "px; top:" + window.screen.height / 9 * 4 + "px; ";
  464. // document.body.appendChild(_closeClock);
  465. // U.D.magnifyAppearClock = setInterval(function () { //开始使用“新增用户放大出现效果”的计时器
  466. // U.D.magnifyAppear();
  467. // }, 50);
  468. //}
  469. //U.D.closeClock = function (obj) {
  470. // clearInterval(U.D.fadeOutClock); //删除淡出计时器
  471. // U.D.fadeOutClock = null;
  472. // clearInterval(U.D.magnifyAppearClock); //删除“新增用户放大出现效果”的计时器
  473. // U.D.magnifyAppearClock = null;
  474. // for (var i = 0; i < U.D.NetAdditionlist.length; i++) { //这里是将新增用户的div隐藏,也可以改成删除,根据具体的情况而定
  475. // U.D.NetAdditionlist[i].style.display = "none";
  476. // }
  477. // obj.parentNode.style.display = "none";
  478. //}
  479. //U.D.magnifyAppear = function () { //新增用户放大出现效果
  480. // if (parseInt(U.D.NetAdditionlist[U.D.controlDivList - 5].firstChild.style.width) > 70) { //当当前的数组的图片宽度>70px时,让当前数组淡出,开始对下一组数组的操作
  481. // U.D.controlDivList = U.D.controlDivList + 5; //将下一组的下标赋予变量
  482. // U.D.controlVifrification = 100;
  483. // clearInterval(U.D.fadeOutClock); //删除淡出计时器
  484. // U.D.fadeOutClock = null;
  485. // U.D.fadeOutClock = setInterval(function () { //让当前的数组淡出
  486. // U.D.fadeOut();
  487. // }, 20);
  488. // if (U.D.judgeLast == 1) { //将最后一组还原
  489. // for (var i = 40; i < 45; i++) {
  490. // U.D.NetAdditionlist[i].firstChild.style.width = "0px";
  491. // U.D.NetAdditionlist[i].firstChild.style.height = "0px";
  492. // U.D.NetAdditionlist[i].style.left = window.screen.width / 2 + "px";
  493. // U.D.NetAdditionlist[i].style.top = window.screen.height / 2 + "px";
  494. // U.D.NetAdditionlist[i].style.opacity = 1;
  495. // }
  496. // U.D.judgeLast = 0;
  497. // }
  498. // if (U.D.controlDivList > 45) { //当已经出现的新增用户超过了45个,还原全部(除了最后一组)
  499. // U.D.controlDivList = 5;
  500. // for (var i = 0; i < 40; i++) {
  501. // U.D.NetAdditionlist[i].firstChild.style.width = "0px";
  502. // U.D.NetAdditionlist[i].firstChild.style.height = "0px";
  503. // U.D.NetAdditionlist[i].style.left = window.screen.width / 2 + "px";
  504. // U.D.NetAdditionlist[i].style.top = window.screen.height / 2 + "px";
  505. // U.D.NetAdditionlist[i].style.opacity = 1;
  506. // }
  507. // U.D.judgeLast = 1;
  508. // }
  509. // return;
  510. // }
  511. // for (var k = U.D.controlDivList - 5; k < U.D.controlDivList; k++) {
  512. // U.D.NetAdditionlist[k].firstChild.style.width = parseInt(U.D.NetAdditionlist[k].firstChild.style.width) + 1 + "px";
  513. // U.D.NetAdditionlist[k].firstChild.style.height = parseInt(U.D.NetAdditionlist[k].firstChild.style.height) + 1 + "px";
  514. // U.D.NetAdditionlist[k].style.top = parseInt(U.D.NetAdditionlist[k].style.top) + 1 + "px";
  515. // if (k % 5 == 0) {
  516. // U.D.NetAdditionlist[k].style.left = parseInt(U.D.NetAdditionlist[k].style.left) - 4 + "px";
  517. // }
  518. // if (k % 5 == 1) {
  519. // U.D.NetAdditionlist[k].style.left = parseInt(U.D.NetAdditionlist[k].style.left) - 2 + "px";
  520. // }
  521. // // if (k % 5 == 2) {
  522. // // U.D.NetAdditionlist[k].style.left = parseInt(U.D.NetAdditionlist[k].style.left) + 1 + "px";
  523. // // }
  524. // if (k % 5 == 3) {
  525. // U.D.NetAdditionlist[k].style.left = parseInt(U.D.NetAdditionlist[k].style.left) + 2 + "px";
  526. // }
  527. // if (k % 5 == 4) {
  528. // U.D.NetAdditionlist[k].style.left = parseInt(U.D.NetAdditionlist[k].style.left) + 4 + "px";
  529. // }
  530. // }
  531. //}
  532. //U.D.fadeOut = function () { //新增用户淡出效果
  533. // U.D.controlVifrification--;
  534. // if (U.D.controlDivList - 10 < 0) { //如果U.D.controlDivList - 10小于0,表示是最后一组
  535. // for (var k = 40; k < 45; k++) {
  536. // U.D.NetAdditionlist[k].style.top = parseInt(U.D.NetAdditionlist[k].style.top) + 1 + "px";
  537. // U.D.NetAdditionlist[k].style.opacity = U.D.controlVifrification * 0.01;
  538. // }
  539. // }
  540. // else {
  541. // for (var k = U.D.controlDivList - 10; k < U.D.controlDivList - 5; k++) {
  542. // U.D.NetAdditionlist[k].style.top = parseInt(U.D.NetAdditionlist[k].style.top) + 1 + "px";
  543. // U.D.NetAdditionlist[k].style.opacity = U.D.controlVifrification * 0.01;
  544. // }
  545. // }
  546. //}
  547. //U.U.R._stop = 0, _clear = 0, U.U.R._rightValue = -270, _showOrHidden = 0; /*各参数分别为停止 清除计时器 距离 伸缩判断*/
  548. //var mysign = 1;
  549. //U.U.R.showOrHidde = function (_BgimgObj, obj) {
  550. // if (U.U.R.userMove == 1) { /*如果用户把整个可收缩的大div 拖出来又想回到原位*/
  551. // obj.style.left = null; /*由于拖动的时候改变的是对象的left值 但是我的展开和收缩改变的是right的值,left和right冲突,所以要清空left的值。。。。*/
  552. // obj.style.right = "-270px";
  553. // obj.style.top = "80px";
  554. // _BgimgObj.style.backgroundImage = "url(/img/Desktop.png)";
  555. // _BgimgObj.style.backgroundPosition = "-597px -393px";
  556. // mysign = 0;
  557. // }
  558. // else {
  559. // if (mysign == 0) {
  560. // if (U.U.R.userMove == 0) {
  561. // U.U.R._stop = 0, _clear = 0, U.U.R._rightValue = -270, _showOrHidden = 0; /*如果用户展开了大的div再进行移动到自己喜欢的位置 然后他收缩到原来的位置,那么下一次应该执行展开 _showOrHidden = 0;代表要执行展开*/
  562. // mysign = 1;
  563. // }
  564. // }
  565. // _clear = setInterval(function () { executeShowOrHidden(_BgimgObj, obj) }, 1);
  566. // }
  567. // U.U.R.userMove = 0;
  568. //}
  569. /*_showOrHidden == 0 为展开 1为收缩*/
  570. //function executeShowOrHidden(_BgimgObj, obj) {
  571. // _BgimgObj.style.backgroundImage = "url(/img/Desktop.png)";
  572. // if (_showOrHidden == 0) {
  573. // obj.style.left = null; /*由于拖动的时候改变的是对象的left值 但是我的展开和收缩改变的是right的值,left和right冲突,所以要清空left的值。。。。*/
  574. // U.U.R._stop++;
  575. // if (U.U.R._stop < 4) {
  576. // U.U.R._rightValue = U.U.R._rightValue + 66
  577. // }
  578. // else
  579. // U.U.R._rightValue = U.U.R._rightValue + 36;
  580. // obj.style.right = U.U.R._rightValue + "px";
  581. // if (U.U.R._stop == 5) {
  582. // window.clearInterval(_clear); /*停止计时器*/
  583. // _showOrHidden = 1;
  584. // U.U.R._stop = 0;
  585. // }
  586. // _BgimgObj.style.backgroundPosition = "-566px -393px";
  587. // }
  588. // else {
  589. // U.U.R._stop++;
  590. // if (U.U.R._stop < 3) {
  591. // U.U.R._rightValue = U.U.R._rightValue - 36;
  592. // }
  593. // else
  594. // U.U.R._rightValue = U.U.R._rightValue - 66;
  595. // obj.style.right = U.U.R._rightValue + "px";
  596. // if (U.U.R._stop == 5) {
  597. // window.clearInterval(_clear);
  598. // _showOrHidden = 0;
  599. // U.U.R._stop = 0;
  600. // }
  601. // _BgimgObj.style.backgroundPosition = "-597px -393px";
  602. // }
  603. //}
  604. /*切换微博 QQ等应用*/
  605. //U.U.R.changeApp = function (obj, appId) {
  606. // var appObj = U.M.getTrueChildNodes(obj.childNodes); //获取所有聊天,微博,硬盘,邮件div
  607. // var appObjIframe = obj.getElementsByTagName("iframe")["UF_UP_UMblogIframe"]; //微博Iframe。
  608. // for (var i = 0; i < appObj.length; i++) {
  609. // appObj[i].style.display = "none";
  610. // }
  611. // if (appObj[0].id == appId) { //这个是聊天
  612. // appObj[0].style.display = "block";
  613. // document.getElementById("UseStudioQQControldiv").style.display = "block";
  614. // }
  615. // else if (appObj[1].id == appId) { //这个是微博
  616. // appObj[1].style.display = "block";
  617. // appObjIframe.src = "/usercontrols/iframepages/UserAttentionPage.aspx";
  618. // }
  619. // else
  620. // appObj[2].style.display = "block"; //这个是邮箱
  621. //}
  622. ////登陆后刷新论坛、博客、以及其他页面
  623. //U.U.R.RefreshForumEtc = function () {
  624. // var IframeWindow = document.getElementById("UseStudioStudyControlDivIframe");
  625. // if (IframeWindow == null) return;
  626. // if (IframeWindow.contentWindow.document.getElementById("recordreplyarticleidinput").innerHTML != "") {
  627. // IframeWindow.contentWindow.US.BlogPub.Replydataput(IframeWindow.contentWindow.document.getElementById("recordreplyarticleidinput").innerHTML, "true");
  628. // }
  629. //}
  630. //生日的onchange事件
  631. U.U.ND.CheckMonth = function (value) {
  632. U.U.ND.AddOptions(U.MT.getDateOfMonth(value, $("#UU_ND_Birthday_year")[0].value), "", $("#UU_ND_Birthday_day")[0], 0);
  633. }
  634. //绑定邮箱
  635. U.UN.BindingEamil = function () {
  636. U.A.Request('UseStudioManage.usestudiousergetpassword', ([US.userInfo.username]), U.UN.ABind) //发送绑定邮箱
  637. }
  638. //绑定邮箱异步
  639. U.UN.ABind = function (response) {
  640. response = response.value;
  641. response.value == false ? alert("发送失败,请联系管理员!") : alert("请5分钟后到注册邮箱查收信息!");
  642. }
  643. //提交数据修改用户签名
  644. U.UN.ChangeUserSignature = function (AmendUserSignature) {
  645. US.userInfo.UserIndividualitysignature = AmendUserSignature;
  646. parent.$("#UF_UP_Maruee")[0].innerHTML = AmendUserSignature; //个人设置信息个性签名赋值好友头部个性签名
  647. }
  648. //判断每个用户信息是否空
  649. //U.UN.DecisionUserNews = function (UserObj) {
  650. // if (UserObj == "null" || UserObj == null) { UserObj = ""; }
  651. // return UserObj;
  652. //}
  653. //判断用户昵称是否正确
  654. U.UN.UserNickNameTextboxOnChange = function (SO) {
  655. var _UCN = $("#UU_N_Myname")[0];
  656. if (U.U.SER(!U.MS.NickName.test(SO), _UCN)) { U.U.UR = false; }
  657. else { U.U.UR = true; U.Alert("请填写正确的姓名"); } //显示是否正确
  658. }
  659. //判断要修改用户名 且修改的用户名是否正确
  660. U.UN.TrueNameOnChange = function (SO) {
  661. var _CheckTrueName = $("#UU_N_TNameSpan")[0];
  662. if (U.U.SER(!U.MS.TrueName.test(obj), _CheckTrueName)) { U.U.UR = false; } //非必填,所以不要阻止其他项目的修改
  663. else { U.U.UR = true; U.Alert("中文英文均可但不能超出25个字符"); }
  664. }
  665. //判断邮箱格式是否正确
  666. U.UN.EmailTextBoxOnChange = function (SO) {
  667. var _UCE = $("#UU_N_Email")[0];
  668. if (U.U.SER(!U.MS.Email.test(SO), _UCE)) { U.U.UR = false; }
  669. else { _UCE.innerHTML = "正在识别"; U.U.SEM(SO, _UCE); }
  670. }
  671. //判断身份证格式是否正确
  672. U.UN.IDCardTextBoxOnChange = function (obj) {
  673. var CheckIdCard = $("#UU_N_Mypost")[0];
  674. if (obj == US.userInfo.useridCard) { CheckIdCard.className = ""; return; }
  675. if (U.U.SER(!U.MS.ChineseIdCard.test(obj), CheckIdCard)) { U.U.UR = false; }
  676. else { CheckIdCard.innerHTML = "正在识别"; U.U.SICM(obj, CheckIdCard); }
  677. }
  678. //判断个性签名是否修改
  679. U.UN.ChangeUIDST = function (obj) {
  680. US.userInfo.UserIndividualitysignature == obj ? U.U.UR = false : U.U.UR = true;
  681. }
  682. //点开判断
  683. U.UN.JudgeDisplayPrompt = function () {
  684. // $("#UU_N_Myname")[0].className = "UU_N_Notice";
  685. // $("#UU_N_Email")[0].className = "UU_N_Notice";
  686. // $("#UU_N_Telephone")[0].className = "UU_N_Notice";
  687. // $("#UU_N_TNameSpan")[0].className = "UU_N_Notice";
  688. // $("#UU_N_Mypost")[0].className = "UU_N_Notice";
  689. }
  690. //-----------------------------------------------------------------用户信息成功提交后------------------------------------------------------
  691. //修改使用用户头像
  692. U.UN.ModiitfyHeadImage = function (UserFilesServerName, UseFilesServerThumbnailName) {
  693. var ImgS = $("#UU_N_NP")[0];
  694. ImgS.src = UserFilesServerName;
  695. ImgS.alt = UseFilesServerThumbnailName;
  696. }
  697. //提交数据修改用户头像
  698. U.UN.ChangeUserHead = function () {
  699. var HeadImg = $("#UU_N_NP")[0]; //判断头像是否默认或是否改变头像
  700. if (US.userInfo.UserThumbnailImageHead != HeadImg.src) {
  701. var UserFilesServerName = "";
  702. var UseFilesServerThumbnailNameb = "";
  703. if (HeadImg.src.indexOf("http://fs.1473.cn") != -1) { //使用历史头像直接修改数据库
  704. UserFilesServerName = HeadImg.src.replace("background-image:url(", "").replace(");", "").replace("http://fs.1473.cn/", "");
  705. UseFilesServerThumbnailNameb = HeadImg.alt.replace("background-image:url(", "").replace(");", "").replace("http://fs.1473.cn/", "");
  706. U.A.Request("UseStudioDisk.ModitfyUserHeadImage", ([US.userInfo.userid, UserFilesServerName, UseFilesServerThumbnailNameb]));
  707. $("#UU_N_Image")[0].src = HeadImg.src;
  708. U.F.T.UN('changetimg', UserFilesServerName); //修改用户头像
  709. }
  710. else {
  711. var UserFilesServerName = HeadImg.src;
  712. UserFilesServerName = UserFilesServerName.substring(18, UserFilesServerName.length);
  713. var UseFilesServerThumbnailNameb = HeadImg.alt;
  714. U.A.Request("UseStudioDisk.ModitfyUserHeadImage", ([US.userInfo.userid, UserFilesServerName, UseFilesServerThumbnailNameb]));
  715. $("#UU_N_Image")[0].src = HeadImg.src;
  716. U.F.T.UN('changetimg', UserFilesServerName); //修改用户头像
  717. var obj = $("#UU_N_HeadImageInput")[0];
  718. U.U.ULIMG(obj);
  719. U.UN.MyUpLoadImg();
  720. }
  721. alert("修改用户头像成功");
  722. }
  723. }
  724. //-----------------------------------------------------------------用户信息输入判断---------------------------------------------------------------
  725. //--------------------------------------------------------------------上传区域---------------------------------------------------------------
  726. //上传用户头像(还没有上传到用户硬盘 只是获取css和html可以识别的图片base64编码)
  727. U.U.GLUI = function (obj) {
  728. var FileType = ".gif,.GIF,.jpg,.JPG,.jpeg,.JPEG,.png,.PNG,.bmp,.BMP"; //允许上传的文件类型
  729. if (U.UP.UploadFileType(obj, FileType) == false) { alert("图片加载失败或图片类型不符合,请重新选择!"); return; } //用户上传的格式不匹配
  730. var _HeadImagediv = obj.parentNode;
  731. U.UP.uploading([obj], U.U.DI, (["headimg"]), "http://disk.1473.cn/USupfile.ashx?iframename=Userprofile"); //上传图片的异步处理
  732. _HeadImagediv.appendChild(obj);
  733. //_HeadImagediv.style.display = "none";
  734. }
  735. //上传头像到硬盘
  736. U.U.ULIMG = function (obj) {
  737. var _pictureway = obj.parentNode.getElementsByTagName("input")["UU_N_HeadImageInput"];
  738. var _HeadImagediv = obj.parentNode;
  739. //var _HeadImagediv = $("#UU_N_HeadDiv")[0];
  740. U.UP.uploading([_pictureway], U.U.AsynULIMG, ([]), "http://disk.1473.cn/USupfile.ashx?iframename=UploadHeadImage");
  741. _HeadImagediv.appendChild(_pictureway);
  742. }
  743. //确认添加身份证图片时
  744. U.U.ICAF = function (obj) {
  745. if (obj != undefined) {
  746. var _IdCardParent = $("#UU_N_IdCardParent")[0];
  747. U.UP.uploading([obj], U.U.UIAA, (2), "http://disk.1473.cn/USupfile.ashx?iframename=IDCardImage");
  748. _IdCardParent.appendChild(obj);
  749. }
  750. }
  751. //上传头像到硬盘异步
  752. U.U.AsynULIMG = function (response) {
  753. response = response.value;
  754. U.F.T.UN('changetimg', response.UseFilesServerThumbnailName);
  755. U.Dk.M.ufinfoarray('add', response);
  756. }
  757. //-------------------------------------------------------------------------功能区---------------------------------------------------------------
  758. //显示修改头像的框
  759. U.UN.HeadUserImage = function () {
  760. var div = $("#UU_N_HeadDiv")[0];
  761. if (div.style.display != "block") { div.style.display = "block"; U.UN.MyUpLoadImg(); }
  762. else { div.style.display = "none"; }
  763. }
  764. //显示用户上传过的头像
  765. U.UN.MyUpLoadImg = function () {
  766. var MyImgDiv = $("#UU_N_ImgFrame")[0], MyImg;
  767. MyImgDiv.innerHTML = "";
  768. var DiskHeadImg = U.Dk.M.seqencing(US.userInfo.DiskHeadImg); //正确排序用户上传头像
  769. for (var j = 0; j < 12; j++) {
  770. if (US.userInfo.DiskHeadImg[j]) {
  771. MyImg = $$("div", { "className": "UU_N_HeadBorder" }, MyImgDiv);
  772. _backgroundway = DiskHeadImg[j]["UserDirectoryUrl"].replace("background-image:url(", "").replace(");", "");
  773. 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);
  774. }
  775. }
  776. }