diff --git a/src/Applications/Settings/AppInfo.cs b/src/Applications/Settings/AppInfo.cs
index 611c9d5..d8d6fe7 100644
--- a/src/Applications/Settings/AppInfo.cs
+++ b/src/Applications/Settings/AppInfo.cs
@@ -136,5 +136,15 @@ public static string Version
///
public static string LicenseUrl => $"https://github.com/{Company}/{AppName}/blob/main/LICENSE";
+ ///
+ /// 官方QQ群号码
+ ///
+ public const string QQGroupNumber = "1012116859";
+
+ ///
+ /// 加入QQ群链接
+ ///
+ public const string QQGroupUrl = "https://qm.qq.com/q/lFE1Cc8d5m";
+
#endregion
}
\ No newline at end of file
diff --git a/src/Assets/Images/qq.svg b/src/Assets/Images/qq.svg
new file mode 100644
index 0000000..ac20b9b
--- /dev/null
+++ b/src/Assets/Images/qq.svg
@@ -0,0 +1,3 @@
+
\ No newline at end of file
diff --git a/src/ViewModels/AboutPageViewModel.cs b/src/ViewModels/AboutPageViewModel.cs
index 7941062..fb4bd56 100644
--- a/src/ViewModels/AboutPageViewModel.cs
+++ b/src/ViewModels/AboutPageViewModel.cs
@@ -274,6 +274,14 @@ private void InitializeFeatureItems()
ButtonText = "查看",
Command = new RelayCommand(() => OpenUrl(AppInfo.LicenseUrl))
});
+
+ FeatureItems.Add(new FeatureItem
+ {
+ IconSource = "/Assets/Images/qq.svg",
+ Title = $"官方QQ群: {AppInfo.QQGroupNumber}",
+ ButtonText = "加入",
+ Command = new RelayCommand(() => OpenUrl(AppInfo.QQGroupUrl))
+ });
}
}
diff --git a/src/ViewModels/HomePageViewModel.cs b/src/ViewModels/HomePageViewModel.cs
index 83af366..5f867a4 100644
--- a/src/ViewModels/HomePageViewModel.cs
+++ b/src/ViewModels/HomePageViewModel.cs
@@ -8,7 +8,7 @@ namespace MarketAssistant.ViewModels;
///
/// 首页ViewModel
///
-public class HomePageViewModel : ViewModelBase, IDisposable
+public partial class HomePageViewModel : ViewModelBase, IDisposable
{
///
/// 搜索功能ViewModel