-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #836 from LittleFish-233/master
支持查看G币记录,添加用户权重的抽奖
- Loading branch information
Showing
15 changed files
with
202 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
CnGalWebSite/CnGalWebSite.Components/wwwroot/css/bundle.min.css
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
CnGalWebSite/CnGalWebSite.DataModel/ViewModel/Commodities/GCoinsRecordBaseModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using CnGalWebSite.DataModel.Model; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace CnGalWebSite.DataModel.ViewModel.Commodities | ||
{ | ||
public class GCoinsRecordBaseModel | ||
{ | ||
public DateTime Time { get; set; } | ||
|
||
public int Count { get; set; } | ||
|
||
public string Note { get; set; } | ||
|
||
public UserIntegralSourceType SourceType { get; set; } | ||
} | ||
|
||
public class GCoinsRecordOverviewModel : GCoinsRecordBaseModel | ||
{ | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
CnGalWebSite/CnGalWebSite.Shared.MasaComponent/PC/Commodities/ListGCoinsRecordsCard.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
@inject IHttpService _httpService | ||
@inject IPopupService PopupService | ||
@inject NavigationManager NavigationManager | ||
|
||
<MDCard> | ||
<DataTableCard TModel="GCoinsRecordOverviewModel" Headers="_headers" ApiUrl="@(_baseUrl)" Title="@($"{_name}列表")" ShowAddButton="false" @ref="dataTableCard"> | ||
<ItemColContent> | ||
@if (context.Header.Value == nameof(GCoinsRecordOverviewModel.Time)) | ||
{ | ||
@context.Item.Time.ToString("yyyy-MM-dd HH:mm") | ||
} | ||
else | ||
{ | ||
@context.Value | ||
} | ||
</ItemColContent> | ||
</DataTableCard> | ||
|
||
</MDCard> | ||
|
||
@code { | ||
private string _baseUrl = "api/commodities/ListGCoinsRecord"; | ||
private string _name = "G币记录"; | ||
|
||
private List<DataTableHeader<GCoinsRecordOverviewModel>> _headers = new List<DataTableHeader<GCoinsRecordOverviewModel>> | ||
{ | ||
new (){ Text= "时间", Value= nameof(GCoinsRecordOverviewModel.Time)}, | ||
new (){ Text= "G币变动", Value= nameof(GCoinsRecordOverviewModel.Count)}, | ||
new (){ Text= "备注", Value= nameof(GCoinsRecordOverviewModel.Note)}, | ||
}; | ||
|
||
DataTableCard<GCoinsRecordOverviewModel> dataTableCard; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.