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.
shop-pc/constants/index.js

64 lines
1.1 KiB

3 years ago
/*
* @Author: ch
* @Date: 2022-05-17 18:17:00
* @LastEditors: ch
2 years ago
* @LastEditTime: 2022-06-27 16:20:31
3 years ago
* @Description: file content
*/
/**
* 全局常量请避免使用魔法数字
*/
// 用户凭证名
const TOKEN_KEY = "msbPcToken";
3 years ago
const UUID_KEY = "msbPcUuid";
// 订单状态
const ORDER_STATUS = {
WAIT_PAY: 1, // 待付款
WAIT_SEND: 3, //待发货
WAIT_RECEIVE: 4, // 待收货
2 years ago
WAIT_COMMENT: 5,//评价
FINISH: 6,
FINISH_FOLLOW_COMMENT : 7
};
// 性别
const SEX_TYPE = {
MALE: 1, // 男
FEMALE: 2, // 女
UNKNOW: 3, // 未知
};
// 热门分类类级
const CATEGROY_LEVEL = {
ONE: 1,
TWO: 2,
};
// 秒杀活动状态
const SECKILL_STATUS = {
NOT_START: 1, // 未开始
GOING: 2, // 进行中
};
2 years ago
const COMMENT = {
TYPE: {
// 评价
COMMENT: 1,
// 追评
FOLLOW_COMMENT: 2,
// 回复
ANSWER: 3,
2 years ago
},
RATE_LEVEL: {
1 : '很不满意',
2 : '不太满意',
3 : '一般',
4 : '满意',
5 : '非常满意'
2 years ago
}
}
2 years ago
export { TOKEN_KEY, UUID_KEY, ORDER_STATUS, SEX_TYPE, CATEGROY_LEVEL, SECKILL_STATUS, COMMENT };