|
@@ -163,16 +163,22 @@
|
|
|
});
|
|
|
}else if(obj.event === 'store_check'){
|
|
|
if(data.status !== 0){
|
|
|
- layer.msg("只有待审核才允许修改");
|
|
|
+ layer.msg("只有待审核状态才允许审核");
|
|
|
return
|
|
|
}
|
|
|
- admin.req({
|
|
|
- url: '/agent/store/' + data.id + '/check/'
|
|
|
- , type: 'post'
|
|
|
- , data: {status: 1}
|
|
|
- , done: function (res) {
|
|
|
- console.log(res, "opppppppp")
|
|
|
- }
|
|
|
+ layer.confirm('确定要审核当前门店吗?', {icon: 3, title:'提示'}, function(index){
|
|
|
+ admin.req({
|
|
|
+ url: '/agent/store/' + data.id + '/check/'
|
|
|
+ , type: 'post'
|
|
|
+ , data: {status: 1}
|
|
|
+ , done: function (res) {
|
|
|
+ if(res.code === 0){
|
|
|
+ layer.msg(res.data, {icon: 1});
|
|
|
+ table.reload('store_datagrid', {});
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ layer.close(index);
|
|
|
});
|
|
|
}
|
|
|
});
|