You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

41 lines
1.4 KiB

// 纯瘾大 · 全局常量
export const API = {
BASE: 'http://127.0.0.1:8080',
CARD_GENERATE: '/api/card/generate',
CARD_CHECK: '/api/card/check',
MENU_CATEGORIES: '/api/menu/categories',
MENU_PRODUCTS: '/api/menu/products',
MENU_PRODUCT: '/api/menu/product',
ORDER_SUBMIT: '/api/order/submit',
ORDER_LIST: '/api/order/list',
ORDER_REMIND: '/api/order/remind',
MESSAGE_LIST: '/api/message/list',
MESSAGE_SEND: '/api/message/send',
MESSAGE_READ: '/api/message/read',
STAFF_LOGIN: '/api/staff/login',
STAFF_ORDERS: '/api/staff/orders',
STAFF_ORDER: '/api/staff/order',
STAFF_CONFIRM: '/api/staff/order/confirm',
STAFF_DONE: '/api/staff/order/done',
STAFF_CANCEL: '/api/staff/order/cancel',
}
export const ORDER_STATUS = {
0: { label: '新订单', color: '#FF3B3B', class: 'status-new' },
1: { label: '进行中', color: '#4A90D9', class: 'status-confirmed' },
2: { label: '已完成', color: '#2ED573', class: 'status-done' },
3: { label: '已取消', color: '#747D8C', class: 'status-cancelled' },
}
export const CONFIRM_PRESETS = [
{ label: '去冰', icon: '🧊' },
{ label: '多冰', icon: '🧊' },
{ label: '喜酸', icon: '🍋' },
{ label: '去酸', icon: '🍋' },
{ label: '喜甜', icon: '🍬' },
{ label: '去甜', icon: '🍬' },
{ label: '加烈', icon: '🥃' },
{ label: '低度', icon: '🍹' },
]