XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

STHApplication

【MAUI】寄当家——安卓端交易管理系统

公开
关注 0 Fork 0 Star 0
UTF-8
using JiDangJia.Services;
using JiDangJia.Views;

namespace JiDangJia;

public sealed class CommunitySettingsPage : ContentPage
{
    public CommunitySettingsPage()
    {
        Title="社群设置";var auth=AuthClient.Current;
        var body=Ui.Stack(Ui.Card(Ui.Stack(Ui.Text(AppProduct.Name,24,bold:true),Ui.Text(auth.Name+" · "+auth.Username,13,Ui.Muted),Ui.Text("版本 "+AppInfo.Current.VersionString,11,Ui.Muted))));body.Padding=18;
        if(auth.IsAdmin)body.Add(Ui.Button("进入社群管理后台",()=>Navigation.PushAsync(new AdminPage())));
        body.Add(Ui.Button("账户与安全",()=>Navigation.PushAsync(new CommunityAccountPage()),false));
        body.Add(Ui.Button("个人 / 企业认证",()=>Navigation.PushAsync(new IdentityPage()),false));
        body.Add(Ui.Button("管理关注 / 备注",()=>Navigation.PushAsync(new ContactsPage(true)),false));
        body.Add(Ui.Button("我的发布",()=>Navigation.PushAsync(new PostsPage("MINE")),false));
        body.Add(Ui.Button("密码 / 指纹解锁与数据清除",()=>Navigation.PushAsync(new SecurityPage()),false));
        body.Add(Ui.Button("私信通知",()=>Navigation.PushAsync(new NotificationSettingsPage()),false));
        body.Add(Ui.Button("聊天记录与存储",()=>Navigation.PushAsync(new ChatStoragePage()),false));
        body.Add(Ui.Button("客服与反馈",()=>Navigation.PushAsync(new SupportPage()),false));
        body.Add(Ui.Button("协议与隐私政策",()=>Navigation.PushAsync(new LegalCenterPage()),false));
        body.Add(Ui.Button("检查 APP 更新",()=>AppUpdates.Check(this,true),false));
        body.Add(Ui.Button("关于我们",()=>Navigation.PushAsync(new AboutPage()),false));
        Content=new ScrollView{Content=body};
    }
}