From dccf21527f309c8fbc88362c5f0c177f13da8d23 Mon Sep 17 00:00:00 2001 From: Putoo <290555932@qq.com> Date: Tue, 28 Apr 2026 14:41:12 +0800 Subject: [PATCH] 333 --- .../Controllers/Pub/PubController.cs | 4 +- Web/src/app.vue | 3 +- Web/src/extends/PageExtend.ts | 1 + Web/src/pages/index.vue | 179 ++++++++++-------- 4 files changed, 101 insertions(+), 86 deletions(-) diff --git a/Service/Application.Web/Controllers/Pub/PubController.cs b/Service/Application.Web/Controllers/Pub/PubController.cs index ce95938..9447200 100644 --- a/Service/Application.Web/Controllers/Pub/PubController.cs +++ b/Service/Application.Web/Controllers/Pub/PubController.cs @@ -34,8 +34,8 @@ namespace Application.Web.Controllers.Pub var areaData = await _areaService.GetAreaData(); var notice = await _noticeService.GetNoticeDataByTake(5); - - return PoAction.Ok(new { area = areaData ,notice,isOnline}); + int OnCount = 100; + return PoAction.Ok(new { area = areaData ,notice,isOnline,onCount=OnCount}); } } } \ No newline at end of file diff --git a/Web/src/app.vue b/Web/src/app.vue index 5197a4b..635105c 100644 --- a/Web/src/app.vue +++ b/Web/src/app.vue @@ -3,6 +3,7 @@ + @@ -53,4 +54,4 @@ onMounted(() => { \ No newline at end of file + diff --git a/Web/src/extends/PageExtend.ts b/Web/src/extends/PageExtend.ts index 8a96e38..300f4fb 100644 --- a/Web/src/extends/PageExtend.ts +++ b/Web/src/extends/PageExtend.ts @@ -8,4 +8,5 @@ export class PageExtend { const value = route.query[params] return value ? String(value) : '' } + } \ No newline at end of file diff --git a/Web/src/pages/index.vue b/Web/src/pages/index.vue index ca18451..4645a07 100644 --- a/Web/src/pages/index.vue +++ b/Web/src/pages/index.vue @@ -1,132 +1,145 @@