U.D.Blog.Dt.js 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. Namespace.register("U.D.Blog.Dt"); //桌面blog
  2. //#region 桌面
  3. U.D.Blog.Dt.ZMBMAIN = function (UDE) {
  4. if ($("#UD_HCBCCL")[0]) {
  5. U.D.Blog.Dt.ZMBCK(UDE[0][1], U.selectEl("#UD_HCBCCL")[0]); //动静查看
  6. U.D.Blog.Dt.ZMBRMCK(UDE[2], U.selectEl("#UD_HCBCCROC")[0]); //热门动静查看
  7. U.D.Blog.Dt.ZMBTBY(UDE[1], U.selectEl("#UD_HCBCCRTC")[0]); //特别用户推荐
  8. }
  9. }
  10. //切换查看
  11. U.D.Blog.Dt.SWZMBM = function (UDOD, UTF) {
  12. var _UGE = U.D.SY.ET["UB"],
  13. _UDTD = U.selectEl("#UD_HCBCCL")[0];
  14. _UDTD.innerText = "";
  15. U.MR.DHQH(UDOD, "UD_HCBTLOO");
  16. U.D.Blog.Dt.ZMBCK(UTF ? _UGE[2] : _UGE[0][1], _UDTD); //动静查看
  17. }
  18. //动静查看
  19. U.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.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.M.apply() }, _UDSD); _UDID = U.selectEl("img", _UDSD)[0]; _UST = _UDSD.innerText; _UDSD.innerText = "";
  26. if (_UDID) {
  27. j++; U.D.SY.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.M.StopBubble], [U.U.I.UIFZX, ([_UCE.UserId])]] }, _UDCD);
  31. $$("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);
  32. $$("div", { "className": "UD_HCBCCLOXSR", "innerHTML": U.MT.getTDInterval(_UCE.ArticleAddTime) }, _UDCD);
  33. $$("div", { "className": "UD_HCBCCLOXSZ", "innerHTML": _UCE.UserName, "onclick": [[U.M.StopBubble], [U.U.I.UIFZX, ([_UCE.UserId])]] }, _UDCD);
  34. $$("div", { "className": "UD_HCBCCLOXX", "innerHTML": _UST }, _UDSD);
  35. }
  36. }
  37. UDOD.appendChild(_UDFD);
  38. }
  39. //热门动静查看
  40. U.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.D.Blog.F.GSHGBL, ([_UCE])]] }, _UDFD);
  44. _UDSD = $$("div", { "className": "UD_HCBCCROCOL", "onclick": [[U.M.StopBubble], [U.U.I.UIFZX, ([_UCE.UserId])]] }, _UDTD);
  45. $$("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);
  46. _UDSD = $$("div", { "className": "UD_HCBCCROCOR" }, _UDTD);
  47. $$("div", { "className": "UD_HCBCCROCORL", "innerHTML": _UCE.UserName, "onclick": [[U.M.StopBubble], [U.U.I.UIFZX, ([_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.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.D.Blog.F.GSHGBL, ([_UCE])]] }, _UDFD);
  58. _UDSD = $$("div", { "className": "UD_HCBCCRTCOS" }, _UDTD);
  59. $$("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);
  60. $$("div", { "className": "UD_HCBCCRTCON UTDF", "innerHTML": _UCE.UserName, "onclick": [[U.M.StopBubble], [U.U.I.UIFZX, ([_UCE.UserId])]] }, _UDTD);
  61. $$("div", { "className": "UD_HCBCCRTCOC", "innerHTML": "追随", "onclick": [[U.M.StopBubble], [U.F.M.YAddFriend, ([_UCE])]] }, _UDTD);
  62. }
  63. UDOD.appendChild(_UDFD);
  64. }
  65. //#endregion