import { clothesRentUrl , bookUrl , workshopUrl , myOrderUrl} from "./globalImagesUrl"

//实体类订单状态数组
export const stateList = [   
	{
		state: '待支付',
		img: myOrderUrl + '/myGeneralOrderDetail/dzf.png',
		msg: '等待买家付款',
		tips: '超时订单将自动关闭'
	},
	{
		state: '待发货',
		img: myOrderUrl + '/myGeneralOrderDetail/dfh.png',
		msg: '等待卖家发货',
		tips: '耐心等待'
	},
	{
		state: '已退款',
		img: myOrderUrl + '/myGeneralOrderDetail/ytk.png',
		msg: '订单已退款',
		tips: '钱款已退还'
	},
	{
		state: '待收货',
		img: myOrderUrl + '/myGeneralOrderDetail/dsh.png',
		msg: '商品已发货,注意查收',
		tips: '工艺品即将送达,敬请耐心等候。'
	},
	{
		state: '交易成功',
		img: myOrderUrl + '/myGeneralOrderDetail/jywc.png',
		msg: '订单完成,感谢您的支持',
		tips: '感谢您的支持'
	},
	{
		state: '交易关闭',
		img: myOrderUrl + '/myGeneralOrderDetail/jygb.png',
		msg: '您的订单已关闭',
		tips: '请您在下次购买前仔细确认'
	}
]
export const stateMap = new Map()
stateList.forEach((item)=>{
	stateMap.set(item.state,item)
})

//服务类订单状态
export const serviceStateList = [   
	{
		state: '待支付',
		img: myOrderUrl + '/myServiceOrderDetail/dzf.png',
		msg: '等待买家付款',
		tips: '超时订单将自动关闭'
	},
	{
		state: '待发货',
		img: myOrderUrl + '/myServiceOrderDetail/dfh.png',
		msg: '待到店体验',
		tips: '期待您的莅临体验'
	},
	{
		state: '已退款',
		img: myOrderUrl + '/myServiceOrderDetail/ytk.png',
		msg: '订单已退款',
		tips: '钱款已退还'
	},
	{
		state: '交易成功',
		img: myOrderUrl + '/myServiceOrderDetail/jywc.png',
		msg: '订单完成,感谢您的支持',
		tips: '感谢您的支持'
	},
	{
		state: '交易关闭',
		img: myOrderUrl + '/myServiceOrderDetail/jygb.png',
		msg: '您的订单已关闭',
		tips: '请您在下次购买前仔细确认'
	}
]

export const serviceStateMap = new Map()
serviceStateList.forEach((item)=>{
	serviceStateMap.set(item.state,item)
})

//获取选中日期是星期几方法
export const weekDay = function(time)  {
  let datelist = ['周日','周一','周二','周三','周四','周五','周六',]
  return datelist[new Date(time).getDay()];
}

//写真服务订单
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)
})


//服装租赁订单
export const clothesRentOrder = [   
	{
		state: '待支付',
		img: clothesRentUrl + '/clothesRentOrderDetail/dzf.png',
		msg: '等待买家付款',
		tips: '请于15分钟内付款,超时订单将自动关闭'
	},
	{
		state: '待发货',
		img: clothesRentUrl + '/clothesRentOrderDetail/dqh.png',
		msg: '等待您来取货',
		tips: '敬请耐心等候'
	},
	{
		state: '已退款',
		img: clothesRentUrl + '/clothesRentOrderDetail/ytk.png',
		msg: '订单已退款',
		tips: '钱款已退还'
	},
	{
		state: '交易成功',
		img: clothesRentUrl + '/clothesRentOrderDetail/jywc.png',
		msg: '租赁完成',
		tips: '感谢您的支持'
	},
	{
		state: '交易关闭',
		img: clothesRentUrl + '/clothesRentOrderDetail/jygb.png',
		msg: '您的订单已关闭',
		tips: '请您在下次购买前仔细确认'
	},
	{
		state: '待收货',
		img: clothesRentUrl + '/clothesRentOrderDetail/yqh.png',
		msg: '服装已被您取走',
		tips: '请务必妥善保管并爱护所提供的服装'
	}
]

export const clothesRentOrderMap = new Map()
clothesRentOrder.forEach((item)=>{
	clothesRentOrderMap.set(item.state,item)
})