jiangchengfeiyi-xiaochengxu/common/global.js

132 lines
4.2 KiB
JavaScript
Raw Normal View History

2025-03-23 04:16:10 +00:00
//实体类订单状态数组
2025-01-09 02:50:05 +00:00
export const stateList = [
2025-01-02 02:12:11 +00:00
{
state: '待支付',
img: 'https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Ftest%2F0%2FFybMDtHR-dengdaifukuan.png',
2025-01-09 02:50:05 +00:00
msg: '等待买家付款',
tips: '请于15分钟内付款超时订单将自动关闭'
2025-01-02 02:12:11 +00:00
},
{
state: '待发货',
img: 'https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Ftest%2F0%2FEOzVqolp-fahuo.png',
2025-01-09 02:50:05 +00:00
msg: '等待卖家发货',
tips: '耐心等待工艺品发货~'
2025-01-02 02:12:11 +00:00
},
{
state: '已退款',
img: 'https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Ftest%2F0%2FlPnvgqCp-yituikuan.png',
2025-03-23 04:16:10 +00:00
msg: '订单已退款',
2025-01-09 02:50:05 +00:00
tips: '希望下次能让君满意'
2025-01-02 02:12:11 +00:00
},
{
state: '待收货',
img: 'https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Ftest%2F0%2FEOzVqolp-fahuo.png',
2025-01-09 02:50:05 +00:00
msg: '商品已发货,注意查收',
tips: '非遗工艺品马上到手啦,耐心点'
2025-01-02 02:12:11 +00:00
},
{
state: '交易成功',
2025-03-12 09:47:22 +00:00
img: 'https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Ftest%2F0%2FaHDhacaI-dengdaifukuan.png',
2025-01-09 02:50:05 +00:00
msg: '订单完成,感谢您的支持',
tips: '感谢您的支持'
2025-01-02 02:12:11 +00:00
},
{
state: '交易关闭',
2025-03-12 09:47:22 +00:00
img: 'https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Fuser_avatar%2F0%2FLPwbfbRj-cancel.png',
2025-01-09 02:50:05 +00:00
msg: '您的订单已关闭',
tips: '下次看好了之后再买哦'
2025-01-02 02:12:11 +00:00
}
]
export const stateMap = new Map()
stateList.forEach((item)=>{
stateMap.set(item.state,item)
2025-01-09 02:50:05 +00:00
})
2025-03-23 04:16:10 +00:00
//服务类订单状态
export const serviceStateList = [
{
state: '待支付',
img: 'https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Ftest%2F0%2FFybMDtHR-dengdaifukuan.png',
msg: '等待买家付款',
tips: '请于15分钟内付款超时订单将自动关闭'
},
{
state: '待发货',
img: 'https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Ftest%2F0%2FEOzVqolp-fahuo.png',
msg: '待到店体验',
tips: '等待您的光临体验~'
},
{
state: '已退款',
img: 'https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Ftest%2F0%2FlPnvgqCp-yituikuan.png',
2025-03-23 04:16:10 +00:00
msg: '订单已退款',
tips: '希望下次能让君满意'
},
{
2025-03-11 14:04:30 +00:00
state: '交易成功',
2025-03-12 09:47:22 +00:00
img: 'https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Ftest%2F0%2FaHDhacaI-dengdaifukuan.png',
msg: '订单完成,感谢您的支持',
tips: '感谢您的支持'
},
{
state: '交易关闭',
2025-03-12 09:47:22 +00:00
img: 'https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Fuser_avatar%2F0%2FLPwbfbRj-cancel.png',
msg: '您的订单已关闭',
tips: '下次看好了之后再买哦'
}
]
2025-03-23 04:16:10 +00:00
export const serviceStateMap = new Map()
serviceStateList.forEach((item)=>{
serviceStateMap.set(item.state,item)
})
2025-01-09 02:50:05 +00:00
//获取选中日期是星期几方法
export const weekDay = function(time) {
let datelist = ['周日','周一','周二','周三','周四','周五','周六',]
return datelist[new Date(time).getDay()];
}
2025-03-23 04:16:10 +00:00
//服装租赁订单
export const clothesRentOrder = [
{
state: '待支付',
img: 'https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Ftest%2F0%2FFybMDtHR-dengdaifukuan.png',
msg: '等待买家付款',
tips: '请于15分钟内付款超时订单将自动关闭'
},
{
state: '待发货',
img: 'https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Ftest%2F0%2FEOzVqolp-fahuo.png',
msg: '等待您来取货',
tips: '等待您的光临体验~'
},
{
state: '已退款',
img: 'https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Ftest%2F0%2FlPnvgqCp-yituikuan.png',
msg: '订单已退款',
tips: '希望下次能让君满意'
},
{
state: '交易完成',
img: 'https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Ftest%2F0%2FaHDhacaI-dengdaifukuan.png',
msg: '租赁完成,感谢您的支持',
tips: '感谢您的支持'
},
{
state: '交易关闭',
img: 'https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Fuser_avatar%2F0%2FLPwbfbRj-cancel.png',
msg: '您的订单已关闭',
tips: '下次看好了之后再买哦'
},
{
state: '待收货',
img: 'https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Fuser_avatar%2F0%2FLPwbfbRj-cancel.png',
msg: '服装已被您取走',
tips: '请好好爱护服装'
}
]
export const clothesRentOrderMap = new Map()
clothesRentOrder.forEach((item)=>{
clothesRentOrderMap.set(item.state,item)
})