From 08ff02ddd49ac9ebf064366e48962e345f8b134f Mon Sep 17 00:00:00 2001 From: wangxiaowei Date: Thu, 26 Dec 2024 13:54:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B1=87=E4=BB=98=E7=BC=96?= =?UTF-8?q?=E5=8F=B7=E7=BB=91=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../validate/shop/LocalStoreValidate.php | 10 +-- app/admin/view/shop/local_store/add.html | 45 +++++++------ app/admin/view/shop/local_store/edit.html | 67 ++++++++++--------- ..._add_hf_id_fields_to_local_store_table.php | 44 ++++++++++++ 4 files changed, 112 insertions(+), 54 deletions(-) create mode 100644 database/migrations/20241226054927_add_hf_id_fields_to_local_store_table.php diff --git a/app/admin/validate/shop/LocalStoreValidate.php b/app/admin/validate/shop/LocalStoreValidate.php index b26b0c7b..960407b5 100755 --- a/app/admin/validate/shop/LocalStoreValidate.php +++ b/app/admin/validate/shop/LocalStoreValidate.php @@ -15,7 +15,7 @@ class LocalStoreValidate extends Validate 'bankCard' => 'require', // 'businessLicense' => 'require', // 'crftNo1' => 'require', - 'selfPhoto' => 'require', +// 'selfPhoto' => 'require', // 'idFront' => 'require', // 'idBack' => 'require', 'name' => 'require', @@ -33,7 +33,7 @@ class LocalStoreValidate extends Validate 'bankCard.require' => '银行卡号不能为空', // 'businessLicense.require' => '营业执照不能为空', // 'crftNo1.require' => '社会信用代码不能为空', - 'selfPhoto.require' => '自拍照不能为空', +// 'selfPhoto.require' => '自拍照不能为空', // 'idFront.require' => '身份证正面不能为空', // 'idBack.require' => '身份证背面不能为空', 'name.require' => '商户联系人不能为空', @@ -45,9 +45,9 @@ class LocalStoreValidate extends Validate protected function checkBankType($value, $rule, $data) { - if ($value == 1 && empty($data['largeNumber'])) { - return '大额卡号不能为空'; - } +// if ($value == 1 && empty($data['largeNumber'])) { +// return '大额卡号不能为空'; +// } if ($value == 2 && empty($data['bank_user_name'])) { return '户名不能为空'; diff --git a/app/admin/view/shop/local_store/add.html b/app/admin/view/shop/local_store/add.html index 9de1138c..1870d472 100755 --- a/app/admin/view/shop/local_store/add.html +++ b/app/admin/view/shop/local_store/add.html @@ -40,14 +40,6 @@ -
- -
- -
-
-
@@ -83,6 +75,14 @@
+
+ +
+ +
+
+
@@ -118,6 +118,13 @@
数字越大越靠前
+ +
+ +
+ +
+
@@ -125,17 +132,6 @@

文件上传

-
- -
- -
建议尺寸:宽200像素*高200像素的jpg,jpeg,png图片
-
-
-
@@ -158,6 +154,17 @@
+
+ +
+ +
建议尺寸:宽200像素*高200像素的jpg,jpeg,png图片
+
+
+
diff --git a/app/admin/view/shop/local_store/edit.html b/app/admin/view/shop/local_store/edit.html index 451252e3..1d9ea746 100755 --- a/app/admin/view/shop/local_store/edit.html +++ b/app/admin/view/shop/local_store/edit.html @@ -60,14 +60,6 @@
- - + + @@ -95,7 +95,7 @@
+ value="{$data.crftNo1}">
@@ -149,31 +149,19 @@ + +
+ +
+ +
+

文件上传

-
- -
- {if $data.selfPhoto} -
- img - -
x
-
- {/if} - -
建议尺寸:宽200像素*高200像素的jpg,jpeg,png图片
-
-
-
@@ -212,6 +200,25 @@
+
+ +
+ {if $data.selfPhoto} +
+ img + +
x
+
+ {/if} + +
建议尺寸:宽200像素*高200像素的jpg,jpeg,png图片
+
+
+
diff --git a/database/migrations/20241226054927_add_hf_id_fields_to_local_store_table.php b/database/migrations/20241226054927_add_hf_id_fields_to_local_store_table.php new file mode 100644 index 00000000..ef608c9e --- /dev/null +++ b/database/migrations/20241226054927_add_hf_id_fields_to_local_store_table.php @@ -0,0 +1,44 @@ +table('local_store'); + $table->addColumn('hf_id', 'string', [ + 'limit' => 255, 'default' => '', 'null' => false, 'comment' => '汇付编号' + ])->update(); // 更新表结构 + } + + public function down() + { + // 回滚操作删除添加的字段 + $table = $this->table('local_store'); + $table->removeColumn('hf_id') + ->update(); + } +}