reply.js 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379
  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({
  198. "id": "DetailInfo", "style": { "width": "563px", "height": "385px", "border-radius": "5px;", "box-shadow": "none;" }, "content": $("#dialogue")[0], "title": "回复评论",
  199. "hst": { "style": { "padding": "0", "background-color": "#3f506a", "height": "32px", "line-height": "32px", "text-indent": "2.2em" } }
  200. })
  201. });
  202. }
  203. U.Reply.Close = function () {
  204. $("#dialogue")[0].style.display = 'none';
  205. }
  206. U.Reply.Close1 = function () {
  207. $(".dialogue")[0].style.display = 'none';
  208. }
  209. U.Reply.check = function (ReplyID) {
  210. U.A.Request("http://cd.1473.cn/php", ["db.1473.cn", "UseStudio_Reply", "Reply_Select_ReplyID", ReplyID], function (r) {
  211. var data = r.value;
  212. var dialogue = $$("div", { "className": "dialogue", "id": "dialogue", "style": { "display": "block" } }, $(".content")[0]);
  213. var content_box = $$("div", { "className": "content_box", "id": data[0].ReplyID }, dialogue);
  214. var left = $$("div", { "className": "left", "style": { "height": "55px;", "float": "left" } }, content_box);
  215. var head = $$("div", { "className": "head" }, left);
  216. if (data[0].ReplyUserThumbnailImageHead == "null") {
  217. head.style.background = 'url(/img/UserHead/UseHead.jpg) '//获取头像
  218. } else if (data[0].ReplyUserThumbnailImageHead.substring(0, 4) == "http") {
  219. head.style.background = 'url( ' + data[0].ReplyUserThumbnailImageHead + ' ) '//获取头像
  220. } else {
  221. head.style.background = 'url(http://fs.1473.cn/' + data[0].ReplyUserThumbnailImageHead + ') '
  222. }
  223. head.style.backgroundSize = '100% 100%';
  224. var info = $$("div", { "className": "info" }, content_box);
  225. var right = $$("div", { "className": "info_right" }, info);
  226. var name = $$("p", { "className": "info_name", "innerHTML": data[0].UserName }, right);
  227. var time = $$("p", { "className": "info_time", "innerHTML": data[0].ReplyAddTime }, right);
  228. var clear = $$("div", { "style": { "clear": "both" } }, right);
  229. var substance = $$("div", { "className": "substance", "innerHTML": data[0].ReplyContent }, right);
  230. var bottom = $$("div", { "className": "bottom" }, info);
  231. var clear = $$("div", { "style": { "clear": "both" } }, info);
  232. LoadReply(ReplyID);
  233. U.UI.From({
  234. "id": "DetailInfo", "style": { "width": "563px", "height": "385px", "border-radius": "5px;", "box-shadow": "none;" }, "content": $("#dialogue")[0], "title": "回复评论",
  235. "hst": { "style": { "padding": "0", "background-color": "#3f506a", "height": "32px", "line-height": "32px", "text-indent": "2.2em" } }
  236. })
  237. });
  238. }
  239. LoadReply = function (ReplyID) {
  240. U.A.Request("http://cd.1473.cn/php", ["db.1473.cn", "UseStudio_Reply", "Reply_SelectReplyDeep", ReplyID], function (r) {
  241. if (r.value.length != 0) {
  242. var data = r.value;
  243. var container = $$("div", { "className": "content_container" }, $(".dialogue")[0]);
  244. for (var i = 0; i < data.length; i++) {
  245. var content_box = $$("div", { "className": "content_box", "id": data[i].ReplyID }, container);
  246. var left = $$("div", { "className": "left", "style": { "height": "55px;", "float": "left" } }, content_box);
  247. var head = $$("div", { "className": "head" }, left);
  248. if (data[i].ReplyUserThumbnailImageHead == "null") {
  249. head.style.background = 'url(/img/UserHead/UseHead.jpg) '//获取头像
  250. } else if (data[i].ReplyUserThumbnailImageHead.substring(0, 4) == "http") {
  251. head.style.background = 'url( ' + data[i].ReplyUserThumbnailImageHead + ' ) '//获取头像
  252. } else {
  253. head.style.background = 'url(http://fs.1473.cn/' + data[i].ReplyUserThumbnailImageHead + ') '
  254. }
  255. head.style.backgroundSize = '100% 100%';
  256. var info = $$("div", { "className": "info" }, content_box);
  257. var right = $$("div", { "className": "info_right", "style": { "width": "440px", "float": "right" } }, info);
  258. var name = $$("p", { "className": "info_name", "innerHTML": data[i].UserName }, right);
  259. var time = $$("p", { "className": "info_time", "innerHTML": data[i].ReplyAddTime }, right);
  260. var clear = $$("div", { "style": { "clear": "both" } }, right);
  261. var substance = $$("div", { "className": "substance", "innerHTML": data[i].ReplyContent }, right);
  262. if (data[i].ReplyContentImgtype == 1) {
  263. var contentimg = $$("div", { "className": "content_img" }, right);
  264. var Imgsrc = data[i].ReplyContentImg.split(",");
  265. for (var j = 0; j < Imgsrc.length; j++) {
  266. var img = $$("img", { "src": Imgsrc[j] }, contentimg);
  267. }
  268. }
  269. var clear = $$("div", { "style": { "clear": "both" } }, info);
  270. }
  271. } else {
  272. var container = $$("div", { "className": "content_container" }, $(".dialogue")[0]);
  273. var none = $$("div", { "className": "container_none", "innerHTML": "暂无评论" }, container);
  274. }
  275. });
  276. }
  277. U.Reply.a = function (hfid) {
  278. //$("#content_publishb")[0].onclick = function () {
  279. var FileID = "ad4e6deb-b40f-11e7-9fce-005056aa632a"; // 板块ID
  280. var UserID = US.userInfo.userid; //用户id US.userInfo.userid
  281. var UserName = US.userInfo.username; //US.userInfo.username
  282. var ReplyID = Guid.newGuid(); //评论id 自定义生成
  283. var ReplyContent = $(".dialogue_box")[0].innerHTML; //评论内容
  284. var ReplyIP = userinfo.RegisterIP; //ip地址US.userInfo.RegisterIP
  285. var ReplyAddress; US.userInfo.LoginAddress; //ip所在地址 US.userInfo.LoginAddress
  286. var ReplyDeep = 2; //深度
  287. var ReplyUserThumbnailImageHead = 'null'; //头像 UserImageHead
  288. var ReplyBindingID = hfid; //绑定id
  289. var ReplyParentId = '';
  290. var ReplyParentNickname = US.userInfo.UserNickName; //昵称 US.userInfo.UserNickName
  291. var Fabulous = 0; //点赞数
  292. 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 () {
  293. U.Alert("评论成功");
  294. });
  295. }
  296. U.Reply.release = function () {
  297. $(".content_publish")[0].onclick = function (e) {
  298. var pow = $(".content_input")[0].innerHTML.trim();
  299. if (pow.length > 0) {
  300. var FileID = "ad4e6deb-b40f-11e7-9fce-005056aa632a"; // 板块ID
  301. var UserID = "aa7146da-e67c-4b3d-91f7-1dcb92d9f7d1"; //用户id US.userInfo.userid
  302. var UserName = US.userInfo.username; //US.userInfo.username
  303. var ReplyID = Guid.newGuid(); //评论id 自定义生成
  304. var ReplyContent = $(".content_input")[0].innerHTML; //评论内容
  305. var ReplyIP = US.userInfo.RegisterIP; //ip地址US.userInfo.RegisterIP
  306. var ReplyAddress; US.userInfo.LoginAddress; //ip所在地址 US.userInfo.LoginAddress
  307. var ReplyDeep = 1; //深度
  308. var ReplyUserThumbnailImageHead = US.userInfo.UserImageHead; //头像 UserImageHead
  309. //this.parentNode.parentNode.parentNode.;
  310. var ReplyBindingID = ''; //绑定id
  311. var ReplyParentId = '';
  312. var ReplyParentNickname = US.userInfo.UserNickName; //昵称 US.userInfo.UserNickName
  313. var Fabulous = ''; //点赞数
  314. if (UploadImgSrc.length != 0) {
  315. var ReplyContentImg = UploadImgSrc.substring(0, UploadImgSrc.length - 1);
  316. var ReplyContentImgtype = "1";
  317. } else {
  318. var ReplyContentImg = ''
  319. var ReplyContentImgtype = '';
  320. }
  321. 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) {
  322. U.Alert("评论成功");
  323. $(".content_bigbox")[0].innerHTML = ''
  324. $(".ImgLoad")[0].innerHTML = '';
  325. $(".content_input")[0].innerHTML = '';
  326. U.Reply.content_box();
  327. });
  328. } else {
  329. U.Alert("请输入评论内容");
  330. }
  331. }
  332. //U.Reply.Range = U.D.E.GetSelectionRange(window, content_input, { "TF": "QL" });
  333. }
  334. //表情
  335. U.Reply.Emoji = function () {
  336. $(".content_emoji")[0].addEventListener("click", function () {
  337. if ($(".Reviews_emoji")[0].style.display == "none") {
  338. $(".Reviews_emoji")[0].style.display = "block";
  339. $(".Reviews_emoji")[0].innerHTML = "";
  340. for (var i = 0; i < 104; i++) {
  341. var dz = "/img/ChatingFaceGif/[face](" + i + ").gif";
  342. var img = $$("img", { "src": dz, "alt": "Alternate Text" }, $(".Reviews_emoji")[0]);
  343. img.onclick = function () {
  344. var src = this.src;
  345. U.Reply.Range.CreateR();
  346. U.Reply.Range.Replace($$("img", { "src": src, "alt": "Alternate Text" }
  347. ));
  348. //$$("img", { "src": src, "alt": "Alternate Text" }, $(".content_input")[0]);
  349. }
  350. }
  351. } else {
  352. $(".Reviews_emoji")[0].style.display = "none";
  353. }
  354. })
  355. }
  356. //点赞
  357. U.Reply.fabulous = function (e, a, b) {
  358. if (e.src == "/img/reply/Fabulous.png") {
  359. U.A.Request("http://cd.1473.cn/php", ["db.1473.cn", "UseStudio_Reply", "Replay_cancelFabulous", a, b], function (r) {
  360. e.src = "/img/reply/NOFabulous.png";
  361. e.parentNode.firstChild.innerHTML = parseInt(e.parentNode.firstChild.innerHTML) - 1;
  362. });
  363. } else {
  364. var str = e.parentNode.parentNode;
  365. var rid = str.parentNode.id;
  366. var uid = "aa7146da-e67c-4b3d-91f7-1dcb92d9f7d1"; //US.userInfo.id
  367. U.A.Request("http://cd.1473.cn/php", ["db.1473.cn", "UseStudio_Reply", "Reply_UpdateFabulous", a, b], function (r) {
  368. e.src = "/img/reply/Fabulous.png";
  369. e.parentNode.firstChild.innerHTML = parseInt(e.parentNode.firstChild.innerHTML) + 1
  370. });
  371. }
  372. }