|
...
|
...
|
@@ -51,7 +51,7 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver { |
|
|
|
|
|
|
|
String errorText = ""; //错误提示
|
|
|
|
|
|
|
|
bool _check = true;
|
|
|
|
bool _check = false;
|
|
|
|
StreamSubscription<BaseWeChatResponse> streamSubscription;
|
|
|
|
OtherLoginProvider otherLoginProvider;
|
|
|
|
CreateStoreModel createStoreModel;
|
|
...
|
...
|
@@ -592,6 +592,10 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver { |
|
|
|
return GestureDetector(
|
|
|
|
onTap: () {
|
|
|
|
if (!isActivate) return;
|
|
|
|
if (!_check) {
|
|
|
|
Utils.showToast('请先仔细阅读并同意协议');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (App.sp.containsKey('unionid')) {
|
|
|
|
//微信登陆的时候,退出清空数据
|
|
|
|
App.sp.remove('openid');
|
|
...
|
...
|
@@ -728,7 +732,7 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver { |
|
|
|
width: ScreenUtil().setWidth(100)),
|
|
|
|
onTap: () {
|
|
|
|
if (!_check) {
|
|
|
|
Utils.showToast('请仔细阅读协议');
|
|
|
|
Utils.showToast('请先仔细阅读并同意协议');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
_iosLogin(value);
|
|
...
|
...
|
@@ -747,7 +751,7 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver { |
|
|
|
width: ScreenUtil().setWidth(100))),
|
|
|
|
onTap: () {
|
|
|
|
if (!_check) {
|
|
|
|
Utils.showToast('请仔细阅读协议');
|
|
|
|
Utils.showToast('请先仔细阅读并同意协议');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
_wxLogin();
|
...
|
...
|
|