增加新模块
This commit is contained in:
+92
@@ -0,0 +1,92 @@
|
||||
"use strict";
|
||||
function getValue(optionArr, key) {
|
||||
let resultVal = "";
|
||||
if (!optionArr || optionArr.length === 0) {
|
||||
return resultVal;
|
||||
}
|
||||
optionArr.map((item) => {
|
||||
if (item.key === key) {
|
||||
resultVal = item.value || item.name;
|
||||
}
|
||||
});
|
||||
return resultVal;
|
||||
}
|
||||
const SMS_TYPE = {
|
||||
"PASSWD": "passwd",
|
||||
"LOGIN": "login"
|
||||
};
|
||||
const ORDER_TYPE = {
|
||||
"ALL": 0,
|
||||
"UNPAID": 1,
|
||||
"UNSHIPPED": 2,
|
||||
"NOT_RECEIVE": 3,
|
||||
"AFTER_SALE": 4,
|
||||
"CANCELED": 5,
|
||||
"COMPLETED": 6
|
||||
};
|
||||
const ORDER_STATUS = [
|
||||
{
|
||||
key: 0,
|
||||
name: "全部"
|
||||
},
|
||||
{
|
||||
key: 1,
|
||||
name: "待付款"
|
||||
},
|
||||
{
|
||||
key: 2,
|
||||
name: "待发货"
|
||||
},
|
||||
{
|
||||
key: 3,
|
||||
name: "待收货"
|
||||
},
|
||||
{
|
||||
key: 4,
|
||||
name: "退款售后"
|
||||
},
|
||||
{
|
||||
key: 5,
|
||||
name: "已取消"
|
||||
},
|
||||
{
|
||||
key: 6,
|
||||
name: "已完成"
|
||||
}
|
||||
];
|
||||
const PAYMENT_WAY = {
|
||||
"WECHAT": 1,
|
||||
"ALIPAY": 2
|
||||
};
|
||||
const PAYMENT_WAY_ = [
|
||||
{
|
||||
key: 1,
|
||||
value: "微信支付"
|
||||
},
|
||||
{
|
||||
key: 2,
|
||||
value: "支付宝支付"
|
||||
}
|
||||
];
|
||||
const PRODUCT_DELIVERY_TIME = [
|
||||
{
|
||||
key: 1,
|
||||
value: "24小时内发货"
|
||||
},
|
||||
{
|
||||
key: 2,
|
||||
value: "48小时内发货"
|
||||
},
|
||||
{
|
||||
key: 3,
|
||||
value: "大于48小时发货"
|
||||
}
|
||||
];
|
||||
exports.ORDER_STATUS = ORDER_STATUS;
|
||||
exports.ORDER_TYPE = ORDER_TYPE;
|
||||
exports.PAYMENT_WAY = PAYMENT_WAY;
|
||||
exports.PAYMENT_WAY_ = PAYMENT_WAY_;
|
||||
exports.PRODUCT_DELIVERY_TIME = PRODUCT_DELIVERY_TIME;
|
||||
exports.SMS_TYPE = SMS_TYPE;
|
||||
exports.getValue = getValue;
|
||||
//# sourceMappingURL=../../.sourcemap/mp-weixin/utils/enumUtils.js.map
|
||||
Reference in New Issue
Block a user