Namespace.register("U.U.I"); //查看用户信息弹框 //#region 用户信息查看 //------------------------------------------------------------------------------用户个人信息 //个人信息 U.U.I.UIFZX = U.U.I.ViewOtherUserInfo = function (userid) { var _userinfoel = $("#UD_SYU").clone(true), // 用户信息元素 _childs = $(_userinfoel[0]).Child(), _userinfoel = _childs[0], //用户个人资料元素 _bloginfoel = _childs[1]; //用户博客资料元素 //弹出好友信息弹框 U.UI.Form({ "min": false, "max": false, "id": "UD_SYU" + userid, "style": { width: "1024px", height: "80%" }, "content": _userinfoel[0], "title": "
个人简历
", "hst": { style: { "padding": "0"} } }); //信息加载 U.A.Request(US.Auth, ["ViewOtherUserInfo", userid], U.U.I.ViewOtherUserInfoAsyn, [_userinfoel, _userinfoel, userid]) U.U.I.ViewUserBlogInfo(_bloginfoel, userid, 1, true); //查看用户最新表表的博客 } //打印用户信息 [[U.U.L.SYDLHD, [U.M.apply(this, )]]] U.U.I.ViewOtherUserInfoAsyn = function (r) { var i, j, context = r.context, UDOD = context[1], UIFD = context[2] _userinfoel, _UDSD, _UDND, _UDHD, _UDYD, _UIF = UIFD[0], UFG = UIFD[1][0], _UTP = UIFD[2], _UZS = UIFD[3], _UDE = { "FGC": ["正在追随"], "DTC": ["动静"], "DDC": ["云分享", [[U.D.DT.YYDK, ["Disk", { "userid": _UIF.UserId, "directoryid": US.FG}]]], "查看云分享"], "FDC": ["追随者"] }, _childs = $(UDOD).Child(), _UDZD = $("div", _childs[3])[1], _UDPD = $("div", _childs[4]), _UDMD = $("div", _childs[5]), _UDWD = $("div", _childs[2]), _UDFD = $$("frag"), _UDID = $$("frag"), _UDBD = $$("frag"), _UDKD = $$("frag"); if (US.Friend[1]) { _UGF = _$(US.Friend[1]).Select({ "UserId": _UIF.UserId }, null, 1)[0]; } _TF = [{ "className": "UD_SYUIAO", "innerHTML": "追随(+)", "title": "点击添加", "onmouseover": null, "onmouseout": null }, { "onclick": [[U.F.M.DeleteFriend, [_UGF || _UIF]]], "className": "UD_SYUIAO UD_SYUIAOO", "innerHTML": "已添加(+)", "title": "点击取消", "onmouseover": U.M.apply(_UDWD, [[_UDWD.addAttrArray, [{ "innerHTML": "取消追随(-)" }, 0]]]), "onmouseout": U.M.apply(_UDWD, [[_UDWD.addAttrArray, [{ "innerHTML": "已添加(+)" }, 0]]]) } ]; // _childs[1].innerText = _UDZD.innerText = _UDMD[1].innerText = _UDPD[1].innerText = ""; _TF[0].onclick = [[U.F.M.AddFriend, [_UIF, U.M.apply(_UDWD, [[_UDWD.addAttrArray, [_TF[1], 0]]])]]]; _TF[1].onclick.push[_UDWD.addAttrArray, [_TF[0], 0]]; _TF[1].onclick = U.M.apply(_UDWD, _TF[1].onclick); //添加事件 _UDWD.addAttrArray(_UGF ? _TF[1] : _TF[0], 0); _UDWD[1].onclick = U.M.apply(_UDWD[1], _UDE.DDC[1]); _UDWD[2].onclick = U.M.apply(_UDWD[2], [[U.U.L.SYDLHD, [U.M.apply(this, [[U.F.W.PopupFriendsForm, [_UIF]]])]]]); _userinfoel = $$("div", { "className": "UD_SYUINT" }, _UDFD); $$("img", { "onerror": U.M.ImgError, "title": "点击查看", "onclick": [[U.M.StopBubble], [U.D.Img.Img, [_UIF, [{ "Thm": U.M.GetImgU(_UIF.UserThumbnailImageHead), "Img": U.M.GetImgU(_UIF.UserThumbnailImageHead)}]]]], "src": U.M.GetImgU(_UIF.UserThumbnailImageHead) }, _userinfoel); _UDSD = $$("div", { "className": "UD_SYUINN" }, _UDFD); _UDND = $$("div", { "className": "UD_SYUINNNO" }, _UDSD); $$("div", { "className": "UD_SYUINNN UTDF", "innerHTML": _UIF.UserNickName || _UIF.UserName }, _UDND); $$("div", { "className": "UD_SYUINNNT", "innerHTML": (_UIF.Province ? _UIF.Province.replace(/省|市/g, "") + _UIF.City : _UIF.LoginAddress || "") }, _UDND); $$("div", { "className": "UD_SYUINNQ UTDF", "innerHTML": _UIF.UserIndividualitysignature || "什么都没有留下" }, _UDSD); _UDND = $$("div", { "className": "UD_SYUINNT" }, _UDSD); for (i in _UDE) { _UDHD = $$("div", { "onclick": _UDE[i][1] || "", "title": _UDE[i][2] || "", "className": "UD_SYUINNTO UTDF", "style": (i == "FGC" ? { "marginLeft": "0px"} : {}) }, _UDND); $$("div", { "className": "UD_SYUINNTOS", "innerHTML": UFG[i] }, _UDHD); $$("div", { "className": "UD_SYUINNTOX", "innerHTML": _UDE[i][0] }, _UDHD); } for (i = 0; i < _UZS.length; i++) { $$("img", { "onerror": U.M.ImgError, "title": "点击查看", "onclick": [[U.M.StopBubble], [U.U.I.ViewOtherUserInfo, [_UZS[i].UserId]]], "src": U.M.GetImgU(_UZS[i].UserThumbnailImageHead) }, _UDID); } _UDE = [_$(_UTP).Select({ "TF": 2 }), _$(_UTP).Select({ "TF": 1 }, null, 4)]; for (i = 0; i < _UDE.length; i++) { if (_UDE[i].length) { for (j = 0; (j < _UDE[i].length && j < 4); j++) { if (i) { U.Ut.AddObj(_UDE[i][j], { "Thm": US.fs + _UDE[i][j]["UseFilesServerThumbnailName"], "Img": US.fs + _UDE[i][j]["UserFilesServerName"] }); $$("img", { "onerror": [[U.M.ImgError, ["this", 1]]], "title": "点击查看原图", "onclick": [[U.M.StopBubble], [U.D.Img.Img, [_UIF, _UDE[i], j]]], "src": US.fs + _UDE[i][j]["UseFilesServerThumbnailName"] }, _UDBD); } else { _UDYD = $$("div", { "className": "UD_SYUIYCO", "onclick": [[U.D.DT.YYDK, ["Disk", { "userid": _UIF.UserId, "directoryid": _UDE[i][j].UserDirectoryID}]]] }, _UDKD); $$("div", { "className": "UD_SYUIYCOI UD_SYI", "onclick": [[U.MPlayer.TYY, [_UDE[i][j]]]] }, _UDYD); $$("div", { "className": "UD_SYUIYCON", "innerHTML": _UDE[i][j]["UserFilesName"] }, _UDYD); } } } else { if (i) { _userinfoel = $$("div", { "className": "UD_SYSXZBELXCT UD_SYSXZBELXCTB" }, _UDBD); $$("div", { "className": "UD_SYSXZBELXCTS UD_SYI UD_SYSXZBELXCTSO" }, _userinfoel); _UDSD = $$("div", { "className": "UD_SYSXZBELXCTR" }, _userinfoel); $$("div", { "className": "UD_SYSXZBELXCTZ UD_SYSXZBELXCTZO", "innerHTML": "暂时没有图片,这里可以分享感兴趣的图片!!" }, _UDSD); $$("div", { "className": "UD_SYSXZBELXCTX UD_SYSXZBELXCTXO", "innerHTML": "点击我的图片", "onclick": [[U.D.DT.YYDK, ["Disk", { "userid": US.userInfo.userid, "directoryid": US.PG}]]] }, _UDSD); } else { _userinfoel = $$("div", { "className": "UD_SYSXZBELXCT UD_SYSXZBELXCTA" }, _UDKD); $$("div", { "className": "UD_SYSXZBELXCTS UD_SYSXZBELCCTS UD_SYI UD_SYSXZBELXCTSO" }, _userinfoel); _UDSD = $$("div", { "className": "UD_SYUIYCC" }, _userinfoel); $$("div", { "className": "UD_SYSXZBELXCTZ UD_SYSXZBELXCTZT", "innerHTML": "当前还没有添加任何歌曲" }, _UDSD); _UDND = $$("div", { "className": "UD_SYSXZBELCCTX UD_SYSXZBELCCTXT" }, _UDSD); _UDHD = $$("div", { "className": "UD_SYSXZBELCCTXO UD_SYSXZBELCCTXOA", "innerHTML": "你可以 " }, _UDND); $$("span", { "onclick": [[U.D.DT.YYDK, ["Disk", { "userid": US.userInfo.userid, "directoryid": US.MG}]]], "innerHTML": "我的音乐" }, _UDHD); _UDND = $$("div", { "className": "UD_SYSXZBELCCTX UD_SYSXZBELCCTXT" }, _UDSD); _UDHD = $$("div", { "className": "UD_SYSXZBELCCTXO UD_SYSXZBELCCTXOA", "innerHTML": "或者 " }, _UDND); $$("span", { "onclick": U.MPlayer.DKCSHYY, "innerHTML": "打开音乐播放器" }, _UDHD); } } } _UDE = [[_UDPD, US.PG], [_UDMD, US.MG]]; for (i = 0; i < 2; i++) { _UDE[i][0].addAttrArray({ "onclick": [[U.D.DT.YYDK, ["Disk", { "userid": _UIF.UserId, "directoryid": _UDE[i][1]}]]] }, 0) }; //添加用户网盘查看事件 _childs[1].appendChild(_UDFD); _UDZD.appendChild(_UDID); _UDPD[1].appendChild(_UDBD); _UDMD[1].appendChild(_UDKD); //生成显示 } //滚动加载 U.U.I.GDCKYHDT = function (UDOD, userid) { _UDFE = U.D.SY.ET["UIF"][userid][1]; U.U.I.ViewUserBlogInfo(UDOD, _UDFE, userid, this.P + 2); //分页打印 } //获取用户最新发表 U.U.I.ViewUserBlogInfo = function (UDOD, UDPE, userid, P, TF) { var _userinfoel = $(UDOD).Child(); UDPE = U.D.T.FYGBL(UDPE, P); //U.M.GTCN() if (UDPE[0]) { if (TF) { _userinfoel[1].innerText = ""; } if (UDPE[0].length) { U.D.Blog.PGBL(_userinfoel[1], UDPE[0], true); } else if (P === 1) { U.U.I.PCKYHDT(_userinfoel[1]); } } //打印文章 else { U.A.Request(US.Auth, ["GFA", US.NU, (UDPE[1] - 1) * 100, UDPE[1] * 100, userid, US.NU], U.U.I.AsynCKYHDT, [(P == 1 ? [_userinfoel[1], true] : [$("#UD_SYUPL")[0], 1]), UDOD, userid, P, UDPE[1], _userinfoel]); } $("div#UD_SYUPC", _userinfoel[0])[0].onscroll = U.M.SSCH({ "AF": U.M.apply(null, [[U.U.I.GDCKYHDT, [_bloginfoel, userid]]]) }).SCH(); //滚动加载 } //异步获取最新的文章 U.U.I.AsynCKYHDT = function (r) { var context = r.context, UPXD = U.D.SY.ET["UIF"][context[2]]; r = r.value; (!UPXD) && (UPXD = U.D.SY.ET["UIF"][context[2]] = [], UPXD[1] = []); UPXD[1] = UPXD[1] || []; UPXD[1][context[4]] = U.D.Blog.ZFSGBL(r); context[5][1].innerText = ""; context[5][0].innerText = r[0] > 0 ? "动静..(" + r[0].SumNumber + ")" : "动静"; U.U.I.ViewUserBlogInfo(context[1], UPXD[1], context[2], context[3]); //打印用户的文章 } //用户资料没有发表文章 U.U.I.PCKYHDT = function (UDOD) { var _userinfoel = $$("div", { "className": "UD_SYUT" }, UDOD); $$("div", { "className": "UD_SYUTS", "innerHTML": "他暂时没有相关的消息呢!!稍后再来试试吧~" }, _userinfoel); $$("div", { "className": "UD_SYUTX", "innerHTML": "Noting!!" }, _userinfoel); } //#endregion