diff --git a/app/common/repositories/system/merchant/MerchantCategoryRepository.php b/app/common/repositories/system/merchant/MerchantCategoryRepository.php index 0299857..df1638f 100644 --- a/app/common/repositories/system/merchant/MerchantCategoryRepository.php +++ b/app/common/repositories/system/merchant/MerchantCategoryRepository.php @@ -83,7 +83,7 @@ class MerchantCategoryRepository extends BaseRepository $form = Elm::createForm($action, [ Elm::input('category_name', '分类名称')->required(), - Elm::number('commission_rate', '手续费(%)', 0)->required()->max(100)->precision(2) + Elm::number('commission_rate', '平台结算比例(%)', 0)->required()->max(100)->precision(2) ]); return $form->formData($formData)->setTitle(is_null($id) ? '添加商户分类' : '编辑商户分类'); diff --git a/app/common/repositories/system/merchant/MerchantRepository.php b/app/common/repositories/system/merchant/MerchantRepository.php index 5afe641..2dc59b6 100644 --- a/app/common/repositories/system/merchant/MerchantRepository.php +++ b/app/common/repositories/system/merchant/MerchantRepository.php @@ -139,7 +139,7 @@ class MerchantRepository extends BaseRepository Elm::password('mer_password', '登录密码')->required()->disabled(!is_null($id))->required(!is_null($id)), Elm::input('real_name', '商户姓名'), Elm::input('mer_phone', '商户手机号')->col(12)->required(), - Elm::number('commission_rate', '手续费(%)')->col(12), + Elm::number('commission_rate', '平台结算(%)')->col(12), Elm::input('mer_keyword', '商户关键字')->col(12), Elm::input('mer_address', '商户地址'), Elm::input('sub_mchid', '微信分账商户号'), @@ -147,7 +147,7 @@ class MerchantRepository extends BaseRepository Elm::number('sort', '排序', 0)->precision(0)->max(99999), $id ? Elm::hidden('status', 1) : Elm::switches('status', '是否开启', 1)->activeValue(1)->inactiveValue(0)->inactiveText('关')->activeText('开')->col(12), // Elm::switches('is_bro_room', '直播间审核', $config['broadcast_room_type'] == 1 ? 0 : 1)->activeValue(1)->inactiveValue(0)->inactiveText('关')->activeText('开')->col(12), -// Elm::switches('is_audit', '产品审核', 1)->activeValue(1)->inactiveValue(0)->inactiveText('关')->activeText('开')->col(12), + Elm::switches('is_audit', '产品审核', 1)->activeValue(1)->inactiveValue(0)->inactiveText('关')->activeText('开')->col(12), // Elm::switches('is_bro_goods', '直播间商品审核', $config['broadcast_goods_type'] == 1 ? 0 : 1)->activeValue(1)->inactiveValue(0)->inactiveText('关')->activeText('开')->col(12), Elm::switches('is_best', '是否推荐')->activeValue(1)->inactiveValue(0)->inactiveText('关')->activeText('开')->col(12), Elm::switches('is_trader', '是否自营')->activeValue(1)->inactiveValue(0)->inactiveText('关')->activeText('开')->col(12), diff --git a/app/controller/admin/store/StoreProduct.php b/app/controller/admin/store/StoreProduct.php index 0afad01..98d7891 100755 --- a/app/controller/admin/store/StoreProduct.php +++ b/app/controller/admin/store/StoreProduct.php @@ -158,7 +158,7 @@ class StoreProduct extends BaseController */ public function checkParams(validate $validate) { - $data = $this->request->params(['is_hot','is_best','is_benefit','is_new','store_name','content','rank','star', 'base', 'cash_rate']); + $data = $this->request->params(['is_hot','is_best','is_benefit','is_new','store_name','content','rank','star', 'base', 'cash_rate', 'commission_rate']); $validate->check($data); return $data; } diff --git a/app/validate/merchant/StoreProductAdminValidate.php b/app/validate/merchant/StoreProductAdminValidate.php index 35d82e0..46b2495 100644 --- a/app/validate/merchant/StoreProductAdminValidate.php +++ b/app/validate/merchant/StoreProductAdminValidate.php @@ -27,5 +27,6 @@ class StoreProductAdminValidate extends Validate "refusal|拒绝理由" => "requireIf:status,-1", "base|奖励基数" => "number|between:0,999999", "cash_rate|现金支付比例" => "number|between:1,100", + "commission_rate|平台比例" => "number|between:0,100", ]; } diff --git a/public/system.html b/public/system.html index b1b4b3d..3e501a9 100644 --- a/public/system.html +++ b/public/system.html @@ -1,3 +1,3 @@ -