my.getAuthCode({
scopes: ['hospital_order'], //获取用户信息的固定写法
success: async res => {
if (res.authCode) {
//发送请求
const requestPayload = {
authCode: res.authCode
};
const retult = await request(
"/api/login/getAccessToken",
FlieHeader,
requestPayload,
"post"
);
if (retult.code !== 200) return;
}
},
complete: res => {
if (res.errorMessage == '用户取消授权') {
this.gets()
}
}
});
支付宝小程序消息推送
最新推荐文章于 2024-04-08 20:02:40 发布