diff --git a/CnGalWebSite/CnGalWebSite.Shared/Component/PlayedGames/ListGameRecordCard.razor b/CnGalWebSite/CnGalWebSite.Shared/Component/PlayedGames/ListGameRecordCard.razor index 8c5c7b793..f09cee787 100644 --- a/CnGalWebSite/CnGalWebSite.Shared/Component/PlayedGames/ListGameRecordCard.razor +++ b/CnGalWebSite/CnGalWebSite.Shared/Component/PlayedGames/ListGameRecordCard.razor @@ -15,13 +15,13 @@
-
+
-
+
-
+
@*@if (IsAnniversary) diff --git a/CnGalWebSite/CnGalWebSite.Shared/Component/PlayedGames/SteamUserInforCard.razor b/CnGalWebSite/CnGalWebSite.Shared/Component/PlayedGames/SteamUserInforCard.razor index 7e1076fc4..4c5150896 100644 --- a/CnGalWebSite/CnGalWebSite.Shared/Component/PlayedGames/SteamUserInforCard.razor +++ b/CnGalWebSite/CnGalWebSite.Shared/Component/PlayedGames/SteamUserInforCard.razor @@ -1,36 +1,32 @@ - +@inject IEventService _eventService @if (IsAnniversary) { - foreach (var item in SteamUserInfors) - { - + -
- -
-
@(GameRecords.Count)
-
总库存
-
-
-
@((GameRecords.Count*100.0/ TotalCount).ToString("0.0")+" %")
-
@($"收集率(站内总计 {TotalCount})")
-
-
-
@((GameRecords.Sum(s=>s.PlayDuration)/60.0).ToString("0.0")+" h")
-
总时长
-
-
-
@(item.Price.ToString("0")+ " ¥")
-
总价格
-
+
+ - - } - +
+
@(GameRecords.Count)
+
总库存
+
+
+
@((GameRecords.Count*100.0/ TotalCount).ToString("0.0")+" %")
+
@($"收集率(站内总计 {TotalCount})")
+
+
+
@((GameRecords.Sum(s=>s.PlayDuration)/60.0).ToString("0.0")+" h")
+
总时长
+
+
+
@(SteamUserInfors.Sum(s=>s.Price).ToString("0")+ " ¥")
+
总价格
+
+
+ } else { @@ -160,10 +156,19 @@ else public bool IsAnniversary { get; set; } [Parameter] public int TotalCount { get; set; } - + [Parameter] + public PersonalSpaceViewModel UserInfoModel { get; set; } [CascadingParameter] public ErrorHandler ErrorHandler { get; set; } + public async Task OnClick() + { + foreach (var item in SteamUserInfors) + { + await _eventService.OpenNewPage("https://steamcommunity.com/profiles/" + item.SteamId); + } + } + } diff --git a/CnGalWebSite/CnGalWebSite.Shared/Component/Space/UserPlayedGameListView.razor b/CnGalWebSite/CnGalWebSite.Shared/Component/Space/UserPlayedGameListView.razor index ba4f4507d..6785a0ab0 100644 --- a/CnGalWebSite/CnGalWebSite.Shared/Component/Space/UserPlayedGameListView.razor +++ b/CnGalWebSite/CnGalWebSite.Shared/Component/Space/UserPlayedGameListView.razor @@ -7,7 +7,7 @@ @inject IEventService _eventService
- + @if (IsCurrentUser) { @@ -30,7 +30,7 @@ @if (isReady) { - + @if (GameRecords.Count == 0) {
@@ -61,6 +61,9 @@ public bool IsAnniversary { get; set; } [Parameter] public int TotalCount { get; set; } + [Parameter] + public PersonalSpaceViewModel UserInfoModel { get; set; } + [CascadingParameter] public ErrorHandler ErrorHandler { get; set; } diff --git a/CnGalWebSite/CnGalWebSite.Shared/MasaComponent/PC/Home/Anniversaries/PlayedGames/MainCard.razor b/CnGalWebSite/CnGalWebSite.Shared/MasaComponent/PC/Home/Anniversaries/PlayedGames/MainCard.razor index 99f7b1717..c9b2c68c2 100644 --- a/CnGalWebSite/CnGalWebSite.Shared/MasaComponent/PC/Home/Anniversaries/PlayedGames/MainCard.razor +++ b/CnGalWebSite/CnGalWebSite.Shared/MasaComponent/PC/Home/Anniversaries/PlayedGames/MainCard.razor @@ -19,7 +19,7 @@ {
- +
}