商品详情

This commit is contained in:
2024-03-10 15:40:26 +08:00
parent 107783062b
commit 00013cb46c
34 changed files with 2244 additions and 65 deletions

View File

@@ -62,9 +62,18 @@ const useUserStore = defineStore('user', {
provider,
success: async (result: UniApp.LoginRes) => {
if(result.code) {
const wechatUserInfo = await uni.getUserInfo();
console.log(result, wechatUserInfo);
const userInfo = {
...wechatUserInfo.userInfo,
encryptedData: wechatUserInfo?.encryptedData,
rawData: JSON.parse(wechatUserInfo?.rawData),
signature: wechatUserInfo?.signature
};
const res = await login({
code: result.code,
userInfo: (await uni.getUserInfo()).userInfo,
userInfo: userInfo,
referrerUserId: '1727303781559697409'
});
resolve(res);