From b35827a40ae0a2ee91cc2e3be980de772638ff8c Mon Sep 17 00:00:00 2001 From: w-R <953969641@qq.com> Date: Wed, 8 Jun 2022 18:37:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0,=E9=83=A8=E5=88=86=E6=9B=B4?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/main_page.dart | 2 +- lib/mine/mine_page.dart | 2 +- lib/qr/invite_friends.dart | 4 ++-- lib/view_widget/update_dialog.dart | 8 ++++---- pubspec.yaml | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/main_page.dart b/lib/main_page.dart index 5b4f313e..d1274ac5 100644 --- a/lib/main_page.dart +++ b/lib/main_page.dart @@ -356,7 +356,7 @@ class _MainPage extends State with WidgetsBindingObserver { // baseData.data.appLastVersion = "1.0.4"; // baseData.data.appLastVersionUp = "1.0.1"; if(AppUtils.versionCompare(packageInfo.version,baseData.data?.appLastVersion) - && AppUtils.versionCompare(value.getString("appLastVersion")??"1.0.0",baseData.data?.appLastVersion)){ + && AppUtils.versionCompare(value.getString("appLastVersion"),baseData.data?.appLastVersion)){ showDialog( context: context, barrierDismissible: false, diff --git a/lib/mine/mine_page.dart b/lib/mine/mine_page.dart index 62aa589c..c621b1fa 100644 --- a/lib/mine/mine_page.dart +++ b/lib/mine/mine_page.dart @@ -398,7 +398,7 @@ class MinePageState extends State with AutomaticKeepAliveClientMixin { margin: EdgeInsets.only(right:14.w,bottom:10.h,left: 14.w), child: GestureDetector( onTap: (){ - Navigator.of(context).pushNamed('/router/welfare_page'); + Navigator.of(context).pushNamed('/router/invite_friends'); }, child:ClipRRect( child:Image.asset( diff --git a/lib/qr/invite_friends.dart b/lib/qr/invite_friends.dart index bf4ecfca..989cb402 100644 --- a/lib/qr/invite_friends.dart +++ b/lib/qr/invite_friends.dart @@ -47,7 +47,7 @@ class _InviteFriends extends State { phone = UserInfo.fromJson(jsonDecode(value.getString('user'))).inviteCode; setState(() {}); } - queryInviteMember(); + queryUserInfo(); queryInviteMember(); }); } @@ -114,7 +114,7 @@ class _InviteFriends extends State { } _onRefresh(){ - queryInviteMember(); + queryUserInfo(); queryInviteMember(); } diff --git a/lib/view_widget/update_dialog.dart b/lib/view_widget/update_dialog.dart index 97605d08..35460b29 100644 --- a/lib/view_widget/update_dialog.dart +++ b/lib/view_widget/update_dialog.dart @@ -30,10 +30,10 @@ class _UpdateDialog extends State { child: Center( child: Container( width: MediaQuery.of(context).size.width - 80.w, - height: 192.h, + height: 165.h, decoration: BoxDecoration( color: Colors.white, - borderRadius: BorderRadius.circular(8), + borderRadius: BorderRadius.circular(8.r), ), child: Column( children: [ @@ -52,7 +52,7 @@ class _UpdateDialog extends State { color: Color(0xFF000000), ), ), - SizedBox(height: 12,), + SizedBox(height: 12.h,), Text( "是否需要更新到最新版本?", style: TextStyle( @@ -138,7 +138,7 @@ class _UpdateDialog extends State { } updateApp() async { - String url = Platform.isIOS ? "itms-apps://itunes.apple.com/app/id1575124838":"http://application.lotus-wallet.com/huixaing?release_id=627cadff23389f2fe6d57cb1"; + String url = Platform.isIOS ? "itms-apps://itunes.apple.com/app/id1575124838":"http://application.lotus-wallet.com/huixaing?release_id="; if (await canLaunch(url)) { await launch(url); } else { diff --git a/pubspec.yaml b/pubspec.yaml index cd4fcbb9..81e6a4ae 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -3,7 +3,7 @@ description: 一心回乡. publish_to: 'none' # Remove this line if you wish to publish to pub.dev -version: 1.0.96+4 +version: 2.0.6+6 environment: sdk: ">=2.7.0 <3.0.0"