feat: add new assets, optimize list layout and重构个人中心页面

1. 新增fork/star/close等多个业务图标并配置到静态资源路径
2. 新增静态资源CDN配置常量
3. 优化帖子列表加载更多UI,无更多数据时显示提示文本
4. 重构我的页面布局,对齐Vue端实现,替换图标为CDN资源
5. 统一退出登录弹窗为公共组件,调整代码格式与缩进
This commit is contained in:
崔宝新
2026-09-07 17:53:32 +08:00
parent ebde2ae977
commit 3a2b589e37
14 changed files with 264 additions and 155 deletions
+7 -2
View File
@@ -22,8 +22,10 @@ class AppEnv {
/// 品牌标识:aixue / chucai / yule / ...(默认 aixue=爱学蝶变)
/// 品牌表见 app_brand.dart;主题/接口/App 名都随它走(AppConfig 聚合)
static const String brand =
String.fromEnvironment('BRAND', defaultValue: 'aixue');
static const String brand = String.fromEnvironment(
'BRAND',
defaultValue: 'aixue',
);
/// 三套环境地址表(与 uni-app envList 完全对齐)
static const Map<String, Map<String, String>> _envTable = {
@@ -58,6 +60,9 @@ class AppEnv {
/// 当前环境学习报告地址(预留,对标 envList.reportUrl)
static String get reportUrl => value('reportUrl');
/// 静态资源 CDN 域名(对标 uni-app utils/image.js 的 IMG_URL)
static const String imgBaseUrl = 'https://hx.cnzhyx.cn';
/// 是否正式环境(组合规则里判断用:prod 才走品牌专属地址)
static bool get isProd => env == 'prod';
}