Skip to content

Commit c21d43b

Browse files
authored
Merge pull request #18 from X2Agent/feat/qq
新增官方QQ群入口及相关展示功能
2 parents 6d2b1bf + 5ca3dd0 commit c21d43b

4 files changed

Lines changed: 22 additions & 1 deletion

File tree

src/Applications/Settings/AppInfo.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,5 +136,15 @@ public static string Version
136136
/// </summary>
137137
public static string LicenseUrl => $"https://github.com/{Company}/{AppName}/blob/main/LICENSE";
138138

139+
/// <summary>
140+
/// 官方QQ群号码
141+
/// </summary>
142+
public const string QQGroupNumber = "1012116859";
143+
144+
/// <summary>
145+
/// 加入QQ群链接
146+
/// </summary>
147+
public const string QQGroupUrl = "https://qm.qq.com/q/lFE1Cc8d5m";
148+
139149
#endregion
140150
}

src/Assets/Images/qq.svg

Lines changed: 3 additions & 0 deletions
Loading

src/ViewModels/AboutPageViewModel.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,14 @@ private void InitializeFeatureItems()
274274
ButtonText = "查看",
275275
Command = new RelayCommand(() => OpenUrl(AppInfo.LicenseUrl))
276276
});
277+
278+
FeatureItems.Add(new FeatureItem
279+
{
280+
IconSource = "/Assets/Images/qq.svg",
281+
Title = $"官方QQ群: {AppInfo.QQGroupNumber}",
282+
ButtonText = "加入",
283+
Command = new RelayCommand(() => OpenUrl(AppInfo.QQGroupUrl))
284+
});
277285
}
278286
}
279287

src/ViewModels/HomePageViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace MarketAssistant.ViewModels;
88
/// <summary>
99
/// 首页ViewModel
1010
/// </summary>
11-
public class HomePageViewModel : ViewModelBase, IDisposable
11+
public partial class HomePageViewModel : ViewModelBase, IDisposable
1212
{
1313
/// <summary>
1414
/// 搜索功能ViewModel

0 commit comments

Comments
 (0)