zhuyuan-ice-gl-zy001/~/Projects/guanghulab-miniapp/app.js

41 lines
1.9 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// app.js — 光湖知识库原型(假数据阶段,未接后端)
App({
onLaunch() {
// 微信登录、后端接入在联调阶段接入
},
globalData: {
// 假数据池:详情/编辑页从这取
notes: [
{
id: 'n1',
title: '湖边读书笔记 · 《人类简史》第3章',
content: '## 核心观点\n智人胜出的关键不是更强壮,而是**虚构故事的能力**——货币、国家、公司都是集体想象。\n\n## 我的想法\n这和语言塑造现实是一个道理:先有共同的叙事,才有协作的世界。\n\n## 待查\n- 认知革命的时间线\n- 尼安德特人灭绝的争议',
summary: '虚构故事能力是智人胜出关键;联想到语言塑造现实。',
tags: ['读书', '人类简史', '思维'],
visibility: 'public', // public=公开 | private=私密
aiReadable: true, // AI 可读
updatedAt: '08-27 21:40'
},
{
id: 'n2',
title: '广式老火汤底配比记录',
content: '## 材料\n- 猪骨 500g 焯水\n- 蜜枣 2 颗\n- 玉米 1 根切段\n- 胡萝卜 1 根\n\n## 火候\n大火烧开转小火 2.5 小时,盐最后放。',
summary: '猪骨焯水+蜜枣玉米胡萝卜,小火2.5小时,盐最后放。',
tags: ['生活', '菜谱'],
visibility: 'private',
aiReadable: true,
updatedAt: '08-26 18:12'
},
{
id: 'n3',
title: '项目灵感:给光湖做的迷你星历',
content: '## 想法\n每天自动算当天行星位置,配一段温柔的星象播报。\n\n## 依据\nSwiss Ephemeris 精度到角秒级,服务器端跑。',
summary: '每日行星位置+星象播报,Swiss Ephemeris 实现。',
tags: ['灵感', '星象'],
visibility: 'public',
aiReadable: false, // 公开但不想让 AI 读的例子
updatedAt: '08-25 09:03'
}
]
}
})