U.D.Blog.Dt.js 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. Namespace.register("U.MD.D.Blog.Dt"); //桌面blog
  2. //#region 桌面
  3. U.MD.D.Blog.Dt.ZMBMAIN = function (UDE) {
  4. if ($("#UD_HCBCCL")[0]) {
  5. U.MD.D.Blog.Dt.ZMBCK(UDE[0][1], $("#UD_HCBCCL")[0]); //动静查看
  6. U.MD.D.Blog.Dt.ZMBRMCK(UDE[2], $("#UD_HCBCCROC")[0]); //热门动静查看
  7. U.MD.D.Blog.Dt.ZMBTBY(UDE[1], $("#UD_HCBCCRTC")[0]); //特别用户推荐
  8. }
  9. }
  10. //切换查看
  11. U.MD.D.Blog.Dt.SWZMBM = function (UDOD, UTF) {
  12. var _UGE = U.MD.D.H.ET["UB"],
  13. _UDTD = $("#UD_HCBCCL")[0];
  14. _UDTD.innerText = "";
  15. U.UF.MR.DHQH(UDOD, "UD_HCBTLOO");
  16. U.MD.D.Blog.Dt.ZMBCK(UTF ? _UGE[2] : _UGE[0][1], _UDTD); //动静查看
  17. }
  18. //动静查看
  19. U.MD.D.Blog.Dt.ZMBCK = function (UDE, UDOD) {
  20. var i, j = 0, _UST, _UDTD, _UDSD, _UDID, _UDCD, _UDKD, _UCE, _UDFD = $$("frag");
  21. for (i = 0; (i < UDE.length && j < 9); i++) {
  22. _UCE = UDE[i]; _UDTD = $$("div", { "className": "UD_HCBCCLO", "onclick": [[U.MD.D.Blog.F.GSHGBL, [_UCE]]], "style": { "marginLeft": j % 3 ? "" : "0"} });
  23. _UDSD = $$("div", { "className": "UD_HCBCCLOS" }, _UDTD);
  24. _UDSD = $$("div", { "className": "UD_HCBCCLOSO" }, _UDSD);
  25. _UDSD = $$("div", { "innerHTML": _UCE.ArticleContentBrief, "onclick": U.UF.M.apply() }, _UDSD); _UDID = $("img", _UDSD)[0]; _UST = _UDSD.innerText; _UDSD.innerText = "";
  26. if (_UDID) {
  27. j++; U.MD.D.H.JZTPJS(_UDID.src, _UDSD, UDE[i]); _UDFD.appendChild(_UDTD);
  28. _UDSD = $$("div", { "className": "UD_HCBCCLOX" }, _UDTD);
  29. _UDCD = $$("div", { "className": "UD_HCBCCLOXS" }, _UDSD);
  30. _UDKD = $$("div", { "className": "UD_HCBCCLOXSL", "onclick": [[U.UF.M.StopBubble], [U.MD.U.I.ViewOtherUserInfo, [_UCE.UserId]]] }, _UDCD);
  31. $$("img", { "onerror": U.UF.M.ImgError, "alt": _UCE.UserName, "title": _UCE.UserName, "onclick": [[U.UF.M.StopBubble], [U.MD.U.I.ViewOtherUserInfo, [_UCE.UserID]]], "src": U.UF.M.GetImgU(_UCE.UserThumbnailImageHead) }, _UDKD);
  32. $$("div", { "className": "UD_HCBCCLOXSR", "innerHTML": U.UF.D.getDateInterval(_UCE.ArticleAddTime) }, _UDCD);
  33. $$("div", { "className": "UD_HCBCCLOXSZ", "innerHTML": _UCE.UserName, "onclick": [[U.UF.M.StopBubble], [U.MD.U.I.ViewOtherUserInfo, [_UCE.UserId]]] }, _UDCD);
  34. $$("div", { "className": "UD_HCBCCLOXX", "innerHTML": _UST }, _UDSD);
  35. }
  36. }
  37. UDOD.appendChild(_UDFD);
  38. }
  39. //热门动静查看
  40. U.MD.D.Blog.Dt.ZMBRMCK = function (UDE, UDOD) {
  41. var i, _UCE, _UDTD, _UDSD, _UDCD, _UDFD = $$("frag");
  42. for (i = 0; (i < UDE.length && i < 3); i++) {
  43. _UCE = UDE[i]; _UDTD = $$("div", { "className": "UD_HCBCCROCO", "onclick": [[U.MD.D.Blog.F.GSHGBL, [_UCE]]] }, _UDFD);
  44. _UDSD = $$("div", { "className": "UD_HCBCCROCOL", "onclick": [[U.UF.M.StopBubble], [U.MD.U.I.ViewOtherUserInfo, [_UCE.UserId]]] }, _UDTD);
  45. $$("img", { "onerror": U.UF.M.ImgError, "alt": _UCE.UserName, "title": _UCE.UserName, "onclick": [[U.UF.M.StopBubble], [U.MD.U.I.ViewOtherUserInfo, [_UCE.UserID]]], "src": U.UF.M.GetImgU(_UCE.UserThumbnailImageHead) }, _UDSD);
  46. _UDSD = $$("div", { "className": "UD_HCBCCROCOR" }, _UDTD);
  47. $$("div", { "className": "UD_HCBCCROCORL", "innerHTML": _UCE.UserName, "onclick": [[U.UF.M.StopBubble], [U.MD.U.I.ViewOtherUserInfo, [_UCE.UserId]]] }, _UDSD);
  48. _UDCD = $$("div", { "className": "UD_HCBCCROCORS UTDF", "innerHTML": _UCE.ArticleContentBrief }, _UDSD); _UDCD.innerText = _UDCD.innerText;
  49. $$("div", { "className": "UD_HCBCCROCORZ UTDF", "innerHTML": "已有" + _UCE.AricitleReadNumber + "人阅读" }, _UDSD);
  50. }
  51. UDOD.appendChild(_UDFD);
  52. }
  53. //特别用户推荐
  54. U.MD.D.Blog.Dt.ZMBTBY = function (UDE, UDOD) {
  55. var i, _UCE, _UDTD, _UDSD, _UDFD = $$("frag");
  56. for (i = 0; (i < UDE.length && i < 6); i++) {
  57. _UCE = UDE[i]; _UDTD = $$("div", { "className": "UD_HCBCCRTCO", "onclick": [[U.MD.D.Blog.F.GSHGBL, [_UCE]]] }, _UDFD);
  58. _UDSD = $$("div", { "className": "UD_HCBCCRTCOS" }, _UDTD);
  59. $$("img", { "onerror": U.UF.M.ImgError, "alt": _UCE.UserName, "title": _UCE.UserName, "onclick": [[U.UF.M.StopBubble], [U.MD.U.I.ViewOtherUserInfo, [_UCE.UserID]]], "src": U.UF.M.GetImgU(_UCE.UserThumbnailImageHead) }, _UDSD);
  60. $$("div", { "className": "UD_HCBCCRTCON UTDF", "innerHTML": _UCE.UserName, "onclick": [[U.UF.M.StopBubble], [U.MD.U.I.ViewOtherUserInfo, [_UCE.UserId]]] }, _UDTD);
  61. $$("div", { "className": "UD_HCBCCRTCOC", "innerHTML": "追随", "onclick": [[U.UF.M.StopBubble], [U.MD.F.M.AddFriend, [_UCE]]] }, _UDTD);
  62. }
  63. UDOD.appendChild(_UDFD);
  64. }
  65. //#endregion