123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 |
-
- // U.U.OT.UTF = true;
- // var i, _UCE = [{ "data-appid": "100584402", "charset": "utf-8", "src": "http://qzonestyle.gtimg.cn/qzone/openapi/qc_loader.js?i=" + Guid.newGuid() }, //腾讯qq加载
- // {"charset": "utf-8", "src": "http://tjs.sjs.sinajs.cn/open/api/js/wb.js?appkey=1242324937&i=" + Guid.newGuid()}]; //新浪微博加载
- // for (i = 0; i < _UCE.length; i++) {
- // _$(_UCE[i]).Add({ "charset": "utf-8", "type": "text/javascript" });
- // U.MD.DynamicLoad(_UCE[i].src, "js", U.M.apply(this, [[U.U.OT.AsynLoad, [UDE]]]), _UCE[i], true);
- // }
- ////异步加载新浪和腾讯登录
- //U.U.OT.AsynLoad = function (UDE) {
- // var i, j, _UCE;
- // for (i = 0; i < UDE.length; i++) {
- // for (j = 0; j < UDE[i].length; j++) {
- // _UCE = UDE[i][j];
- // if (i) { WB2.anyWhere(U.M.apply(this, [[U.U.OT.AsynWeixinLoadJs, [_UCE]]])); } //微博回调
- // else { QC.Login(_UCE, U.M.apply(null, [[U.U.OT.QQCB, [null]]])); $("a", $("#" + _UCE["btnId"])[0]).addAttrArray({ "href": "javascript:void(0)" }); } //qq登录回调
- // }
- // }
- // U.U.OT.UTF = false;
- //}
- ////个人设置背景设置切换
- //U.U.QHBJGR = function (UDOD) {
- // var i, _UIE = U.MR.DHQH(UDOD, "UD_SYZSOO"), _UDAD = $(UDOD).parentg(2).Child();
- // for (i = 0; i < 2; i++) { _UDAD[i + 1].style.display = i == _UIE ? "block" : "none"; }
- // (_UIE ? U.U.CKBJSZ : U.U.DKGEZL)(); //打开个人设置
- //}
- //登录注册切换
- U.U.L.SDL = function (UTF, UCB) {
- //参数设置
- var _UDCD, _UTF = false,
- _UDOD = $("#UD_SYC"), //弹出框的元素
- _UDAD = _UDOD.Child(), //注册 登录 找回密码元素
- _UDTD = _UDAD[(UTF || 2) - 1], //当前选中
- _UKE = [300, "none"], //大小测试
- _UDE = [ //切换的内容
- {
- "innerHTML": "Sign in...",
- "className": "UD_SYCOT",
- "style": { "display": "none" },
- "NR": "快速注册", //注册
- "C": {
- innerHTML: "已经有账号? <span onclick='U.U.L.isLogin(3);'>现在登录</div>",
- title: "",
- "className": "UD_SYCOSPO"
- }
- }, {
- "innerHTML": "Log in...",
- "className": "UD_SYCOT",
- "style": {
- "display": "none"
- },
- "NR": "云端办公", //登录
- "C": {
- innerHTML: "",
- // onclick: [[U.U.L.SDL, ([2]] ],
- "className": "",
- title: ""
- }
- }, {
- "innerHTML": "Retrieve password...",
- "className": "UD_SYCOT UD_SYCOTO",
- "style": {
- "display": "none"
- }, //找回密码
- "NR": "找回密码",
- "C": {
- innerHTML: "", //通过密保找回密码或 通过<span onclick='U.U.F.QHZHFS(this);'>邮箱找回</div>
- onclick: null,
- "className": "",
- title: ""
- }
- }
- ],
- _UN = U.M.GetCookie("usestudiosso", "username"); //上次登录的用户名
- for (i = 1; i < 4; i++) {
- //当前显示注册 登录 找回密码的判断 设置内容
- (_UDTD == _UDAD[i]) && (_UDE[i - 1].style.display = "block",
- _UKE[2] = _UDE[i - 1].innerHTML,
- _UKE[3] = _UDE[i - 1].className,
- _UKE[4] = _UDE[i - 1].NR,
- _UKE[5] = _UDE[i - 1].C
- );
- $(_UDAD[i]).addAttrArray({
- "style": _UDE[i - 1].style
- });
- }
- $(_UDAD[0]).Child()[1].innerHTML = _UKE[4];
- _UDAD[0].style.width = _UKE[0] + "px"; //设置头部信息显示
- var _UDMD = $(_UDAD[0]).childg(0)[2];
- $(_UDMD).addAttrArray(_UKE[5]); //头部设置内容
- ((UTF == 2 || UTF == 3) && UCB) && (U.D.SY.ET.DLHD.push(UCB)); //登录 注册设置回调
- //设置变化
- if (UTF == 4) { //设置密保区域
- U.U.F.CKMB($(_UDAD[3]).Child()[1], 0, []);
- _UKE[0] = 285; //头部长度
- _UKE[1] = "block"; //是否显示
- } else {
- if (UTF == 2 && !$("#UD_SYCOCDZ&img")[0]) { //注册验证码区域
- $$("img", { //生成验证码
- "alt": "看不清?点击重获验证码",
- "src": "http://main.1473.cn/Uses.ashx?functionname=UseStudioManage.GraphicVerificationCode&n=" + Math.random(),
- "onclick": [
- [U.U.R.GVCI, ["this"]]
- ]
- }, $("#UD_SYCOCDZ")[0]);
- }
- if (!_UDCD) {
- _UDCD = $("input", _UDTD);
- if (UTF == 3 && _UN[0]) { //cookie存在 登录处理
- _UDCD[0].focus(); //聚焦处理
- _UDCD[0].value = _UN[0]; //设置cookie用户名
- _UDCD = _UDCD[1]; //当前需要聚焦
- } else { //注册 找回密码 聚焦元素处理
- _UDCD = _UDCD[0];
- }
- _UDCD.focus();
- }
- }
- }
- //查看用户信息
- //U.U.I.CKYHXX = function (UDOD, UDFE, userid) {
- // if (UDFE) {
- // U.U.I.PCKYHXXO(UDOD, UDFE);
- // } //打印用户资料
- // else {
- // U.A.Request(US.Auth,"UseStudioManage.ViewOtherUserInfo", [userid], U.U.I.AsynCKYHXX, [[UDOD, true], UDOD, userid]);
- // } //获取用户资料
- //}
- //用户信息异步
- //U.U.I.ViewOtherUserInfoAsyn = function (r) {
- // var context = r.context,
- // UPXD = U.D.SY.ET["UIF"][context[2]];
- // (UPXD == null) && (UPXD = U.D.SY.ET["UIF"][context[2]] = []); //写入树里
- // //U.U.I.CKYHXX(context[1], (UPXD[0] = r.value), context[2]); //打印用户消息
- // U.U.I.PCKYHXXO(UDOD, context[1]);
- //}
|