已知问题修改

This commit is contained in:
Daisy 2023-10-13 15:36:53 +08:00
parent a5d7a49570
commit 38769e5647
2 changed files with 46 additions and 17 deletions

View File

@ -34,8 +34,8 @@ class SafeVerifyLogic extends BaseGetXController {
// //
void sendValidationCode() async { void sendValidationCode() async {
var entity = await ApiRepository.to.getValidationCodeAuth( var entity = await ApiRepository.to.getValidationCodeAuth(
"+86", "",
state.loginData.value.mobile!, '',
'1', '1',
state.codeType.value, state.codeType.value,
"B748F838-94EE-4BDB-A0E6-7B2D16849792", "B748F838-94EE-4BDB-A0E6-7B2D16849792",

View File

@ -248,7 +248,7 @@ class _MineSetPageState extends State<MineSetPage> {
color: AppColors.darkGrayTextColor, fontSize: 18.sp), color: AppColors.darkGrayTextColor, fontSize: 18.sp),
), ),
onPressed: () { onPressed: () {
showCupertinoAlertDialog(context); _showDialog(context);
}, },
), ),
], ],
@ -261,25 +261,54 @@ class _MineSetPageState extends State<MineSetPage> {
); );
} }
void showCupertinoAlertDialog(BuildContext context) { //
showDialog( void _showDialog(widgetContext) {
context: context, showCupertinoDialog(
builder: (BuildContext context) { context: widgetContext,
return ShowIosTipView( builder: (context) {
title: "", return CupertinoAlertDialog(
tipTitle: TranslationLoader.lanKeys!.deleteAccountTips!.tr, title: Text(TranslationLoader.lanKeys!.deleteAccountTips!.tr),
sureClick: () { actions: [
// CupertinoDialogAction(
Navigator.pushNamed(context, Routers.safeVerifyPage); child: Text(TranslationLoader.lanKeys!.cancel!.tr),
}, onPressed: () {
cancelClick: () { Navigator.of(context).pop();
Navigator.pop(context); },
}, ),
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() { CupertinoSwitch _isPrompToneSwitch() {
return CupertinoSwitch( return CupertinoSwitch(
activeColor: CupertinoColors.activeBlue, activeColor: CupertinoColors.activeBlue,