绑定页新UI+逻辑链路的适配+设备的首页无设备页面和详情页面

This commit is contained in:
2026-10-24 17:18:42 +08:00
parent e3af8cf617
commit 8a41113c92
10 changed files with 2931 additions and 105 deletions

View File

@@ -23,6 +23,16 @@ class DeviceV2Display {
/// 版本后缀:PLUS 智能版 / STD 标准版 / PRO 旗舰版
static String editionOf(String key) => _editions[_seed(key) % _editions.length];
/// 版本占位:v2.x.y(后端暂无版本字段,集中概览表格用)
static String versionOf(String key) =>
'v2.${_seed(key) % 4}.${_seed(key) ~/ 4 % 10}';
static const _locations = ['1号厂房', '2号厂房', '原料区', '综合楼'];
/// 位置占位:后端暂无位置字段,集中概览表格用
static String locationOf(String key) =>
_locations[_seed(key) % _locations.length];
/// SN 掩码展示:前4 · · · 后2
static String maskedSn(String key) {
if (key.length <= 6) return key.toUpperCase();