Просмотр исходного кода

[new]调整会员页返回逻辑

zk 7 месяцев назад
Родитель
Сommit
a2b6825874
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      lib/module/member/member_controller.dart

+ 4 - 1
lib/module/member/member_controller.dart

@@ -302,7 +302,10 @@ class MemberController extends BaseController implements PaymentStatusCallback {
 
   void onPopBack({bool iosIsBack = true}) {
     if (Platform.isIOS) {
-      if (iosIsBack) back();
+      if (iosIsBack) {
+        back();
+        return;
+      }
       if (accountRepository.memberIsExpired()) {
         FocusScope.of(Get.context!).unfocus();
         userCancelsPaymentDisplay();