更新东华信息配置

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

@@ -86,10 +86,10 @@ class _FollowPageState extends State<FollowPage> {
// child: widget.webView,
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage(AppConstants().ent_type == 1
? 'assets/img/followus.png'
: "assets/img/huanshuiF.png"), // 本地图片
fit: BoxFit.cover, // 填满整个 Container
image: AssetImage(
getFollowUsImage(AppConstants().ent_type),
),
fit: BoxFit.cover,
),
),
),
@@ -102,4 +102,15 @@ class _FollowPageState extends State<FollowPage> {
),
);
}
String getFollowUsImage(int entType) {
final Map<int, String> imageMap = {
1: 'assets/img/followus.png',
2: 'assets/img/huanshuiF.png',
4: 'assets/img/donghuaF.png',
// 后面继续加
};
return imageMap[entType] ?? 'assets/img/followus.png';
}
}