From a4981b7bf6819038b7e0a020958e803c1ebf4123 Mon Sep 17 00:00:00 2001 From: Devil Date: Sun, 6 Oct 2019 18:06:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E5=94=AE=E5=90=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/service/OrderAftersaleService.php | 12 ++++-------- public/appmini/old/weixin/app.wxss | 3 +++ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/application/service/OrderAftersaleService.php b/application/service/OrderAftersaleService.php index 967e515ab..ef6ac76a8 100644 --- a/application/service/OrderAftersaleService.php +++ b/application/service/OrderAftersaleService.php @@ -121,14 +121,6 @@ class OrderAftersaleService 'checked_data' => '200', 'error_msg' => '退款说明最多 200 个字符', ], - [ - 'checked_type' => 'length', - 'key_name' => 'images', - 'data_type' => 'array', - 'is_checked' => 1, - 'checked_data' => '3', - 'error_msg' => '凭证图片不能超过3张', - ], [ 'checked_type' => 'empty', 'key_name' => 'user', @@ -204,6 +196,10 @@ class OrderAftersaleService { $images[] = ResourcesService::AttachmentPathHandle($v); } + if(count($images) > 3) + { + return DataReturn('凭证图片不能超过3张', -1); + } } // 数据 diff --git a/public/appmini/old/weixin/app.wxss b/public/appmini/old/weixin/app.wxss index 8ade39695..32c0205d6 100755 --- a/public/appmini/old/weixin/app.wxss +++ b/public/appmini/old/weixin/app.wxss @@ -377,6 +377,9 @@ button[disabled].bg-primary { /** * 表单图片上传 */ + form-container-upload { + overflow: hidden; + } .form-container-upload .form-upload-data .item { padding: 10rpx; position: relative; -- GitLab