问题说明:积分冻结入口没有展示
修改文件:app\services\system\config\SystemConfigServices
方法名称:integralFormBuild()
public function integralFormBuild()
{
$build = new Build();
$build->url('setting/config/save_basics');
$data = $this->getConfigAllField([
'integral_ratio_status', 'integral_ratio', 'integral_max_type', 'integral_max_num', 'integral_max_rate', 'order_give_integral', 'integral_effective_status',
'integral_effective_time', 'next_clear_month_time', 'next_clear_quarter_time', 'next_clear_year_time', 'integral_frozen'
]);
/** @var UserIntegralServices $userIntergralServices */
$userIntergralServices = app()->make(UserIntegralServices::class);
[$next_clear_month_time] = $userIntergralServices->getTime(1);
[$next_clear_quarter_time] = $userIntergralServices->getTime(2);
[$next_clear_year_time] = $userIntergralServices->getTime(3);
$build->rule([
Build::card('积分设置')->components([
Build::switch('integral_ratio_status', $data['integral_ratio_status']['info'], (int)$data['integral_ratio_status']['value'])
->falseValue('关闭', 0)->trueValue('开启', 1)->control(1, [
Build::inputNum('integral_ratio', $data['integral_ratio']['info'], $data['integral_ratio']['value'])->info($data['integral_ratio']['desc'])->min(0),
Build::radio('integral_max_type', $data['integral_max_type']['info'], $data['integral_max_type']['value'])->control(1, [
Build::inputNum('integral_max_num', $data['integral_max_num']['info'], $data['integral_max_num']['value'])->info($data['integral_max_num']['desc'])->min(0),
])->control(2, [
Build::inputNum('integral_max_rate', $data['integral_max_rate']['info'], $data['integral_max_rate']['value'])->info($data['integral_max_rate']['desc'])->min(0),
])->options($this->getOptions($data['integral_max_type']['parameter']))
])->info($data['integral_ratio_status']['desc']),
Build::inputNum('order_give_integral', $data['order_give_integral']['info'], $data['order_give_integral']['value'])->info($data['order_give_integral']['desc'])->min(0),
Build::radio('integral_effective_status', $data['integral_effective_status']['info'], $data['integral_effective_status']['value'])
->info($data['integral_effective_status']['desc'])->control(1, [
Build::radio('integral_effective_time', $data['integral_effective_time']['info'], $data['integral_effective_time']['value'])
->info($data['integral_effective_time']['desc'])->control(1, [
Build::input('next_clear_month_time', '最近清零时间', $next_clear_month_time ? date('Y-m-d', $next_clear_month_time) : '')->disabled()->info('最近清零时间')
])->control(2, [
Build::input('next_clear_quarter_time', '最近清零时间', $next_clear_quarter_time ? date('Y-m-d', $next_clear_quarter_time) : '')->info('最近清零时间')->disabled()
])->control(3, [
Build::input('next_clear_year_time', '最近清零时间', $next_clear_year_time ? date('Y-m-d', $next_clear_year_time) : '')->info('最近清零时间')->disabled()
])->options($this->getOptions($data['integral_effective_time']['parameter']))
])->options($this->getOptions($data['integral_effective_status']['parameter'])),
Build::inputNum('integral_frozen', $data['integral_frozen']['info'], $data['integral_frozen']['value'])->info($data['integral_frozen']['desc'])->min(0),
]),
]);
return $build->toArray();
}
{{item.user_info.nickname ? item.user_info.nickname : item.user_name}}
作者 管理员 企业
{{itemf.name}}
{{itemc.user_info.nickname}}
{{itemc.user_name}}
回复 {{itemc.comment_user_info.nickname}}
{{itemf.name}}