更新消息设置
This commit is contained in:
29
lib/pages/user/wx_unbind_dialog.dart
Normal file
29
lib/pages/user/wx_unbind_dialog.dart
Normal file
@@ -0,0 +1,29 @@
|
||||
import 'package:ef/ef.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:vbvs_app/common/color/app_uri_status.dart';
|
||||
import 'package:vbvs_app/common/util/MyUtils.dart';
|
||||
import 'package:vbvs_app/component/tool/TopSlideNotification.dart';
|
||||
import 'package:vbvs_app/controller/user_info_controller.dart';
|
||||
import 'package:vbvs_app/model/api_response.dart';
|
||||
import 'package:vbvs_app/pages/device_bind/componnet/bind_dialog.dart';
|
||||
|
||||
void showUnbindWxConfirmDialog(BuildContext context) {
|
||||
showConfirmDialog(
|
||||
context,
|
||||
Container(),
|
||||
"是否确认解绑".tr,
|
||||
onConfirm: () async {
|
||||
UserInfoController userInfoController = Get.find();
|
||||
ApiResponse apiResponse =
|
||||
await userInfoController.updateData(code: "unBind");
|
||||
TopSlideNotification.show(
|
||||
context,
|
||||
text: apiResponse.msg!,
|
||||
textColor: apiResponse.code == HttpStatusCodes.ok
|
||||
? themeController.currentColor.sc2
|
||||
: themeController.currentColor.sc9,
|
||||
);
|
||||
},
|
||||
onCancel: () {},
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user