ForumPost.js 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471
  1. Namespace.register("U.MD.D.PB.A"); //pb帖子区域
  2. ////#region 窗体帖子
  3. /*
  4. * 获取用户文章和版块信息
  5. *
  6. * @param {object} 帖子信息
  7. * @param {object} 目录信息
  8. * @param {element} 弹框
  9. * @param {element} 帖子内容区域
  10. * @returns {Object}
  11. */
  12. U.MD.D.PB.A.WAPMHBK = function (UDE, UBE, URID, UDOD) {
  13. try {
  14. if (typeof UDE == "string") { UDE = { "ArticleID": UDE, "PublishedDirectoryID": ""} }; //如果不是帖子实体自定义一个
  15. var _UCE, _UDOD = $("#UD_SYPH")[0] || $("#UD_SYP")[0], //文章模板
  16. _UDTD = _UDOD.id == "UD_SYP" ? _UDOD : "", //判断是否使用模板
  17. _UGE = U.MD.D.H.ET["NT"]["PB"]["BK"], //板块信息
  18. _UDID = UDE.PublishedDirectoryID != null ? UDE.PublishedDirectoryID : UBE["UserDirectoryID"] || ""; //论坛id
  19. if (_UDID) { UBE = UBE || U.Json.select(_UGE, { "UserDirectoryID": _UDID })[0], (!UBE) && (_UGE.push(UBE = {})) }; //获取数据来源
  20. if (_UDTD) { //新建弹窗
  21. _UDOD = new U.UF.UI.form("文章查看",
  22. _UDTD,
  23. {
  24. "id": "UD_SYPH",
  25. "style": {
  26. "width": "80%",
  27. "height": "80%"
  28. }
  29. },
  30. {
  31. isnarrow: false,
  32. isenlarge: false
  33. }).form;
  34. U.UF.EV.scrollLoad(_UDOD, function () {
  35. U.MD.D.PB.Re.FGRPMHBK(_UDOD)
  36. })
  37. }
  38. else {//窗体弹出
  39. _UDTD = new U.UF.UI.form.allForm["UD_SYPH"].middle;
  40. $(_UDOD).Center();
  41. _UDTD.scrollTop = 0; //初始化时候导航到顶部
  42. _UDTD = $(new U.UF.UI.form.et["UD_SYPH"].middle).Child()[0]; //内容元素
  43. }
  44. if (UBE && UBE["IF"] || !U.UF.Ut.isEmpty(UBE)) { //数据存在直接打印
  45. if (UDE["ArticleID"]) { //打印帖子
  46. U.MD.D.PB.A.APMHBK(UDE, UBE, _UDTD, UDOD); //帖子内容输出
  47. U.MD.D.PB.Re.RPMHBK(UDE, 1, URID); //评论内容输出
  48. }
  49. else { U.MD.D.PB.YMHBK(UBE); }
  50. if ((_UCE = US.forum.news) && (U.Json.select((_UCE = _UCE[0]), { "ArticleID": UDE["ArticleID"] }))[0]) {
  51. U.MD.D.Blog.N.SNXX(UDE.ArticleID, _UCE);
  52. }
  53. U.MD.N.UrlWrite["pbt", UDE["ArticleID"]], UDE["ArticleTitle"]; //设置url提示
  54. }
  55. else { //帖子打印
  56. U.A.Request(US.AUTH, ["GetPND", _UDID || US.EMPTYGUID, (US.userInfo.userid || US.EMPTYGUID), UDE.ArticleID]), U.MD.D.PB.A.AsynWAPMHBK, [[_UDTD, true], UDE, _UGE, UBE, URID, UDOD]; //获取后腰数据
  57. }
  58. }
  59. catch (e) { }
  60. }
  61. //获取用户版块异步
  62. U.MD.D.PB.A.AsynWAPMHBK = function (r) {
  63. var _context = r.context,
  64. _UDE = _context[1], //帖子信息
  65. _UGE = _context[2], //板块信息
  66. _UBE = _context[3] || {}, //当前板块信息
  67. _URID = _context[4], //回复内容
  68. _UDOD = _context[5]; //板块内文章元素
  69. r = r.value;
  70. U.MD.D.PB.CLYMHBK(U.MD.D.H.ET["NT"]["PB"]["BK"], _UBE, r[0], _UBE.PublishedDirectoryID); //文章目录信息处理
  71. U.UF.C.AddObj(_UDE, (_UDE["IF"] = r[1][0])); //给文章添加详细信息
  72. U.MD.D.PB.A.WAPMHBK(_UDE, _UBE, _URID, _UDOD); //打印文章
  73. }
  74. /**
  75. * 打印用户文章区域
  76. *
  77. * @param {object} 帖子信息
  78. * @param {object} 目录信息
  79. * @param {element} 帖子内容区域
  80. * @param {element} 板块页面上的帖子元素
  81. * @returns {Object}
  82. */
  83. U.MD.D.PB.A.APMHBK = function (UDE, UBE, UDOD, UDTD) {
  84. if (UDE["IF"]) { //选择文章和版块
  85. var _UGE = U.MD.D.H.ET["NT"]["PB"];
  86. UBE = UBE || U.Json.selectOne(_UGE["BK"], { "UserDirectoryID": UDE.PublishedDirectoryID });
  87. U.MD.D.PB.A.PAPMHBK(UDE, UBE, UDOD, UDTD); _UGE["DWZ"] = UDE;
  88. }
  89. else {
  90. U.A.Request(US.CD, [US.DB, "UseStudio_Blog", "UB_P_S_SelectArticleInformation", UDE.ArticleID], U.MD.D.PB.A.AsynAPMHBK, [[UDOD, true], UDE, UBE, UDOD, UDTD]);
  91. // U.A.Request(US.AUTH,"pb.ArticleContent", [UDE.ArticleID, "PB"], U.MD.D.PB.A.AsynAPMHBK, [[UDOD, true], UDE, UBE, UDOD, UDTD]);
  92. } //获取用户文章
  93. }
  94. //用户文章异步
  95. U.MD.D.PB.A.AsynAPMHBK = function (r) {
  96. var _context = r.context,
  97. _UDE = _context[1], //帖子信息
  98. _UBE = _context[2], //目录信息
  99. _UDOD = _context[3], //弹框
  100. _UDTD = _context[4]; //帖子内容区域
  101. r = r.value;
  102. _UDE["IF"] = r[0]; //给帖子添加内容
  103. U.MD.D.PB.A.APMHBK(_UDE, _UBE, _UDOD, _UDTD); //打印文章
  104. }
  105. /**
  106. * 文章展示
  107. *
  108. * @param {object} 帖子信息
  109. * @param {object} 目录信息
  110. * @param {element} 帖子内容区域
  111. * @param {element} 板块页面上的帖子元素
  112. * @returns {Object}
  113. */
  114. U.MD.D.PB.A.PAPMHBK = function (UDE, UBE, UDOD, UDTD) {
  115. var _UDCD, _UIMG = [], _UIF = UDE["IF"], //各个部分的元素,文章详细信息
  116. _userid = US.userInfo.userid, //用户id
  117. _UDAD = $(UDOD).Child(); //内容
  118. //头部
  119. _UDCD = $("div", _UDAD[0]); //头部区域
  120. _UDCD[3].innerHTML = _UIF.ArticleTitle; //标题
  121. $($("img", _UDCD[0])[0] || $$("img", {}, _UDCD[0])).addAttrArray({ //用户头像
  122. "onerror": U.MD.C.imgError,
  123. "alt": _UIF.UserNickName,
  124. "onclick": function () {
  125. U.MD.U.V.ViewOtherUserInfo(_UIF.UserID);
  126. },
  127. "src": U.MD.C.getHeadImage(_UIF.UserThumbnailImageHead)
  128. });
  129. $(_UDCD[4]).addAttrArray({
  130. "style":
  131. {
  132. "display": (_userid && UDE.UserID == _userid) ? "block" : "none"
  133. }, //是否具有编辑的权限
  134. "title": "编辑修改",
  135. "innerHTML": "编辑修改",
  136. "onclick": function () {
  137. U.MD.D.PB.A.PAPMHPJ(UDE, _UDAD[1], _UDCD[3], UDTD);
  138. }
  139. });
  140. _UDCD[6].innerText = _UIF.UserNickName; //用户名
  141. _UDCD[7].innerText = U.UF.D.getDateInterval(_UIF.ArticleAddTime); //发帖子时间
  142. //内容
  143. $(_UDAD[1]).addAttrArray({
  144. "innerHTML": _UIF.ArticleContent,
  145. "className": "UD_SYPCLCC"
  146. });
  147. _UDCD = $("img", _UDAD[1]);
  148. for (i = 0; i < _UDCD.length; i++) { //给图片添加弹出图片阅览器
  149. _UIMG.push({
  150. "Time": UDE.ArticleAddTime,
  151. "Thm": _UDCD[i].src,
  152. "Img": _UDCD[i].alt.indexOf(US.FILESYSTEMURL) > -1 ? _UDCD[i].alt : _UDCD[i].src
  153. });
  154. $(_UDCD[i]).addAttrArray({
  155. "style": { "cssText": "" },
  156. "onclick": function () {
  157. U.UF.EV.stopBubble();
  158. U.MD.I.Img(_UIF, _UIMG, i);
  159. }
  160. }); //给图片添加点击事件
  161. }
  162. $("a", _UDAD[1]).addAttrArray({ "target": "_blank" }); //当前页面不跳转
  163. //信息
  164. _UDCD = $("div", _UDAD[2]);
  165. _UDCD[1].innerHTML = 0; //分享数
  166. _UDCD[4].innerHTML = _UIF.ArticleReplayNumber; //评论数
  167. _UDCD[7].innerHTML = _UIF.AricitleReadNumber; //浏览数
  168. //评论
  169. _UDCD = $("div", _UDAD[3]);
  170. _UDCD[2].innerText = "发表评论..."; //发表的内容
  171. _UDCD[14].onclick = function () {
  172. U.MD.D.PB.Re.APRPMHBK(null, _UDCD[2], UDE);
  173. }; //发帖的按钮
  174. UDOD.style.display = "block"; //显示
  175. }
  176. //#endregion
  177. //#region 功能区域
  178. //#region 修改的帖子
  179. //窗体修改弹出
  180. U.MD.D.PB.A.PAPMHPJ = function (UDE, UDOD, UDTD, UDSD) {
  181. U.MD.D.PB.A.FBTZTC(null, UDE, function () {
  182. U.MD.D.PB.A.PAPMHTJ(UDE);
  183. U.MD.D.PB.A.ModifyA(UDE, UDOD, UDTD, UDSD);
  184. });
  185. }
  186. //提交
  187. U.MD.D.PB.A.PAPMHTJ = function (UDE, UDOD, cb) {
  188. if (!U.MD.U.L.isLogin()) {
  189. var _UAT,
  190. _UIT = "",
  191. _UST = UDOD.innerHTML || UDOD; U.UF.C.isFunction(cb) ? "" : ((_UIT = arguments[2] || ""),
  192. cb = arguments[3]);
  193. if (U.UF.C.isString(UDE)) { UDE = { ArticleID: UDE, ArticleTitle: _UIT, ArticleContent: _UST} };
  194. if (_UIT.length == 0 || _UIT.length > 40) {
  195. _UAT = "标题太长或者为空";
  196. } else if (_UST.length < 1) {
  197. _UAT = "内容太长或者为空";
  198. } else {
  199. U.UF.C.AddObj([UDE, UDE["IF"] || {}],
  200. {
  201. ArticleContentBrief: _UST,
  202. ArticleTitle: _UIT, ArticleContent: _UST
  203. });
  204. U.A.Request(US.CD, [US.DB, "UseStudio_Blog", "UU_P_U_ModifyArticle", US.userInfo.userid, UDE.ArticleID, _UIT, _UST, U.UF.C.getBriefText(_UST)]), U.MD.D.PB.A.AsynPAPMHTJ, ["", cb];
  205. // U.A.Request(US.AUTH,"pb.modifyarticle", [US.userInfo.userid, UDE.ArticleID, _UIT, _UST], U.MD.D.PB.A.AsynPAPMHTJ, ["", cb]);
  206. }
  207. U.Alert(_UAT || "同步中"); return !_UAT;
  208. }
  209. }
  210. //提交文章异步
  211. U.MD.D.PB.A.AsynPAPMHTJ = function (r) {
  212. U.Alert("修改成功");
  213. var _UCB = r.context[1];
  214. r = r.value;
  215. if (_UCB) { _UCB(r) };
  216. }
  217. //成功提交后修改帖子内容
  218. U.MD.D.PB.A.ModifyA = function (UDE, UDOD, UDTD, UDSD) {
  219. var _UTF, _UDPD, _UIMG, _UDMD, _UDKD, _UDRD;
  220. $("div", UDSD)[5].innerHTML = UDTD.innerHTML = UDE.ArticleTitle;
  221. UDOD.innerHTML = UDE.IF.ArticleContent;
  222. (_UDMD = $("div", UDSD)[13]).innerHTML = UDE.ArticleContentBrief;
  223. _UDPD = $(_UDMD).Parent();
  224. _UDKD = $(_UDPD).Child();
  225. _UIMG = $("img", _UDMD)[0];
  226. _UDMD.innerText = _UDMD.innerText.trim();
  227. if (_UIMG) {
  228. if (_UDKD.length > 1) {
  229. _UDRD = $(_UDKD[1]).Child()[0];
  230. _UDRD.innerText = "";
  231. }
  232. else {
  233. if ((_UDMD.innerText = _UDMD.innerText.addEllipsis(200)) == "") {
  234. _UDMD.style.display = "none";
  235. _UTF = true;
  236. };
  237. _UDKD = $$("div",{
  238. "className": "UD_SYSXZBPOCR",
  239. "style":
  240. {
  241. "marginTop": _UTF ? "0px" : "",
  242. "height": (222 - Math.ceil(_UDMD.innerText.count() / 52) * 20) + "px"
  243. }
  244. }, $(_UDMD).Parent());
  245. _UDRD = $$("div",
  246. {
  247. "onclick": function () { }
  248. }, _UDKD);
  249. }
  250. U.MD.D.H.JZTPJS(_UIMG.src, _UDRD, UDE);
  251. }
  252. else if (_UDKD[1]) {
  253. $(_UDKD[1]).remove();
  254. }
  255. }
  256. //#endregion
  257. //#region 版块搜索帖子
  258. //搜索帖子
  259. U.MD.D.PB.A.TZSS = function (UDOD, UP, UDID) {
  260. var _UGE = U.MD.D.H.ET["NT"]["PB"], _userid = US.userInfo.userid,
  261. _UBE = _UGE["DBK"],
  262. _UDV = UDOD.value.trim().addEllipsis(50).valueOf();
  263. if (UDOD.value != UDOD.defaultValue && _UDV) {
  264. _UGE["USID"] = [_UDV, UDID = (UDID || (_UBE && _UBE["UserDirectoryID"]) || US.EMPTYGUID), _UGE["USID"] == _userid ? _userid : US.EMPTYGUID];
  265. U.MD.D.PB.A.FTZSS(_UDV, UP, UDID, _UGE["USID"][2]);
  266. } //搜索帖子
  267. else { U.Alert("请正确的输入.."); }
  268. }
  269. //获取搜索帖子
  270. U.MD.D.PB.A.FTZSS = function (UDV, UP, UDID, userid) {
  271. var _UDTD = $("#UD_SYSXZBYPR")[0],
  272. _UE = UP * 30,
  273. _US = _UE - 29;
  274. if (UP == 1) { _UDTD.innerText = "" };
  275. U.A.Request(US.CD, [US.DB, "UseStudio_Blog", "UB_P_S_PostSearch", UDID, UDV, _US, _UE, userid], U.MD.D.PB.A.AsynTZSS, [[UP == 1 ? _UDTD : UD_SYSXZBYPD, true], _UDTD, UP]); //获取搜索的帖子
  276. // U.A.Request(US.AUTH,"pb.SearchArtlce", [UDV, _US, _UE, UDID, userid], U.MD.D.PB.A.AsynTZSS, [[UP == 1 ? _UDTD : UD_SYSXZBYPD, true], _UDTD, UP]); //获取搜索的帖子
  277. }
  278. //搜索帖子异步
  279. U.MD.D.PB.A.AsynTZSS = function (r) {
  280. var _context = r.context,
  281. _UDOD = _context[1],
  282. _UP = _context[2];
  283. r = r.value;
  284. if (r) {//打印搜索
  285. if (_UP == 1) {
  286. _UDOD.innerText = "";
  287. if (!r.length) { U.MD.D.PB.PMHBKK(_UDOD) };
  288. }
  289. if (r.length) { U.MD.D.PB.NSYPBL(_UDOD, r) };
  290. }
  291. }
  292. //#endregion
  293. //#region 发表功能
  294. //弹出发表帖子
  295. U.MD.D.PB.A.FBTZTC = function (UDID, UAE, cb) {
  296. if (!U.MD.U.L.isLogin()) {
  297. var _UDBD, _UDTD = $("#UD_SYSXZBFCA"),
  298. _UDOD = document.body,
  299. UDID = U.UF.C.isString(UDID) ? UDID : null,
  300. _UDE = UDID ? (U.Json.select(U.MD.D.H.ET["NT"]["PB"]["BK"], { UserDirectoryID: UDID })[0] || { UserDirectoryID: UDID }) : (U.MD.D.H.ET["NT"]["PB"]["DBK"] || null);
  301. if (_UDE) {
  302. return U.UF.UI.EditorLoad({
  303. id: "PB_Editor", head: true, isc: false, name: UAE ? "帖子修改" : _UDE.UserDirectoryName + "帖子发表", title: UAE ? UAE.ArticleTitle : "",
  304. context: UAE ? UAE.IF.ArticleContent : "", fcb: function () { U.MD.D.PB.A.FBTZMU(_UDE, cb); }
  305. });
  306. }
  307. else {
  308. U.Alert("请选择版块..");
  309. }
  310. }
  311. }
  312. //我要发布点击
  313. U.MD.D.PB.A.DJWYFB = function () {
  314. var i, _UDE = U.MD.D.H.ET["NT"]["PB"]["DBK"];
  315. if (_UDE) {
  316. $("#UD_SYSXZBFCAC")[0].onmousedown();
  317. } //直接选择发帖
  318. else {//跳转到最新里查看发帖
  319. _UDE = ["UD_SYSSTO", "UD_SYSXZBTOC"];
  320. for (i = 0; i < _UDE.length; i++) {
  321. $("#" + _UDE[i]).Child()[1].onclick();
  322. }
  323. U.Alert("请选择目录!");
  324. }
  325. }
  326. //发表帖子
  327. U.MD.D.PB.A.FBTZMU = function (UDE, cb, UCT, UTI) {
  328. return !U.MD.D.PB.A.FBMSSBK(UDE, UTI, UCT, cb || U.MD.D.PB.A.AFBTZMU);
  329. }
  330. //发表帖子函数
  331. U.MD.D.PB.A.FBMSSBK = function (UDE, UTI, UCT, cb) {
  332. var _UAT = "请登录发帖"; if ((_UAT = U.MD.D.PB.A.FBMSSBKG(UDE, UTI, UCT, cb)) === true) {
  333. _UAT = "正在提交请稍后";
  334. return true;
  335. };
  336. if (_UAT) { U.Alert(_UAT) };
  337. return false;
  338. }
  339. //发表帖子处理
  340. U.MD.D.PB.A.FBMSSBKG = function (UDE, UIT, UTH, cb) {
  341. if (!U.MD.U.L.isLogin()) {
  342. if (UIT.trim().length == 0 || UIT.trim().length > 40) {
  343. _UAT = "标题太长或者为空";
  344. }
  345. else if ($$("div",{"innerHTML": UTH}).innerText.trim().length < 0) {
  346. _UAT = "内容太长或者为空";
  347. } //不合格的发帖
  348. else {
  349. if (U.UF.C.isString(UDE)) { UDE = { UserDirectoryID: UDE} };
  350. U.A.Request(US.AUTH, ["addArticle", UDE.UserDirectoryID, UIT, UTH, "false"], U.MD.D.PB.A.AsynFBMSSBKG, ["", UDE, UIT, UTH, cb]); return true;
  351. } //合格的发帖
  352. return _UAT; //函数回调
  353. }
  354. }
  355. //发表帖子成功的异步
  356. U.MD.D.PB.A.AsynFBMSSBKG = function (r) {
  357. var _UCE, _UBE,
  358. _UDOD = $("#UD_SYSXZBYPR")[0],
  359. _context = r.context,
  360. _UDE = _context[1],
  361. _UCB = _context[4],
  362. _UTF = "服务器繁忙";
  363. r = r.value;
  364. _UCE = new U.MD.D.PB.A.BMSSBTI[0, U.UF.D.toTimeStamp(new Date()), _context[3], _context[3], r, 0, _context[2], US.userInfo.userid, US.userInfo.UserNickName, US.userInfo.UserThumbnailImageHead]
  365. if (r) {
  366. _UTF = "发表成功";
  367. if (_UDE["IF"] || US.userInfo.PB) {
  368. $("#UD_SYSXZBELSD div")[2] = (_UDE.ACF++) + 1;
  369. _UBE = _UDE["IF"] ? _UDE["IF"][0][1] : US.userInfo.PB[1][_UDE.UserDirectoryID][1];
  370. if (!_UBE.length) { _UDOD.innerText = "" }; _UBE.unshift(_UCE); //添加发帖内容
  371. }
  372. if (_UCB) { _UCB(_UCE, _UDE) }; //回调查看
  373. }
  374. U.Alert(_UTF); //添加文章
  375. }
  376. //发帖子结束处理
  377. U.MD.D.PB.A.AFBTZMU = function (UCE, UDE) {
  378. U.MD.D.PB.NSYPBL($("#UD_SYSXZBYPR")[0], [UCE], UDE, true);
  379. }
  380. //发表帖子的变化
  381. U.MD.D.PB.A.BMSSBK = function (UDOD, UDE, UCE, UTF) {
  382. try {
  383. if (UDOD) {
  384. var _UH, _UDSD, _UPH,
  385. _UDPD = UDOD.parentNode,
  386. _UDMD = $("#UD_SYSXZBFC"),
  387. _UDAD = $(_UDPD).Child();
  388. if ((UTF == "none" || (UTF == "block" && $("#UD_SYSXZBFCATDO").parentElement().css("display") == "none")) && _UDMD) {//
  389. if (UTF == "none" && ((_UDSD = _UDPD.parentNode) != _UDMD[0])) { _UDMD.append($(_UDPD).addAttrArray({ "onmousedown": function () { U.MD.D.H.WZTJQ(null, $(_UDPD).Child()[1]); U.UF.EV.stopBubble(); }, "style": { "position": ""} })) };
  390. _UDAD[_UDAD.length - 1].style.display = _UDAD[_UDAD.length - 2].style.display = _UDAD[0].style.display = UTF;
  391. UCE["height"] = "";
  392. $(_UDPD).addAttrArray({ "style": UDE });
  393. $(UDOD).addAttrArray({ "style": UCE }); //头部或者底部是否显示
  394. _UPH = $(_UDPD).height();
  395. if (_UPH) { UDOD.style.height = _UPH - ($(_UDAD[0]).height() + $(_UDAD[2]).height() + 20) + "px" };
  396. return true;
  397. }
  398. }
  399. } catch (e) { }
  400. if (UTF != "block") { U.UF.F.CloseWindow($(UDOD).Parent(), "remove") };
  401. }
  402. //发帖子窗体变化
  403. U.MD.D.PB.A.BMSSBKSB = function (UDOD) {
  404. var _UDPD = $(UDOD).parentElement(2),
  405. _UDAD = _UDPD.childs();
  406. _UDAD.css("height", _UDPD.height() - _UDAD.height(0) - _UDAD.height(2) - 22 + "px", 1);
  407. }
  408. //取消发表帖子函数
  409. U.MD.D.PB.A.QXFBMSSBK = function (UDOD) {
  410. var _UDPD = $(UDOD).Parent(2), _UDAD = $(_UDPD).Child();
  411. $("input", _UDPD)[0].value = _UDAD[1].innerText = "";
  412. U.MD.D.PB.A.BMSSBK(_UDAD[1],
  413. { "cssText": "" },
  414. {
  415. "textIndent": "10px",
  416. "color": "#000"
  417. }, "none");
  418. }
  419. //帖子的实体
  420. U.MD.D.PB.A.BMSSBTI = function (UDE) {
  421. this.AricitleReadNumber = UDE[0];
  422. this.ArticleAddTime = UDE[1];
  423. this.ArticleContent = UDE[2];
  424. this.ArticleContentBrief = UDE[3];
  425. this.ArticleID = UDE[4];
  426. this.ArticleReplayNumber = UDE[5];
  427. this.ArticleTitle = UDE[6];
  428. this.UserID = UDE[7];
  429. this.UserNickName = UDE[8];
  430. this.UserThumbnailImageHead = UDE[9];
  431. }
  432. //#endregion
  433. //#endregion