...
|
...
|
@@ -182,9 +182,9 @@ var g = new common.grid({ |
|
|
}
|
|
|
|
|
|
if(items.socialSyncFlag == 0 ){
|
|
|
HtmArr.push('<a data-index="' + items.__index + '" data-type="syn" href="JavaScript:;" class="btn btn-primary btn-xs synFlag">同步到社区</a>');
|
|
|
HtmArr.push('<a data-index="' + items.__index + '" data-type="sync" href="JavaScript:;" class="btn btn-primary btn-xs synFlag">同步到社区</a>');
|
|
|
}else if(items.socialSyncFlag == 1){
|
|
|
HtmArr.push('<a data-index="' + items.__index + '" data-type="cancelSyn" href="JavaScript:;" class="btn btn-danger btn-xs synFlag">取消同步</a>');
|
|
|
HtmArr.push('<a data-index="' + items.__index + '" data-type="noSync" href="JavaScript:;" class="btn btn-danger btn-xs synFlag">取消同步</a>');
|
|
|
}
|
|
|
return HtmArr.join('');
|
|
|
}
|
...
|
...
|
@@ -254,11 +254,10 @@ $(document).on('click', '.synFlag', function () { |
|
|
|
|
|
var type = $(this).data('type');
|
|
|
common.util.__ajax({
|
|
|
url: '/shareOrder/recommend',
|
|
|
url: '/shareOrder/syn',
|
|
|
data: {
|
|
|
commentId: item.id,
|
|
|
recomReward: type,
|
|
|
uid: item.uid
|
|
|
result : type
|
|
|
}
|
|
|
}, function (res) {
|
|
|
if (res.code == 200) {
|
...
|
...
|
|