Authored by htoooth

rename

... ... @@ -1080,12 +1080,12 @@ function fetchComment() {
$.ajax({
type: 'GET',
url: '/product/detail/consult/like/' + cid
}).then(function(data) {
if (data && data.code === 400) {
return window.jumpUrl(data.data.refer);
}).then(function(result) {
if (result && result.code === 400) {
return window.jumpUrl(result.data.refer);
}
if (data && data.code === 200) {
if (result && result.code === 200) {
$this.addClass('getzan');
$('.zan-content .icon-border[data-id=' + cid + '] .likeNum')
.replaceWith('<em class="likeNum">' + (like + 1) + '</em>');
... ... @@ -1105,12 +1105,12 @@ function fetchComment() {
$.ajax({
type: 'GET',
url: '/product/detail/consult/useful/' + cid
}).then(function(data) {
if (data && data.code === 400) {
}).then(function(result) {
if (result && result.code === 400) {
return window.jumpUrl(data.data.refer);
}
if (data && data.code === 200) {
if (result && result.code === 200) {
$('.zan-content .usefulData[data-id=' + cid + '] .usefulNum')
.replaceWith('<em class="usefulNum">' + (useful + 1) + '</em>');
}
... ...