feat(mobile-next): 工号查询防抖、开关接入,资料页不再把工号当手机号

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
编码工程师
2026-08-20 03:51:27 +08:00
co-authored by Cursor multica-agent
parent 3b87812db8
commit 26622676ed
5 changed files with 33 additions and 36 deletions
@@ -6,6 +6,7 @@ import 'package:openim_common/openim_common.dart';
import '../auth/company_login_logic.dart';
import '../brand/app_tokens.dart';
import '../feature_flags.dart';
import 'state_views.dart';
/// 登录页第一批:v2 布局 + Token,保留 OpenIM 标识,不做畅联换标。
class CompanyLoginPage extends StatelessWidget {
@@ -66,9 +67,13 @@ class CompanyLoginPage extends StatelessWidget {
const SizedBox(height: AppGap.x4),
Obx(() => _loginButton(logic)),
const SizedBox(height: AppGap.x3),
if (!FeatureFlags.hideRegisterAndReset)
const SizedBox.shrink(),
const Text(
'登录即代表同意内部使用规范',
style: TextStyle(fontSize: AppFont.small, color: AppColors.textSecondary),
style: TextStyle(
fontSize: AppFont.small,
color: AppColors.textSecondary),
),
const Spacer(flex: 3),
],
@@ -79,30 +84,7 @@ class CompanyLoginPage extends StatelessWidget {
},
),
),
Obx(() {
final msg = logic.toast.value;
if (msg == null) return const SizedBox.shrink();
return SafeArea(
child: Align(
alignment: Alignment.topCenter,
child: Padding(
padding: const EdgeInsets.fromLTRB(AppGap.x4, AppGap.x2, AppGap.x4, 0),
child: Material(
color: AppColors.bannerBg,
borderRadius: BorderRadius.circular(AppRadius.control),
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: AppGap.x4, vertical: AppGap.x3),
child: Text(
msg,
textAlign: TextAlign.center,
style: const TextStyle(fontSize: AppFont.sub, color: Colors.white),
),
),
),
),
),
);
}),
Obx(() => CompanyToastBanner(message: logic.toast.value)),
],
),
);