feat(mini): 各页面增加分享入口(好友/朋友圈)及设置页微调
This commit is contained in:
@@ -32,5 +32,16 @@ Page({
|
||||
// 按日期排序
|
||||
terms.sort((a, b) => new Date(a.date) - new Date(b.date));
|
||||
this.setData({ terms });
|
||||
onShareAppMessage() {
|
||||
return {
|
||||
title: '二十四节气 - 节气查询',
|
||||
path: '/pages/solar-terms/solar-terms'
|
||||
};
|
||||
},
|
||||
|
||||
onShareTimeline() {
|
||||
return {
|
||||
title: '二十四节气 - 节气查询'
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user