| | |
| | | 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'; |
| | | |
| | |
| | | _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), |
| | |
| | | "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( |