123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- Namespace.register("U.D.Blog.Dt"); //桌面blog
- //#region 桌面
- U.D.Blog.Dt.ZMBMAIN = function (UDE) {
- if ($("#UD_HCBCCL")[0]) {
- U.D.Blog.Dt.ZMBCK(UDE[0][1], U.selectEl("#UD_HCBCCL")[0]); //动静查看
- U.D.Blog.Dt.ZMBRMCK(UDE[2], U.selectEl("#UD_HCBCCROC")[0]); //热门动静查看
- U.D.Blog.Dt.ZMBTBY(UDE[1], U.selectEl("#UD_HCBCCRTC")[0]); //特别用户推荐
- }
- }
- //切换查看
- U.D.Blog.Dt.SWZMBM = function (UDOD, UTF) {
- var _UGE = U.D.SY.ET["UB"],
- _UDTD = U.selectEl("#UD_HCBCCL")[0];
- _UDTD.innerText = "";
- U.MR.DHQH(UDOD, "UD_HCBTLOO");
- U.D.Blog.Dt.ZMBCK(UTF ? _UGE[2] : _UGE[0][1], _UDTD); //动静查看
- }
- //动静查看
- U.D.Blog.Dt.ZMBCK = function (UDE, UDOD) {
- var i, j = 0, _UST, _UDTD, _UDSD, _UDID, _UDCD, _UDKD, _UCE, _UDFD = $$("frag");
- for (i = 0; (i < UDE.length && j < 9); i++) {
- _UCE = UDE[i]; _UDTD = $$("div", { "className": "UD_HCBCCLO", "onclick": [[U.D.Blog.F.GSHGBL, ([_UCE])]], "style": { "marginLeft": j % 3 ? "" : "0"} });
- _UDSD = $$("div", { "className": "UD_HCBCCLOS" }, _UDTD);
- _UDSD = $$("div", { "className": "UD_HCBCCLOSO" }, _UDSD);
- _UDSD = $$("div", { "innerHTML": _UCE.ArticleContentBrief, "onclick": U.M.apply() }, _UDSD); _UDID = U.selectEl("img", _UDSD)[0]; _UST = _UDSD.innerText; _UDSD.innerText = "";
- if (_UDID) {
- j++; U.D.SY.JZTPJS(_UDID.src, _UDSD, UDE[i]); _UDFD.appendChild(_UDTD);
- _UDSD = $$("div", { "className": "UD_HCBCCLOX" }, _UDTD);
- _UDCD = $$("div", { "className": "UD_HCBCCLOXS" }, _UDSD);
- _UDKD = $$("div", { "className": "UD_HCBCCLOXSL", "onclick": [[U.M.StopBubble], [U.U.I.UIFZX, ([_UCE.UserId])]] }, _UDCD);
- $$("img", { "onerror": U.M.ImgError, "alt": _UCE.UserName, "title": _UCE.UserName, "onclick": [[U.M.StopBubble], [U.U.I.UIFZX, ([_UCE.UserID])]], "src": U.M.GetImgU(_UCE.UserThumbnailImageHead) }, _UDKD);
- $$("div", { "className": "UD_HCBCCLOXSR", "innerHTML": U.MT.getTDInterval(_UCE.ArticleAddTime) }, _UDCD);
- $$("div", { "className": "UD_HCBCCLOXSZ", "innerHTML": _UCE.UserName, "onclick": [[U.M.StopBubble], [U.U.I.UIFZX, ([_UCE.UserId])]] }, _UDCD);
- $$("div", { "className": "UD_HCBCCLOXX", "innerHTML": _UST }, _UDSD);
- }
- }
- UDOD.appendChild(_UDFD);
- }
- //热门动静查看
- U.D.Blog.Dt.ZMBRMCK = function (UDE, UDOD) {
- var i, _UCE, _UDTD, _UDSD, _UDCD, _UDFD = $$("frag");
- for (i = 0; (i < UDE.length && i < 3); i++) {
- _UCE = UDE[i]; _UDTD = $$("div", { "className": "UD_HCBCCROCO", "onclick": [[U.D.Blog.F.GSHGBL, ([_UCE])]] }, _UDFD);
- _UDSD = $$("div", { "className": "UD_HCBCCROCOL", "onclick": [[U.M.StopBubble], [U.U.I.UIFZX, ([_UCE.UserId])]] }, _UDTD);
- $$("img", { "onerror": U.M.ImgError, "alt": _UCE.UserName, "title": _UCE.UserName, "onclick": [[U.M.StopBubble], [U.U.I.UIFZX, ([_UCE.UserID])]], "src": U.M.GetImgU(_UCE.UserThumbnailImageHead) }, _UDSD);
- _UDSD = $$("div", { "className": "UD_HCBCCROCOR" }, _UDTD);
- $$("div", { "className": "UD_HCBCCROCORL", "innerHTML": _UCE.UserName, "onclick": [[U.M.StopBubble], [U.U.I.UIFZX, ([_UCE.UserId])]] }, _UDSD);
- _UDCD = $$("div", { "className": "UD_HCBCCROCORS UTDF", "innerHTML": _UCE.ArticleContentBrief }, _UDSD); _UDCD.innerText = _UDCD.innerText;
- $$("div", { "className": "UD_HCBCCROCORZ UTDF", "innerHTML": "已有" + _UCE.AricitleReadNumber + "人阅读" }, _UDSD);
- }
- UDOD.appendChild(_UDFD);
- }
- //特别用户推荐
- U.D.Blog.Dt.ZMBTBY = function (UDE, UDOD) {
- var i, _UCE, _UDTD, _UDSD, _UDFD = $$("frag");
- for (i = 0; (i < UDE.length && i < 6); i++) {
- _UCE = UDE[i]; _UDTD = $$("div", { "className": "UD_HCBCCRTCO", "onclick": [[U.D.Blog.F.GSHGBL, ([_UCE])]] }, _UDFD);
- _UDSD = $$("div", { "className": "UD_HCBCCRTCOS" }, _UDTD);
- $$("img", { "onerror": U.M.ImgError, "alt": _UCE.UserName, "title": _UCE.UserName, "onclick": [[U.M.StopBubble], [U.U.I.UIFZX, ([_UCE.UserID])]], "src": U.M.GetImgU(_UCE.UserThumbnailImageHead) }, _UDSD);
- $$("div", { "className": "UD_HCBCCRTCON UTDF", "innerHTML": _UCE.UserName, "onclick": [[U.M.StopBubble], [U.U.I.UIFZX, ([_UCE.UserId])]] }, _UDTD);
- $$("div", { "className": "UD_HCBCCRTCOC", "innerHTML": "追随", "onclick": [[U.M.StopBubble], [U.F.M.YAddFriend, ([_UCE])]] }, _UDTD);
- }
- UDOD.appendChild(_UDFD);
- }
- //#endregion
|