medal add gift_fee_factor and user_medal add priority

This commit is contained in:
xiaomlove
2023-01-29 20:00:58 +08:00
parent fb803d1989
commit 0845bca268
25 changed files with 335 additions and 55 deletions

View File

@@ -76,6 +76,12 @@ class MedalResource extends Resource
->numeric()
->default(0)
,
Forms\Components\TextInput::make('gift_fee_factor')
->label(__('medal.fields.gift_fee_factor'))
->helperText(__('medal.fields.gift_fee_factor_help'))
->numeric()
->default(0)
,
Forms\Components\Textarea::make('description')
->label(__('label.description'))
,
@@ -96,6 +102,7 @@ class MedalResource extends Resource
->formatStateUsing(fn ($record) => new HtmlString(sprintf('%s ~<br/>%s', $record->sale_begin_time ?? '--', $record->sale_end_time ?? '--')))
,
Tables\Columns\TextColumn::make('bonus_addition_factor')->label(__('medal.fields.bonus_addition_factor')),
Tables\Columns\TextColumn::make('gift_fee_factor')->label(__('medal.fields.gift_fee_factor')),
Tables\Columns\TextColumn::make('price')->label(__('label.price')),
Tables\Columns\TextColumn::make('duration')->label(__('label.medal.duration')),