Ver Fonte

[new]调整会员页挽留支付弹窗逻辑

zk há 3 meses atrás
pai
commit
d881006198

+ 2 - 2
lib/module/member/member_controller.dart

@@ -300,9 +300,9 @@ class MemberController extends BaseController implements PaymentStatusCallback {
     _selectedPayWay.value = item;
   }
 
-  void onPopBack() {
+  void onPopBack({bool iosIsBack = true}) {
     if (Platform.isIOS) {
-      back();
+      if (iosIsBack) back();
       if (accountRepository.memberIsExpired()) {
         FocusScope.of(Get.context!).unfocus();
         userCancelsPaymentDisplay();

+ 2 - 2
lib/module/member/member_page.dart

@@ -73,10 +73,10 @@ class MemberPage extends BasePage<MemberController> {
     return PopScope(
       canPop: !Platform.isAndroid,
       onPopInvokedWithResult: (bool didPop, dynamic result) async {
-        if (didPop) {
+        if (didPop && Platform.isAndroid) {
           return;
         }
-        controller.onPopBack();
+        controller.onPopBack(iosIsBack: false);
       },
       child: Stack(
         children: [buildScrollView(), buildHeadBar(), buildMemberBottomView()],