Files
PetCommunity/miniprogram/app.json
chenwu 24891d9004 chore: 补全工程配置,部署云函数,建立数据库索引
- 新增 .gitignore(排除 node_modules、私有配置、编译产物)
- 新增 cloudbaserc.json,绑定云环境 cloud1-d4g697lte499543d8
- project.config.json:补 miniprogramRoot、开启 useCompilerPlugins typescript,修复预览报 app.json 找不到的问题
- tsconfig.json:移除无效 typeRoots,解除 TypeScript 编译阻断
- miniprogram/app.json:移除 glass-easel(需基础库 3.x,兼容性差)
- miniprogram/utils/constants.ts:填入真实云环境 ID
- cloudfunctions/updateLocation:位置字段改用 GeoPoint 以支持地理索引
- cloudfunctions/getNearbyPets:改用 geoNear 聚合管道,支持真实距离排序

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-06-06 00:37:33 +08:00

51 lines
1.3 KiB
JSON

{
"pages": [
"pages/feed/feed",
"pages/nearby/nearby",
"pages/friends/friends",
"pages/profile/profile",
"pages/login/login",
"pages/post/post",
"pages/pet-detail/pet-detail",
"pages/chat/chat",
"pages/post-detail/post-detail",
"pages/pet-edit/pet-edit",
"pages/edit-profile/edit-profile",
"pages/search/search",
"pages/notifications/notifications",
"pages/story/story",
"pages/webview/webview"
],
"tabBar": {
"custom": true,
"color": "#9b8fa8",
"selectedColor": "#ff4f91",
"backgroundColor": "#ffffff",
"list": [
{ "pagePath": "pages/feed/feed", "text": "广场" },
{ "pagePath": "pages/nearby/nearby", "text": "附近" },
{ "pagePath": "pages/friends/friends", "text": "汪友" },
{ "pagePath": "pages/profile/profile", "text": "我的" }
]
},
"window": {
"navigationStyle": "custom",
"backgroundTextStyle": "dark",
"backgroundColor": "#fff9fb"
},
"permission": {
"scope.userLocation": {
"desc": "汪圈需要您的位置来显示附近的宠物和精准内容"
}
},
"requiredPrivateInfos": ["getLocation", "chooseLocation"],
"sitemapLocation": "sitemap.json",
"style": "v2",
"lazyCodeLoading": "requiredComponents",
"networkTimeout": {
"request": 10000,
"uploadFile": 60000,
"downloadFile": 60000
}
}