feat(mini): 各页面增加分享入口(好友/朋友圈)及设置页微调
This commit is contained in:
@@ -53,4 +53,11 @@ Page({
|
||||
path: `/pages/wish-detail/wish-detail?id=${wish ? wish.id : ''}`,
|
||||
};
|
||||
},
|
||||
|
||||
onShareTimeline() {
|
||||
const { wish } = this.data;
|
||||
return {
|
||||
title: wish ? `我的愿望:${wish.content.substring(0, 20)}...` : '快来许愿吧!'
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user