feat: 新增勘察明细管理与修改密码功能

This commit is contained in:
andyesfly committed 2026-10-17 10:10:09 +08:00
1 parent 56830e94ec
commit 774403785c
12 files changed
+1553 -18

No files matched your search

@@ -108,6 +108,16 @@ class _NoticeCenterPageState extends ConsumerState<NoticeCenterPage> {
Future<void> _loadMore() => _load();
/// 点击消息:先标记已读;勘察指派消息(`bizType == "survey_order"`)
/// 带 `bizId` 时跳转到对应勘察订单详情,其余保持仅标记已读。
Future<void> _onNoticeTap(Notice notice) async {
if (!notice.isRead) await _markRead(notice);
final bizId = notice.bizId;
if (notice.bizType == 'survey_order' && bizId != null && mounted) {
context.push('/order/survey/$bizId');
}
}
Future<void> _markRead(Notice notice) async {
if (notice.isRead) return;
try {
@@ -231,7 +241,7 @@ class _NoticeCenterPageState extends ConsumerState<NoticeCenterPage> {
final notice = _items[index];
return _NoticeTile(
notice: notice,
onTap: notice.isRead ? null : () => _markRead(notice),
onTap: () => _onNoticeTap(notice),
);
},
),
@@ -281,7 +291,7 @@ class _NoticeCenterPageState extends ConsumerState<NoticeCenterPage> {
}
}
/// 单条消息卡片:未读有蓝底高亮 + 红点,点击标记已读。
/// 单条消息卡片:未读有蓝底高亮 + 红点,点击标记已读并按业务类型跳转。
class _NoticeTile extends StatelessWidget {
const _NoticeTile({required this.notice, this.onTap});