添加收藏茶室接口和完善茶室详情
This commit is contained in:
@ -165,4 +165,58 @@ export const OrderStatusTitle: Record<OrderSource, Record<OrderStatus, string>>
|
||||
[OrderStatus.AfterSaleApply]: '申请售后',
|
||||
[OrderStatus.AfterSaleProcessing]: '申请售后中'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// 茶艺师订单状态数字(根据UI图还缺已退款、待接单、售后中、售后完成)
|
||||
export enum TeaSpecialistOrderStatus {
|
||||
Pending = 0, // 待付款(未支付)
|
||||
Pay = 1, // 预约单、已预约(已支付)
|
||||
Cancelled = 2, // 已取消(订单取消)
|
||||
Confirm = 3, // 待确认(已接单)
|
||||
Serving = 4, // 服务中
|
||||
Finished = 5, // 已完成
|
||||
}
|
||||
|
||||
// 茶艺师订单状态文本
|
||||
export enum TeaSpecialistOrderStatusText {
|
||||
All = 'all', // 待付款
|
||||
Pending = 'pending', // 待付款
|
||||
Pay = 'pay', // 已支付(预约单、已预约)
|
||||
Cancelled = 'cancelled', // 已取消
|
||||
Confirm = 'confirm', // 待确认
|
||||
Serving = 'serving', // 服务中
|
||||
Finished = 'finished', // 已完成
|
||||
}
|
||||
|
||||
// 状态内容映射
|
||||
export const TeaSpecialistOrderStatusTextValue: Record<TeaSpecialistOrderStatus, any> = {
|
||||
[TeaSpecialistOrderStatus.Pending]: {
|
||||
title: '等待付款'
|
||||
},
|
||||
[TeaSpecialistOrderStatus.Pay]: {
|
||||
title: '已预约'
|
||||
},
|
||||
[TeaSpecialistOrderStatus.Cancelled]: {
|
||||
title: '订单取消'
|
||||
},
|
||||
[TeaSpecialistOrderStatus.Confirm]: {
|
||||
title: '订单待确认'
|
||||
},
|
||||
[TeaSpecialistOrderStatus.Serving]: {
|
||||
title: '服务中'
|
||||
},
|
||||
[TeaSpecialistOrderStatus.Finished]: {
|
||||
title: '交易完成'
|
||||
},
|
||||
}
|
||||
|
||||
export const TeaSpecialistOrderStatusValue: Record<TeaSpecialistOrderStatusText, string | number> = {
|
||||
[TeaSpecialistOrderStatusText.All]: '',
|
||||
[TeaSpecialistOrderStatusText.Pending]: 0,
|
||||
[TeaSpecialistOrderStatusText.Pay]: 1,
|
||||
[TeaSpecialistOrderStatusText.Cancelled]: 2,
|
||||
[TeaSpecialistOrderStatusText.Confirm]: 3,
|
||||
[TeaSpecialistOrderStatusText.Serving]: 4,
|
||||
[TeaSpecialistOrderStatusText.Finished]: 5,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user