prize-type
parent
71d287fbf4
commit
122f9538bf
|
|
@ -11,6 +11,7 @@ enum DrawPrizeType: int {
|
|||
// case Balance = 3;
|
||||
// case Point = 4;
|
||||
case Money = 5;
|
||||
case Coupon = 6;
|
||||
|
||||
public function label()
|
||||
{
|
||||
|
|
@ -21,9 +22,10 @@ enum DrawPrizeType: int {
|
|||
// static::Balance => 'pink',
|
||||
// static::Point => 'success',
|
||||
static::Money => 'danger',
|
||||
static::Coupon => 'orange',
|
||||
};
|
||||
|
||||
$background = Admin::color()->get($color, $color);
|
||||
$background = Admin::color()->get($color, 'dark');
|
||||
|
||||
$name = static::options()[$this->value] ?? '其它';
|
||||
|
||||
|
|
@ -39,6 +41,7 @@ enum DrawPrizeType: int {
|
|||
// self::Balance->value => '余额',
|
||||
// self::Point->value => '积分',
|
||||
self::Money->value => '现金',
|
||||
self::Coupon->value => '优惠券',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue