master
wangxinglong 2021-12-17 14:52:51 +08:00
parent facc41cc92
commit 0b9bfe36e3
3 changed files with 7 additions and 7 deletions

View File

@ -9,7 +9,7 @@ class BusinessValidate extends Validate
protected $rule = [ protected $rule = [
'type' => 'require|gt:0', 'type' => 'require|gt:0',
'business_name|商家名称' => 'require|max:150', 'business_name|商家名称' => 'require|max:150',
'business_subtitle|商家简称' => 'max:50', 'business_subtitle|商家简称' => 'require|max:150',
'business_license|营业执照' => 'require|max:250', 'business_license|营业执照' => 'require|max:250',
'contact_name|联系人' => 'require|max:20', 'contact_name|联系人' => 'require|max:20',
'contact_phone|联系电话' => 'require|max:20', 'contact_phone|联系电话' => 'require|max:20',
@ -22,8 +22,8 @@ class BusinessValidate extends Validate
'business_address|商家地址' => 'require|max:250', 'business_address|商家地址' => 'require|max:250',
'characteristic|商家特色' => 'max:250', 'characteristic|商家特色' => 'max:250',
'background|商家背景图' => 'max:250', 'background|商家背景图' => 'require|max:250',
'business_circle_id' => 'egt:0', 'business_circle_id|所属商圈' => 'egt:0',
]; ];

View File

@ -18,7 +18,7 @@ class CouponRelease extends Validate
'name|优惠券名称' => 'require|length:3,32', 'name|优惠券名称' => 'require|length:3,32',
'money|金额' => 'require|>:0|<=:5000', 'money|金额' => 'require|>:0|<=:5000',
'deduction_money|扣除金额' => 'require|>=:0.1|<=:5000', 'deduction_money|扣除金额' => 'require|>=:0.1|<=:5000',
//'image_url|预览图' => '', 'image_url|预览图' => 'require',
//'using_rule|使用规则' => '', //'using_rule|使用规则' => '',
//'punishing_rule|处罚规则' => '', //'punishing_rule|处罚规则' => '',
//'using_count|使用中' => '', //'using_count|使用中' => '',
@ -31,7 +31,7 @@ class CouponRelease extends Validate
]; ];
protected $scene = [ protected $scene = [
'edit' => ['start_time', 'end_time', 'name',"status","on_shelf"], 'edit' => ['start_time', 'end_time', 'name',"status","on_shelf",'image_url'],
'api_edit' => ['name', 'type', 'start_time',"end_time","image_url"], 'api_edit' => ['name', 'type', 'start_time',"end_time","image_url"],
]; ];

View File

@ -62,7 +62,7 @@
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label required">扣除金额</label> <label class="layui-form-label required">扣除金额</label>
<div class="layui-input-block"> <div class="layui-input-block">
<input type="number" name="item[deduction_money]" lay-verify="required|number" value="" lay-reqtext="必须>=0,不能为空" placeholder="请输入" class="layui-input"> <input type="number" disabled name="item[deduction_money]" lay-verify="required|number" value="{$item['deduction_money']}" lay-reqtext="必须>=0,不能为空" placeholder="请输入" class="layui-input">
</div> </div>
</div> </div>