Browse Source

更新,部分更改

zyh
w-R 3 years ago
parent
commit
b35827a40a
  1. 2
      lib/main_page.dart
  2. 2
      lib/mine/mine_page.dart
  3. 4
      lib/qr/invite_friends.dart
  4. 8
      lib/view_widget/update_dialog.dart
  5. 2
      pubspec.yaml

2
lib/main_page.dart

@ -356,7 +356,7 @@ class _MainPage extends State<MainPage> with WidgetsBindingObserver {
// baseData.data.appLastVersion = "1.0.4"; // baseData.data.appLastVersion = "1.0.4";
// baseData.data.appLastVersionUp = "1.0.1"; // baseData.data.appLastVersionUp = "1.0.1";
if(AppUtils.versionCompare(packageInfo.version,baseData.data?.appLastVersion) 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( showDialog(
context: context, context: context,
barrierDismissible: false, barrierDismissible: false,

2
lib/mine/mine_page.dart

@ -398,7 +398,7 @@ class MinePageState extends State<MinePage> with AutomaticKeepAliveClientMixin {
margin: EdgeInsets.only(right:14.w,bottom:10.h,left: 14.w), margin: EdgeInsets.only(right:14.w,bottom:10.h,left: 14.w),
child: GestureDetector( child: GestureDetector(
onTap: (){ onTap: (){
Navigator.of(context).pushNamed('/router/welfare_page'); Navigator.of(context).pushNamed('/router/invite_friends');
}, },
child:ClipRRect( child:ClipRRect(
child:Image.asset( child:Image.asset(

4
lib/qr/invite_friends.dart

@ -47,7 +47,7 @@ class _InviteFriends extends State<InviteFriends> {
phone = UserInfo.fromJson(jsonDecode(value.getString('user'))).inviteCode; phone = UserInfo.fromJson(jsonDecode(value.getString('user'))).inviteCode;
setState(() {}); setState(() {});
} }
queryInviteMember(); queryUserInfo();
queryInviteMember(); queryInviteMember();
}); });
} }
@ -114,7 +114,7 @@ class _InviteFriends extends State<InviteFriends> {
} }
_onRefresh(){ _onRefresh(){
queryInviteMember(); queryUserInfo();
queryInviteMember(); queryInviteMember();
} }

8
lib/view_widget/update_dialog.dart

@ -30,10 +30,10 @@ class _UpdateDialog extends State<UpdateDialog> {
child: Center( child: Center(
child: Container( child: Container(
width: MediaQuery.of(context).size.width - 80.w, width: MediaQuery.of(context).size.width - 80.w,
height: 192.h, height: 165.h,
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,
borderRadius: BorderRadius.circular(8), borderRadius: BorderRadius.circular(8.r),
), ),
child: Column( child: Column(
children: [ children: [
@ -52,7 +52,7 @@ class _UpdateDialog extends State<UpdateDialog> {
color: Color(0xFF000000), color: Color(0xFF000000),
), ),
), ),
SizedBox(height: 12,), SizedBox(height: 12.h,),
Text( Text(
"是否需要更新到最新版本?", "是否需要更新到最新版本?",
style: TextStyle( style: TextStyle(
@ -138,7 +138,7 @@ class _UpdateDialog extends State<UpdateDialog> {
} }
updateApp() async { 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)) { if (await canLaunch(url)) {
await launch(url); await launch(url);
} else { } else {

2
pubspec.yaml

@ -3,7 +3,7 @@ description: 一心回乡.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev 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: environment:
sdk: ">=2.7.0 <3.0.0" sdk: ">=2.7.0 <3.0.0"

Loading…
Cancel
Save