Sfoglia il codice sorgente

1、短信获取失败的提示

2、个人信息淘宝授权
3、我的点击设置问题
tags/0.0.3+1^0
PH2 3 anni fa
parent
commit
93434d0db0
8 ha cambiato i file con 30 aggiunte e 7 eliminazioni
  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 Vedi File

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

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

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



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

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



+ 21
- 0
lib/pages/security_page/security_page.dart Vedi 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_comm/util/base_bloc.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> {
SecurityPageBloc _bloc;
UserInfoModel _user;

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


@override
void initState() {
@@ -149,6 +158,18 @@ class _SecurityContainerState extends State<_SecurityContainer> {
),
),
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(
item,
Map<String, dynamic>.from(


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

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

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


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

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



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

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

super.initState();
}


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

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

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

Caricamento…
Annulla
Salva