NotFun.js 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. 
  2. // U.U.OT.UTF = true;
  3. // var i, _UCE = [{ "data-appid": "100584402", "charset": "utf-8", "src": "http://qzonestyle.gtimg.cn/qzone/openapi/qc_loader.js?i=" + Guid.newGuid() }, //腾讯qq加载
  4. // {"charset": "utf-8", "src": "http://tjs.sjs.sinajs.cn/open/api/js/wb.js?appkey=1242324937&i=" + Guid.newGuid()}]; //新浪微博加载
  5. // for (i = 0; i < _UCE.length; i++) {
  6. // _$(_UCE[i]).Add({ "charset": "utf-8", "type": "text/javascript" });
  7. // U.MD.DynamicLoad(_UCE[i].src, "js", U.M.apply(this, [[U.U.OT.AsynLoad, [UDE]]]), _UCE[i], true);
  8. // }
  9. ////异步加载新浪和腾讯登录
  10. //U.U.OT.AsynLoad = function (UDE) {
  11. // var i, j, _UCE;
  12. // for (i = 0; i < UDE.length; i++) {
  13. // for (j = 0; j < UDE[i].length; j++) {
  14. // _UCE = UDE[i][j];
  15. // if (i) { WB2.anyWhere(U.M.apply(this, [[U.U.OT.AsynWeixinLoadJs, [_UCE]]])); } //微博回调
  16. // else { QC.Login(_UCE, U.M.apply(null, [[U.U.OT.QQCB, [null]]])); $("a", $("#" + _UCE["btnId"])[0]).addAttrArray({ "href": "javascript:void(0)" }); } //qq登录回调
  17. // }
  18. // }
  19. // U.U.OT.UTF = false;
  20. //}
  21. ////个人设置背景设置切换
  22. //U.U.QHBJGR = function (UDOD) {
  23. // var i, _UIE = U.MR.DHQH(UDOD, "UD_SYZSOO"), _UDAD = $(UDOD).parentg(2).Child();
  24. // for (i = 0; i < 2; i++) { _UDAD[i + 1].style.display = i == _UIE ? "block" : "none"; }
  25. // (_UIE ? U.U.CKBJSZ : U.U.DKGEZL)(); //打开个人设置
  26. //}
  27. //登录注册切换
  28. U.U.L.SDL = function (UTF, UCB) {
  29. //参数设置
  30. var _UDCD, _UTF = false,
  31. _UDOD = $("#UD_SYC"), //弹出框的元素
  32. _UDAD = _UDOD.Child(), //注册 登录 找回密码元素
  33. _UDTD = _UDAD[(UTF || 2) - 1], //当前选中
  34. _UKE = [300, "none"], //大小测试
  35. _UDE = [ //切换的内容
  36. {
  37. "innerHTML": "Sign in...",
  38. "className": "UD_SYCOT",
  39. "style": { "display": "none" },
  40. "NR": "快速注册", //注册
  41. "C": {
  42. innerHTML: "已经有账号? <span onclick='U.U.L.isLogin(3);'>现在登录</div>",
  43. title: "",
  44. "className": "UD_SYCOSPO"
  45. }
  46. }, {
  47. "innerHTML": "Log in...",
  48. "className": "UD_SYCOT",
  49. "style": {
  50. "display": "none"
  51. },
  52. "NR": "云端办公", //登录
  53. "C": {
  54. innerHTML: "",
  55. // onclick: [[U.U.L.SDL, ([2]] ],
  56. "className": "",
  57. title: ""
  58. }
  59. }, {
  60. "innerHTML": "Retrieve password...",
  61. "className": "UD_SYCOT UD_SYCOTO",
  62. "style": {
  63. "display": "none"
  64. }, //找回密码
  65. "NR": "找回密码",
  66. "C": {
  67. innerHTML: "", //通过密保找回密码或 通过<span onclick='U.U.F.QHZHFS(this);'>邮箱找回</div>
  68. onclick: null,
  69. "className": "",
  70. title: ""
  71. }
  72. }
  73. ],
  74. _UN = U.M.GetCookie("usestudiosso", "username"); //上次登录的用户名
  75. for (i = 1; i < 4; i++) {
  76. //当前显示注册 登录 找回密码的判断 设置内容
  77. (_UDTD == _UDAD[i]) && (_UDE[i - 1].style.display = "block",
  78. _UKE[2] = _UDE[i - 1].innerHTML,
  79. _UKE[3] = _UDE[i - 1].className,
  80. _UKE[4] = _UDE[i - 1].NR,
  81. _UKE[5] = _UDE[i - 1].C
  82. );
  83. $(_UDAD[i]).addAttrArray({
  84. "style": _UDE[i - 1].style
  85. });
  86. }
  87. $(_UDAD[0]).Child()[1].innerHTML = _UKE[4];
  88. _UDAD[0].style.width = _UKE[0] + "px"; //设置头部信息显示
  89. var _UDMD = $(_UDAD[0]).childg(0)[2];
  90. $(_UDMD).addAttrArray(_UKE[5]); //头部设置内容
  91. ((UTF == 2 || UTF == 3) && UCB) && (U.D.SY.ET.DLHD.push(UCB)); //登录 注册设置回调
  92. //设置变化
  93. if (UTF == 4) { //设置密保区域
  94. U.U.F.CKMB($(_UDAD[3]).Child()[1], 0, []);
  95. _UKE[0] = 285; //头部长度
  96. _UKE[1] = "block"; //是否显示
  97. } else {
  98. if (UTF == 2 && !$("#UD_SYCOCDZ&img")[0]) { //注册验证码区域
  99. $$("img", { //生成验证码
  100. "alt": "看不清?点击重获验证码",
  101. "src": "http://main.1473.cn/Uses.ashx?functionname=UseStudioManage.GraphicVerificationCode&n=" + Math.random(),
  102. "onclick": [
  103. [U.U.R.GVCI, ["this"]]
  104. ]
  105. }, $("#UD_SYCOCDZ")[0]);
  106. }
  107. if (!_UDCD) {
  108. _UDCD = $("input", _UDTD);
  109. if (UTF == 3 && _UN[0]) { //cookie存在 登录处理
  110. _UDCD[0].focus(); //聚焦处理
  111. _UDCD[0].value = _UN[0]; //设置cookie用户名
  112. _UDCD = _UDCD[1]; //当前需要聚焦
  113. } else { //注册 找回密码 聚焦元素处理
  114. _UDCD = _UDCD[0];
  115. }
  116. _UDCD.focus();
  117. }
  118. }
  119. }
  120. //查看用户信息
  121. //U.U.I.CKYHXX = function (UDOD, UDFE, userid) {
  122. // if (UDFE) {
  123. // U.U.I.PCKYHXXO(UDOD, UDFE);
  124. // } //打印用户资料
  125. // else {
  126. // U.A.Request(US.Auth,"UseStudioManage.ViewOtherUserInfo", [userid], U.U.I.AsynCKYHXX, [[UDOD, true], UDOD, userid]);
  127. // } //获取用户资料
  128. //}
  129. //用户信息异步
  130. //U.U.I.ViewOtherUserInfoAsyn = function (r) {
  131. // var context = r.context,
  132. // UPXD = U.D.SY.ET["UIF"][context[2]];
  133. // (UPXD == null) && (UPXD = U.D.SY.ET["UIF"][context[2]] = []); //写入树里
  134. // //U.U.I.CKYHXX(context[1], (UPXD[0] = r.value), context[2]); //打印用户消息
  135. // U.U.I.PCKYHXXO(UDOD, context[1]);
  136. //}