资源组ui修改
This commit is contained in:
parent
35d9c1a9d1
commit
c7f7a7047f
File diff suppressed because it is too large
Load Diff
@ -248,6 +248,7 @@ export function getPropsTypeName(value?: null | string) {
|
||||
return (
|
||||
PROPS_TYPES.find((item) => item.value === value)?.name ||
|
||||
PROPS_STORE_TYPES.find((item) => item.value === value)?.name ||
|
||||
BADGE_TYPE_OPTIONS.find((item) => item.value === value)?.name ||
|
||||
PROPS_SOURCE_GROUP_TYPE_MAP[value]?.name ||
|
||||
value
|
||||
);
|
||||
@ -279,7 +280,12 @@ export function isPropsCouponType(type?: null | string) {
|
||||
}
|
||||
|
||||
export function isBadgeRewardType(type?: null | string) {
|
||||
return type === 'BADGE' || type === 'ROOM_BADGE' || type === 'HONOR_ACTIVITY';
|
||||
return (
|
||||
type === 'BADGE' ||
|
||||
type === 'ROOM_BADGE' ||
|
||||
type === 'HONOR_ACTIVITY' ||
|
||||
BADGE_TYPE_OPTIONS.some((item) => item.value === type)
|
||||
);
|
||||
}
|
||||
|
||||
export function isPropsSourceType(type?: null | string) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user