Authored by lijing

优化三元运算符

... ... @@ -364,9 +364,9 @@ const getOrders = (params) => {
// status: value.status === 0 ? true : false,
uid: value.uid,
order_code: value.order_code,
goluck: value.status === 0 ? true : false,
lucky: value.status === 1 ? true : false,
unlucky: value.status === 2 ? true : false,
goluck: value.status === 0,
lucky: value.status === 1,
unlucky: value.status === 2,
});
// 计算商品总数
... ...