feat(mp, web, calendar): 新增微信收藏夹与日历批量生成功能
- 新增微信小程序版个人收藏夹全套功能,包含聚合首页、收藏列表、编辑、详情页面与配套后端API - 新增web版时光助手门户与个人收藏夹工具,支持与小程序共享后端数据 - 优化日历提醒工具:替换本地bootstrap资源为公共CDN版本,新增批量生成循环提醒的前端界面与后端逻辑,新增数据库batch_id字段,更新鉴权配置文件 - 补充项目配置、站点地图、调试诊断脚本等配套文件 - 完善各模块的页面配置与样式文件
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
App({
|
||||
globalData: {
|
||||
apiBase: 'https://traesite.umersoft.com:8975',
|
||||
meta: null,
|
||||
kits: [],
|
||||
},
|
||||
onLaunch() {
|
||||
try {
|
||||
const stored = wx.getStorageSync('mp_ta_meta')
|
||||
if (stored) {
|
||||
this.globalData.meta = stored.meta || null
|
||||
this.globalData.kits = stored.kits || []
|
||||
}
|
||||
} catch (e) {}
|
||||
},
|
||||
setMeta(meta) {
|
||||
this.globalData.meta = meta || null
|
||||
this.globalData.kits = (meta && meta.kits) || []
|
||||
try {
|
||||
wx.setStorageSync('mp_ta_meta', { meta, kits: this.globalData.kits })
|
||||
} catch (e) {}
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user