...
|
...
|
@@ -210,6 +210,12 @@ webpackJsonp([0],[ |
|
|
}else if(items.guangSyncFlag == 1){
|
|
|
HtmArr.push('<a data-index="' + items.__index + '" data-type="noSync" href="JavaScript:;" class="btn btn-danger btn-xs guangSynFlag">取消同步到逛</a>');
|
|
|
}
|
|
|
|
|
|
if(items.grassSyncFlag == 1 ){
|
|
|
HtmArr.push('<a data-index="' + items.__index + '" data-type="0" href="JavaScript:;" class="btn btn-primary btn-xs ">已同步到种草</a>');
|
|
|
}else {
|
|
|
HtmArr.push('<a data-index="' + items.__index + '" data-type="sync" href="JavaScript:;" class="btn btn-danger btn-xs grassSynFlag">同步到种草</a>');
|
|
|
}
|
|
|
return HtmArr.join('');
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -333,6 +339,29 @@ webpackJsonp([0],[ |
|
|
|
|
|
});
|
|
|
|
|
|
// 晒单同步到种草
|
|
|
$(document).on('click', '.grassSynFlag', function () {
|
|
|
var item = g.rows[$(this).data("index")];
|
|
|
|
|
|
var type = $(this).data('type');
|
|
|
common.util.__ajax({
|
|
|
url: '/shareOrder/shareOrderSyncToGrass',
|
|
|
data: {
|
|
|
commentId: item.id,
|
|
|
result : type
|
|
|
}
|
|
|
}, function (res) {
|
|
|
// g.reload();
|
|
|
if (res.code == 200) {
|
|
|
g.reload();
|
|
|
common.util.__tip('操作成功', 'success');
|
|
|
|
|
|
} else {
|
|
|
common.util.__tip(res.message,'danger');
|
|
|
}
|
|
|
}, false);
|
|
|
|
|
|
});
|
|
|
$(document).on('click', '#filter', function () {
|
|
|
var startTime = common.util.__input('beginTime');
|
|
|
var endTime = common.util.__input('endTime');
|
...
|
...
|
|