|
@@ -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();
|