更新东华信息配置

This commit is contained in:
wyf
2026-01-14 15:09:52 +08:00
parent f929e8c0ff
commit dfd9523433
17 changed files with 507 additions and 430 deletions

View File

@@ -520,101 +520,105 @@ class _UpdateUserPageState extends State<UpdateUserPage> {
),
),
),
Padding(
padding: EdgeInsetsDirectional.fromSTEB(
40.rpx, 20.rpx, 40.rpx, 20.rpx),
child: ClickableContainer(
backgroundColor: Colors.transparent, // 容器背景色
highlightColor: themeController
.currentColor.sc21, // 点击时的背景色
if (AppConstants().ent_type == 1)
Padding(
padding: EdgeInsetsDirectional.fromSTEB(
0.rpx, 0.rpx, 0.rpx, 0.rpx),
onTap: () async {
if (userInfoController.model.user!.bindWx ==
null ||
userInfoController.model.user!.bindWx ==
false) {
//微信绑定
LoginController loginController =
Get.find();
await loginController.wxLoginSendAuth(
context,
login: false);
} else {
//取消微信绑定
// LoginController loginController =
// Get.find();
// await loginController.wxLoginSendAuth(
// context,
// login: false);
// TopSlideNotification.show(context,
// text: "暂不支持微信解绑授权".tr,
// textColor:
// themeController.currentColor.sc9);
// return;
showUnbindWxConfirmDialog(context);
}
},
child: Container(
child: Padding(
padding: EdgeInsetsDirectional.fromSTEB(
0.rpx, 30.rpx, 0.rpx, 30.rpx),
child: Row(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment:
MainAxisAlignment.spaceBetween,
children: [
Row(
mainAxisSize: MainAxisSize.max,
children: [
Text(
'微信'.tr,
style: TextStyle(
fontFamily: 'Inter',
color: themeController
.currentColor.sc3,
fontSize: AppConstants()
.title_text_fontSize,
letterSpacing: 0.0,
),
),
].divide(SizedBox(width: 22.rpx)),
),
Row(
mainAxisSize: MainAxisSize.max,
children: [
Obx(() {
var aa = userInfoController
.model.user!.tmpNickName;
print(aa);
return Text(
getTextByUserInfo('wechat'),
40.rpx, 20.rpx, 40.rpx, 20.rpx),
child: ClickableContainer(
backgroundColor:
Colors.transparent, // 容器背景色
highlightColor: themeController
.currentColor.sc21, // 点击时的背景色
padding: EdgeInsetsDirectional.fromSTEB(
0.rpx, 0.rpx, 0.rpx, 0.rpx),
onTap: () async {
if (userInfoController
.model.user!.bindWx ==
null ||
userInfoController
.model.user!.bindWx ==
false) {
//微信绑定
LoginController loginController =
Get.find();
await loginController.wxLoginSendAuth(
context,
login: false);
} else {
//取消微信绑定
// LoginController loginController =
// Get.find();
// await loginController.wxLoginSendAuth(
// context,
// login: false);
// TopSlideNotification.show(context,
// text: "暂不支持微信解绑授权".tr,
// textColor:
// themeController.currentColor.sc9);
// return;
showUnbindWxConfirmDialog(context);
}
},
child: Container(
child: Padding(
padding: EdgeInsetsDirectional.fromSTEB(
0.rpx, 30.rpx, 0.rpx, 30.rpx),
child: Row(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment:
MainAxisAlignment.spaceBetween,
children: [
Row(
mainAxisSize: MainAxisSize.max,
children: [
Text(
'微信'.tr,
style: TextStyle(
fontFamily: 'Inter',
// color: Color(0xFFD9E3EB),
color: getColorByUserInfo(
'wechat'),
fontSize: 26.rpx,
color: themeController
.currentColor.sc3,
fontSize: AppConstants()
.title_text_fontSize,
letterSpacing: 0.0,
),
);
}),
SvgPicture.asset(
'assets/img/icon/arrow_right.svg',
width: 8.rpx,
height: 15
.rpx, // 如果 SVG 中没有固定颜色,可以这样设置
color: themeController
.currentColor.sc3,
),
].divide(SizedBox(width: 28.rpx)),
),
],
),
].divide(SizedBox(width: 22.rpx)),
),
Row(
mainAxisSize: MainAxisSize.max,
children: [
Obx(() {
var aa = userInfoController
.model.user!.tmpNickName;
print(aa);
return Text(
getTextByUserInfo('wechat'),
style: TextStyle(
fontFamily: 'Inter',
// color: Color(0xFFD9E3EB),
color: getColorByUserInfo(
'wechat'),
fontSize: 26.rpx,
letterSpacing: 0.0,
),
);
}),
SvgPicture.asset(
'assets/img/icon/arrow_right.svg',
width: 8.rpx,
height: 15
.rpx, // 如果 SVG 中没有固定颜色,可以这样设置
color: themeController
.currentColor.sc3,
),
].divide(SizedBox(width: 28.rpx)),
),
],
),
),
),
),
),
),
],
),
),