Commit 631919f8464d4b53433da3081c62700c93dfe0af

Authored by wdn127929
1 parent b89a7577

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

... ... @@ -11,14 +11,14 @@ if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}
def flutterVersionCode = "273"
def flutterVersionCode = "272"
if (flutterVersionCode == null) {
flutterVersionCode = '273'
flutterVersionCode = '272'
}
def flutterVersionName = "2.7.3"
def flutterVersionName = "2.7.2"
if (flutterVersionName == null) {
flutterVersionName = '2.7.3'
flutterVersionName = '2.7.2'
}
apply plugin: 'com.android.application'
... ...
... ... @@ -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();
... ...