Authored by ZhongW

晒单加接口

... ... @@ -20,4 +20,7 @@ module.exports = function (app){
//推荐
app.post("/shareOrder/recommend","shareOrderAudit_recommend");
//同步
app.post("/shareOrder/syn","shareOrderAudit_syn");
}
\ No newline at end of file
... ...
... ... @@ -58,5 +58,14 @@ module.exports={
{name: 'uid', type: 'String'}
]
},
syn:{
title:"同步",
url:"/shareOrder/syn",
params:[
{name: 'commentId', type: 'Number'},
{name: 'result', type: 'String'}
]
}
}
}
\ No newline at end of file
... ...
... ... @@ -46,7 +46,7 @@ var apiCofig = {
// domain:"http://192.168.102.48:8088/platform",
//domain:"http://127.0.0.1:8080/platform",
// domain:"http://172.16.6.200:8088/platform",
domain:"http://192.168.102.202:8088/platform",
domain:"http://172.16.6.108:80/platform",
yohoSearch: 'http://192.168.102.216:8080/yohosearch',
system:Iaccount
... ...
... ... @@ -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) {
... ...