diff --git a/lib/controller/mine/mine_controller.dart b/lib/controller/mine/mine_controller.dart index 1517941..2b4bc24 100644 --- a/lib/controller/mine/mine_controller.dart +++ b/lib/controller/mine/mine_controller.dart @@ -23,7 +23,7 @@ class MineController extends GetxController { {"icon": Assets.imagesRose, "title": "我的玫瑰", "subTitle": "新人限时福利", "path": () => RosePage()}, {"icon": Assets.imagesWallet, "title": "我的钱包", "subTitle": "提现无门槛", "path": () => MyWalletPage()}, {"icon": Assets.imagesShop, "title": "商城中心", "subTitle": "不定期更新商品", "path": () => Null}, - {"icon": Assets.imagesCert, "title": "认证中心", "subTitle": "未认证", "path": () => AuthCenterPage()}, + {"icon": Assets.imagesCert, "title": "认证中心", "subTitle": GlobalData().userData?.identityCard == null || GlobalData().userData?.profilePhoto == null ? "未认证" : "已认证", "path": () => AuthCenterPage()}, {"icon": Assets.imagesMatchmaker, "title": "红娘等级", "subTitle": "实习红娘", "path": () => MatchmakerUpdatePage()}, ].obs; diff --git a/lib/controller/mine/rose_controller.dart b/lib/controller/mine/rose_controller.dart index d10bbdb..c4047aa 100644 --- a/lib/controller/mine/rose_controller.dart +++ b/lib/controller/mine/rose_controller.dart @@ -94,7 +94,7 @@ class RoseController extends GetxController with WidgetsBindingObserver { SmartDialog.showToast('支付成功'); launchWX.value = false; count.value = 0; - Get.back(); + getRoseNum(); } else { count.value += 1; if(count.value < 3){ diff --git a/lib/pages/mine/mine_page.dart b/lib/pages/mine/mine_page.dart index cbfa843..d59d633 100644 --- a/lib/pages/mine/mine_page.dart +++ b/lib/pages/mine/mine_page.dart @@ -211,7 +211,7 @@ class _MinePageState extends State with AutomaticKeepAliveClientMixin{ runSpacing: 8.w, children: [ ...controller.blockList.map((e){ - return BlockItem(item: e, showWaring: e["title"] == "认证中心", path: e["path"],); + return BlockItem(item: e, showWaring: e["title"] == "认证中心" && (GlobalData().userData?.identityCard == null || GlobalData().userData?.profilePhoto == null), path: e["path"],); }), ], ), @@ -291,7 +291,11 @@ class _BlockItemState extends State { return InkWell( onTap: (){ // context.pushNamed(widget.path); - Get.to(widget.path); + Get.to(widget.path)?.then((e){ + setState(() { + + }); + }); // RouteGuardService.to.toWithAuth(widget.path, null); }, child: Container( diff --git a/lib/pages/mine/rose_history_page.dart b/lib/pages/mine/rose_history_page.dart index be5546d..8ee3365 100644 --- a/lib/pages/mine/rose_history_page.dart +++ b/lib/pages/mine/rose_history_page.dart @@ -188,6 +188,7 @@ class _SendItemState extends State { Text( widget.item.tradeType == 201 ? "聊天花费" : widget.item.tradeType == 202 ? "赠送礼物" : + widget.item.tradeType == 203 ? "连麦" : widget.item.tradeType == 101 ? "充值" : "", style: TextStyle( fontSize: 13.w, @@ -207,7 +208,7 @@ class _SendItemState extends State { ], ), Text( - "${widget.item.tradeType == 101 ? "+" : "-"}${widget.item.tradeBalance}支", + "${widget.item.tradeBalance}支", style: TextStyle( fontSize: 13.w, color: const Color.fromRGBO(227, 84, 84, 1)