Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/Applications/Settings/AppInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,5 +136,15 @@ public static string Version
/// </summary>
public static string LicenseUrl => $"https://github.com/{Company}/{AppName}/blob/main/LICENSE";

/// <summary>
/// 官方QQ群号码
/// </summary>
public const string QQGroupNumber = "1012116859";

/// <summary>
/// 加入QQ群链接
/// </summary>
public const string QQGroupUrl = "https://qm.qq.com/q/lFE1Cc8d5m";

#endregion
}
3 changes: 3 additions & 0 deletions src/Assets/Images/qq.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/ViewModels/AboutPageViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
});
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/ViewModels/HomePageViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace MarketAssistant.ViewModels;
/// <summary>
/// 首页ViewModel
/// </summary>
public class HomePageViewModel : ViewModelBase, IDisposable
public partial class HomePageViewModel : ViewModelBase, IDisposable
Copy link

Copilot AI Dec 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The addition of the 'partial' keyword to HomePageViewModel appears to be unrelated to the QQ group feature described in this PR. While this change aligns with the codebase convention (all other ViewModels use 'partial' for MVVM Toolkit source generation), it should ideally be in a separate commit or PR focused on consistency improvements, or documented in the PR description as an additional fix.

Suggested change
public partial class HomePageViewModel : ViewModelBase, IDisposable
public class HomePageViewModel : ViewModelBase, IDisposable

Copilot uses AI. Check for mistakes.
{
/// <summary>
/// 搜索功能ViewModel
Expand Down
Loading