Commit 631919f8464d4b53433da3081c62700c93dfe0af

Authored by wdn127929
1 parent b89a7577

华为被拒,登录页面默认选中协议同意按钮

@@ -11,14 +11,14 @@ if (flutterRoot == null) { @@ -11,14 +11,14 @@ if (flutterRoot == null) {
11 throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 11 throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 } 12 }
13 13
14 -def flutterVersionCode = "273" 14 +def flutterVersionCode = "272"
15 if (flutterVersionCode == null) { 15 if (flutterVersionCode == null) {
16 - flutterVersionCode = '273' 16 + flutterVersionCode = '272'
17 } 17 }
18 18
19 -def flutterVersionName = "2.7.3" 19 +def flutterVersionName = "2.7.2"
20 if (flutterVersionName == null) { 20 if (flutterVersionName == null) {
21 - flutterVersionName = '2.7.3' 21 + flutterVersionName = '2.7.2'
22 } 22 }
23 23
24 apply plugin: 'com.android.application' 24 apply plugin: 'com.android.application'
@@ -51,7 +51,7 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver { @@ -51,7 +51,7 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver {
51 51
52 String errorText = ""; //错误提示 52 String errorText = ""; //错误提示
53 53
54 - bool _check = true; 54 + bool _check = false;
55 StreamSubscription<BaseWeChatResponse> streamSubscription; 55 StreamSubscription<BaseWeChatResponse> streamSubscription;
56 OtherLoginProvider otherLoginProvider; 56 OtherLoginProvider otherLoginProvider;
57 CreateStoreModel createStoreModel; 57 CreateStoreModel createStoreModel;
@@ -592,6 +592,10 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver { @@ -592,6 +592,10 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver {
592 return GestureDetector( 592 return GestureDetector(
593 onTap: () { 593 onTap: () {
594 if (!isActivate) return; 594 if (!isActivate) return;
  595 + if (!_check) {
  596 + Utils.showToast('请先仔细阅读并同意协议');
  597 + return;
  598 + }
595 if (App.sp.containsKey('unionid')) { 599 if (App.sp.containsKey('unionid')) {
596 //微信登陆的时候,退出清空数据 600 //微信登陆的时候,退出清空数据
597 App.sp.remove('openid'); 601 App.sp.remove('openid');
@@ -728,7 +732,7 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver { @@ -728,7 +732,7 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver {
728 width: ScreenUtil().setWidth(100)), 732 width: ScreenUtil().setWidth(100)),
729 onTap: () { 733 onTap: () {
730 if (!_check) { 734 if (!_check) {
731 - Utils.showToast('请仔细阅读协议'); 735 + Utils.showToast('请先仔细阅读并同意协议');
732 return; 736 return;
733 } 737 }
734 _iosLogin(value); 738 _iosLogin(value);
@@ -747,7 +751,7 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver { @@ -747,7 +751,7 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver {
747 width: ScreenUtil().setWidth(100))), 751 width: ScreenUtil().setWidth(100))),
748 onTap: () { 752 onTap: () {
749 if (!_check) { 753 if (!_check) {
750 - Utils.showToast('请仔细阅读协议'); 754 + Utils.showToast('请先仔细阅读并同意协议');
751 return; 755 return;
752 } 756 }
753 _wxLogin(); 757 _wxLogin();