已知问题修改

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 {
var entity = await ApiRepository.to.getValidationCodeAuth(
"+86",
state.loginData.value.mobile!,
"",
'',
'1',
state.codeType.value,
"B748F838-94EE-4BDB-A0E6-7B2D16849792",

View File

@ -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,