2025-03-23 10:32:01 +00:00
|
|
|
|
import { clothesRentUrl , bookUrl , workshopUrl , myOrderUrl} from "./globalImagesUrl"
|
|
|
|
|
|
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: '待支付',
|
2025-03-24 03:33:28 +00:00
|
|
|
|
img: myOrderUrl + '/myGeneralOrderDetail/dzf.png',
|
2025-01-09 02:50:05 +00:00
|
|
|
|
msg: '等待买家付款',
|
2025-03-23 10:32:01 +00:00
|
|
|
|
tips: '超时订单将自动关闭'
|
2025-01-02 02:12:11 +00:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
state: '待发货',
|
2025-03-24 03:33:28 +00:00
|
|
|
|
img: myOrderUrl + '/myGeneralOrderDetail/dfh.png',
|
2025-01-09 02:50:05 +00:00
|
|
|
|
msg: '等待卖家发货',
|
2025-03-23 10:32:01 +00:00
|
|
|
|
tips: '耐心等待'
|
2025-01-02 02:12:11 +00:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
state: '已退款',
|
2025-03-24 03:33:28 +00:00
|
|
|
|
img: myOrderUrl + '/myGeneralOrderDetail/ytk.png',
|
2025-03-23 04:16:10 +00:00
|
|
|
|
msg: '订单已退款',
|
2025-03-23 10:32:01 +00:00
|
|
|
|
tips: '钱款已退还'
|
2025-01-02 02:12:11 +00:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
state: '待收货',
|
2025-03-24 03:33:28 +00:00
|
|
|
|
img: myOrderUrl + '/myGeneralOrderDetail/dsh.png',
|
2025-01-09 02:50:05 +00:00
|
|
|
|
msg: '商品已发货,注意查收',
|
2025-03-23 10:32:01 +00:00
|
|
|
|
tips: '工艺品即将送达,敬请耐心等候。'
|
2025-01-02 02:12:11 +00:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
state: '交易成功',
|
2025-03-24 03:33:28 +00:00
|
|
|
|
img: myOrderUrl + '/myGeneralOrderDetail/jywc.png',
|
2025-01-09 02:50:05 +00:00
|
|
|
|
msg: '订单完成,感谢您的支持',
|
|
|
|
|
tips: '感谢您的支持'
|
2025-01-02 02:12:11 +00:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
state: '交易关闭',
|
2025-03-24 03:33:28 +00:00
|
|
|
|
img: myOrderUrl + '/myGeneralOrderDetail/jygb.png',
|
2025-01-09 02:50:05 +00:00
|
|
|
|
msg: '您的订单已关闭',
|
2025-03-23 10:32:01 +00:00
|
|
|
|
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
|
|
|
|
|
|
|
|
|
//服务类订单状态
|
2025-02-28 03:34:36 +00:00
|
|
|
|
export const serviceStateList = [
|
|
|
|
|
{
|
|
|
|
|
state: '待支付',
|
2025-03-23 10:32:01 +00:00
|
|
|
|
img: myOrderUrl + '/myServiceOrderDetail/dzf.png',
|
2025-02-28 03:34:36 +00:00
|
|
|
|
msg: '等待买家付款',
|
2025-03-23 10:32:01 +00:00
|
|
|
|
tips: '超时订单将自动关闭'
|
2025-02-28 03:34:36 +00:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
state: '待发货',
|
2025-03-23 10:32:01 +00:00
|
|
|
|
img: myOrderUrl + '/myServiceOrderDetail/dfh.png',
|
2025-02-28 03:34:36 +00:00
|
|
|
|
msg: '待到店体验',
|
2025-03-23 10:32:01 +00:00
|
|
|
|
tips: '期待您的莅临体验'
|
2025-02-28 03:34:36 +00:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
state: '已退款',
|
2025-03-23 10:32:01 +00:00
|
|
|
|
img: myOrderUrl + '/myServiceOrderDetail/ytk.png',
|
2025-03-23 04:16:10 +00:00
|
|
|
|
msg: '订单已退款',
|
2025-03-23 10:32:01 +00:00
|
|
|
|
tips: '钱款已退还'
|
2025-02-28 03:34:36 +00:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-03-11 14:04:30 +00:00
|
|
|
|
state: '交易成功',
|
2025-03-23 10:32:01 +00:00
|
|
|
|
img: myOrderUrl + '/myServiceOrderDetail/jywc.png',
|
2025-02-28 03:34:36 +00:00
|
|
|
|
msg: '订单完成,感谢您的支持',
|
|
|
|
|
tips: '感谢您的支持'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
state: '交易关闭',
|
2025-03-23 10:32:01 +00:00
|
|
|
|
img: myOrderUrl + '/myServiceOrderDetail/jygb.png',
|
2025-02-28 03:34:36 +00:00
|
|
|
|
msg: '您的订单已关闭',
|
2025-03-23 10:32:01 +00:00
|
|
|
|
tips: '请您在下次购买前仔细确认'
|
2025-02-28 03:34:36 +00:00
|
|
|
|
}
|
|
|
|
|
]
|
2025-03-23 04:16:10 +00:00
|
|
|
|
|
2025-02-28 03:34:36 +00:00
|
|
|
|
export const serviceStateMap = new Map()
|
|
|
|
|
serviceStateList.forEach((item)=>{
|
|
|
|
|
serviceStateMap.set(item.state,item)
|
|
|
|
|
})
|
2025-03-23 10:32:01 +00:00
|
|
|
|
|
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
|
|
|
|
|
2025-03-23 10:32:01 +00:00
|
|
|
|
//写真服务订单
|
|
|
|
|
export const photoServiceOrder = [
|
|
|
|
|
{
|
|
|
|
|
state: '待支付',
|
|
|
|
|
img: bookUrl + '/myPhotoProductsOrderDetail/dzf.png',
|
|
|
|
|
msg: '等待买家付款',
|
|
|
|
|
tips: '超时订单将自动关闭'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
state: '待发货',
|
|
|
|
|
img: bookUrl + '/myPhotoProductsOrderDetail/dps.png',
|
|
|
|
|
msg: '等待拍摄',
|
|
|
|
|
tips: '敬请耐心等候'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
state: '已退款',
|
|
|
|
|
img: bookUrl + '/myPhotoProductsOrderDetail/ytk.png',
|
|
|
|
|
msg: '订单已退款',
|
|
|
|
|
tips: '钱款已退还'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
state: '交易成功',
|
|
|
|
|
img: bookUrl + '/myPhotoProductsOrderDetail/jywc.png',
|
|
|
|
|
msg: '租赁完成',
|
|
|
|
|
tips: '感谢您的支持'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
state: '交易关闭',
|
|
|
|
|
img: bookUrl + '/myPhotoProductsOrderDetail/jygb.png',
|
|
|
|
|
msg: '您的订单已关闭',
|
|
|
|
|
tips: '请您在下次购买前仔细确认'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
state: '待收货',
|
|
|
|
|
img: bookUrl + '/myPhotoProductsOrderDetail/yps.png',
|
|
|
|
|
msg: '服装已被您取走',
|
|
|
|
|
tips: '请爱护服装'
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
export const photoOrderMap = new Map()
|
|
|
|
|
photoServiceOrder.forEach((item)=>{
|
|
|
|
|
photoOrderMap.set(item.state,item)
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
2025-03-23 04:16:10 +00:00
|
|
|
|
//服装租赁订单
|
|
|
|
|
export const clothesRentOrder = [
|
|
|
|
|
{
|
|
|
|
|
state: '待支付',
|
2025-03-23 10:32:01 +00:00
|
|
|
|
img: clothesRentUrl + '/clothesRentOrderDetail/dzf.png',
|
2025-03-23 04:16:10 +00:00
|
|
|
|
msg: '等待买家付款',
|
|
|
|
|
tips: '请于15分钟内付款,超时订单将自动关闭'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
state: '待发货',
|
2025-03-23 10:32:01 +00:00
|
|
|
|
img: clothesRentUrl + '/clothesRentOrderDetail/dqh.png',
|
2025-03-23 04:16:10 +00:00
|
|
|
|
msg: '等待您来取货',
|
2025-03-23 10:32:01 +00:00
|
|
|
|
tips: '敬请耐心等候'
|
2025-03-23 04:16:10 +00:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
state: '已退款',
|
2025-03-23 10:32:01 +00:00
|
|
|
|
img: clothesRentUrl + '/clothesRentOrderDetail/ytk.png',
|
2025-03-23 04:16:10 +00:00
|
|
|
|
msg: '订单已退款',
|
2025-03-23 10:32:01 +00:00
|
|
|
|
tips: '钱款已退还'
|
2025-03-23 04:16:10 +00:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-03-23 10:32:01 +00:00
|
|
|
|
state: '交易成功',
|
|
|
|
|
img: clothesRentUrl + '/clothesRentOrderDetail/jywc.png',
|
|
|
|
|
msg: '租赁完成',
|
2025-03-23 04:16:10 +00:00
|
|
|
|
tips: '感谢您的支持'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
state: '交易关闭',
|
2025-03-23 10:32:01 +00:00
|
|
|
|
img: clothesRentUrl + '/clothesRentOrderDetail/jygb.png',
|
2025-03-23 04:16:10 +00:00
|
|
|
|
msg: '您的订单已关闭',
|
2025-03-23 10:32:01 +00:00
|
|
|
|
tips: '请您在下次购买前仔细确认'
|
2025-03-23 04:16:10 +00:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
state: '待收货',
|
2025-03-23 10:32:01 +00:00
|
|
|
|
img: clothesRentUrl + '/clothesRentOrderDetail/yqh.png',
|
2025-03-23 04:16:10 +00:00
|
|
|
|
msg: '服装已被您取走',
|
2025-03-23 10:32:01 +00:00
|
|
|
|
tips: '请务必妥善保管并爱护所提供的服装'
|
2025-03-23 04:16:10 +00:00
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
export const clothesRentOrderMap = new Map()
|
|
|
|
|
clothesRentOrder.forEach((item)=>{
|
|
|
|
|
clothesRentOrderMap.set(item.state,item)
|
|
|
|
|
})
|