feat: 首页布局默认页交互优化与常用功能网格对齐

- 首页布局:非默认页显示「设为默认」按钮,默认页标记改为「默认页面」,同尺寸同圆角,仅按钮可切换

- 首页布局:恢复默认改调独立接口 DELETE /v1/client/sn/home-layout,顺序与默认页由后台返回并提示

- 常用功能:固定每行 4 个顺延排版,末行空位补齐,新增功能不再错位
This commit is contained in:
tongtong committed 2026-11-25 21:08:24 +08:00
1 parent b12148cd76
commit 1907edfcd6
13 files changed
+367 -190

No files matched your search

+9
View File
@@ -443,3 +443,12 @@ static const String kBaseUrl = 'http://<host>:<port>/api/v1/open/';
- 该入口仅管理 Flutter 业务弹窗,系统权限窗口、原生文件选择器和底部操作面板不属于此次迁移范围。新增 API 要求 Flutter >=3.50.0。
- 文件页点击普通文件先显示 Cupertino 底部操作菜单,目录仍直接进入;“打开”沿用 openLocalFile,“分享”走 shareLocalFile 系统分享面板。Android 使用 FileProvider content URI + 临时只读授权,禁止传 file://;iOS 使用 UIActivityViewController,授权目录的 security scope 必须保持到分享完成/取消,再释放,并配置 iPad popover 锚点。用户取消系统分享不作为失败提示。
## 22. 首页功能入口与系统设置分工
- 首页「常用功能」卡片(`lib/features/home/presentation/home_tab.dart` 的 `_commonCard`)是设备配置与管理类业务入口的唯一聚合处,如首页布局(`/home-layout`)、图标包管理(`/icon-packs`)、壁纸(`/wallpaper`)、系统设置(`/settings`)。新增此类入口优先加在这里。
- 「管理」Tab(`features/messages/presentation/messages_tab.dart`)的横版菜单只保留内容类入口(相册、闹钟、联系人、应用、通话记录、短信记录、文件等),不再重复放已经在首页常用功能里的设备配置入口。
- 系统设置页(`/settings`)只放后端策略开关(`GET /api/v1/client/sn/policy`、`PUT /api/v1/client/sn/policy/toggle`),不得再放置业务功能入口(如首页布局、图标包管理)。
- 常用功能入口不得依赖策略加载状态:策略请求失败时只降级开关区域,不得因为 `policy == null` 隐藏整页或其它入口。
- 新增入口的路由必须在 `lib/app/router/app_router.dart` 注册;新增或修改路由后需 hot restart,热重载不会注册新路由。
+24
View File
@@ -226,6 +226,30 @@ class DeviceApi {
}
}
/// 恢复设备首页分页布局为后台默认值(无需传顺序与默认页)。
///
/// 对应后台 `DELETE /api/v1/client/sn/home-layout?sn=xxx`:后台删除自定义布局后
/// 返回系统默认顺序与默认展示页,本方法直接用返回值回填本地,不再额外 GET。
Future<({DeviceHomeLayout? layout, String? error})> resetHomeLayout(
String sn) async {
try {
final data = await DioClient.delete(
'$_homeLayoutPath?sn=${Uri.encodeQueryComponent(sn)}',
);
await DioClient.invalidateReadCache(
_homeLayoutPath,
queryParameters: {'sn': sn},
);
final layout =
data is Map<String, dynamic> ? DeviceHomeLayout.fromJson(data) : null;
debugPrint('[DeviceApi] resetHomeLayout sn=$sn data=$data');
return (layout: layout, error: null);
} on ApiException catch (e) {
debugPrint('[DeviceApi] resetHomeLayout sn=$sn failed: ${e.message}');
return (layout: null, error: e.message);
}
}
/// 向设备下发操作指令(重启/关机/截屏/刷新/定位/拍照等)。
///
/// [op] 为后端操作标识,如 `reboot` / `shutdown` / `screenshot` / `refresh` / `locate` / `take_photo`,
@@ -62,6 +62,11 @@ class DeviceRepositoryImpl implements DeviceRepository {
String sn, List<String> pages, String defaultPage) =>
_api.saveHomeLayout(sn, pages, defaultPage);
@override
Future<({DeviceHomeLayout? layout, String? error})> resetHomeLayout(
String sn) =>
_api.resetHomeLayout(sn);
@override
Future<String?> sendDeviceOp(String sn, String op, {Map<String, dynamic>? extra}) =>
_api.sendDeviceOp(sn, op, extra: extra);
@@ -54,6 +54,12 @@ abstract class DeviceRepository {
Future<({DeviceHomeLayout? layout, String? error})> saveHomeLayout(
String sn, List<String> pages, String defaultPage);
/// 恢复后台默认首页布局并推送设备(不需要传顺序,默认值由后台提供)。
///
/// 成功时 [layout] 为后台返回的默认布局,可直接回填本地;
/// 失败时 [error] 为后台错误提示。
Future<({DeviceHomeLayout? layout, String? error})> resetHomeLayout(String sn);
/// 向设备下发操作指令(重启/关机/截屏/刷新/定位/拍照等)。
///
/// [op] 为后端操作标识,如 `reboot` / `shutdown` / `screenshot` / `refresh` / `locate` / `take_photo`。
@@ -15,12 +15,14 @@ import '../../../features/device/domain/device_models.dart';
import '../../../features/device/presentation/device_switcher.dart';
import '../../../l10n/app_localizations.dart';
/// 首页布局页(首页 → 系统设置 → 首页布局)。
/// 首页布局页(首页 → 常用功能 → 首页布局)。
///
/// 家属端远程调整老人端桌面(ElderlyDialer)的分页顺序:
/// - 列表上下拖动即可排序,**松手立即保存**,不需要额外的提交按钮;
/// - 点击分页项右侧的「设为默认」按钮可把它设为默认展示页
/// (开机 / 按 Home 键展示),同样立即保存;
/// - 保存接口返回的顺序直接回填本地,不再重复请求;
/// - 右上角「默认」恢复服务端默认排序并立即保存;
/// - 右上角「默认」调用后台恢复默认接口,顺序与默认展示页由后台返回;
/// - 请求期间展示模态 loading,屏蔽页面操作,避免重复提交。
///
/// 应用页(apps)由老人端按已安装应用动态生成,恒排在最后,不参与排序。
@@ -131,17 +133,31 @@ class _HomeLayoutPageState extends ConsumerState<HomeLayoutPage> {
unawaited(_save(previous));
}
/// 恢复服务端默认排序并立即保存。
/// 恢复后台默认布局:顺序与默认展示页全部由后台返回,前端不写死默认值。
Future<void> _restoreDefault() async {
if (_busy) return;
final previous = _snapshot();
setState(() {
_pages = List<String>.of(DeviceHomeLayout.defaultPages);
_defaultPage = DeviceHomeLayout.defaultPageSlot;
});
final saved = await _save(previous);
if (saved && mounted) {
final sn = _sn;
if (sn == null || sn.isEmpty) {
_showNoDevice();
return;
}
setState(() => _saving = true);
try {
final result = await ref
.read(deviceRepositoryProvider)
.resetHomeLayout(sn);
if (!mounted) return;
if (result.error case final error?) {
showCupertinoHint(context, error);
return;
}
setState(() => _apply(result.layout));
showCupertinoHint(context, _l10n.homeLayoutResetDone);
} catch (error) {
if (!mounted) return;
showCupertinoHint(context, userMessageOf(error));
} finally {
if (mounted) setState(() => _saving = false);
}
}
@@ -151,6 +167,17 @@ class _HomeLayoutPageState extends ConsumerState<HomeLayoutPage> {
defaultPage: _defaultPage,
);
/// 点击「设为默认」按钮设为默认展示页(开机 / 按 Home 键展示)并立即保存。
Future<void> _setDefault(String slot) async {
if (_busy || slot == _defaultPage) return;
final previous = _snapshot();
setState(() => _defaultPage = slot);
final saved = await _save(previous);
if (saved && mounted) {
showCupertinoHint(context, _l10n.homeLayoutDefaultDone);
}
}
/// 保存当前顺序;成功后用接口返回的顺序覆盖本地,避免再次请求。
///
/// [previous] 为保存前的快照,失败时用于回滚(服务端未变更,本地也不应保留)。
@@ -300,6 +327,14 @@ class _HomeLayoutPageState extends ConsumerState<HomeLayoutPage> {
),
),
const SizedBox(height: 2),
Text(
l10n.homeLayoutDefaultTip,
style: TextStyle(
fontSize: 12,
color: DarkMode.color(context, AppColors.sub),
),
),
const SizedBox(height: 2),
Text(
l10n.homeLayoutAppsNote,
style: TextStyle(
@@ -337,10 +372,14 @@ class _HomeLayoutPageState extends ConsumerState<HomeLayoutPage> {
);
}
/// 单个分页项:图标 + 标题/说明 + 右侧拖动把手。
/// 单个分页项:图标 + 标题/说明 + 右侧默认操作 + 拖动把手。
///
/// 只有右侧「设为默认」按钮能把该分页设为默认展示页;拖动排序只能用
/// 右侧把手,两者手势区域分开,避免点击与拖动抢手势。
Widget _buildTile(int index) {
final slot = _pages[index];
final info = _slotInfo(slot);
final isDefault = slot == _defaultPage;
return Container(
padding: const EdgeInsets.symmetric(horizontal: 14, vertical: 12),
decoration: BoxDecoration(
@@ -384,6 +423,7 @@ class _HomeLayoutPageState extends ConsumerState<HomeLayoutPage> {
],
),
),
_defaultAction(slot, isDefault: isDefault),
ReorderableDragStartListener(
index: index,
child: Padding(
@@ -400,6 +440,51 @@ class _HomeLayoutPageState extends ConsumerState<HomeLayoutPage> {
);
}
/// 右侧默认页操作区:当前默认页显示「默认页面」标记,其余分页显示
/// 「设为默认」按钮(点击立即保存)。
///
/// 两者共用同一套内边距、字号与圆角,仅底色 / 边框 / 文字色不同,
/// 保证并排时尺寸完全一致。
Widget _defaultAction(String slot, {required bool isDefault}) {
final active = !_busy;
final foreground = isDefault
? AppColors.green
: (active ? AppColors.green : CupertinoColors.inactiveGray);
return Semantics(
button: !isDefault,
child: GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: isDefault || !active ? null : () => _setDefault(slot),
child: Container(
margin: const EdgeInsets.only(left: 8),
padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 6),
decoration: BoxDecoration(
color: isDefault
? AppColors.green.withValues(alpha: 0.14)
: Colors.transparent,
borderRadius: BorderRadius.circular(9),
border: Border.all(
color: isDefault
? Colors.transparent
: foreground.withValues(alpha: 0.6),
),
),
child: Text(
isDefault
? _l10n.homeLayoutDefaultBadge
: _l10n.homeLayoutSetDefault,
style: TextStyle(
fontSize: 12,
fontWeight: FontWeight.w600,
height: 1.2,
color: foreground,
),
),
),
),
);
}
/// 槽位对应的展示信息。
_SlotInfo _slotInfo(String slot) {
final l10n = _l10n;
+150 -152
View File
@@ -579,162 +579,160 @@ class HomeTab extends ConsumerWidget {
await _runDeviceOp(context, ref, l10n, sn, op);
}
Widget _commonCard(BuildContext context, WidgetRef ref, AppLocalizations l10n, String? sn) => CardBox(
child: Column(
/// 常用功能网格:固定每行 4 个,从左向右顺延排列。
///
/// 末行不足 4 个时用空占位补齐,保证图标恒为整行宽度的 1/4,
/// 避免 `Expanded` 按实际个数平分导致末行与上排错位。
Widget _commonCard(BuildContext context, WidgetRef ref,
AppLocalizations l10n, String? sn) {
final actions = _commonActions(context, ref, l10n, sn);
final rows = <Widget>[];
for (var start = 0; start < actions.length; start += 4) {
final end = start + 4 <= actions.length ? start + 4 : actions.length;
final slice = actions.sublist(start, end);
rows.add(
Row(
children: [
Row(
children: [
Expanded(
child: IconTile(
emoji: '📁',
color: AppColors.blue,
label: l10n.cfFileTransfer,
size: 50,
iconSize: 20,
onTap: () => _runDeviceOp(context, ref, l10n, sn, 'file_transfer'),
),
),
Expanded(
child: IconTile(
emoji: '📷',
color: AppColors.green,
label: l10n.cfRemoteCam,
size: 50,
iconSize: 20,
onTap: () => _pickCameraAndTakePhoto(context, ref, l10n, sn),
),
),
Expanded(
child: IconTile(
emoji: '💬',
color: AppColors.orange,
label: l10n.cfMsgSync,
size: 50,
iconSize: 20,
onTap: () => _runDeviceOp(context, ref, l10n, sn, 'msg_sync'),
),
),
Expanded(
child: IconTile(
emoji: '🧹',
color: AppColors.purple,
label: l10n.cfClean,
size: 50,
iconSize: 20,
onTap: () => _runDeviceOp(context, ref, l10n, sn, 'clean'),
),
),
],
),
const SizedBox(height: 14),
Row(
children: [
Expanded(
child: IconTile(
emoji: '📺',
color: AppColors.red,
label: l10n.cfMirror,
size: 50,
iconSize: 20,
onTap: () => context.push('/connection'),
),
),
Expanded(
child: IconTile(
emoji: '🔔',
color: AppColors.teal,
label: l10n.cfLost,
size: 50,
iconSize: 20,
onTap: () => _runDeviceOp(context, ref, l10n, sn, 'locate',
refreshLocation: true),
),
),
Expanded(
child: IconTile(
emoji: '🔐',
color: AppColors.blue,
label: l10n.cfScreenLock,
size: 50,
iconSize: 20,
onTap: () => _runDeviceOp(context, ref, l10n, sn, 'screen_lock'),
),
),
Expanded(
child: IconTile(
emoji: '🔒',
color: const Color(0xFF22C55E),
label: l10n.cfAppLock,
size: 50,
iconSize: 20,
onTap: () => _runDeviceOp(context, ref, l10n, sn, 'refresh'),
),
),
],
),
const SizedBox(height: 14),
Row(
children: [
Expanded(
child: IconTile(
emoji: '♻️',
color: AppColors.orange,
label: l10n.cfRestore,
size: 50,
iconSize: 20,
onTap: () => _runDeviceOp(context, ref, l10n, sn, 'restore'),
),
),
Expanded(
child: IconTile(
emoji: '🛠️',
color: AppColors.blue,
label: l10n.cfDeveloper,
size: 50,
iconSize: 20,
onTap: () => _runDeviceOp(context, ref, l10n, sn, 'developer'),
),
),
Expanded(
child: IconTile(
emoji: '⚙️',
color: AppColors.gray,
label: l10n.cfSystemSettings,
size: 50,
iconSize: 20,
onTap: () => context.push('/settings'),
),
),
Expanded(
child: IconTile(
emoji: '🖼️',
color: AppColors.teal,
label: l10n.cfWallpaper,
size: 50,
iconSize: 20,
onTap: () => context.push('/wallpaper'),
),
),
],
),
const SizedBox(height: 14),
Row(
children: [
Expanded(
child: IconTile(
emoji: '⋯',
color: AppColors.gray,
label: l10n.cfMore,
size: 50,
iconSize: 20,
onTap: () => _showMoreOpsSheet(context, ref, l10n, sn),
),
),
],
),
for (final action in slice) Expanded(child: _commonItem(action)),
// 空占位:补齐末行剩余列,避免已有效目被拉宽错位
for (var i = slice.length; i < 4; i++)
const Expanded(child: SizedBox.shrink()),
],
),
);
}
return CardBox(
child: Column(
children: [
for (var i = 0; i < rows.length; i++) ...[
if (i > 0) const SizedBox(height: 14),
rows[i],
],
],
),
);
}
Widget _commonItem(_CommonAction action) => IconTile(
emoji: action.emoji,
color: action.color,
label: action.label,
size: 50,
iconSize: 20,
onTap: action.onTap,
);
/// 常用功能入口列表:新增功能只需在此追加一项,自动按每行 4 个排列。
List<_CommonAction> _commonActions(BuildContext context, WidgetRef ref,
AppLocalizations l10n, String? sn) =>
[
_CommonAction(
emoji: '📁',
color: AppColors.blue,
label: l10n.cfFileTransfer,
onTap: () => _runDeviceOp(context, ref, l10n, sn, 'file_transfer'),
),
_CommonAction(
emoji: '📷',
color: AppColors.green,
label: l10n.cfRemoteCam,
onTap: () => _pickCameraAndTakePhoto(context, ref, l10n, sn),
),
_CommonAction(
emoji: '💬',
color: AppColors.orange,
label: l10n.cfMsgSync,
onTap: () => _runDeviceOp(context, ref, l10n, sn, 'msg_sync'),
),
_CommonAction(
emoji: '🧹',
color: AppColors.purple,
label: l10n.cfClean,
onTap: () => _runDeviceOp(context, ref, l10n, sn, 'clean'),
),
_CommonAction(
emoji: '📺',
color: AppColors.red,
label: l10n.cfMirror,
onTap: () => context.push('/connection'),
),
_CommonAction(
emoji: '🔔',
color: AppColors.teal,
label: l10n.cfLost,
onTap: () => _runDeviceOp(context, ref, l10n, sn, 'locate',
refreshLocation: true),
),
_CommonAction(
emoji: '🔐',
color: AppColors.blue,
label: l10n.cfScreenLock,
onTap: () => _runDeviceOp(context, ref, l10n, sn, 'screen_lock'),
),
_CommonAction(
emoji: '🔒',
color: const Color(0xFF22C55E),
label: l10n.cfAppLock,
onTap: () => _runDeviceOp(context, ref, l10n, sn, 'refresh'),
),
_CommonAction(
emoji: '♻️',
color: AppColors.orange,
label: l10n.cfRestore,
onTap: () => _runDeviceOp(context, ref, l10n, sn, 'restore'),
),
_CommonAction(
emoji: '🛠️',
color: AppColors.blue,
label: l10n.cfDeveloper,
onTap: () => _runDeviceOp(context, ref, l10n, sn, 'developer'),
),
_CommonAction(
emoji: '⚙️',
color: AppColors.gray,
label: l10n.cfSystemSettings,
onTap: () => context.push('/settings'),
),
_CommonAction(
emoji: '🖼️',
color: AppColors.teal,
label: l10n.cfWallpaper,
onTap: () => context.push('/wallpaper'),
),
_CommonAction(
emoji: '🏠',
color: AppColors.blue,
label: l10n.homeLayoutTitle,
onTap: () => context.push('/home-layout'),
),
_CommonAction(
emoji: '🎨',
color: AppColors.orange,
label: l10n.iconPackTitle,
onTap: () => context.push('/icon-packs'),
),
_CommonAction(
emoji: '⋯',
color: AppColors.gray,
label: l10n.cfMore,
onTap: () => _showMoreOpsSheet(context, ref, l10n, sn),
),
];
}
/// 常用功能入口配置(图标、底色、文案与点击行为)。
class _CommonAction {
const _CommonAction({
required this.emoji,
required this.color,
required this.label,
required this.onTap,
});
final String emoji;
final Color color;
final String label;
final VoidCallback onTap;
}
class _MoreOpItem {
@@ -6,7 +6,6 @@ import 'package:ttstd_family_care/core/widgets/cupertino_hint.dart';
import 'package:ttstd_family_care/core/widgets/app_page_scaffold.dart';
import '../../../core/widgets/feature_ui.dart';
import '../../../core/widgets/settings_ui.dart';
import '../../../core/network/error_message.dart';
import 'system_settings_controller.dart';
import '../../../features/device/data/device_providers.dart';
@@ -170,18 +169,6 @@ class SystemSettingsPage extends ConsumerWidget {
return ListView(
padding: const EdgeInsets.only(bottom: 24),
children: [
// 首页布局入口:与策略开关分开,进入后可拖动调整老人端桌面分页顺序
SectionTitle(l10n.homeLayoutTitle),
CardBox(
padding: EdgeInsets.zero,
child: SettingsRow(
emoji: '🏠',
color: AppColors.blue,
title: l10n.homeLayoutTitle,
subtitle: l10n.homeLayoutEntrySubtitle,
onTap: () => context.push('/home-layout'),
),
),
for (final group in groups) ...[
SectionTitle(group.title),
CardBox(
@@ -46,12 +46,6 @@ class MessagesTab extends ConsumerWidget {
label: l10n.menuApps,
route: '/apps',
),
_Menu(
emoji: '🎨',
color: AppColors.orange,
label: l10n.iconPackTitle,
route: '/icon-packs',
),
_Menu(
emoji: '📞',
color: AppColors.green,
+26 -2
View File
@@ -2654,10 +2654,10 @@ abstract class AppLocalizations {
/// **'默认'**
String get homeLayoutReset;
/// 首页布局:恢复默认排序成功提示
/// 首页布局:恢复默认布局成功提示
///
/// In zh, this message translates to:
/// **'已恢复默认排序'**
/// **'已恢复默认布局'**
String get homeLayoutResetDone;
/// 首页布局:拖动排序提示
@@ -2713,6 +2713,30 @@ abstract class AppLocalizations {
/// In zh, this message translates to:
/// **'加载首页布局失败,请返回重试'**
String get homeLayoutLoadFailed;
/// 首页布局:点击设为默认页说明
///
/// In zh, this message translates to:
/// **'点击「设为默认」按钮可设为默认页面(开机后展示的页面)'**
String get homeLayoutDefaultTip;
/// 首页布局:默认页标记
///
/// In zh, this message translates to:
/// **'默认页面'**
String get homeLayoutDefaultBadge;
/// 首页布局:设为默认页按钮
///
/// In zh, this message translates to:
/// **'设为默认'**
String get homeLayoutSetDefault;
/// 首页布局:设为默认页成功提示
///
/// In zh, this message translates to:
/// **'已设为默认页'**
String get homeLayoutDefaultDone;
}
class _AppLocalizationsDelegate
+14 -1
View File
@@ -1340,7 +1340,7 @@ class AppLocalizationsEn extends AppLocalizations {
String get homeLayoutReset => 'Default';
@override
String get homeLayoutResetDone => 'Default order restored';
String get homeLayoutResetDone => 'Default layout restored';
@override
String get homeLayoutDragTip =>
@@ -1371,4 +1371,17 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get homeLayoutLoadFailed =>
'Failed to load the home layout. Please go back and retry.';
@override
String get homeLayoutDefaultTip =>
'Tap \"Set default\" to make a page the default (shown after boot).';
@override
String get homeLayoutDefaultBadge => 'Default page';
@override
String get homeLayoutSetDefault => 'Set default';
@override
String get homeLayoutDefaultDone => 'Default page updated.';
}
+13 -1
View File
@@ -1306,7 +1306,7 @@ class AppLocalizationsZh extends AppLocalizations {
String get homeLayoutReset => '默认';
@override
String get homeLayoutResetDone => '已恢复默认排序';
String get homeLayoutResetDone => '已恢复默认布局';
@override
String get homeLayoutDragTip => '拖动右侧把手调整上下顺序,松手后立即保存';
@@ -1334,4 +1334,16 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String get homeLayoutLoadFailed => '加载首页布局失败,请返回重试';
@override
String get homeLayoutDefaultTip => '点击「设为默认」按钮可设为默认页面(开机后展示的页面)';
@override
String get homeLayoutDefaultBadge => '默认页面';
@override
String get homeLayoutSetDefault => '设为默认';
@override
String get homeLayoutDefaultDone => '已设为默认页';
}
+6 -2
View File
@@ -438,7 +438,7 @@
"homeLayoutTitle": "Home layout",
"homeLayoutEntrySubtitle": "Rearrange the tablet home pages",
"homeLayoutReset": "Default",
"homeLayoutResetDone": "Default order restored",
"homeLayoutResetDone": "Default layout restored",
"homeLayoutDragTip": "Drag the handle on the right to reorder. Changes save immediately.",
"homeLayoutAppsNote": "App pages are generated from installed apps and always come last.",
"homeLayoutSlotHome": "Home",
@@ -447,5 +447,9 @@
"homeLayoutSlotContactDesc": "Call frequent contacts",
"homeLayoutSlotSettings": "Settings",
"homeLayoutSlotSettingsDesc": "System settings entry",
"homeLayoutLoadFailed": "Failed to load the home layout. Please go back and retry."
"homeLayoutLoadFailed": "Failed to load the home layout. Please go back and retry.",
"homeLayoutDefaultTip": "Tap \"Set default\" to make a page the default (shown after boot).",
"homeLayoutDefaultBadge": "Default page",
"homeLayoutSetDefault": "Set default",
"homeLayoutDefaultDone": "Default page updated."
}
+18 -2
View File
@@ -1563,9 +1563,9 @@
"@homeLayoutReset": {
"description": "首页布局:右上角恢复默认排序按钮"
},
"homeLayoutResetDone": "已恢复默认排序",
"homeLayoutResetDone": "已恢复默认布局",
"@homeLayoutResetDone": {
"description": "首页布局:恢复默认排序成功提示"
"description": "首页布局:恢复默认布局成功提示"
},
"homeLayoutDragTip": "拖动右侧把手调整上下顺序,松手后立即保存",
"@homeLayoutDragTip": {
@@ -1602,5 +1602,21 @@
"homeLayoutLoadFailed": "加载首页布局失败,请返回重试",
"@homeLayoutLoadFailed": {
"description": "首页布局:加载失败提示"
},
"homeLayoutDefaultTip": "点击「设为默认」按钮可设为默认页面(开机后展示的页面)",
"@homeLayoutDefaultTip": {
"description": "首页布局:点击设为默认页说明"
},
"homeLayoutDefaultBadge": "默认页面",
"@homeLayoutDefaultBadge": {
"description": "首页布局:默认页标记"
},
"homeLayoutSetDefault": "设为默认",
"@homeLayoutSetDefault": {
"description": "首页布局:设为默认页按钮"
},
"homeLayoutDefaultDone": "已设为默认页",
"@homeLayoutDefaultDone": {
"description": "首页布局:设为默认页成功提示"
}
}