BlogUser.js 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. Namespace.register("U.MD.D.Blog.U"); //用户信息区域查看朋友圈
  2. //首页最新消息
  3. U.MD.D.Blog.U.ZXBlog = function (UDOD, UDE, UTF, UIE, USID) {
  4. var i, _UVM, _UTI, _UAT, _UCE, _UDAD, _UDED, _UDBD, _UDTD, _UDSD, _UDID, _UDKD, _UDND, _UDED, _UDKD, _UDAC, _UDVD, _UDLD, _UDPD, _UIMG,
  5. _UDFD = $$("frag"),
  6. _userid = US.userInfo.userid,
  7. _UTI = U.MD.D.Blog.ZXWZ(UDOD, UIE, null, true);
  8. for (i = 0; i < UDE.length; i++) {
  9. _UIMG = null; _UVM = true; _UCE = UDE[i];
  10. _UDBD = $$("div",
  11. {
  12. "className": "UD_SYSXZBRA",
  13. "style":
  14. {
  15. "cssText": "left:" + _UTI[4] + "px;top:" + _UTI[5] + "px"
  16. }
  17. },
  18. _UDFD);
  19. _UDTD = $$("div",{"className": "UD_SYSXZBRAO"},_UDBD);
  20. _UDED = $$("div",
  21. {
  22. "className": "UD_SYSXZBRO",
  23. "onclick": function () {
  24. U.MD.D.Blog.F.GSHGBL(_UCE, null, null);
  25. }
  26. },
  27. _UDTD);
  28. _UAT = _UCE.ArticleAddTime;
  29. _UDPD = $$("div",{"className": "UD_SYSXZBROCD"},_UDTD);
  30. _UDID = $$("div",{"className": "UD_SYSXZLRSRDTRDRO"},_UDPD);
  31. _UDKD = $$("div",
  32. {
  33. "className": "UD_SYSXZLRSRDTRDRZ",
  34. "title": "转发",
  35. "onclick": function () {
  36. U.UF.EV.stopBubble();
  37. U.MD.U.L.setLoginCallBack(function () {
  38. U.MD.D.Blog.A.PAZF(_UCE);
  39. });
  40. }
  41. }, _UDID);
  42. $$("div",{"className": "UD_SYSXZLRSRDTRDRZIO U_Boom_Img_ys2017"},_UDKD);
  43. $$("div",{"innerHTML": _UCE.ArticleZFN,"className": "UD_SYSXZLRSRDTRDRZN"},_UDKD);
  44. _UDKD = $$("div",{"className": "UD_SYSXZLRSRDTRDRZ","title": "阅读"},_UDID);
  45. $$("div",{"className": "UD_SYSXZLRSRDTRDRZIT U_Boom_Img_ys2017"},_UDKD);
  46. $$("div",{"innerHTML": _UCE.AricitleReadNumber,"className": "UD_SYSXZLRSRDTRDRZN"},_UDKD);
  47. if ((_UDTD = _UDED) && _UCE.ZF) {
  48. _UDED.onclick = function () {
  49. U.MD.D.Blog.F.GSHGBL(_UCE.ZF, null, null);
  50. }
  51. _UDSD = $$("div",{"className": "UD_SYSXZBMCOT UD_SYSXZBMCOTT"},_UDTD);
  52. $$("div",{"className": "UD_SYSXZLRSRDTSL U_Boom_Img_ys2017 UD_SYSXZLRSRDTSLO"},_UDSD);
  53. _UDID = $$("div",{"className": "UD_SYSXZBMCOTLT"},_UDSD);
  54. $$("img",
  55. {
  56. "onerror": U.MD.C.imgError,
  57. "alt": _UCE.UserName,
  58. "title": _UCE.UserName,
  59. "onclick": function () {
  60. U.UF.EV.stopBubble();
  61. U.MD.U.V.ViewOtherUserInfo(_UCE.UserID);
  62. },
  63. "src": U.MD.C.getHeadImage(_UCE.UserThumbnailImageHead)
  64. },
  65. _UDID);
  66. _UDID = $$("div",{"className": "UD_SYSXZBMCOTZTO UTDF"},_UDSD);
  67. _UDKD = $$("div",{"className": "UD_SYSXZBMCOTZTOS"},_UDID);
  68. $$("div",{"className": "UD_SYSXZBMCOTZTOSL","innerHTML": _UCE.UserName},_UDKD);
  69. $$("div",{"className": "UD_SYSXZBMCOTZTR UD_SYSXZBMCOTZTOSR","innerHTML": "推荐了"},_UDKD);
  70. _UDID = $$("div",{"className": "UD_SYSXZBMCOTZTOX","innerHTML": _UCE.ArticleContentBrief},_UDID);
  71. _UDID.innerText = _UDID.innerText.addEllipsis(50) || "";
  72. _UCE = _UCE.ZF;
  73. _UVM = !_UVM;
  74. }
  75. _UDSD = $$("div", { "className": "UD_SYSXZBMCOT UD_SYSXZBMCOTU" }, _UDTD);
  76. _UDID = $$("div", { "className": "UD_SYSXZBMCOTL UD_SYSXZBMCOTLO" }, _UDSD);
  77. $$("img", { "onerror": U.MD.C.imgError, "alt": _UCE.UserName, "title": _UCE.UserName,
  78. "onclick": function () { U.UF.EV.stopBubble(); U.MD.U.V.ViewOtherUserInfo(_UCE.UserID); }, "src": U.MD.C.getHeadImage(_UCE.UserThumbnailImageHead) }, _UDID);
  79. _UDKD = $$("div", { "className": "UD_SYSXZBMCOTO UD_SYSXZBMCOTZ UTDF", "innerHTML": _UCE.UserName }, _UDSD);
  80. $$("div", { "className": "UD_SYSXZBMCOTR UD_SYSXZBMCOTRO", "innerHTML": U.UF.D.getDateInterval(_UAT) }, _UDSD);
  81. _UDND = $$("div", { "className": "UD_SYSXZBROCO" }, _UDTD);
  82. if (USID && UDE[i].UserID == _userid) {
  83. $$("div", { "className": "UD_SYSXZLRSRDTRZTI UD_SYSXZLRSRDTRZTIO U_Boom_Img_ys2017",
  84. "onclick": function () {
  85. U.UF.EV.stopBubble();
  86. U.UF.UI.Confirm("是否删除该消息", function () { U.MD.D.Blog.F.SCPGBL(UDE[i], _UDBD); });
  87. }, "title": "移除消息"
  88. }, _UDTD)
  89. };
  90. _UDKD = $$("div", { "className": "UD_SYSXZBROCT" + (_UCE.ArticleContentBrief ? " UD_SYSXZBROCTO" : ""), "innerHTML": _UCE.ArticleContentBrief }, _UDND); _UDKD.innerText = _UDKD.innerText.addEllipsis(150) || "图片分享";
  91. _UDED = $$("div", { "className": "UD_SYSXZBROC",
  92. "onclick": function () { U.MD.D.Blog.F.GSHGBL(_UCE); } }, _UDND);
  93. if (_UDAC = _UCE.ArticleContent) {
  94. _UDVD = $$("div", { "className": "UD_SYSXZBROCC" }), _UDLD = $$("div", {
  95. "onclick": function () { }, "innerHTML": _UDAC }, _UDVD), _UIMG = $("img", _UDLD)[0], _UDLD.innerText = "", (_UIMG) && (_UDED.appendChild(_UDVD), U.MD.D.H.JZTPJS(_UIMG.src, _UDLD, _UCE)) };
  96. _UDND = $$("div", { "className": "UD_SYSXZBROCS", "style": { "width": _UIMG ? "" : "258px", "marginLeft": _UIMG ? "" : "0px"} }, _UDED);
  97. }
  98. _UDAD = $(_UDFD).Child(); UDOD.insertBefore(_UDFD, ((UIE != null) && ($(UDOD).Child()[UIE])) || null); U.MD.D.Blog.ZXWZ(UDOD, (UIE || 0), _UDFD, false); //
  99. }