|
...
|
...
|
@@ -10,6 +10,7 @@ import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|
|
|
import 'package:fluwx/fluwx.dart' as fluwx;
|
|
|
|
import 'package:fluwx/fluwx.dart';
|
|
|
|
import 'package:one_key/app.dart';
|
|
|
|
import 'package:one_key/constant/constant.dart';
|
|
|
|
import 'package:one_key/models/checkbind_phone_model.dart';
|
|
|
|
import 'package:one_key/models/store_info.dart';
|
|
|
|
import 'package:one_key/net/dio_util.dart';
|
|
...
|
...
|
@@ -28,6 +29,7 @@ import 'package:one_key/widgets/round_button.dart'; |
|
|
|
import 'package:one_key/widgets/v_empty_view.dart';
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
import 'package:sign_in_with_apple/sign_in_with_apple.dart';
|
|
|
|
// import '../constant/constant.dart';
|
|
|
|
|
|
|
|
class LoginPage extends StatefulWidget {
|
|
|
|
@override
|
|
...
|
...
|
@@ -141,7 +143,11 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver { |
|
|
|
if (App.sp.getBool("isLogin") ?? false) {
|
|
|
|
Future.delayed(Duration(milliseconds: 200), () {
|
|
|
|
// NavigatorUtil.goHomePage(context);
|
|
|
|
NavigatorUtil.goHomePageSim(context);
|
|
|
|
if (Constant.simpleApp) {
|
|
|
|
NavigatorUtil.goHomePageSim(context);
|
|
|
|
} else {
|
|
|
|
NavigatorUtil.goHomePage(context);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
_checkWechat();
|
|
...
|
...
|
@@ -383,7 +389,6 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver { |
|
|
|
// setState(() {
|
|
|
|
// // errorText = value ?? "";
|
|
|
|
// });
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|