2025-01-02 03:18:59 +00:00
|
|
|
|
"use strict";
|
|
|
|
|
const stateList = [
|
|
|
|
|
{
|
|
|
|
|
state: "待支付",
|
|
|
|
|
img: "https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Ftest%2F0%2FFybMDtHR-dengdaifukuan.png",
|
2025-02-18 06:46:34 +00:00
|
|
|
|
msg: "等待买家付款",
|
|
|
|
|
tips: "请于15分钟内付款,超时订单将自动关闭"
|
2025-01-02 03:18:59 +00:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
state: "待发货",
|
|
|
|
|
img: "https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Ftest%2F0%2FEOzVqolp-fahuo.png",
|
2025-02-18 06:46:34 +00:00
|
|
|
|
msg: "等待卖家发货",
|
|
|
|
|
tips: "耐心等待工艺品发货~"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
state: "退款中",
|
|
|
|
|
img: "",
|
|
|
|
|
msg: "退款审核中",
|
|
|
|
|
tips: "请君耐心等待退款结果"
|
2025-01-02 03:18:59 +00:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
state: "已退款",
|
|
|
|
|
img: "https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Ftest%2F0%2FlPnvgqCp-yituikuan.png",
|
2025-02-18 06:46:34 +00:00
|
|
|
|
msg: "订单已经退款",
|
|
|
|
|
tips: "希望下次能让君满意"
|
2025-01-02 03:18:59 +00:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
state: "待收货",
|
|
|
|
|
img: "https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Ftest%2F0%2FEOzVqolp-fahuo.png",
|
2025-02-18 06:46:34 +00:00
|
|
|
|
msg: "商品已发货,注意查收",
|
|
|
|
|
tips: "非遗工艺品马上到手啦,耐心点"
|
2025-01-02 03:18:59 +00:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
state: "交易成功",
|
|
|
|
|
img: "",
|
2025-02-18 06:46:34 +00:00
|
|
|
|
msg: "订单完成,感谢您的支持",
|
|
|
|
|
tips: "感谢您的支持"
|
2025-01-02 03:18:59 +00:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
state: "交易关闭",
|
|
|
|
|
img: "https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Ftest%2F0%2FaHDhacaI-dengdaifukuan.png",
|
2025-02-18 06:46:34 +00:00
|
|
|
|
msg: "您的订单已关闭",
|
|
|
|
|
tips: "下次看好了之后再买哦"
|
2025-01-02 03:18:59 +00:00
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
const stateMap = /* @__PURE__ */ new Map();
|
|
|
|
|
stateList.forEach((item) => {
|
|
|
|
|
stateMap.set(item.state, item);
|
|
|
|
|
});
|
2025-02-18 06:46:34 +00:00
|
|
|
|
const weekDay = function(time) {
|
|
|
|
|
let datelist = ["周日", "周一", "周二", "周三", "周四", "周五", "周六"];
|
|
|
|
|
return datelist[new Date(time).getDay()];
|
|
|
|
|
};
|
2025-01-02 03:18:59 +00:00
|
|
|
|
exports.stateMap = stateMap;
|
2025-02-18 06:46:34 +00:00
|
|
|
|
exports.weekDay = weekDay;
|