From 535c2d75168bafae8c58a21072b1b1787f2d273c Mon Sep 17 00:00:00 2001 From: Megghy Date: Sun, 18 Feb 2024 19:57:28 +0800 Subject: [PATCH] update point views --- src/api/api-models.ts | 7 +- src/components/EventFetcherStatusCard.vue | 56 +++-- src/components/manage/PointHistoryCard.vue | 76 +++++-- src/components/manage/PointOrderCard.vue | 229 ++++++++++++++++++++- src/views/BiliAuthView.vue | 21 +- src/views/IndexView.vue | 35 +++- src/views/ManageLayout.vue | 18 +- src/views/ViewerLayout.vue | 94 +++++++-- src/views/manage/DashboardView.vue | 70 +++++-- src/views/manage/HistoryView.vue | 14 +- src/views/manage/point/PointManage.vue | 156 ++++++++++---- src/views/pointViews/PointGoodsView.vue | 52 ++++- src/views/pointViews/PointUserLayout.vue | 22 +- 13 files changed, 715 insertions(+), 135 deletions(-) diff --git a/src/api/api-models.ts b/src/api/api-models.ts index d5af4c4..eefc1ab 100644 --- a/src/api/api-models.ts +++ b/src/api/api-models.ts @@ -551,6 +551,8 @@ export interface ResponsePointGoodModel { type: GoodsTypes isAllowRebuy: boolean maxBuyCount?: number + collectUrl?: string + embedCollectUrl?: boolean } export interface ImageUploadModel { existImages: string[] @@ -559,7 +561,7 @@ export interface ImageUploadModel { export interface PointGoodsModel { id?: number name: string - count: number + count?: number price: number tags: string[] cover?: ImageUploadModel @@ -630,6 +632,9 @@ export interface ResponsePointOrder2UserModel { goods: ResponsePointGoodModel status: PointOrderStatus createAt: number + + trackingNumber?: string + expressCompany?: string } export enum PointOrderStatus { Pending, // 订单正在等待处理 diff --git a/src/components/EventFetcherStatusCard.vue b/src/components/EventFetcherStatusCard.vue index 7ca6dd9..15aafeb 100644 --- a/src/components/EventFetcherStatusCard.vue +++ b/src/components/EventFetcherStatusCard.vue @@ -8,7 +8,7 @@ const accountInfo = useAccount() const status = computed(() => { if (!accountInfo.value) return 'error' - if (accountInfo.value.eventFetcherOnline == true) { + if (accountInfo.value.eventFetcherOnline == true || accountInfo.value.isServerFetcherOnline == true) { if (accountInfo.value.eventFetcherStatus) { return 'warning' } else if (Object.keys(accountInfo.value.eventFetcherStatusV3 ?? {}).length > 0) { @@ -34,19 +34,29 @@ const status = computed(() => {
事件上传到本站后允许按照自定义范围进行查询, 并导出为 CSV 之类的表格
- 关于 EVENT-FETCHER + + 关于 EVENT-FETCHER + - - - 你所使用的版本 - - + diff --git a/src/components/manage/PointHistoryCard.vue b/src/components/manage/PointHistoryCard.vue index b2c74f3..78260d0 100644 --- a/src/components/manage/PointHistoryCard.vue +++ b/src/components/manage/PointHistoryCard.vue @@ -1,12 +1,28 @@