更新协议方式web
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import 'dart:ui';
|
||||
|
||||
import 'package:vbvs_app/common/color/ServiceConstant.dart';
|
||||
import 'package:vbvs_app/common/util/FitTool.dart';
|
||||
import 'package:vbvs_app/common/util/MyUtils.dart';
|
||||
import 'package:vbvs_app/enum/APPPackageType.dart';
|
||||
@@ -47,15 +48,44 @@ class AppConstants {
|
||||
];
|
||||
|
||||
List<Color> thNormalButton = [
|
||||
themeController.currentColor.sc1,
|
||||
themeController.currentColor.sc2,
|
||||
];
|
||||
|
||||
|
||||
themeController.currentColor.sc1,
|
||||
themeController.currentColor.sc2,
|
||||
]; //太和按钮颜色
|
||||
|
||||
//系统参数
|
||||
//运行打包APP模式
|
||||
// int ent_type = APPPackageType.MHT.code; //1.默认太和 2.欢睡 3.眠花糖
|
||||
int ent_type = APPPackageType.TH.code; //1.默认太和 2.欢睡 3.眠花糖
|
||||
int ent_type = APPPackageType.MHT.code; //1.默认太和 2.欢睡 3.眠花糖
|
||||
// int ent_type = APPPackageType.TH.code; //1.默认太和 2.欢睡 3.眠花糖
|
||||
int text_length = 8;
|
||||
}
|
||||
|
||||
//获取协议地址
|
||||
// 1.隐私协议 2.用户协议
|
||||
String getPrivacy(int type) {
|
||||
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;
|
||||
}
|
||||
}
|
||||
if (AppConstants().ent_type == APPPackageType.MHT.code) {
|
||||
if (type == 1) {
|
||||
return ServiceConstant.policy_url + "/mht_privacy_policy_$language.html";
|
||||
}
|
||||
return ServiceConstant.policy_url + "/mht_user_policy_$language.html";
|
||||
} else if (AppConstants().ent_type == APPPackageType.TH.code) {
|
||||
if (type == 1) {
|
||||
return ServiceConstant.policy_url + "/th_privacy_policy_$language.html";
|
||||
}
|
||||
return ServiceConstant.policy_url + "/th_user_policy_$language.html";
|
||||
} else {
|
||||
if (type == 1) {
|
||||
return ServiceConstant.policy_url + "/th_privacy_policy_$language.html";
|
||||
}
|
||||
return ServiceConstant.policy_url + "/th_user_policy_$language.html";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user