更新沃棣背景适配
This commit is contained in:
@@ -565,7 +565,7 @@ class MainPageBottomChange extends GetView<MainPageController> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
if (AppConstants().ent_type != APPPackageType.MHT.code) {
|
||||
if (AppConstants().ent_type != APPPackageType.MHT.code && isShowPrivacyOriginFromTHAPP()) {
|
||||
Future.delayed(const Duration(milliseconds: 0), () {
|
||||
String? isShowYingShiDialog = getStorage.read("isShowYingShiDialog");
|
||||
if (isShowYingShiDialog == null || isShowYingShiDialog != "true") {
|
||||
@@ -673,9 +673,9 @@ class MainPageBottomChange extends GetView<MainPageController> {
|
||||
);
|
||||
} else {
|
||||
return Container(
|
||||
decoration: const BoxDecoration(
|
||||
decoration: BoxDecoration(
|
||||
image: DecorationImage(
|
||||
image: AssetImage('assets/img/bgImage.png'),
|
||||
image: AssetImage(getBackgroundImage()),
|
||||
fit: BoxFit.fill,
|
||||
),
|
||||
),
|
||||
@@ -773,4 +773,15 @@ class MainPageBottomChange extends GetView<MainPageController> {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
//太和e护衍生app是否显示协议
|
||||
bool isShowPrivacyOriginFromTHAPP() {
|
||||
if (AppConstants().ent_type == APPPackageType.TH.code) {
|
||||
return true;
|
||||
}
|
||||
if (AppConstants().ent_type == APPPackageType.DONGHUA.code) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user