更新注销bug

This commit is contained in:
wyf
2025-08-25 16:11:46 +08:00
parent 558bec0dd6
commit 5ac6c891b3
4 changed files with 74 additions and 71 deletions

View File

@@ -666,6 +666,8 @@ class MyApp extends StatelessWidget {
Get.lazyPut(() => MessageSettingController()), Get.lazyPut(() => MessageSettingController()),
Get.lazyPut(() => CommonMessageSettingController()), Get.lazyPut(() => CommonMessageSettingController()),
Get.lazyPut(() => AuthBindTelController()), Get.lazyPut(() => AuthBindTelController()),
Get.lazyPut(() => MHTLoginController()),
Get.lazyPut(() => MHTRegisterController()),
])); ]));
} }

View File

@@ -155,14 +155,14 @@ class MainPageBottomChange extends GetView<MainPageController> {
), ),
child: Scaffold( child: Scaffold(
backgroundColor: Colors.transparent, backgroundColor: Colors.transparent,
// body: arr[controller.model.currentIndex], body: arr[controller.model.currentIndex],
body: IndexedStack( // body: IndexedStack(
// ✅ 改成 IndexedStack // // ✅ 改成 IndexedStack
index: controller.model.currentIndex, // index: controller.model.currentIndex??3,
children: arr // children: arr
.map((page) => SizedBox.expand(child: page)) // .map((page) => SizedBox.expand(child: page))
.toList(), // .toList(),
), // ),
floatingActionButtonAnimator: floatingActionButtonAnimator:
FloatingActionButtonAnimator.noAnimation, FloatingActionButtonAnimator.noAnimation,
floatingActionButtonLocation: floatingActionButtonLocation:

View File

@@ -310,7 +310,7 @@ class MHTLoginController extends GetControllerEx<LoginModel> {
String serviceApi = ServiceConstant.delete_account; String serviceApi = ServiceConstant.delete_account;
String queryUrl = "${serviceAddress}${serviceName}${serviceApi}"; String queryUrl = "${serviceAddress}${serviceName}${serviceApi}";
int code = 0; int code = 0;
requestWithLog( await requestWithLog(
logTitle: "注销账号", logTitle: "注销账号",
method: MyHttpMethod.delete, method: MyHttpMethod.delete,
queryUrl: queryUrl, queryUrl: queryUrl,

View File

@@ -114,68 +114,69 @@ class _SettingPageState extends State<SettingPage> {
child: Column( child: Column(
mainAxisSize: MainAxisSize.max, mainAxisSize: MainAxisSize.max,
children: [ children: [
ClickableContainer( // ClickableContainer(
backgroundColor: Colors.transparent, // 容器背景色 // backgroundColor: Colors.transparent, // 容器背景色
highlightColor: themeController // highlightColor: themeController
.currentColor.sc21, // 点击时的背景色 // .currentColor.sc21, // 点击时的背景色
padding: EdgeInsetsDirectional.fromSTEB( // padding: EdgeInsetsDirectional.fromSTEB(
40.rpx, 0.rpx, 40.rpx, 0.rpx), // 40.rpx, 0.rpx, 40.rpx, 0.rpx),
onTap: () { // onTap: () {
TopSlideNotification.show(context, // TopSlideNotification.show(context,
text: "待开发功能".tr); // text: "待开发功能".tr);
}, // },
child: Container( // child: Container(
child: Padding( // child: Padding(
padding: EdgeInsetsDirectional.fromSTEB( // padding: EdgeInsetsDirectional.fromSTEB(
0.rpx, 30.rpx, 0.rpx, 30.rpx), // 0.rpx, 30.rpx, 0.rpx, 30.rpx),
child: Row( // child: Row(
mainAxisSize: MainAxisSize.max, // mainAxisSize: MainAxisSize.max,
mainAxisAlignment: // mainAxisAlignment:
MainAxisAlignment.spaceBetween, // MainAxisAlignment.spaceBetween,
children: [ // children: [
Row( // Row(
mainAxisSize: MainAxisSize.max, // mainAxisSize: MainAxisSize.max,
children: [ // children: [
Text( // Text(
'设置页.主题模式'.tr, // '设置页.主题模式'.tr,
style: TextStyle( // style: TextStyle(
fontFamily: 'Inter', // fontFamily: 'Inter',
color: themeController // color: themeController
.currentColor.sc3, // .currentColor.sc3,
fontSize: AppConstants() // fontSize: AppConstants()
.title_text_fontSize, // .title_text_fontSize,
letterSpacing: 0.0, // letterSpacing: 0.0,
), // ),
), // ),
].divide(SizedBox(width: 22.rpx)), // ].divide(SizedBox(width: 22.rpx)),
), // ),
Row( // Row(
mainAxisSize: MainAxisSize.max, // mainAxisSize: MainAxisSize.max,
children: [ // children: [
Text( // Text(
'深色'.tr, // '深色'.tr,
style: TextStyle( // style: TextStyle(
fontFamily: 'Inter', // fontFamily: 'Inter',
color: Color(0xFFD9E3EB), // color: Color(0xFFD9E3EB),
fontSize: 26.rpx, // fontSize: 26.rpx,
letterSpacing: 0.0, // letterSpacing: 0.0,
), // ),
), // ),
SvgPicture.asset( // SvgPicture.asset(
'assets/img/icon/arrow_right.svg', // 'assets/img/icon/arrow_right.svg',
width: 8.rpx, // width: 8.rpx,
height: 15 // height: 15
.rpx, // 如果 SVG 中没有固定颜色,可以这样设置 // .rpx, // 如果 SVG 中没有固定颜色,可以这样设置
color: themeController // color: themeController
.currentColor.sc3, // .currentColor.sc3,
), // ),
].divide(SizedBox(width: 28.rpx)), // ].divide(SizedBox(width: 28.rpx)),
), // ),
], // ],
), // ),
), // ),
), // ),
), // ),
ClickableContainer( ClickableContainer(
backgroundColor: Colors.transparent, // 容器背景色 backgroundColor: Colors.transparent, // 容器背景色
highlightColor: themeController highlightColor: themeController