From 666ec0a568aad309fab255ae3e0624ce1da16c27 Mon Sep 17 00:00:00 2001 From: wangxiaowei Date: Sun, 25 Aug 2024 15:20:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=98=BE=E7=A4=BA=E7=94=A8=E6=88=B7=E5=A4=87?= =?UTF-8?q?=E6=B3=A8=E5=92=8C=E6=B7=BB=E5=8A=A0=E5=AE=A1=E6=A0=B8=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/controller/shop/LocalStore.php | 4 +- app/admin/logic/shop/LocalStoreLogic.php | 4 +- app/admin/view/shop/local_store/edit.html | 46 +++++++++++++++++------ 3 files changed, 39 insertions(+), 15 deletions(-) diff --git a/app/admin/controller/shop/LocalStore.php b/app/admin/controller/shop/LocalStore.php index 2c3bec1b..30c0e6ab 100755 --- a/app/admin/controller/shop/LocalStore.php +++ b/app/admin/controller/shop/LocalStore.php @@ -91,9 +91,9 @@ class LocalStore extends AdminBase 'empowerPhone' => $data['empowerPhone'], 'crftNo1' => $data['crftNo1'] ]); - } - if (LocalStoreLogic::update_state($post['id'], $post['state'])) { + + if (LocalStoreLogic::update_state($post['id'], $post['state'], $post['reason'] ?? '')) { return JsonServer::success('操作成功'); } } diff --git a/app/admin/logic/shop/LocalStoreLogic.php b/app/admin/logic/shop/LocalStoreLogic.php index 17e78653..e8e9d951 100755 --- a/app/admin/logic/shop/LocalStoreLogic.php +++ b/app/admin/logic/shop/LocalStoreLogic.php @@ -73,9 +73,9 @@ class LocalStoreLogic extends Logic ->find(); } - public static function update_state($id, $state) + public static function update_state($id, $state, $reason) { - return LocalStore::where(['lstore_id' => $id])->update(['store_state' => $state, 'update_time' => date('Y-m-d H:i:s')]); + return LocalStore::where(['lstore_id' => $id])->update(['store_state' => $state , 'failReason' => $reason, '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 a7f3d8c6..601ffb0e 100755 --- a/app/admin/view/shop/local_store/edit.html +++ b/app/admin/view/shop/local_store/edit.html @@ -51,7 +51,7 @@
{if $data.shopLogo}
- img + img
x
@@ -111,7 +111,7 @@
{if $data.businessLicense}
- img + img
x
@@ -138,7 +138,7 @@
{if $data.selfPhoto}
- img + img
x
@@ -157,7 +157,7 @@
{if $data.idFront}
- img + img
x
@@ -176,7 +176,7 @@
{if $data.idBack}
- img + img
x
@@ -205,6 +205,13 @@
+
+ +
+ +
+
+
@@ -252,10 +259,16 @@
-
- - -
+
+ + +
+ + {if $data.failReason} +
+ 失败原因:{$data.failReason} +
+ {/if}
@@ -283,6 +296,12 @@ } }); + //图片放大 + $(document).on('click', '.image-show', function () { + var src = $(this).attr('src'); + like.showImg(src, 600); + }); + laydate.render({type: "datetime", elem: "#expire_time", trigger: "click", min: 0}); like.delUpload(); @@ -320,10 +339,15 @@ }) $(".operation-pass").on('click', function () { - layer.confirm('是否拒绝审核?', function (index) { + layer.prompt({ + formType: 2, + value: ' ', + title: '是否拒绝审核?', + area: ['300px', '150px'] //自定义文本域宽高 + }, function(value, index){ like.ajax({ url: '{:url("shop.LocalStore/operation")}', - data: {id: $("#lstore_id").val(), state: 2}, + data: {id: $("#lstore_id").val(), state: 2, reason: value}, type: "post", success: function (res) { if (res.code == 1) {