已知问题修改
This commit is contained in:
parent
a5d7a49570
commit
38769e5647
@ -34,8 +34,8 @@ class SafeVerifyLogic extends BaseGetXController {
|
||||
//获取验证码请求
|
||||
void sendValidationCode() async {
|
||||
var entity = await ApiRepository.to.getValidationCodeAuth(
|
||||
"+86",
|
||||
state.loginData.value.mobile!,
|
||||
"",
|
||||
'',
|
||||
'1',
|
||||
state.codeType.value,
|
||||
"B748F838-94EE-4BDB-A0E6-7B2D16849792",
|
||||
|
||||
@ -248,7 +248,7 @@ class _MineSetPageState extends State<MineSetPage> {
|
||||
color: AppColors.darkGrayTextColor, fontSize: 18.sp),
|
||||
),
|
||||
onPressed: () {
|
||||
showCupertinoAlertDialog(context);
|
||||
_showDialog(context);
|
||||
},
|
||||
),
|
||||
],
|
||||
@ -261,25 +261,54 @@ class _MineSetPageState extends State<MineSetPage> {
|
||||
);
|
||||
}
|
||||
|
||||
void showCupertinoAlertDialog(BuildContext context) {
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (BuildContext context) {
|
||||
return ShowIosTipView(
|
||||
title: "",
|
||||
tipTitle: TranslationLoader.lanKeys!.deleteAccountTips!.tr,
|
||||
sureClick: () {
|
||||
//安全验证
|
||||
Navigator.pushNamed(context, Routers.safeVerifyPage);
|
||||
},
|
||||
cancelClick: () {
|
||||
Navigator.pop(context);
|
||||
},
|
||||
//确认弹窗
|
||||
void _showDialog(widgetContext) {
|
||||
showCupertinoDialog(
|
||||
context: widgetContext,
|
||||
builder: (context) {
|
||||
return CupertinoAlertDialog(
|
||||
title: Text(TranslationLoader.lanKeys!.deleteAccountTips!.tr),
|
||||
actions: [
|
||||
CupertinoDialogAction(
|
||||
child: Text(TranslationLoader.lanKeys!.cancel!.tr),
|
||||
onPressed: () {
|
||||
Navigator.of(context).pop();
|
||||
},
|
||||
),
|
||||
CupertinoDialogAction(
|
||||
child: Text(TranslationLoader.lanKeys!.sure!.tr),
|
||||
onPressed: () {
|
||||
Navigator.of(context).pop();
|
||||
//安全验证
|
||||
Navigator.pushNamed(context, Routers.safeVerifyPage);
|
||||
setState(() {});
|
||||
},
|
||||
),
|
||||
],
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
// void showCupertinoAlertDialog(BuildContext context) {
|
||||
// showDialog(
|
||||
// context: context,
|
||||
// builder: (BuildContext context) {
|
||||
// return ShowIosTipView(
|
||||
// title: "",
|
||||
// tipTitle: TranslationLoader.lanKeys!.deleteAccountTips!.tr,
|
||||
// sureClick: () {
|
||||
// //安全验证
|
||||
// Navigator.pushNamed(context, Routers.safeVerifyPage);
|
||||
// },
|
||||
// cancelClick: () {
|
||||
// Navigator.pop(context);
|
||||
// },
|
||||
// );
|
||||
// },
|
||||
// );
|
||||
// }
|
||||
|
||||
CupertinoSwitch _isPrompToneSwitch() {
|
||||
return CupertinoSwitch(
|
||||
activeColor: CupertinoColors.activeBlue,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user