Browse Source

1、短信获取失败的提示

2、个人信息淘宝授权
3、我的点击设置问题
tags/0.0.3+1^0
PH2 3 years ago
parent
commit
93434d0db0
8 changed files with 30 additions and 7 deletions
  1. +1
    -1
      lib/pages/security_page/security_bind_alipay/security_bind_alipay_page.dart
  2. +1
    -1
      lib/pages/security_page/security_mobile/security_mobile.dart
  3. +1
    -1
      lib/pages/security_page/security_mobile/security_mobile_unbind.dart
  4. +21
    -0
      lib/pages/security_page/security_page.dart
  5. +1
    -1
      lib/pages/security_page/security_password/security_password.dart
  6. +1
    -1
      lib/pages/security_page/security_unbind_alipay/security_unbin_alipay.dart
  7. +3
    -1
      lib/pages/setting_page/setting_page.dart
  8. +1
    -1
      lib/widgets/mine/mine_nav/mine_nav.dart

+ 1
- 1
lib/pages/security_page/security_bind_alipay/security_bind_alipay_page.dart View File

@@ -225,7 +225,7 @@ class _SecurityBindAlipayContainerState
setState(() {}); setState(() {});
}); });
}else{ }else{
Fluttertoast.showToast(msg: '获取验证码失败');
// Fluttertoast.showToast(msg: '获取验证码失败');
} }
} }
} }

+ 1
- 1
lib/pages/security_page/security_mobile/security_mobile.dart View File

@@ -197,7 +197,7 @@ class _SecurityMobileContainerState extends State<_SecurityMobileContainer> {
setState(() {}); setState(() {});
}); });
} else { } else {
Fluttertoast.showToast(msg: '获取验证码失败');
// Fluttertoast.showToast(msg: '获取验证码失败');
} }
} }




+ 1
- 1
lib/pages/security_page/security_mobile/security_mobile_unbind.dart View File

@@ -164,7 +164,7 @@ class _SecurityMobileUnbindState extends State<SecurityMobileUnbind> {
setState(() {}); setState(() {});
}); });
} else { } else {
Fluttertoast.showToast(msg: '获取验证码失败');
// Fluttertoast.showToast(msg: '获取验证码失败');
} }
} }




+ 21
- 0
lib/pages/security_page/security_page.dart View File

@@ -4,6 +4,7 @@ import 'package:zhiying_base_widget/pages/security_page/models/security_style_mo
import 'package:zhiying_base_widget/pages/security_page/security_page_bloc.dart'; import 'package:zhiying_base_widget/pages/security_page/security_page_bloc.dart';
import 'package:zhiying_comm/util/base_bloc.dart'; import 'package:zhiying_comm/util/base_bloc.dart';
import 'package:zhiying_comm/zhiying_comm.dart'; import 'package:zhiying_comm/zhiying_comm.dart';
import 'package:provider/provider.dart';


/// ///
/// 账号安全 /// 账号安全
@@ -41,6 +42,14 @@ class _SecurityContainer extends StatefulWidget {


class _SecurityContainerState extends State<_SecurityContainer> { class _SecurityContainerState extends State<_SecurityContainer> {
SecurityPageBloc _bloc; SecurityPageBloc _bloc;
UserInfoModel _user;

@override
void didChangeDependencies() {
_user = Provider.of<UserInfoNotifier>(context).userInfo;
super.didChangeDependencies();
}



@override @override
void initState() { void initState() {
@@ -149,6 +158,18 @@ class _SecurityContainerState extends State<_SecurityContainer> {
), ),
), ),
onTap: () async { onTap: () async {
// 淘宝授权不跳转
if(item.skipIdentifier == 'pub.flutter.account_security_toabao_auth'){
if(_user == null || EmptyUtil.isEmpty(_user.token)){
RouterUtil.goLogin(context);
return;
}
if( !(_user?.isTBAuth ?? false)) {
// 淘宝授权
await TaobaoAuth.auth(context);
}
return;
}
await RouterUtil.route( await RouterUtil.route(
item, item,
Map<String, dynamic>.from( Map<String, dynamic>.from(


+ 1
- 1
lib/pages/security_page/security_password/security_password.dart View File

@@ -167,7 +167,7 @@ class _SecurityPasswordState extends State<SecurityPassword> {
setState(() {}); setState(() {});
}); });
}else{ }else{
Fluttertoast.showToast(msg: '获取验证码失败');
// Fluttertoast.showToast(msg: '获取验证码失败');
} }


// NetUtil.request('/api/v1/settings/account/security/password/sms', // NetUtil.request('/api/v1/settings/account/security/password/sms',


+ 1
- 1
lib/pages/security_page/security_unbind_alipay/security_unbin_alipay.dart View File

@@ -155,7 +155,7 @@ class _SecurityUnbinAlipayState extends State<SecurityUnbinAlipay> {
setState(() {}); setState(() {});
}); });
} else { } else {
Fluttertoast.showToast(msg: '获取验证码失败');
// Fluttertoast.showToast(msg: '获取验证码失败');
} }
} }




+ 3
- 1
lib/pages/setting_page/setting_page.dart View File

@@ -44,7 +44,9 @@ class _SettingContainerState extends State<_SettingContainer> {
@override @override
void initState() { void initState() {
_bloc = BlocProvider.of<SettingPageBloc>(context); _bloc = BlocProvider.of<SettingPageBloc>(context);
_bloc.loadData(widget.data['skip_identifier']);
// if(!EmptyUtil.isEmpty(widget.data)) {
_bloc.loadData(widget.data['skip_identifier']);
// }


super.initState(); super.initState();
} }


+ 1
- 1
lib/widgets/mine/mine_nav/mine_nav.dart View File

@@ -95,7 +95,7 @@ final SkipModel skipModel;


), ),
onTap:() { onTap:() {
RouterUtil.route(skipModel, null, context);
RouterUtil.route(skipModel, skipModel.toJson(), context);
}); });
} }
} }

Loading…
Cancel
Save