123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218 |
- Namespace.register("U.MD.D.Blog.N");
- U.MD.D.Blog.N.PNXX = function () {
- var _UEL, _UBE, _UPE, _UKE, _UDAD, _UDMD, _UDE = US.forum.news[0], _UDOD = $("#UD_TBCMOF");
- if (_UDOD[0]) {
- _UDAD = _UDOD.Child(); _UDMD = $(_UDAD[2]).Child()[1];
- if ((_UEL = _UDAD[1].innerHTML = _UDE.length)) {
- U.MD.D.Blog.N.PNWB(_UDE);
- _UBE = U.Json.select(_UDE, { "NF": null });
- _UPE = U.Json.select(_UDE, { "NF": US.FORUMROOTID });
- _UKE = U.Json.select(_UDE, { "NF": US.EMPTYGUID });
- if (_UBE.length) {
- U.MD.D.Blog.N.PNSXX(_UBE, _UDMD);
- }
- if (_UPE.length || _UKE.length) {
- U.MD.D.Blog.N.BNXX(_UPE, _UDMD);
- U.MD.D.Blog.N.SQBNXX(_UKE, _UDAD[1]);
- }
- }
- _UDAD[2].style.display = _UEL ? "block" : "none";
- }
- }
- U.MD.D.Blog.N.PNXXD = function () {
- }
- U.MD.D.Blog.N.PNWB = function (UDE) {
- var i, _UET, _UCE = [];
- for (i = 0; i < UDE.length; i++) {
- _UCE.push({ "UsParamet": [UDE[i].NF, UDE[i].ArticleID, UDE[i].ReplyID],
- "UsImag": U.MD.C.getHeadImage(UDE[i].UserThumbnailImageHead),
- "UsName": UDE[i].UserName,
- "UsType": "UPBR",
- "UsSYScontent": UDE[i].ReplyContent
- });
- }
- if ((_UET = window.external)) {
- try {
- window.external.news(U.UF.C.jsonToStr(_UCE));
- }
- catch (e) {
- }
- }
- }
- U.MD.D.Blog.N.BNXX = function (UDE, UDOD) {
- var i, _UDTD, _UDID, _UDSD, _UDED, _UDWD,
- _UEL = UDE.length,
- _UDFD = $$("frag");
- $(UDOD).addAttrArray({ "style": { "display": "block" }, "innerText": "" });
- for (i = 0; i < _UEL; i++) {
- UDE[i].PublishedDirectoryID = UDE[i].NF;
- _UDTD = $$("div",
- {
- "className": "UD_SYXTXOOT",
- "onclick": function () {
- U.UF.EV.stopBubble();
- U.MD.D.PB.A.WAPMHBK(UDE[i]);
- U.MD.D.Blog.N.SNXX(UDE[i].ArticleID, UDE, this);
- },
- "title": UDE[i].ArticleTitle
- },
- _UDFD);
- _UDID = $$("div",{"className": "UD_SYXTXOOTL"},_UDTD);
- $$("img",
- { "onerror": U.MD.C.imgError,
- "title": "点击查看",
- "src": U.MD.C.getHeadImage(UDE[i].UserThumbnailImageHead)
- },
- _UDID);
- _UDSD = $$("div",{"className": "UD_SYXTXOOTR UTDF"},_UDTD);
- _UDED = $$("div",{"className": "UD_SYXTXOOTRS"},_UDSD);
- $$("div",{"className": "UD_SYXTXOOTRSN UTDF","innerHTML": UDE[i].UserName},_UDED);
- _UDWD = $$("div",{"className": "UD_SYXTXOOTRSC UTDF","innerHTML": UDE[i].ArticleContentBrief},_UDED);
- _UDWD.innerText = _UDWD.innerText.trim();
- _UDWD = $$("div",{"className": "UD_SYXTXOOTRX UTDF","innerHTML": UDE[i].ReplyContent},_UDSD);
- _UDWD.innerText = _UDWD.innerText.trim();
- $$("div",{"className": "UD_SYSSRXOMS UD_SYXTXOOTC","innerHTML": "查看"},_UDTD);
- }
- UDOD.appendChild(_UDFD);
- }
- U.MD.D.Blog.N.SQBNXX = function (UDE, UDOD) {
- var _UTF, _UDTD, _UDFD = $$("frag");
- for (i = 0; i < UDE.length; i++) {
- _UTF = function () {
- U.UF.EV.stopBubble();
- U.MD.D.Blog.N.SNXX(UDE[i].ArticleID, UDE, this);
- };
- if (UDE[i].ArticleTitle != "0") {
-
-
- }
- _UDTD = $$("div",
- {
- "className": "UD_SYXTXOOO",
- "onclick": _UTF
- },
- _UDFD);
- $$("div",{"className": "UD_SYXTXOOOL U_Boom_Img_ys2017"},_UDTD);
- $$("div",{"className": "UD_SYXTXOOOZ","innerHTML": "您申请的版块 \"<span>" + UDE[i].ArticleContentBrief + "</span>\" " + UDE[i].ReplyContent},_UDTD);
- $$("div",
- {
- "className": "UD_SYXTXOOOR" + (_UTF ? " UD_SYXTXOOORO" : ""),
- "innerHTML": _UTF ? "关闭" : "查看",
- "onclick": _UTF ? function () {
- U.UF.EV.stopBubble();
- U.MD.D.Blog.N.SNXX(UDE[i].ArticleID, UDE, _UDTD);
- } : null
- },
- _UDTD);
- }
- UDOD.appendChild(_UDFD);
- }
- U.MD.D.Blog.N.PNSXX = function (UDE, UDOD) {
- var i, _UDTD, _UDSD,
- _UDFD = $$("frag");
- $(UDOD).addAttrArray({ "style": { "display": "block" }, "innerText": "" });
- for (i = 0; i < UDE.length; i++) {
- _UDTD = $$("div",
- {
- "className": "UD_SYSXZLRSRA",
- "style": i ? {} : {
- "marginLeft": "0px"
- },
- "title": UDE[i].UserName,
- "onclick": function () {
- U.UF.EV.stopBubble();
- U.MD.D.Blog.F.GSHGBL(UDE[i]);
- U.MD.D.Blog.N.SNXX(UDE[i].ArticleID, UDE, this);
- }
- },
- _UDFD);
- _UDSD = $$("div",{"className": "UD_SYSXZLRSRAI"},_UDTD);
- $$("img",
- {
- "onerror": U.MD.C.imgError,
- "src": U.MD.C.getHeadImage(UDE[i].UserThumbnailImageHead)
- },
- _UDSD);
- $$("div",{"className": "UD_SYSXZLRSRAT U_Boom_Img_ys2017","innerHTML": UDE[i].UCN},_UDTD);
- }
- UDOD.appendChild(_UDFD);
- }
- U.MD.D.Blog.N.PNXXX = function (UDOD, UDE) {
- var i, _UDOD, _UDTD, _UDGD, _UDID, _UDFD = $$("frag"); UDOD.innerText = "";
- for (i = 0; i < UDE.length; i++) {
- _UDOD = $$("div",
- {
- "className": "UD_SYSXZLRSROO",
- "onclick": function () {
- U.UF.EV.stopBubble();
- U.MD.D.Blog.F.GSHGBL(UDE[i]);
- U.MD.D.Blog.N.SNXX(UDE[i].ArticleID, UDE, this);
- }
- },
- _UDFD);
- _UDTD = $$("div",{"className": "UD_SYSXZLRSROOL"},_UDOD);
- $$("img",
- {
- "onerror": U.MD.C.imgError,
- "title": "点击查看",
- "src": U.MD.C.getHeadImage(UDE[i].UserThumbnailImageHead),
- "onclick": function () {
- U.UF.EV.stopBubble();
- U.MD.U.V.ViewOtherUserInfo(UDE[i].ReplyAddUserID);
- }
- },
- _UDTD);
- _UDGD = $$("div",{"className": "UD_SYSXZLRSROOR"},_UDOD);
- _UDID = $$("div",{"className": "UD_SYSXZLRSROORS"},_UDGD);
- $$("div",{"className": "UD_SYSXZLRSROORSN","innerHTML": UDE[i].UserName},_UDID);
- $$("div",{"className": "UD_SYSXZLRSROORSN","innerHTML": U.UF.D.getDateInterval(UDE[i].ReplyAddTime)},_UDID);
- $$("div",{"className": "UD_SYSXZLRSROORX","innerHTML": UDE[i].ReplyContent},_UDGD);
- }
- UDOD.appendChild(_UDFD);
- }
- U.MD.D.Blog.N.SNXX = function (UMID, UDE, UDOD) {
- var i,
- _UBE = US.forum.news[0],
- _UMID = UMID || U.Json.toKeyArray(UDE, "ArticleID"),
- UDPD = UDOD ? UDOD.parentNode : ""; (UMID) && (_UMID = [_UMID]);
- for (i = 0; i < _UMID.length; i++) {
- U.Json.del([UDE, _UBE], { "ArticleID": _UMID[i] });
- };
- _UMID = _UMID.join(",");
- if (UMID && UDOD) {
- if (UDE.length) {
- $(UDOD).remove();
- }
- else {
- UDOD = UDOD.parentNode; UDPD = UDOD.parentNode;
- };
- }
- if (!UMID || !UDE.length) { UDOD && (UDOD.innerText = "", UDPD.style.display = "none") };
- U.MD.D.Blog.N.PNXX();
- U.A.Request(US.CD, [US.DB, "UseStudio_Blog", "UB_B_U_ModifyOneNewsState", _UMID, 0, 1, 2], function () { }, []);
- }
|