feat(mini): 各页面增加分享入口(好友/朋友圈)及设置页微调
This commit is contained in:
@@ -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: '老黄历 - 个人中心'
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user