reply.js 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377
  1. //#region
  2. Namespace.register("U.Reply");
  3. U.Reply.Astart = function () {
  4. U.Reply.Load();
  5. U.Reply.content_box();
  6. U.Reply.Emoji();
  7. }
  8. var UploadImgSrc = [];
  9. U.Reply.Load = function () {
  10. var comment = $$("div", { "className": "comment" }, $("body")[0]);
  11. var content = $$("div", { "className": "content" }, comment);
  12. var content_box = $$("div", { "className": "content_box" }, content);
  13. var head = $$("div", { "className": "head" }, content_box);
  14. // head.style.background = 'url(http://fs.1473.cn/'+US.userInfo.UserThumbnailImageHead +')';
  15. if (US.userInfo.UserThumbnailImageHead != null) {
  16. head.style.background = 'url(http://fs.1473.cn/' + US.userInfo.UserThumbnailImageHead + ')'; //获取头像
  17. } else {
  18. head.style.background = 'url(/img/UserHead/UseHead.jpg) '; //获取头像
  19. }
  20. head.style.backgroundSize = '100% 100%';
  21. var frame = $$("div", { "className": "content_frame" }, content_box);
  22. var name = $$("div", { "innerHTML": US.userInfo.UserName }, frame);
  23. var input = $$("div", { "className": "content_input", "contenteditable": "true" }, frame);
  24. var bottom = $$("div", { "className": "content_top" }, frame);
  25. var emoji = $$("img", { "className": "content_emoji", "style": { "float": "left"} }, bottom);
  26. emoji.src = "../../img/reply/emoji.png";
  27. var div = $$("div", { "style": { "float": "left"} }, bottom);
  28. var picture = $$("img", { "className": "content_picture" }, div);
  29. picture.src = "../../img/reply/img.png";
  30. var upload = $$("input", { "id": "Files", "type": "file", "onchange": "U.Reply.Upload(this)", "style": { "position": "relative", "left": "-20px", "opacity": " 0"} }, div);
  31. var publish = $$("div", { "className": "content_publish", "innerHTML": "发表评论", "onclick": "U.Reply.release()" }, bottom);
  32. var emoji_frame = $$("div", { "className": "Reviews_emoji", "style": { "display": "none"} }, frame);
  33. var img = $$("div", { "className": "ImgLoad" }, frame);
  34. var box = $$("div", { "className": "content_bigbox" }, content);
  35. }
  36. /*
  37. *函数作用:文件上传
  38. */
  39. U.Reply.Upload = function (e) {
  40. U.UP.uploading([$("#Files")[0]],
  41. function (r) {
  42. var index = r.value[0].lastIndexOf(".");
  43. var str = r.value[0].substring(index + 1, r.value[0].length);
  44. var imgtype = /.*(jpg|png|gif|jpeg|JPG|PNG|GIF|JPEG)$/;
  45. if (str.match(imgtype)) {
  46. UploadImgSrc += "http://fs.1473.cn/" + r.value[0] + ",";
  47. U.Alert("上传成功");
  48. $(".ImgLoad")[0].innerHTML = "";
  49. U.Reply.ImgLoad();
  50. } else {
  51. U.Alert("请上传图片文件");
  52. return;
  53. }
  54. }, [], "http://disk.1473.cn/USupfile.ashx?iframename=UseStudioEditor");
  55. }
  56. U.Reply.ImgLoad = function () {
  57. if (UploadImgSrc != "") {
  58. var Imgsrc = UploadImgSrc.split(",");
  59. for (var i = 0; i < Imgsrc.length - 1; i++) {
  60. var img = $$("img", { "src": Imgsrc[i], "style": { "width": "100px", "height": "100px", "margin-right": "10px"} }, $(".ImgLoad")[0]);
  61. }
  62. }
  63. }
  64. //获取评论数据
  65. U.Reply.content_box = function () {
  66. U.A.Request("http://cd.1473.cn/php", ["db.1473.cn", "UseStudio_Reply", "Reply_SelectReply", "ad4e6deb-b40f-11e7-9fce-005056aa632a"], function (r) {
  67. var a = r.value;
  68. for (var i = 0; i < a.length; i++) {
  69. var rid = a[i].ReplyID;
  70. var content_box = $$("div", { "className": "content_box", "id": a[i].ReplyID }, $(".content_bigbox")[0]);
  71. var left = $$("div", { "className": "left", "style": { "height": "55px;", "float": "left"} }, content_box);
  72. var head = $$("div", { "className": "head" }, left);
  73. if (a[i].ReplyUserThumbnailImageHead == "null") {
  74. head.style.background = 'url(/img/UserHead/UseHead.jpg) '//获取头像
  75. } else if (a[i].ReplyUserThumbnailImageHead.substring(0, 4) == "http") {
  76. head.style.background = 'url( ' + a[i].ReplyUserThumbnailImageHead + ' ) '//获取头像
  77. } else {
  78. head.style.background = 'url(http://fs.1473.cn/' + a[i].ReplyUserThumbnailImageHead + ') '
  79. }
  80. head.style.backgroundSize = '100% 100%';
  81. var info = $$("div", { "className": "info" }, content_box);
  82. var right = $$("div", { "className": "right" }, info);
  83. var name = $$("p", { "className": "info_name", "innerHTML": a[i].UserName }, right);
  84. var time = $$("p", { "className": "info_time", "innerHTML": a[i].ReplyAddTime }, right);
  85. var clear = $$("div", { "style": { "clear": "both"} }, right);
  86. var substance = $$("div", { "className": "substance", "innerHTML": a[i].ReplyContent }, right);
  87. if (a[i].ReplyContentImgtype == 1) {
  88. var contentimg = $$("div", { "className": "content_img" }, right);
  89. var Imgsrc = a[i].ReplyContentImg.split(",");
  90. for (var j = 0; j < Imgsrc.length; j++) {
  91. var img = $$("img", { "src": Imgsrc[j] }, contentimg);
  92. }
  93. }
  94. var bottom = $$("div", { "className": "bottom" }, right);
  95. var ul = $$("ul", { "className": "ul", "style": { "width": "500px", "margin-top": "10px"} }, bottom);
  96. var fabulous = $$("li", { "className": "fabulous" }, ul);
  97. var uid = "aa7146da-e67c-4b3d-91f7-1dcb92d9f7d1";
  98. U.Reply.f(rid, uid, i);
  99. var img = $$("img", { "className": "fabulous_img" }, fabulous);
  100. var number = $$("p", { "innerHTML": a[i].Fabulous }, fabulous);
  101. var reply = $$("li", { "className": "reply" }, ul);
  102. var reply_img = $$("img", { "src": "../../img/reply/reply.png" }, reply);
  103. var reply_p = $$("p", { "innerHTML": "回复" }, reply);
  104. var list = $$("li", { "className": "check" }, ul);
  105. var list_img = $$("img", { "className": "content_reply", "src": "../../img/reply/list.png" }, list);
  106. var list_p = $$("p", { "innerHTML": "查看对话", "onclick": "U.Reply.Reply()", "style": { "width": "100px;"} }, list);
  107. var clear = $$("div", { "style": { "clear": "both"} }, info);
  108. reply.addEventListener('click', function () {
  109. $(".content_input")[0].innerHTML = "";
  110. //alert(rid)
  111. if ($("#DetailInfo")[0] != undefined) {
  112. //alert("a");
  113. $("#dialogue")[0].remove();
  114. U.Reply.content_box_a(this.parentNode.parentNode.parentNode.parentNode.parentNode.id);
  115. } else {
  116. U.Reply.content_box_a(this.parentNode.parentNode.parentNode.parentNode.parentNode.id);
  117. }
  118. }, false);
  119. list.addEventListener('click', function () {
  120. $(".content_input")[0].innerHTML = "";
  121. //alert(rid)
  122. if ($("#DetailInfo")[0] != undefined) {
  123. //alert("a");
  124. $("#dialogue")[0].remove();
  125. U.Reply.check(this.parentNode.parentNode.parentNode.parentNode.parentNode.id);
  126. } else {
  127. U.Reply.check(this.parentNode.parentNode.parentNode.parentNode.parentNode.id);
  128. }
  129. }, false);
  130. }
  131. });
  132. }
  133. U.Reply.f = function (rid, uid, i) {
  134. U.A.Request("http://cd.1473.cn/php", ["db.1473.cn", "UseStudio_Reply", "Reply_GetOnFabulousUserID", rid, uid], function (q) {
  135. var Fo = q.value["0"].data;
  136. if (Fo != 0) {
  137. $(".fabulous_img")[i].src = "../../img/reply/Fabulous.png";
  138. $(".fabulous_img")[i].onclick = function (rid, uid) { U.Reply.fabulous(this, '" + rid + "', '" + uid + "') }
  139. //var img = $$("img", { "src": "../../img/reply/Fabulous.png", "onclick": "U.Reply.fabulous(this,'" + rid + "','" + uid + "')" }, $(".fabulous")[i]);
  140. } else {
  141. $(".fabulous_img")[i].src = "../../img/reply/NOFabulous.png";
  142. $(".fabulous_img")[i].onclick = function (rid, uid) { U.Reply.fabulous(this, '" + rid + "', '" + uid + "') }
  143. //var img = $$("img", { "src": "../../img/reply/NOFabulous.png", "onclick": "U.Reply.fabulous(this,'" + rid + "','" + uid + "')" }, $(".fabulous")[i]);
  144. }
  145. });
  146. }
  147. //回复
  148. U.Reply.content_box_a = function (ReplyID) {
  149. U.A.Request("http://cd.1473.cn/php", ["db.1473.cn", "UseStudio_Reply", "Reply_Select_ReplyID", ReplyID], function (r) {
  150. var data = r.value;
  151. var dialogue = $$("div", { "className": "dialogue", "id": "dialogue", "style": { "display": "block"} }, $(".content")[0]);
  152. var content_box = $$("div", { "className": "content_box", "id": data[0].ReplyID }, dialogue);
  153. var left = $$("div", { "className": "left", "style": { "height": "55px;", "float": "left"} }, content_box);
  154. var head = $$("div", { "className": "head" }, left);
  155. if (data[0].ReplyUserThumbnailImageHead == "null") {
  156. head.style.background = 'url(/img/UserHead/UseHead.jpg) '//获取头像
  157. } else if (data[0].ReplyUserThumbnailImageHead.substring(0, 4) == "http") {
  158. head.style.background = 'url( ' + data[0].ReplyUserThumbnailImageHead + ' ) '//获取头像
  159. } else {
  160. head.style.background = 'url(http://fs.1473.cn/' + data[0].ReplyUserThumbnailImageHead + ') '
  161. }
  162. head.style.backgroundSize = '100% 100%';
  163. var info = $$("div", { "className": "info" }, content_box);
  164. var right = $$("div", { "className": "info_right" }, info);
  165. var name = $$("p", { "className": "info_name", "innerHTML": data[0].UserName }, right);
  166. var time = $$("p", { "className": "info_time", "innerHTML": data[0].ReplyAddTime }, right);
  167. var clear = $$("div", { "style": { "clear": "both"} }, right);
  168. var substance = $$("div", { "className": "substance", "innerHTML": data[0].ReplyContent }, right);
  169. var bottom = $$("div", { "className": "bottom" }, info);
  170. var clear = $$("div", { "style": { "clear": "both"} }, info);
  171. var setreply = $$("div", { "className": "setreply", "style": {} }, bottom);
  172. var dialogue_box = $$("div", { "className": "dialogue_box", "contenteditable": "true" }, setreply);
  173. //评论
  174. var publish = $$("span", { "className": "content_publishb", "id": ReplyID, "innerHTML": "评论" }, setreply);
  175. publish.onclick = function () {
  176. var FileID = "ad4e6deb-b40f-11e7-9fce-005056aa632a"; // 板块ID
  177. var UserID = "aa7146da-e67c-4b3d-91f7-1dcb92d9f7d1"; //用户id US.userInfo.userid
  178. var UserName = "13622333003"; //US.userInfo.UserName
  179. var ReplyID = Guid.newGuid(); //评论id 自定义生成
  180. var ReplyContent = $(".dialogue_box")[0].innerHTML; //评论内容
  181. var ReplyIP = "10.3.13.77"; //ip地址US.userInfo.RegisterIP
  182. var ReplyAddress; "中国广东深圳"; //ip所在地址 US.userInfo.LoginAddress
  183. var ReplyDeep = 2; //深度
  184. var ReplyUserThumbnailImageHead = 'null'; //头像 UserImageHead
  185. var ReplyBindingID = this.id; //绑定id
  186. var ReplyParentId = '';
  187. var ReplyParentNickname = "江浩然"; //昵称 US.userInfo.UserNickName
  188. var Fabulous = 0; //点赞数
  189. U.A.Request("http://cd.1473.cn/php", ["db.1473.cn", "UseStudio_Reply", "Reply_InsertReply", FileID, UserID, UserName, ReplyID, ReplyContent, ReplyIP, ReplyAddress, ReplyDeep, ReplyUserThumbnailImageHead, ReplyBindingID, ReplyParentId, ReplyParentNickname, Fabulous], function () {
  190. dialogue_box.innerHTML = "";
  191. dialogue.removeChild($(".content_container")[0]);
  192. LoadReply(data[0].ReplyID);
  193. U.Alert("评论发表成功")
  194. });
  195. }
  196. LoadReply(ReplyID);
  197. U.UI.From({ "id": "DetailInfo", "style": { "width": "563px", "height": "385px", "border-radius": "5px;", "box-shadow": "none;" }, "content": $("#dialogue")[0], "title": "回复评论",
  198. "hst": { "style": { "padding": "0", "background-color": "#3f506a", "height": "32px", "line-height": "32px", "text-indent": "2.2em"} }
  199. })
  200. });
  201. }
  202. U.Reply.Close = function () {
  203. $("#dialogue")[0].style.display = 'none';
  204. }
  205. U.Reply.Close1 = function () {
  206. $(".dialogue")[0].style.display = 'none';
  207. }
  208. U.Reply.check = function (ReplyID) {
  209. U.A.Request("http://cd.1473.cn/php", ["db.1473.cn", "UseStudio_Reply", "Reply_Select_ReplyID", ReplyID], function (r) {
  210. var data = r.value;
  211. var dialogue = $$("div", { "className": "dialogue", "id": "dialogue", "style": { "display": "block"} }, $(".content")[0]);
  212. var content_box = $$("div", { "className": "content_box", "id": data[0].ReplyID }, dialogue);
  213. var left = $$("div", { "className": "left", "style": { "height": "55px;", "float": "left"} }, content_box);
  214. var head = $$("div", { "className": "head" }, left);
  215. if (data[0].ReplyUserThumbnailImageHead == "null") {
  216. head.style.background = 'url(/img/UserHead/UseHead.jpg) '//获取头像
  217. } else if (data[0].ReplyUserThumbnailImageHead.substring(0, 4) == "http") {
  218. head.style.background = 'url( ' + data[0].ReplyUserThumbnailImageHead + ' ) '//获取头像
  219. } else {
  220. head.style.background = 'url(http://fs.1473.cn/' + data[0].ReplyUserThumbnailImageHead + ') '
  221. }
  222. head.style.backgroundSize = '100% 100%';
  223. var info = $$("div", { "className": "info" }, content_box);
  224. var right = $$("div", { "className": "info_right" }, info);
  225. var name = $$("p", { "className": "info_name", "innerHTML": data[0].UserName }, right);
  226. var time = $$("p", { "className": "info_time", "innerHTML": data[0].ReplyAddTime }, right);
  227. var clear = $$("div", { "style": { "clear": "both"} }, right);
  228. var substance = $$("div", { "className": "substance", "innerHTML": data[0].ReplyContent }, right);
  229. var bottom = $$("div", { "className": "bottom" }, info);
  230. var clear = $$("div", { "style": { "clear": "both"} }, info);
  231. LoadReply(ReplyID);
  232. U.UI.From({ "id": "DetailInfo", "style": { "width": "563px", "height": "385px", "border-radius": "5px;", "box-shadow": "none;" }, "content": $("#dialogue")[0], "title": "回复评论",
  233. "hst": { "style": { "padding": "0", "background-color": "#3f506a", "height": "32px", "line-height": "32px", "text-indent": "2.2em"} }
  234. })
  235. });
  236. }
  237. LoadReply = function (ReplyID) {
  238. U.A.Request("http://cd.1473.cn/php", ["db.1473.cn", "UseStudio_Reply", "Reply_SelectReplyDeep", ReplyID], function (r) {
  239. if (r.value.length != 0) {
  240. var data = r.value;
  241. var container = $$("div", { "className": "content_container" }, $(".dialogue")[0]);
  242. for (var i = 0; i < data.length; i++) {
  243. var content_box = $$("div", { "className": "content_box", "id": data[i].ReplyID }, container);
  244. var left = $$("div", { "className": "left", "style": { "height": "55px;", "float": "left"} }, content_box);
  245. var head = $$("div", { "className": "head" }, left);
  246. if (data[i].ReplyUserThumbnailImageHead == "null") {
  247. head.style.background = 'url(/img/UserHead/UseHead.jpg) '//获取头像
  248. } else if (data[i].ReplyUserThumbnailImageHead.substring(0, 4) == "http") {
  249. head.style.background = 'url( ' + data[i].ReplyUserThumbnailImageHead + ' ) '//获取头像
  250. } else {
  251. head.style.background = 'url(http://fs.1473.cn/' + data[i].ReplyUserThumbnailImageHead + ') '
  252. }
  253. head.style.backgroundSize = '100% 100%';
  254. var info = $$("div", { "className": "info" }, content_box);
  255. var right = $$("div", { "className": "info_right", "style": { "width": "440px", "float": "right"} }, info);
  256. var name = $$("p", { "className": "info_name", "innerHTML": data[i].UserName }, right);
  257. var time = $$("p", { "className": "info_time", "innerHTML": data[i].ReplyAddTime }, right);
  258. var clear = $$("div", { "style": { "clear": "both"} }, right);
  259. var substance = $$("div", { "className": "substance", "innerHTML": data[i].ReplyContent }, right);
  260. if (data[i].ReplyContentImgtype == 1) {
  261. var contentimg = $$("div", { "className": "content_img" }, right);
  262. var Imgsrc = data[i].ReplyContentImg.split(",");
  263. for (var j = 0; j < Imgsrc.length; j++) {
  264. var img = $$("img", { "src": Imgsrc[j] }, contentimg);
  265. }
  266. }
  267. var clear = $$("div", { "style": { "clear": "both"} }, info);
  268. }
  269. } else {
  270. var container = $$("div", { "className": "content_container" }, $(".dialogue")[0]);
  271. var none = $$("div", { "className": "container_none", "innerHTML": "暂无评论" }, container);
  272. }
  273. });
  274. }
  275. U.Reply.a = function (hfid) {
  276. //$("#content_publishb")[0].onclick = function () {
  277. var FileID = "ad4e6deb-b40f-11e7-9fce-005056aa632a"; // 板块ID
  278. var UserID = US.userInfo.userid; //用户id US.userInfo.userid
  279. var UserName = US.userInfo.UserName; //US.userInfo.UserName
  280. var ReplyID = Guid.newGuid(); //评论id 自定义生成
  281. var ReplyContent = $(".dialogue_box")[0].innerHTML; //评论内容
  282. var ReplyIP = userinfo.RegisterIP; //ip地址US.userInfo.RegisterIP
  283. var ReplyAddress; US.userInfo.LoginAddress; //ip所在地址 US.userInfo.LoginAddress
  284. var ReplyDeep = 2; //深度
  285. var ReplyUserThumbnailImageHead = 'null'; //头像 UserImageHead
  286. var ReplyBindingID = hfid; //绑定id
  287. var ReplyParentId = '';
  288. var ReplyParentNickname = US.userInfo.UserNickName; //昵称 US.userInfo.UserNickName
  289. var Fabulous = 0; //点赞数
  290. U.A.Request("http://cd.1473.cn/php", ["db.1473.cn", "UseStudio_Reply", "Reply_InsertReply", FileID, UserID, UserName, ReplyID, ReplyContent, ReplyIP, ReplyAddress, ReplyDeep, ReplyUserThumbnailImageHead, ReplyBindingID, ReplyParentId, ReplyParentNickname, Fabulous], function () {
  291. U.Alert("评论成功");
  292. });
  293. }
  294. U.Reply.release = function () {
  295. $(".content_publish")[0].onclick = function (e) {
  296. var pow = $(".content_input")[0].innerHTML.trim();
  297. if (pow.length > 0) {
  298. var FileID = "ad4e6deb-b40f-11e7-9fce-005056aa632a"; // 板块ID
  299. var UserID = "aa7146da-e67c-4b3d-91f7-1dcb92d9f7d1"; //用户id US.userInfo.userid
  300. var UserName = US.userInfo.UserName; //US.userInfo.UserName
  301. var ReplyID = Guid.newGuid(); //评论id 自定义生成
  302. var ReplyContent = $(".content_input")[0].innerHTML; //评论内容
  303. var ReplyIP = US.userInfo.RegisterIP; //ip地址US.userInfo.RegisterIP
  304. var ReplyAddress; US.userInfo.LoginAddress; //ip所在地址 US.userInfo.LoginAddress
  305. var ReplyDeep = 1; //深度
  306. var ReplyUserThumbnailImageHead = US.userInfo.UserImageHead; //头像 UserImageHead
  307. //this.parentNode.parentNode.parentNode.;
  308. var ReplyBindingID = ''; //绑定id
  309. var ReplyParentId = '';
  310. var ReplyParentNickname = US.userInfo.UserNickName; //昵称 US.userInfo.UserNickName
  311. var Fabulous = ''; //点赞数
  312. if (UploadImgSrc.length != 0) {
  313. var ReplyContentImg = UploadImgSrc.substring(0, UploadImgSrc.length - 1);
  314. var ReplyContentImgtype = "1";
  315. } else {
  316. var ReplyContentImg = ''
  317. var ReplyContentImgtype = '';
  318. }
  319. U.A.Request("http://cd.1473.cn/php", ["db.1473.cn", "UseStudio_Reply", "Reply_InsertReply", FileID, UserID, UserName, ReplyID, ReplyContent, ReplyIP, ReplyAddress, ReplyDeep, ReplyUserThumbnailImageHead, ReplyBindingID, ReplyParentId, ReplyParentNickname, Fabulous, ReplyContentImg, ReplyContentImgtype], function (r) {
  320. U.Alert("评论成功");
  321. $(".content_bigbox")[0].innerHTML = ''
  322. $(".ImgLoad")[0].innerHTML = '';
  323. $(".content_input")[0].innerHTML = '';
  324. U.Reply.content_box();
  325. });
  326. } else {
  327. U.Alert("请输入评论内容");
  328. }
  329. }
  330. //U.Reply.Range = U.D.E.GetSelectionRange(window, content_input, { "TF": "QL" });
  331. }
  332. //表情
  333. U.Reply.Emoji = function () {
  334. $(".content_emoji")[0].addEventListener("click", function () {
  335. if ($(".Reviews_emoji")[0].style.display == "none") {
  336. $(".Reviews_emoji")[0].style.display = "block";
  337. $(".Reviews_emoji")[0].innerHTML = "";
  338. for (var i = 0; i < 104; i++) {
  339. var dz = "/img/ChatingFaceGif/[face](" + i + ").gif";
  340. var img = $$("img", { "src": dz, "alt": "Alternate Text" }, $(".Reviews_emoji")[0]);
  341. img.onclick = function () {
  342. var src = this.src;
  343. U.Reply.Range.CreateR();
  344. U.Reply.Range.Replace($$("img", { "src": src, "alt": "Alternate Text" }
  345. ));
  346. //$$("img", { "src": src, "alt": "Alternate Text" }, $(".content_input")[0]);
  347. }
  348. }
  349. } else {
  350. $(".Reviews_emoji")[0].style.display = "none";
  351. }
  352. })
  353. }
  354. //点赞
  355. U.Reply.fabulous = function (e, a, b) {
  356. if (e.src == "/img/reply/Fabulous.png") {
  357. U.A.Request("http://cd.1473.cn/php", ["db.1473.cn", "UseStudio_Reply", "Replay_cancelFabulous", a, b], function (r) {
  358. e.src = "/img/reply/NOFabulous.png";
  359. e.parentNode.firstChild.innerHTML = parseInt(e.parentNode.firstChild.innerHTML) - 1;
  360. });
  361. } else {
  362. var str = e.parentNode.parentNode;
  363. var rid = str.parentNode.id;
  364. var uid = "aa7146da-e67c-4b3d-91f7-1dcb92d9f7d1"; //US.userInfo.id
  365. U.A.Request("http://cd.1473.cn/php", ["db.1473.cn", "UseStudio_Reply", "Reply_UpdateFabulous", a, b], function (r) {
  366. e.src = "/img/reply/Fabulous.png";
  367. e.parentNode.firstChild.innerHTML = parseInt(e.parentNode.firstChild.innerHTML) + 1
  368. });
  369. }
  370. }