本地生活商家添加本地审核功能
This commit is contained in:
parent
6059512d13
commit
3ee347c664
@ -73,7 +73,7 @@ class LocalStoreLogic extends Logic
|
||||
|
||||
public static function update_state($id, $state)
|
||||
{
|
||||
return LocalStore::where(['lstore_id' => $id])->update(['store_state' => $state]);
|
||||
return LocalStore::where(['lstore_id' => $id])->update(['store_state' => $state, 'update_time' => date('Y-m-d H:i:s')]);
|
||||
}
|
||||
|
||||
// 获取未审核数据
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
|
||||
<div class="layui-card layui-form">
|
||||
<div class="layui-tab-item layui-show">
|
||||
<input type="hidden" name="lstore_id" value="{$data.lstore_id}">
|
||||
<input type="hidden" id="lstore_id" name="lstore_id" value="{$data.lstore_id}">
|
||||
<div class="layui-form-item" id="one-shop">
|
||||
<label class="layui-form-label"><span style="color:red;">*</span>用户:</label>
|
||||
<div class="layui-input-inline" style="display: flex">
|
||||
@ -175,6 +175,11 @@
|
||||
<div class="layui-form-item layui-hide">
|
||||
<input type="button" lay-submit lay-filter="addSubmit" id="addSubmit" value="确认">
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item" style="margin-top: 20px">
|
||||
<button class="layui-btn layui-btn-normal operation-agree">审核通过</button>
|
||||
<button class="layui-btn layui-btn-danger operation-pass">拒绝审核</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@ -212,6 +217,48 @@
|
||||
});
|
||||
});
|
||||
|
||||
$(".operation-agree").on('click', function() {
|
||||
layer.confirm('是否通过审核?', function(index){
|
||||
like.ajax({
|
||||
url:'{:url("shop.LocalStore/operation")}',
|
||||
data: {id: $("#lstore_id").val(), state: 1},
|
||||
type:"post",
|
||||
success:function(res)
|
||||
{
|
||||
if(res.code == 1) {
|
||||
layer.close(index);
|
||||
layui.layer.msg(res.msg, {
|
||||
offset: '15px'
|
||||
, icon: 1
|
||||
, time: 1000
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
})
|
||||
|
||||
$(".operation-pass").on('click', function() {
|
||||
layer.confirm('是否拒绝审核?', function(index){
|
||||
like.ajax({
|
||||
url:'{:url("shop.LocalStore/operation")}',
|
||||
data: {id: $("#lstore_id").val(), state: 2},
|
||||
type:"post",
|
||||
success:function(res)
|
||||
{
|
||||
if(res.code == 1) {
|
||||
layer.close(index);
|
||||
layui.layer.msg(res.msg, {
|
||||
offset: '15px'
|
||||
, icon: 1
|
||||
, time: 1000
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
})
|
||||
|
||||
// 上传商家LOGO
|
||||
var uploadInst = likeupload.render({
|
||||
elem: '#add-shop' //绑定元素
|
||||
|
||||
@ -90,8 +90,8 @@
|
||||
, {field: "idCard", width: 120, align: "center", title: "自拍照", templet: '#idcard-operation'}
|
||||
, {field: "name", width: 120, align: "center", title: "商户联系人"}
|
||||
, {field: "empowerPhone", width: 120, align: "center", title: "联系电话"}
|
||||
, {field: "address", width: 300, align: "center", title: "地理位置"}
|
||||
, {field: "store_state", width: 150, align: "center", title: "审核状态", templet: '#storeState-operation'}
|
||||
, {field: "address", width: 300, align: "center", title: "地理位置"}
|
||||
, {fixed: 'right', title: '操作', width: 280, align: 'center', toolbar: '#localstore-operation'}
|
||||
]);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user