feat: 球局状态操作done
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
import { OrderStatus, CancelType } from "@/services/orderService";
|
||||
|
||||
export function getOrderStatus(orderData) {
|
||||
const { order_status, cancel_type } = orderData
|
||||
const { order_status, cancel_type, order_no } = orderData
|
||||
if (!order_no) {
|
||||
return 'none'
|
||||
}
|
||||
const unPay = order_status === OrderStatus.PENDING && cancel_type === CancelType.NONE;
|
||||
const expired =
|
||||
order_status === OrderStatus.FINISHED ||
|
||||
|
||||
Reference in New Issue
Block a user