| @@ -77,7 +77,7 @@ | |||
| //获取顶踩数据 | |||
| function GetDigg(aid,cid) { | |||
| let url = `{dede:global.cfg_phpurl/}/digg_ajax.php?id=${aid}&cid=${cid}&format=json`; | |||
| $.get(url, function (data) { | |||
| $.get(url, function(data) { | |||
| let reval = JSON.parse(data); | |||
| if (reval.code === 200) { | |||
| $("#goodpost").html(reval.data.goodpost); | |||
| @@ -107,12 +107,11 @@ | |||
| if (hasid) { ShowMsg("您已经顶过该帖,请不要重复顶帖"); return; } | |||
| else saveid += ',' + aid; | |||
| SetCookie('diggid', saveid, 1); | |||
| } | |||
| else { | |||
| } else { | |||
| SetCookie('diggid', aid, 1); | |||
| } | |||
| let url = "{dede:global.cfg_phpurl/}/digg_ajax.php?action=" + ftype + "&id=" + aid + "&format=json&cid={dede:field.channel/}"; | |||
| $.get(url, function (data) { | |||
| $.get(url, function(data) { | |||
| let reval = JSON.parse(data); | |||
| if (reval.code === 200) { | |||
| $("#goodpost").html(reval.data.goodpost); | |||
| @@ -134,7 +133,7 @@ | |||
| validate: $("#iptValidate").val(), | |||
| notuser: $("#iptAny").is(":checked") ? "1" : "", | |||
| }; | |||
| $.post("{dede:global.cfg_phpurl/}/feedback.php", feedback, function (data) { | |||
| $.post("{dede:global.cfg_phpurl/}/feedback.php", feedback, function(data) { | |||
| let result = JSON.parse(data); | |||
| if (result.code === 200) { | |||
| ShowAlert("#feedback-alert", result.msg, "success"); | |||
| @@ -158,7 +157,7 @@ | |||
| aid : "{dede:field.id/}", | |||
| msg : content, | |||
| } | |||
| $.post("{dede:global.cfg_phpurl/}/feedback.php", reply, function (data) { | |||
| $.post("{dede:global.cfg_phpurl/}/feedback.php", reply, function(data) { | |||
| let result = JSON.parse(data); | |||
| if (result.code === 200) { | |||
| ShowAlert(`._feedback_reply[for="${fid}"]`, result.msg, "success"); | |||
| @@ -193,7 +192,7 @@ | |||
| $.get("{dede:global.cfg_phpurl/}/feedback.php", { | |||
| "aid" : "{dede:field.id/}", | |||
| "fid" : fid, | |||
| }, function (data) { | |||
| }, function(data) { | |||
| let result = JSON.parse(data); | |||
| let tpl = `<div class="media py-3"> | |||
| <img src="~face~" class="face mr-3"> | |||
| @@ -236,7 +235,7 @@ | |||
| good : g, | |||
| fid : fid, | |||
| } | |||
| $.post("{dede:global.cfg_phpurl/}/feedback.php", good, function (data) { | |||
| $.post("{dede:global.cfg_phpurl/}/feedback.php", good, function(data) { | |||
| let result = JSON.parse(data); | |||
| $(`#feedbackGood${fid}`).html(result.data); | |||
| }) | |||
| @@ -83,7 +83,7 @@ | |||
| //获取顶踩数据 | |||
| function GetDigg(aid,cid) { | |||
| let url = `{dede:global.cfg_phpurl/}/digg_ajax.php?id=${aid}&cid=${cid}&format=json`; | |||
| $.get(url, function (data) { | |||
| $.get(url, function(data) { | |||
| let reval = JSON.parse(data); | |||
| if (reval.code === 200) { | |||
| $("#goodpost").html(reval.data.goodpost); | |||
| @@ -113,12 +113,11 @@ | |||
| if (hasid) { ShowMsg("您已经顶过该帖,请不要重复顶帖"); return; } | |||
| else saveid += ',' + aid; | |||
| SetCookie('diggid', saveid, 1); | |||
| } | |||
| else { | |||
| } else { | |||
| SetCookie('diggid', aid, 1); | |||
| } | |||
| let url = "{dede:global.cfg_phpurl/}/digg_ajax.php?action=" + ftype + "&id=" + aid + "&format=json&cid={dede:field.channel/}"; | |||
| $.get(url, function (data) { | |||
| $.get(url, function(data) { | |||
| let reval = JSON.parse(data); | |||
| if (reval.code === 200) { | |||
| $("#goodpost").html(reval.data.goodpost); | |||
| @@ -140,7 +139,7 @@ | |||
| validate: $("#iptValidate").val(), | |||
| notuser: $("#iptAny").is(":checked") ? "1" : "", | |||
| }; | |||
| $.post("{dede:global.cfg_phpurl/}/feedback.php", feedback, function (data) { | |||
| $.post("{dede:global.cfg_phpurl/}/feedback.php", feedback, function(data) { | |||
| let result = JSON.parse(data); | |||
| if (result.code === 200) { | |||
| ShowAlert("#feedback-alert", result.msg, "success"); | |||
| @@ -164,7 +163,7 @@ | |||
| aid : "{dede:field.id/}", | |||
| msg : content, | |||
| } | |||
| $.post("{dede:global.cfg_phpurl/}/feedback.php", reply, function (data) { | |||
| $.post("{dede:global.cfg_phpurl/}/feedback.php", reply, function(data) { | |||
| let result = JSON.parse(data); | |||
| if (result.code === 200) { | |||
| ShowAlert(`._feedback_reply[for="${fid}"]`, result.msg, "success"); | |||
| @@ -199,7 +198,7 @@ | |||
| $.get("{dede:global.cfg_phpurl/}/feedback.php", { | |||
| "aid" : "{dede:field.id/}", | |||
| "fid" : fid, | |||
| }, function (data) { | |||
| }, function(data) { | |||
| let result = JSON.parse(data); | |||
| let tpl = `<div class="media py-3"> | |||
| <img src="~face~" class="face mr-3"> | |||
| @@ -242,7 +241,7 @@ | |||
| good : g, | |||
| fid : fid, | |||
| } | |||
| $.post("{dede:global.cfg_phpurl/}/feedback.php", good, function (data) { | |||
| $.post("{dede:global.cfg_phpurl/}/feedback.php", good, function(data) { | |||
| let result = JSON.parse(data); | |||
| $(`#feedbackGood${fid}`).html(result.data); | |||
| }) | |||
| @@ -86,7 +86,7 @@ | |||
| //获取顶踩数据 | |||
| function GetDigg(aid,cid) { | |||
| let url = `{dede:global.cfg_phpurl/}/digg_ajax.php?id=${aid}&cid=${cid}&format=json`; | |||
| $.get(url, function (data) { | |||
| $.get(url, function(data) { | |||
| let reval = JSON.parse(data); | |||
| if (reval.code === 200) { | |||
| $("#goodpost").html(reval.data.goodpost); | |||
| @@ -116,12 +116,11 @@ | |||
| if (hasid) { ShowMsg("您已经顶过该帖,请不要重复顶帖"); return; } | |||
| else saveid += ',' + aid; | |||
| SetCookie('diggid', saveid, 1); | |||
| } | |||
| else { | |||
| } else { | |||
| SetCookie('diggid', aid, 1); | |||
| } | |||
| let url = "{dede:global.cfg_phpurl/}/digg_ajax.php?action=" + ftype + "&id=" + aid + "&format=json&cid={dede:field.channel/}"; | |||
| $.get(url, function (data) { | |||
| $.get(url, function(data) { | |||
| let reval = JSON.parse(data); | |||
| if (reval.code === 200) { | |||
| $("#goodpost").html(reval.data.goodpost); | |||
| @@ -143,7 +142,7 @@ | |||
| validate: $("#iptValidate").val(), | |||
| notuser: $("#iptAny").is(":checked") ? "1" : "", | |||
| }; | |||
| $.post("{dede:global.cfg_phpurl/}/feedback.php", feedback, function (data) { | |||
| $.post("{dede:global.cfg_phpurl/}/feedback.php", feedback, function(data) { | |||
| let result = JSON.parse(data); | |||
| if (result.code === 200) { | |||
| ShowAlert("#feedback-alert", result.msg, "success"); | |||
| @@ -167,7 +166,7 @@ | |||
| aid : "{dede:field.id/}", | |||
| msg : content, | |||
| } | |||
| $.post("{dede:global.cfg_phpurl/}/feedback.php", reply, function (data) { | |||
| $.post("{dede:global.cfg_phpurl/}/feedback.php", reply, function(data) { | |||
| let result = JSON.parse(data); | |||
| if (result.code === 200) { | |||
| ShowAlert(`._feedback_reply[for="${fid}"]`, result.msg, "success"); | |||
| @@ -202,7 +201,7 @@ | |||
| $.get("{dede:global.cfg_phpurl/}/feedback.php", { | |||
| "aid" : "{dede:field.id/}", | |||
| "fid" : fid, | |||
| }, function (data) { | |||
| }, function(data) { | |||
| let result = JSON.parse(data); | |||
| let tpl = `<div class="media py-3"> | |||
| <img src="~face~" class="face mr-3"> | |||
| @@ -245,7 +244,7 @@ | |||
| good : g, | |||
| fid : fid, | |||
| } | |||
| $.post("{dede:global.cfg_phpurl/}/feedback.php", good, function (data) { | |||
| $.post("{dede:global.cfg_phpurl/}/feedback.php", good, function(data) { | |||
| let result = JSON.parse(data); | |||
| $(`#feedbackGood${fid}`).html(result.data); | |||
| }) | |||
| @@ -150,7 +150,7 @@ | |||
| //获取顶踩数据 | |||
| function GetDigg(aid,cid) { | |||
| let url = `{dede:global.cfg_phpurl/}/digg_ajax.php?id=${aid}&cid=${cid}&format=json`; | |||
| $.get(url, function (data) { | |||
| $.get(url, function(data) { | |||
| let reval = JSON.parse(data); | |||
| if (reval.code === 200) { | |||
| $("#goodpost").html(reval.data.goodpost); | |||
| @@ -180,12 +180,11 @@ | |||
| if (hasid) { ShowMsg("您已经顶过该帖,请不要重复顶帖"); return; } | |||
| else saveid += ',' + aid; | |||
| SetCookie('diggid', saveid, 1); | |||
| } | |||
| else { | |||
| } else { | |||
| SetCookie('diggid', aid, 1); | |||
| } | |||
| let url = "{dede:global.cfg_phpurl/}/digg_ajax.php?action=" + ftype + "&id=" + aid + "&format=json&cid={dede:field.channel/}"; | |||
| $.get(url, function (data) { | |||
| $.get(url, function(data) { | |||
| let reval = JSON.parse(data); | |||
| if (reval.code === 200) { | |||
| $("#goodpost").html(reval.data.goodpost); | |||
| @@ -207,7 +206,7 @@ | |||
| validate: $("#iptValidate").val(), | |||
| notuser: $("#iptAny").is(":checked") ? "1" : "", | |||
| }; | |||
| $.post("{dede:global.cfg_phpurl/}/feedback.php", feedback, function (data) { | |||
| $.post("{dede:global.cfg_phpurl/}/feedback.php", feedback, function(data) { | |||
| let result = JSON.parse(data); | |||
| if (result.code === 200) { | |||
| ShowAlert("#feedback-alert", result.msg, "success"); | |||
| @@ -231,7 +230,7 @@ | |||
| aid : "{dede:field.id/}", | |||
| msg : content, | |||
| } | |||
| $.post("{dede:global.cfg_phpurl/}/feedback.php", reply, function (data) { | |||
| $.post("{dede:global.cfg_phpurl/}/feedback.php", reply, function(data) { | |||
| let result = JSON.parse(data); | |||
| if (result.code === 200) { | |||
| ShowAlert(`._feedback_reply[for="${fid}"]`, result.msg, "success"); | |||
| @@ -266,7 +265,7 @@ | |||
| $.get("{dede:global.cfg_phpurl/}/feedback.php", { | |||
| "aid" : "{dede:field.id/}", | |||
| "fid" : fid, | |||
| }, function (data) { | |||
| }, function(data) { | |||
| let result = JSON.parse(data); | |||
| let tpl = `<div class="media py-3"> | |||
| <img src="~face~" class="face mr-3"> | |||
| @@ -309,7 +308,7 @@ | |||
| good : g, | |||
| fid : fid, | |||
| } | |||
| $.post("{dede:global.cfg_phpurl/}/feedback.php", good, function (data) { | |||
| $.post("{dede:global.cfg_phpurl/}/feedback.php", good, function(data) { | |||
| let result = JSON.parse(data); | |||
| $(`#feedbackGood${fid}`).html(result.data); | |||
| }) | |||
| @@ -84,7 +84,7 @@ | |||
| //获取顶踩数据 | |||
| function GetDigg(aid,cid) { | |||
| let url = `{dede:global.cfg_phpurl/}/digg_ajax.php?id=${aid}&cid=${cid}&format=json`; | |||
| $.get(url, function (data) { | |||
| $.get(url, function(data) { | |||
| let reval = JSON.parse(data); | |||
| if (reval.code === 200) { | |||
| $("#goodpost").html(reval.data.goodpost); | |||
| @@ -114,12 +114,11 @@ | |||
| if (hasid) { ShowMsg("您已经顶过该帖,请不要重复顶帖"); return; } | |||
| else saveid += ',' + aid; | |||
| SetCookie('diggid', saveid, 1); | |||
| } | |||
| else { | |||
| } else { | |||
| SetCookie('diggid', aid, 1); | |||
| } | |||
| let url = "{dede:global.cfg_phpurl/}/digg_ajax.php?action=" + ftype + "&id=" + aid + "&format=json&cid={dede:field.channel/}"; | |||
| $.get(url, function (data) { | |||
| $.get(url, function(data) { | |||
| let reval = JSON.parse(data); | |||
| if (reval.code === 200) { | |||
| $("#goodpost").html(reval.data.goodpost); | |||
| @@ -141,7 +140,7 @@ | |||
| validate: $("#iptValidate").val(), | |||
| notuser: $("#iptAny").is(":checked") ? "1" : "", | |||
| }; | |||
| $.post("{dede:global.cfg_phpurl/}/feedback.php", feedback, function (data) { | |||
| $.post("{dede:global.cfg_phpurl/}/feedback.php", feedback, function(data) { | |||
| let result = JSON.parse(data); | |||
| if (result.code === 200) { | |||
| ShowAlert("#feedback-alert", result.msg, "success"); | |||
| @@ -165,7 +164,7 @@ | |||
| aid : "{dede:field.id/}", | |||
| msg : content, | |||
| } | |||
| $.post("{dede:global.cfg_phpurl/}/feedback.php", reply, function (data) { | |||
| $.post("{dede:global.cfg_phpurl/}/feedback.php", reply, function(data) { | |||
| let result = JSON.parse(data); | |||
| if (result.code === 200) { | |||
| ShowAlert(`._feedback_reply[for="${fid}"]`, result.msg, "success"); | |||
| @@ -200,7 +199,7 @@ | |||
| $.get("{dede:global.cfg_phpurl/}/feedback.php", { | |||
| "aid" : "{dede:field.id/}", | |||
| "fid" : fid, | |||
| }, function (data) { | |||
| }, function(data) { | |||
| let result = JSON.parse(data); | |||
| let tpl = `<div class="media py-3"> | |||
| <img src="~face~" class="face mr-3"> | |||
| @@ -243,7 +242,7 @@ | |||
| good : g, | |||
| fid : fid, | |||
| } | |||
| $.post("{dede:global.cfg_phpurl/}/feedback.php", good, function (data) { | |||
| $.post("{dede:global.cfg_phpurl/}/feedback.php", good, function(data) { | |||
| let result = JSON.parse(data); | |||
| $(`#feedbackGood${fid}`).html(result.data); | |||
| }) | |||
| @@ -91,7 +91,7 @@ | |||
| //获取顶踩数据 | |||
| function GetDigg(aid,cid) { | |||
| let url = `{dede:global.cfg_phpurl/}/digg_ajax.php?id=${aid}&cid=${cid}&format=json`; | |||
| $.get(url, function (data) { | |||
| $.get(url, function(data) { | |||
| let reval = JSON.parse(data); | |||
| if (reval.code === 200) { | |||
| $("#goodpost").html(reval.data.goodpost); | |||
| @@ -121,12 +121,11 @@ | |||
| if (hasid) { ShowMsg("您已经顶过该帖,请不要重复顶帖"); return; } | |||
| else saveid += ',' + aid; | |||
| SetCookie('diggid', saveid, 1); | |||
| } | |||
| else { | |||
| } else { | |||
| SetCookie('diggid', aid, 1); | |||
| } | |||
| let url = "{dede:global.cfg_phpurl/}/digg_ajax.php?action=" + ftype + "&id=" + aid + "&format=json&cid={dede:field.channel/}"; | |||
| $.get(url, function (data) { | |||
| $.get(url, function(data) { | |||
| let reval = JSON.parse(data); | |||
| if (reval.code === 200) { | |||
| $("#goodpost").html(reval.data.goodpost); | |||
| @@ -148,7 +147,7 @@ | |||
| validate: $("#iptValidate").val(), | |||
| notuser: $("#iptAny").is(":checked") ? "1" : "", | |||
| }; | |||
| $.post("{dede:global.cfg_phpurl/}/feedback.php", feedback, function (data) { | |||
| $.post("{dede:global.cfg_phpurl/}/feedback.php", feedback, function(data) { | |||
| let result = JSON.parse(data); | |||
| if (result.code === 200) { | |||
| ShowAlert("#feedback-alert", result.msg, "success"); | |||
| @@ -172,7 +171,7 @@ | |||
| aid : "{dede:field.id/}", | |||
| msg : content, | |||
| } | |||
| $.post("{dede:global.cfg_phpurl/}/feedback.php", reply, function (data) { | |||
| $.post("{dede:global.cfg_phpurl/}/feedback.php", reply, function(data) { | |||
| let result = JSON.parse(data); | |||
| if (result.code === 200) { | |||
| ShowAlert(`._feedback_reply[for="${fid}"]`, result.msg, "success"); | |||
| @@ -207,7 +206,7 @@ | |||
| $.get("{dede:global.cfg_phpurl/}/feedback.php", { | |||
| "aid" : "{dede:field.id/}", | |||
| "fid" : fid, | |||
| }, function (data) { | |||
| }, function(data) { | |||
| let result = JSON.parse(data); | |||
| let tpl = `<div class="media py-3"> | |||
| <img src="~face~" class="face mr-3"> | |||
| @@ -250,7 +249,7 @@ | |||
| good : g, | |||
| fid : fid, | |||
| } | |||
| $.post("{dede:global.cfg_phpurl/}/feedback.php", good, function (data) { | |||
| $.post("{dede:global.cfg_phpurl/}/feedback.php", good, function(data) { | |||
| let result = JSON.parse(data); | |||
| $(`#feedbackGood${fid}`).html(result.data); | |||
| }) | |||