|
@@ -192,6 +192,12 @@ var g = new common.grid({ |
|
@@ -192,6 +192,12 @@ var g = new common.grid({ |
192
|
}else if(items.socialSyncFlag == 1){
|
192
|
}else if(items.socialSyncFlag == 1){
|
193
|
HtmArr.push('<a data-index="' + items.__index + '" data-type="noSync" href="JavaScript:;" class="btn btn-danger btn-xs synFlag">取消同步</a>');
|
193
|
HtmArr.push('<a data-index="' + items.__index + '" data-type="noSync" href="JavaScript:;" class="btn btn-danger btn-xs synFlag">取消同步</a>');
|
194
|
}
|
194
|
}
|
|
|
195
|
+
|
|
|
196
|
+ if(items.guangSyncFlag == 0 ){
|
|
|
197
|
+ HtmArr.push('<a data-index="' + items.__index + '" data-type="sync" href="JavaScript:;" class="btn btn-primary btn-xs guangSynFlag">同步到逛</a>');
|
|
|
198
|
+ }else if(items.guangSyncFlag == 1){
|
|
|
199
|
+ HtmArr.push('<a data-index="' + items.__index + '" data-type="noSync" href="JavaScript:;" class="btn btn-danger btn-xs guangSynFlag">取消同步到逛</a>');
|
|
|
200
|
+ }
|
195
|
return HtmArr.join('');
|
201
|
return HtmArr.join('');
|
196
|
}
|
202
|
}
|
197
|
}
|
203
|
}
|
|
@@ -279,6 +285,29 @@ $(document).on('click', '.synFlag', function () { |
|
@@ -279,6 +285,29 @@ $(document).on('click', '.synFlag', function () { |
279
|
|
285
|
|
280
|
});
|
286
|
});
|
281
|
|
287
|
|
|
|
288
|
+// 同步
|
|
|
289
|
+$(document).on('click', '.guangSynFlag', function () {
|
|
|
290
|
+ var item = g.rows[$(this).data("index")];
|
|
|
291
|
+
|
|
|
292
|
+ var type = $(this).data('type');
|
|
|
293
|
+ common.util.__ajax({
|
|
|
294
|
+ url: '/shareOrder/synGuang',
|
|
|
295
|
+ data: {
|
|
|
296
|
+ commentId: item.id,
|
|
|
297
|
+ result : type
|
|
|
298
|
+ }
|
|
|
299
|
+ }, function (res) {
|
|
|
300
|
+ g.reload();
|
|
|
301
|
+ /* if (res.code == 200) {
|
|
|
302
|
+ common.util.__tip('操作成功', 'success');
|
|
|
303
|
+
|
|
|
304
|
+ } else {
|
|
|
305
|
+ common.util.__tip(res.message,'danger');
|
|
|
306
|
+ }*/
|
|
|
307
|
+ }, false);
|
|
|
308
|
+
|
|
|
309
|
+});
|
|
|
310
|
+
|
282
|
$(document).on('click', '#filter', function () {
|
311
|
$(document).on('click', '#filter', function () {
|
283
|
g.reload();
|
312
|
g.reload();
|
284
|
});
|
313
|
});
|
|
@@ -361,6 +390,7 @@ $('#batch-audit-fail').on('click', function () { |
|
@@ -361,6 +390,7 @@ $('#batch-audit-fail').on('click', function () { |
361
|
function encodeHtml(str, reg) {
|
390
|
function encodeHtml(str, reg) {
|
362
|
return str ? str.replace(reg || /[&<">'](?:(amp|lt|quot|gt|#39|nbsp);)?/g, function(a, b) {
|
391
|
return str ? str.replace(reg || /[&<">'](?:(amp|lt|quot|gt|#39|nbsp);)?/g, function(a, b) {
|
363
|
if (b) {
|
392
|
if (b) {
|
|
|
393
|
+
|
364
|
return a;
|
394
|
return a;
|
365
|
} else {
|
395
|
} else {
|
366
|
return {
|
396
|
return {
|