|
@@ -134,7 +134,7 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver { |
|
@@ -134,7 +134,7 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver { |
|
134
|
}
|
134
|
}
|
|
135
|
}
|
135
|
}
|
|
136
|
|
136
|
|
|
137
|
- //判断是否登录
|
137
|
+ //判断是否登录
|
|
138
|
void isLogin() async {
|
138
|
void isLogin() async {
|
|
139
|
UserModel userModel = Provider.of<UserModel>(context, listen: false);
|
139
|
UserModel userModel = Provider.of<UserModel>(context, listen: false);
|
|
140
|
userModel.initUser();
|
140
|
userModel.initUser();
|
|
@@ -411,19 +411,20 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver { |
|
@@ -411,19 +411,20 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver { |
|
411
|
children: <Widget>[
|
411
|
children: <Widget>[
|
|
412
|
// VEmptyView(218 - App.statusBarHeight),
|
412
|
// VEmptyView(218 - App.statusBarHeight),
|
|
413
|
VEmptyView(80 + App.statusBarHeight),
|
413
|
VEmptyView(80 + App.statusBarHeight),
|
|
414
|
- Padding(
|
|
|
|
415
|
- padding: EdgeInsets.symmetric(
|
|
|
|
416
|
- horizontal: ScreenUtil().setWidth(40)),
|
|
|
|
417
|
- child: Row(
|
|
|
|
418
|
- mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
419
|
- children: [
|
|
|
|
420
|
- Image.asset(
|
|
|
|
421
|
- "assets/logo.png",
|
|
|
|
422
|
- width: ScreenUtil().setWidth(40 * 2),
|
|
|
|
423
|
- height: ScreenUtil().setWidth(40 * 2),
|
|
|
|
424
|
- )
|
|
|
|
425
|
- ],
|
|
|
|
426
|
- )),
|
414
|
+ // Padding(
|
|
|
|
415
|
+ // padding: EdgeInsets.symmetric(
|
|
|
|
416
|
+ // horizontal: ScreenUtil().setWidth(40)),
|
|
|
|
417
|
+ // child: Row(
|
|
|
|
418
|
+ // mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
419
|
+ // children: [
|
|
|
|
420
|
+ // Image.asset(
|
|
|
|
421
|
+ // "assets/logo.png",
|
|
|
|
422
|
+ // width: ScreenUtil().setWidth(40 * 2),
|
|
|
|
423
|
+ // height: ScreenUtil().setWidth(40 * 2),
|
|
|
|
424
|
+ // )
|
|
|
|
425
|
+ // ],
|
|
|
|
426
|
+ // )),
|
|
|
|
427
|
+ VEmptyView(80),
|
|
427
|
VEmptyView(120),
|
428
|
VEmptyView(120),
|
|
428
|
Image.asset(
|
429
|
Image.asset(
|
|
429
|
Utils.getImgPath('login_bg'),
|
430
|
Utils.getImgPath('login_bg'),
|
|
@@ -792,7 +793,7 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver { |
|
@@ -792,7 +793,7 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver { |
|
792
|
)),
|
793
|
)),
|
|
793
|
onTap: () {
|
794
|
onTap: () {
|
|
794
|
if (!_check) {
|
795
|
if (!_check) {
|
|
795
|
- DialogUtil.openAlertDialogLogin(context, 500,
|
796
|
+ DialogUtil.openAlertDialogLogin(context, 530,
|
|
796
|
onTap: () {
|
797
|
onTap: () {
|
|
797
|
Navigator.pop(context);
|
798
|
Navigator.pop(context);
|
|
798
|
_wxLogin();
|
799
|
_wxLogin();
|
|
@@ -829,7 +830,7 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver { |
|
@@ -829,7 +830,7 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver { |
|
829
|
)),
|
830
|
)),
|
|
830
|
onTap: () {
|
831
|
onTap: () {
|
|
831
|
if (!_check) {
|
832
|
if (!_check) {
|
|
832
|
- DialogUtil.openAlertDialogLogin(context, 500,
|
833
|
+ DialogUtil.openAlertDialogLogin(context, 530,
|
|
833
|
onTap: () {
|
834
|
onTap: () {
|
|
834
|
Navigator.pop(context);
|
835
|
Navigator.pop(context);
|
|
835
|
NavigatorUtil.goAccountLoginPage(context);
|
836
|
NavigatorUtil.goAccountLoginPage(context);
|
|
@@ -875,7 +876,7 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver { |
|
@@ -875,7 +876,7 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver { |
|
875
|
)),
|
876
|
)),
|
|
876
|
onTap: () {
|
877
|
onTap: () {
|
|
877
|
if (!_check) {
|
878
|
if (!_check) {
|
|
878
|
- DialogUtil.openAlertDialogLogin(context, 500,
|
879
|
+ DialogUtil.openAlertDialogLogin(context, 530,
|
|
879
|
onTap: () {
|
880
|
onTap: () {
|
|
880
|
Navigator.pop(context);
|
881
|
Navigator.pop(context);
|
|
881
|
_iosLogin(value);
|
882
|
_iosLogin(value);
|