Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
corporateCulture-qd
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王立鹏
corporateCulture-qd
Commits
c883880d
Commit
c883880d
authored
Mar 11, 2026
by
lijiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【需求 20331】 wip: 加入常量等
parent
ce12749e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
0 deletions
+46
-0
enums.ts
src/constants/enums.ts
+26
-0
options.ts
src/constants/options.ts
+20
-0
No files found.
src/constants/enums.ts
View file @
c883880d
...
...
@@ -125,3 +125,29 @@ export enum AuctionStatusEnum {
// 已流拍
AUCTION_FAILED
=
3
,
}
// 奖励按钮枚举
export
enum
RewardButtonEnum
{
USER_PAGE
=
'userPage'
,
// 个人中心按钮
PUBLISH_LONG_ARTICLE
=
'publishLongArticle'
,
// 发布帖子按钮
PUBLISH_CASE
=
'publishCase'
,
// 去投稿按钮
PUBLISH_QUESTION
=
'publishQuestion'
,
// 话题发布按钮(问吧)
SELF_ANSWER
=
'selfAnswer'
,
// 回答问题按钮
PUBLISH_VIDEO
=
'publishVideo'
,
// 视频发布按钮
SELF_COMMENT
=
'selfComment'
,
// 我的回答按钮
ASK_TAB
=
'askTab'
,
// 问吧按钮
YA_TAB
=
'yaTab'
,
// 亚文化按钮
YA_PRACTICE
=
'yaPractice'
,
// 亚文化实践
YA_INTERVIEW
=
'yaInterview'
,
// 亚文化专访
YA_VIDEO
=
'yaVideo'
,
// 亚文化视频
}
// 发放商品的分类
export
enum
GoodsDistributionTypeEnum
{
// 每日抽奖
LOTTERY
=
'lottery'
,
// 积分商城
ORDER
=
'order'
,
// 竞拍
AUCTION
=
'auction'
,
}
src/constants/options.ts
View file @
c883880d
...
...
@@ -5,6 +5,7 @@ import {
TaskTypeEnum
,
UsageStatusEnum
,
AuctionStatusEnum
,
GoodsDistributionTypeEnum
,
}
from
'./enums'
// 地区列表
...
...
@@ -213,3 +214,22 @@ export const auctionStatusListOptions: { label: string; value: AuctionStatusEnum
value
:
AuctionStatusEnum
.
AUCTION_FAILED
,
},
]
// 发放商品的分类列表
export
const
goodsDistributionTypeListOptions
:
{
label
:
string
value
:
GoodsDistributionTypeEnum
}[]
=
[
{
label
:
'每日抽奖'
,
value
:
GoodsDistributionTypeEnum
.
LOTTERY
,
},
{
label
:
'积分商城'
,
value
:
GoodsDistributionTypeEnum
.
ORDER
,
},
{
label
:
'竞拍'
,
value
:
GoodsDistributionTypeEnum
.
AUCTION
,
},
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment