diff --git a/.vscode/settings.json b/.vscode/settings.json index f3006236..6a24f307 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,3 @@ { - "kiroAgent.configureMCP": "Disabled" - - + "kiroAgent.configureMCP": "Enabled" } diff --git a/TUICallKit-Vue3/App.vue b/TUICallKit-Vue3/App.vue index b88a68b7..06e86640 100644 --- a/TUICallKit-Vue3/App.vue +++ b/TUICallKit-Vue3/App.vue @@ -31,8 +31,6 @@ onLaunch(() => { uni.login({ provider: 'weixin', success: function (loginRes) { - console.log('xx'); - console.log(loginRes.code); if( uni.getStorageSync('token')){ userinfo(loginRes.code); }else{ diff --git a/TUICallKit-Vue3/main.js b/TUICallKit-Vue3/main.js index ce23c462..e6a8b7f1 100644 --- a/TUICallKit-Vue3/main.js +++ b/TUICallKit-Vue3/main.js @@ -1,5 +1,5 @@ import App from './App' -var baseUrl ='https://css.zhenyangtang.com.cn/'; +var baseUrl ='https://admin.zhenyangtang.com.cn/'; function joinApiUrl(base, path) { const b = String(base || '').replace(/\/+$/, '') diff --git a/TUICallKit-Vue3/pages.json b/TUICallKit-Vue3/pages.json index fd67dba7..54474cf1 100644 --- a/TUICallKit-Vue3/pages.json +++ b/TUICallKit-Vue3/pages.json @@ -167,6 +167,23 @@ "backgroundColor": "#faf9f5", "enablePullDownRefresh": true } + }, + { + "path": "pages/weekly", + "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "血糖管理", + "backgroundColor": "#f4fbf4", + "enablePullDownRefresh": true, + "mp-weixin": { + "usingPlugins": { + "WechatSI": { + "version": "0.3.5", + "provider": "wx069ba97219f66d99" + } + } + } + } } ] } diff --git a/TUICallKit-Vue3/tongji/components/TongjiIcon.vue b/TUICallKit-Vue3/tongji/components/TongjiIcon.vue index 32ecec3a..90f59470 100644 --- a/TUICallKit-Vue3/tongji/components/TongjiIcon.vue +++ b/TUICallKit-Vue3/tongji/components/TongjiIcon.vue @@ -40,6 +40,9 @@ const ICON_PATHS = { heart: '', activity: '', users: '', + user: '', + person: '', + send: '', 'alert-triangle': '', minus: '', droplet: '', @@ -54,7 +57,16 @@ const ICON_PATHS = { info: '', sun: '', moon: '', - sunset: '' + sunset: '', + mic: '', + camera: '', + bulb: '', + leaf: '', + utensils: '', + egg: '', + home: '', + 'plus-circle': '', + 'chevron-right': '' } /** 图片加载失败时的 emoji 回退 */ @@ -68,6 +80,9 @@ const ICON_FALLBACK = { heart: '❤', activity: '🏃', users: '👥', + user: '👤', + person: '👤', + send: '➤', 'alert-triangle': '⚠', minus: '—', droplet: '💧', @@ -82,7 +97,16 @@ const ICON_FALLBACK = { info: '!', sun: '☀', moon: '🌙', - sunset: '☀' + sunset: '☀', + mic: '🎤', + camera: '📷', + bulb: '💡', + leaf: '🥬', + utensils: '🍴', + egg: '🍳', + home: '🏠', + 'plus-circle': '⊕', + 'chevron-right': '›' } const strokeColor = computed(() => { diff --git a/TUICallKit-Vue3/tongji/design-system/DESIGN.md b/TUICallKit-Vue3/tongji/design-system/DESIGN.md new file mode 100644 index 00000000..10b0305b --- /dev/null +++ b/TUICallKit-Vue3/tongji/design-system/DESIGN.md @@ -0,0 +1,28 @@ +# VitalMint Health (Stitch) + +Source: Google Stitch MCP · project `Modern WeChat UI Redesign` +Screen HTML: `design-system/stitch-weekly.html` + +## Colors + +- background / surface: `#f4fbf4` +- primary: `#006c49` +- primary-container: `#10b981` +- tertiary-container (餐后): `#fc7c78` +- on-surface: `#161d19` +- error (high glucose): `#ba1a1a` +- warning: `#ea580c` + +## Layout (weekly.vue) + +1. TopAppBar — 头像 + 问候 + 朗读按钮 +2. 录入今日血糖 — 全宽圆角主按钮 +3. 今日血糖 — 双列卡片 + 查看更多 +4. 血糖趋势 — 单卡片内含统计、图表、7/30 切换 +5. AI 饮食 — 渐变边框白底卡片 +6. 能不能吃 — 独立卡片 + +## Styles + +- `styles/stitch-vitalmint-theme.scss` — 设计 token +- `styles/weekly-stitch.scss` — 页面组件样式 (vm-*) \ No newline at end of file diff --git a/TUICallKit-Vue3/tongji/design-system/code.html b/TUICallKit-Vue3/tongji/design-system/code.html new file mode 100644 index 00000000..8d9191a0 --- /dev/null +++ b/TUICallKit-Vue3/tongji/design-system/code.html @@ -0,0 +1,398 @@ + + + +血糖管理 + + + + + + + + + + +
+ +
+ +
+
+
+person +
+
+

下午好,用户16295733

+

今日血糖已记录

+
+
+ +
+ +
+ +
+ +
+ +
+
+
+

血糖趋势

+

最近 7 天 · mmol/L

+
+
+
空腹
+
餐后
+
+
+ +
+
+1 +天偏高 +
+
+1 +天正常 +
+
+2 +天有记录 +
+
+ +
+ +
+23.0 +18.0 +13.0 +8.0 +3.0 +
+ +
+空腹阈 7 + +
+
+
+
+
+ +
18
+
20
+
+ +
+05-23 +05-25 +05-27 +05-29 +
+
+
+ +
+ +
+
+最新测量 · 餐后 +
+20.00 +mmol/L +
+
+warning +偏高,请遵医嘱 +
+
+ +
+
+空腹 +
+18.00 +
+偏高 +
+
+餐后 +
+20.00 +
+偏高 +
+
+
+ +
+
+
+
+
+temp_preferences_custom +
+

AI 饮食建议

+
+ +
+

读您近 7 天 · 30 天血糖,定制今日三餐

+
+
+
+light_mode +早餐 +
+

小米粥(少米多水)加煮鸡蛋一个

+
+
+
+eco +午餐 +
+

清蒸鱼块、蒜蓉炒苋菜、二米饭(小米掺大米)

+
+
+
+ +
+
+
+ sparkles +
+ + +
+
+
+
+ + +
+ + + + + + + \ No newline at end of file diff --git a/TUICallKit-Vue3/tongji/design-system/stitch-screen.json b/TUICallKit-Vue3/tongji/design-system/stitch-screen.json new file mode 100644 index 00000000..221189b1 --- /dev/null +++ b/TUICallKit-Vue3/tongji/design-system/stitch-screen.json @@ -0,0 +1 @@ +{"name":"projects/15362588878567114380/screens/259c8c233434481881d0bacddb59fa7f","title":"血糖管理重构版","screenshot":{"name":"projects/15362588878567114380/files/c18dd3e3d7774a16897d78b40073b9f2","downloadUrl":"https://lh3.googleusercontent.com/aida/ADBb0ugpswBosy3eCG_j3kJlxCWpntXQGvRJvMuepINJTcB47Nf4ymWU81mrjex1ICPdAXn-p_JjyUokOtms4zIJpXL49692zt16mIJhEC16nfU9kH5hwAj1s7v3PlAZbUGWjYjPTdfVMaOCveS6Ohuh_IeyRTD6MmdsFZ2-H7Whg6zy4MiZeGLxRw0ckCOrNbTRObtuzk_dlUc49eDGeRagYtuL9xyS6pno5CiwBzSkGp872chdZVn9JOK-2n1P"},"htmlCode":{"name":"projects/15362588878567114380/files/ca56c13fc2d6481d9de60727f7b70f3f","downloadUrl":"https://contribution.usercontent.google.com/download?c=CgthaWRhX2NvZGVmeBJ8Eh1hcHBfY29tcGFuaW9uX2dlbmVyYXRlZF9maWxlcxpbCiVodG1sXzk5NTVmZjZjNTFkODQxMmY4MzIxNWNkYmIwNWI2MTMzEgsSBxCEnv3unRAYAZIBJAoKcHJvamVjdF9pZBIWQhQxNTM2MjU4ODg3ODU2NzExNDM4MA&filename=&opi=89354086","mimeType":"text/html"},"width":"780","height":"4122","deviceType":"MOBILE"} diff --git a/TUICallKit-Vue3/tongji/design-system/stitch-weekly.html b/TUICallKit-Vue3/tongji/design-system/stitch-weekly.html new file mode 100644 index 00000000..d5e28d3b --- /dev/null +++ b/TUICallKit-Vue3/tongji/design-system/stitch-weekly.html @@ -0,0 +1,351 @@ + + + + + +血糖管理 + + + + + + + + + + +
+
+
+person +
+
+

下午好,用户16295733

+

今日血糖已记录

+
+
+ +
+
+ +
+ +
+ +
+

今日血糖

+
+ +
+
空腹
+
+18.00 +mmol/L +
+
+warning +偏高,请遵医嘱 +
+
+ +
+
餐后
+
+20.00 +mmol/L +
+
+warning +偏高,请遵医嘱 +
+
+
+ +
+ +
+
+
+

血糖趋势

+

最近 7 天 · mmol/L

+
+
+
空腹
+
餐后
+
+
+ +
+
+1 +天偏高 +
+
+1 +天正常 +
+
+2 +天有记录 +
+
+ +
+ +
+23.0 +18.0 +13.0 +8.0 +3.0 +
+ +
+05-23 +05-25 +05-27 +05-29 +
+ +
+空腹阈值 7 +
+ + + + + + + + + +
+ +
+ + +
+
+ +
+
+ +
+
+
+auto_awesome +
+
+
+

AI 饮食建议

+智能定制 +
+

读您近 7 天 · 30 天血糖,定制今日三餐

+
+
+ +
+ +
+
+
今日三餐 +
+ +
+
+wb_sunny +早餐 +
+

小米粥(少米多水)加煮鸡蛋一个

+
+ +
+
+wb_twilight +午餐 +
+

清蒸鱼块、蒜蓉炒苋菜、二米饭(小米掺大米)

+
+ +
+
+dark_mode +晚餐 +
+

玉米糝粥(稀)配凉拌黄瓜

+
+
+ +
+info +

小贴士:先吃菜和肉再吃主食,每餐七分饱,血糖高就少喝粥汤。

+
+ +
+
+warning 今日尽量少碰 +
+
+白馒头 +油条 +粘豆包 +糯米饭 +西瓜 +含糖饮料 +
+
+ +
+ + +
+
+ +
+
+
+ +
+

能不能吃?

+

输入食物名称,结合您的档案判断

+
+ + +
+
+ +
+

数据仅供参考,请遵医嘱

+
+
+ + + \ No newline at end of file diff --git a/TUICallKit-Vue3/tongji/pages/index.vue b/TUICallKit-Vue3/tongji/pages/index.vue index 457f4fcd..007a9b9b 100644 --- a/TUICallKit-Vue3/tongji/pages/index.vue +++ b/TUICallKit-Vue3/tongji/pages/index.vue @@ -373,24 +373,38 @@ - - - - AI 饮食建议 - 读您近 7 天 · 30 天血糖,定制今日三餐 - +