From d31199298368776a0244d55423c777903bd3b4e4 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Mon, 2 Feb 2026 02:29:26 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20vip=20modal=20content=E8=BD=AC?= =?UTF-8?q?=E5=88=B0=E5=8D=95=E7=8B=AC=E7=9A=84=E7=BB=84=E4=BB=B6=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/vip-button/api.ts | 7 + .../src/components/vip-button/index.vue | 300 +----------------- .../vip-button/vip-modal-content.vue | 295 +++++++++++++++++ .../controller/sys/plus/plus-controller.ts | 5 + 4 files changed, 316 insertions(+), 291 deletions(-) create mode 100644 packages/ui/certd-client/src/components/vip-button/vip-modal-content.vue diff --git a/packages/ui/certd-client/src/components/vip-button/api.ts b/packages/ui/certd-client/src/components/vip-button/api.ts index 7e05c3375..f76bf7379 100644 --- a/packages/ui/certd-client/src/components/vip-button/api.ts +++ b/packages/ui/certd-client/src/components/vip-button/api.ts @@ -15,3 +15,10 @@ export async function getVipTrial(vipType: string) { data: { vipType }, }); } + +export async function getTodayVipOrderCount() { + return await request({ + url: "/sys/plus/getTodayVipOrderCount", + method: "post", + }); +} diff --git a/packages/ui/certd-client/src/components/vip-button/index.vue b/packages/ui/certd-client/src/components/vip-button/index.vue index e72457e8d..68a7d61c1 100644 --- a/packages/ui/certd-client/src/components/vip-button/index.vue +++ b/packages/ui/certd-client/src/components/vip-button/index.vue @@ -14,16 +14,20 @@ + + diff --git a/packages/ui/certd-server/src/controller/sys/plus/plus-controller.ts b/packages/ui/certd-server/src/controller/sys/plus/plus-controller.ts index b7720b0a5..c8902f3aa 100644 --- a/packages/ui/certd-server/src/controller/sys/plus/plus-controller.ts +++ b/packages/ui/certd-server/src/controller/sys/plus/plus-controller.ts @@ -48,6 +48,11 @@ export class SysPlusController extends BaseController { const res = await this.plusService.getVipTrial(vipType); return this.ok(res); } + @Post('/getTodayVipOrderCount', { summary: 'sys:settings:edit' }) + async getTodayVipOrderCount() { + const res = await this.plusService.getTodayOrderCount(); + return this.ok(res); + } // // @Get('/test', { summary: Constants.per.guest }) // async test() {