|
@@ -25,13 +25,11 @@ class ShareConfigController extends AdminController
|
|
|
$shareConfig = ShareConfig::orderBy('id','asc')->first()->toArray();
|
|
$shareConfig = ShareConfig::orderBy('id','asc')->first()->toArray();
|
|
|
$form->width(9, 2);
|
|
$form->width(9, 2);
|
|
|
$form->text('id','ID')->value($shareConfig['id'])->readOnly();
|
|
$form->text('id','ID')->value($shareConfig['id'])->readOnly();
|
|
|
- $form->text('member_price', '会员价格')->value($shareConfig['member_price'])->required();
|
|
|
|
|
- $form->text('origin_member_price', '会员原价')->value($shareConfig['origin_member_price'])->required();
|
|
|
|
|
$form->text('price','推荐奖励')->value($shareConfig['price'])->required();
|
|
$form->text('price','推荐奖励')->value($shareConfig['price'])->required();
|
|
|
$form->textarea('share_desc','分销说明')->value($shareConfig['share_desc']);
|
|
$form->textarea('share_desc','分销说明')->value($shareConfig['share_desc']);
|
|
|
$form->text('withdraw_discount','提现手续费,百分比')->value($shareConfig['withdraw_discount']);
|
|
$form->text('withdraw_discount','提现手续费,百分比')->value($shareConfig['withdraw_discount']);
|
|
|
- $form->text('withdraw_desc','提现说明')->value($shareConfig['withdraw_desc']);
|
|
|
|
|
- $form->textarea('is_open', '是否开启?')->default($shareConfig['is_open']);
|
|
|
|
|
|
|
+ $form->textarea('withdraw_desc','提现说明')->value($shareConfig['withdraw_desc']);
|
|
|
|
|
+ $form->switch('is_open', '是否开启?')->default($shareConfig['is_open']);
|
|
|
$form->action('shareSetting/save');
|
|
$form->action('shareSetting/save');
|
|
|
$column->append(Box::make(trans('admin.edit'), $form));
|
|
$column->append(Box::make(trans('admin.edit'), $form));
|
|
|
});
|
|
});
|
|
@@ -43,8 +41,6 @@ class ShareConfigController extends AdminController
|
|
|
$req = request()->post();
|
|
$req = request()->post();
|
|
|
$shareConfig = ShareConfig::orderBy('id','asc')->first();
|
|
$shareConfig = ShareConfig::orderBy('id','asc')->first();
|
|
|
$shareConfig->price = $req['price'];
|
|
$shareConfig->price = $req['price'];
|
|
|
- $shareConfig->member_price = $req['member_price'];
|
|
|
|
|
- $shareConfig->origin_member_price = $req['origin_member_price'];
|
|
|
|
|
$shareConfig->share_desc = $req['share_desc'];
|
|
$shareConfig->share_desc = $req['share_desc'];
|
|
|
$shareConfig->withdraw_discount = $req['withdraw_discount'];
|
|
$shareConfig->withdraw_discount = $req['withdraw_discount'];
|
|
|
$shareConfig->withdraw_desc = $req['withdraw_desc'];
|
|
$shareConfig->withdraw_desc = $req['withdraw_desc'];
|
|
@@ -67,11 +63,9 @@ class ShareConfigController extends AdminController
|
|
|
$id = $form->getKey();
|
|
$id = $form->getKey();
|
|
|
$form->text('id', 'ID');
|
|
$form->text('id', 'ID');
|
|
|
$form->text('price','推荐奖励');
|
|
$form->text('price','推荐奖励');
|
|
|
- $form->text('member_price', '会员价格');
|
|
|
|
|
- $form->text('origin_member_price', '会员原价');
|
|
|
|
|
- $form->text('share_desc','分销说明');
|
|
|
|
|
|
|
+ $form->textarea('share_desc','分销说明');
|
|
|
$form->text('withdraw_discount','提现手续费,百分比');
|
|
$form->text('withdraw_discount','提现手续费,百分比');
|
|
|
- $form->text('withdraw_desc','提现说明');
|
|
|
|
|
|
|
+ $form->textarea('withdraw_desc','提现说明');
|
|
|
$form->switch('is_open', '是否开启?')->default(1);
|
|
$form->switch('is_open', '是否开启?')->default(1);
|
|
|
|
|
|
|
|
})->saved(function (Form $form, $result) {
|
|
})->saved(function (Form $form, $result) {
|