更新东华信息配置

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

@@ -295,110 +295,115 @@ class _SettingPageState extends State<SettingPage> {
),
),
),
ClickableContainer(
backgroundColor: Colors.transparent, // 容器背景色
highlightColor: themeController
.currentColor.sc21, // 点击时的背景色
padding: EdgeInsetsDirectional.fromSTEB(
0.rpx, 0.rpx, 0.rpx, 0.rpx),
onTap: () async {
String url =
"https://mp.weixin.qq.com/s/IAr4RNBy0hGJXGKyMxe7eQ";
String serviceAddress =
ServiceConstant.service_address;
String serviceName =
ServiceConstant.server_service;
String serviceApi =
ServiceConstant.user_setting;
String queryUrl =
"$serviceAddress$serviceName$serviceApi";
String type = "app_about_us";
String code = "th";
if (AppConstants().ent_type ==
APPPackageType.TH.code) {
code = "th";
} else if (AppConstants().ent_type ==
APPPackageType.HUANSHUI.code) {
code = "hs";
} else {
code = 'th';
}
queryUrl =
"$queryUrl?type=$type&code=$code";
await requestWithLog(
logTitle: "查询操作说明",
method: MyHttpMethod.get,
queryUrl: queryUrl,
onSuccess: (res) {
String? language = "zh_CN";
if (AppConstants().ent_type ==
APPPackageType.MHT.code) {
if (mhLanguageController
.selectLanguage !=
null) {
language = mhLanguageController
.selectLanguage
.value!
.language_code;
if (AppConstants().ent_type ==
APPPackageType.TH.code)
ClickableContainer(
backgroundColor:
Colors.transparent, // 容器背景色
highlightColor: themeController
.currentColor.sc21, // 点击时的背景色
padding: EdgeInsetsDirectional.fromSTEB(
0.rpx, 0.rpx, 0.rpx, 0.rpx),
onTap: () async {
String url =
"https://mp.weixin.qq.com/s/IAr4RNBy0hGJXGKyMxe7eQ";
String serviceAddress =
ServiceConstant.service_address;
String serviceName =
ServiceConstant.server_service;
String serviceApi =
ServiceConstant.user_setting;
String queryUrl =
"$serviceAddress$serviceName$serviceApi";
String type = "app_about_us";
String code = "th";
if (AppConstants().ent_type ==
APPPackageType.TH.code) {
code = "th";
} else if (AppConstants().ent_type ==
APPPackageType.HUANSHUI.code) {
code = "hs";
} else {
code = 'th';
}
queryUrl =
"$queryUrl?type=$type&code=$code";
await requestWithLog(
logTitle: "查询操作说明",
method: MyHttpMethod.get,
queryUrl: queryUrl,
onSuccess: (res) {
String? language = "zh_CN";
if (AppConstants().ent_type ==
APPPackageType.MHT.code) {
if (mhLanguageController
.selectLanguage !=
null) {
language = mhLanguageController
.selectLanguage
.value!
.language_code;
}
} else {
if (languageController
.selectLanguage !=
null) {
language = languageController
.selectLanguage
.value!
.language_code;
}
}
} else {
if (languageController
.selectLanguage !=
null) {
language = languageController
.selectLanguage
.value!
.language_code;
if (language == "zh_CN") {
url = res.data['url'];
} else {
url = res.data['en_url'];
}
}
if (language == "zh_CN") {
url = res.data['url'];
} else {
url = res.data['en_url'];
}
},
);
print('点击了容器');
Get.toNamed("/aboutUsPage", arguments: url);
},
child: Container(
child: Padding(
padding: EdgeInsetsDirectional.fromSTEB(
40.rpx, 30.rpx, 40.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,
},
);
print('点击了容器');
Get.toNamed("/aboutUsPage",
arguments: url);
},
child: Container(
child: Padding(
padding: EdgeInsetsDirectional.fromSTEB(
40.rpx, 30.rpx, 40.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)),
),
SvgPicture.asset(
'assets/img/icon/arrow_right.svg',
width: 8.rpx,
height:
14.rpx, // 如果 SVG 中没有固定颜色,可以这样设置
color: themeController
.currentColor.sc3,
),
],
].divide(SizedBox(width: 22.rpx)),
),
SvgPicture.asset(
'assets/img/icon/arrow_right.svg',
width: 8.rpx,
height: 14
.rpx, // 如果 SVG 中没有固定颜色,可以这样设置
color: themeController
.currentColor.sc3,
),
],
),
),
),
),
),
ClickableContainer(
backgroundColor: Colors.transparent, // 容器背景色
highlightColor: themeController
@@ -509,6 +514,11 @@ class _SettingPageState extends State<SettingPage> {
),
),
),
if (AppConstants().ent_type ==
APPPackageType.TH.code)
SizedBox(
height: 100.rpx,
),
Padding(
padding: EdgeInsetsDirectional.fromSTEB(
100.rpx, 360.rpx, 100.rpx, 0),
@@ -644,10 +654,7 @@ class _SettingPageState extends State<SettingPage> {
),
),
Text(
AppConstants().ent_type == 1
? '公司信息'.tr.tr
: "Copyright © 2019-2029 合肥眠花糖家具有限责任公司 版权所有"
.tr,
getCopyrightText(AppConstants().ent_type),
style: TextStyle(
color: themeController.currentColor.sc4,
fontFamily: 'Inter',
@@ -719,4 +726,14 @@ class _SettingPageState extends State<SettingPage> {
),
);
}
String getCopyrightText(int entType) {
final Map<int, String> copyrightMap = {
1: '公司信息'.tr,
2: 'Copyright © 2019-2029 合肥眠花糖家具有限责任公司 版权所有'.tr,
4: 'Copyright © 2020-2030 东华智能睡眠中心 版权所有'.tr,
};
return copyrightMap[entType] ?? '公司信息'.tr;
}
}