新增好友赠送验收模式支持打手资料提交加好友冷却与模板配置
This commit is contained in:
@@ -244,6 +244,31 @@ export function formatSharingShareStatus(status: string) {
|
||||
return labels[status] || status
|
||||
}
|
||||
|
||||
export function formatAcceptanceMode(mode: string) {
|
||||
if (mode === 'friend_gift') return '好友赠送'
|
||||
return '标准验收'
|
||||
}
|
||||
|
||||
export function formatGiftPhase(phase: string) {
|
||||
const labels: Record<string, string> = {
|
||||
material_required: '待打手提交资料',
|
||||
material_submitted: '待确认加好友',
|
||||
friend_countdown: '赠送冷却中',
|
||||
gift_ready: '可赠送',
|
||||
}
|
||||
return labels[phase] || phase
|
||||
}
|
||||
|
||||
export function resolveGiftPhaseColor(phase: string) {
|
||||
const colors: Record<string, string> = {
|
||||
material_required: 'orange',
|
||||
material_submitted: 'geekblue',
|
||||
friend_countdown: 'gold',
|
||||
gift_ready: 'green',
|
||||
}
|
||||
return colors[phase] || 'default'
|
||||
}
|
||||
|
||||
export function resolveSharingShareStatusColor(status: string) {
|
||||
if (status === 'accepted') return 'green'
|
||||
if (status === 'submitted') return 'gold'
|
||||
|
||||
Reference in New Issue
Block a user