feat: 祈福小助手万年历小程序第一期

This commit is contained in:
gouki
2026-08-06 08:47:09 +00:00
commit a3e6aa9c01
136 changed files with 16597 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
const { getTodayInfo, getAlmanacInfo } = require('../../utils/core/index.js');
Page({
data: {
dayInfo: {},
almanac: {}
},
onLoad() {
this.loadData();
},
onPullDownRefresh() {
this.loadData();
wx.stopPullDownRefresh();
},
loadData() {
const dayInfo = getTodayInfo();
const almanac = getAlmanacInfo(dayInfo.solarYear, dayInfo.solarMonth, dayInfo.solarDay);
this.setData({ dayInfo, almanac });
},
navTo(e) {
const url = e.currentTarget.dataset.url;
wx.navigateTo({ url });
}
});