From 355fe96b2a4c7821256d9e8828d2cb9539904878 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期四, 05 五月 2022 19:29:16 +0800
Subject: [PATCH] 功能完善

---
 flutter_module/lib/mine.dart |   53 +++++++++++++++++++++++++++++------------------------
 1 files changed, 29 insertions(+), 24 deletions(-)

diff --git a/flutter_module/lib/mine.dart b/flutter_module/lib/mine.dart
index eced5ab..7ac813d 100644
--- a/flutter_module/lib/mine.dart
+++ b/flutter_module/lib/mine.dart
@@ -8,6 +8,7 @@
 import 'package:makemoney/api/user_api.dart';
 import 'package:makemoney/model/team/team_info_model.dart';
 import 'package:makemoney/ui/widget/ad_express.dart';
+import 'package:makemoney/utils/config_util.dart';
 import 'package:makemoney/utils/ui_utils.dart';
 import 'package:share_plus/share_plus.dart';
 
@@ -222,24 +223,26 @@
                                     _teamInfoModel == null
                                         ? 0
                                         : _teamInfoModel!.firstTeamCount!,
-                                    "鐩存帴闃熷憳", () {
+                                    "闃熷憳", () {
                                   jumpPage("TeamPage", params: {"first": true});
                                 }),
+                                // const SizedBox(
+                                //   width: 35,
+                                // ),
+                                // userContent(
+                                //     _teamInfoModel == null
+                                //         ? 0
+                                //         : _teamInfoModel!.secondTeamCount!,
+                                //     "闂存帴闃熷憳", () {
+                                //   jumpPage("TeamPage",
+                                //       params: {"first": false});
+                                // }),
                                 const SizedBox(
                                   width: 35,
                                 ),
-                                userContent(
-                                    _teamInfoModel == null
-                                        ? 0
-                                        : _teamInfoModel!.secondTeamCount!,
-                                    "闂存帴闃熷憳", () {
-                                  jumpPage("TeamPage",
-                                      params: {"first": false});
-                                }),
-                                const SizedBox(
-                                  width: 35,
-                                ),
-                                userContent(msgCount, "娑堟伅", () {},
+                                userContent(msgCount, "娑堟伅", () {
+                                  jumpPage("MsgPage");
+                                },
                                     color: msgCount > 0
                                         ? COLOR_HIGHLIGHT
                                         : COLOR_CONTENT),
@@ -396,23 +399,25 @@
                                       "assets/imgs/mine/ic_fun_help.png",
                                       "甯姪涓績",
                                       27, () {
-                                    jumpPage("AdvicePage", needLogin: false);
+                                    ConfigUtil.getConfig(context, "helpLink")
+                                        .then((value) {
+                                      jumpPage("BrowserPage",
+                                          params: {
+                                            "url": value,
+                                            "title": "甯姪涓績"
+                                          },
+                                          needLogin: false);
+                                    });
                                   }),
                                   functionWidget(
                                       "assets/imgs/mine/ic_fun_kefu.png",
                                       "鍦ㄧ嚎瀹㈡湇",
                                       28.5, () {
-                                    MySharedPreferences.getInstance()
-                                        .getString("contactUsLink")
+                                    ConfigUtil.getConfig(context, "kefu")
                                         .then((value) {
-                                      if (!StringUtil.isNullOrEmpty(value)) {
-                                        jumpPage("BrowserPage",
-                                            params: {
-                                              "url": value,
-                                              "title": "鍦ㄧ嚎瀹㈡湇"
-                                            },
-                                            needLogin: false);
-                                      }
+                                      jumpPage("BrowserPage",
+                                          params: {"url": value, "title": "瀹㈡湇"},
+                                          needLogin: false);
                                     });
                                   }),
                                   functionWidget(

--
Gitblit v1.8.0