feat(mini): 各页面增加分享入口(好友/朋友圈)及设置页微调

This commit is contained in:
gouki
2026-08-10 23:03:16 +00:00
parent 738b5c4452
commit 52c0d3c774
14 changed files with 172 additions and 26 deletions
+15 -2
View File
@@ -46,7 +46,7 @@ Page({
success: (loginRes) => {
if (!loginRes.code) {
this.setData({ logging: false });
wx.showToast({ title: '微信登录失败', icon: 'none' });
wx.showToast({ title: '授权登录失败', icon: 'none' });
return;
}
request({
@@ -72,7 +72,7 @@ Page({
},
fail: () => {
this.setData({ logging: false });
wx.showToast({ title: '微信登录失败', icon: 'none' });
wx.showToast({ title: '授权登录失败', icon: 'none' });
}
});
},
@@ -100,5 +100,18 @@ Page({
} else {
wx.navigateTo({ url });
}
},
onShareAppMessage() {
return {
title: '老黄历 - 个人中心',
path: '/pages/settings/settings'
};
},
onShareTimeline() {
return {
title: '老黄历 - 个人中心'
};
}
});