diff --git a/README.md b/README.md index 9975418..1a297b0 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,12 @@ +# DSHWatch(手表端 / Vela 快应用) + +跟随 DeepSeek Harness 的 DSHWatch 手表客户端外壳(UI 空壳阶段)。 + +- 三页左右滑动(会话 / 主页吉祥物 / 设置),底部长条+小点指示器。 +- 吉祥物图取自 dsh-whale-widget 的 DSniang。 +- 页面:pages/index、pages/detail、pages/input、pages/settings。 +- 数据通道:后续接入 @system.interconnect(与手机 APP 通信)。 + ## 快速上手 ### 1. 开发 diff --git a/src/app.ux b/src/app.ux index f88334d..36e920b 100644 --- a/src/app.ux +++ b/src/app.ux @@ -1,10 +1,10 @@ diff --git a/src/common/bridge.js b/src/common/bridge.js new file mode 100644 index 0000000..bea4005 --- /dev/null +++ b/src/common/bridge.js @@ -0,0 +1,16 @@ +// DSHWatch bridge stub (empty-shell UI phase) +// 真正的 interconnect 逻辑后续接入。这里先留一个数据/回调占位,方便页面引用。 + +const listeners = [] + +function setStatus(text) { + // 空壳:后续改为广播给页面 + listeners.forEach((fn) => fn && fn(text)) +} + +function connect() { + // 空壳 + setStatus('未连接') +} + +export { connect, setStatus } diff --git a/src/common/dsniang-think.png b/src/common/dsniang-think.png new file mode 100644 index 0000000..e0967d9 Binary files /dev/null and b/src/common/dsniang-think.png differ diff --git a/src/common/dsniang.png b/src/common/dsniang.png new file mode 100644 index 0000000..f46b232 Binary files /dev/null and b/src/common/dsniang.png differ diff --git a/src/manifest.json b/src/manifest.json index ebea953..acf7274 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,31 +1,30 @@ { - "package": "com.application.watch.demo", + "package": "com.dshwatch.app", "name": "DSHWatch", - "versionName": "1.0.0", + "versionName": "0.1.0", "versionCode": 1, - "minPlatformVersion": 1000, + "minPlatformVersion": 1200, "icon": "/common/logo.png", + "simulationVersion": "default", "deviceTypeList": [ "watch" ], "features": [ - { - "name": "system.router" - } + { "name": "system.router" }, + { "name": "system.interconnect" } ], "config": { "logLevel": "log", - "designWidth": "device-width" + "designWidth": 480 }, "router": { "entry": "pages/index", "pages": { - "pages/index": { - "component": "index" - }, - "pages/detail": { - "component": "detail" - } + "pages/index": { "component": "index" }, + "pages/detail": { "component": "detail" }, + "pages/input": { "component": "input" }, + "pages/settings": { "component": "settings" } } - } -} \ No newline at end of file + }, + "minAPILevel": 1 +} diff --git a/src/pages/detail/detail.ux b/src/pages/detail/detail.ux index 0dca2d6..edb7ed5 100644 --- a/src/pages/detail/detail.ux +++ b/src/pages/detail/detail.ux @@ -1,26 +1,129 @@ diff --git a/src/pages/index/index.ux b/src/pages/index/index.ux index e2e5f30..f03236e 100644 --- a/src/pages/index/index.ux +++ b/src/pages/index/index.ux @@ -1,48 +1,280 @@ diff --git a/src/pages/input/input.ux b/src/pages/input/input.ux new file mode 100644 index 0000000..6316d79 --- /dev/null +++ b/src/pages/input/input.ux @@ -0,0 +1,108 @@ + + + + + diff --git a/src/pages/settings/settings.ux b/src/pages/settings/settings.ux new file mode 100644 index 0000000..611f5d1 --- /dev/null +++ b/src/pages/settings/settings.ux @@ -0,0 +1,102 @@ + + + + +