From 3ee347c664a0297b82c5de3d1a43acdcb5efa7d1 Mon Sep 17 00:00:00 2001 From: wangxiaowei Date: Mon, 19 Aug 2024 09:36:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E7=94=9F=E6=B4=BB=E5=95=86?= =?UTF-8?q?=E5=AE=B6=E6=B7=BB=E5=8A=A0=E6=9C=AC=E5=9C=B0=E5=AE=A1=E6=A0=B8?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/logic/shop/LocalStoreLogic.php | 2 +- app/admin/view/shop/local_store/edit.html | 49 +++++++++++++++++++++- app/admin/view/shop/local_store/lists.html | 2 +- 3 files changed, 50 insertions(+), 3 deletions(-) diff --git a/app/admin/logic/shop/LocalStoreLogic.php b/app/admin/logic/shop/LocalStoreLogic.php index 04c55b39..8a3dd377 100755 --- a/app/admin/logic/shop/LocalStoreLogic.php +++ b/app/admin/logic/shop/LocalStoreLogic.php @@ -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')]); } // 获取未审核数据 diff --git a/app/admin/view/shop/local_store/edit.html b/app/admin/view/shop/local_store/edit.html index 9755d2db..d3061711 100755 --- a/app/admin/view/shop/local_store/edit.html +++ b/app/admin/view/shop/local_store/edit.html @@ -9,7 +9,7 @@
- +
@@ -175,6 +175,11 @@
+ +
+ + +
@@ -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' //绑定元素 diff --git a/app/admin/view/shop/local_store/lists.html b/app/admin/view/shop/local_store/lists.html index 91e48082..224d4d5f 100755 --- a/app/admin/view/shop/local_store/lists.html +++ b/app/admin/view/shop/local_store/lists.html @@ -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'} ]);