diff --git a/frontend/src/views/OrdersView.vue b/frontend/src/views/OrdersView.vue index c94d5f6..543324a 100644 --- a/frontend/src/views/OrdersView.vue +++ b/frontend/src/views/OrdersView.vue @@ -8,6 +8,7 @@ import { api, jsonBody } from '../api' import { openPayment } from '../payment' import { refreshMe } from '../auth' import Icon from '../components/Icon.vue' +import SelectMenu from '../components/SelectMenu.vue' const router = useRouter() const items = ref([]) @@ -34,6 +35,7 @@ function fmt(unix) { return `${d.getFullYear()}-${p(d.getMonth() + 1)}-${p(d.getDate())} ${p(d.getHours())}:${p(d.getMinutes())}` } +const STATUS_OPTS = [{ value: '', label: '全部状态' }, { value: 'pending', label: '待支付' }, { value: 'paid', label: '已支付' }, { value: 'cancelled', label: '已取消' }] async function load() { loading.value = true const qs = new URLSearchParams({ limit: String(pageSize), offset: String((page.value - 1) * pageSize) }) @@ -91,27 +93,24 @@ async function cont(o) {