Commit fc184bb6 authored by spc's avatar spc

showMask

parent e3ab3ac2
......@@ -573,7 +573,7 @@ const onGetPhoneNumber = async (e) => {
try {
// 隐藏授权弹窗
showMask.value = false;
userStore.phoneCallback(e.detail).then(async () => {
userStore.phoneCallback(e.detail, null, null, async () => {
// 重新获取用户信息(登录后)
await fetchAct915HomeData();
......
......@@ -71,7 +71,7 @@ export const useUserStore = defineStore("userInfo", {
* @param {Object} data : {encryptedData, iv, code}
* @returns
*/
async phoneCallback(data, onOpenRegisterFn = () => { }, cb) {
async phoneCallback(data, onOpenRegisterFn = () => { }, cb,cb2) {
uni.login({
provider: "weixin",
success: async (res) => {
......@@ -94,6 +94,7 @@ export const useUserStore = defineStore("userInfo", {
const homeStore = useHomeStore();
await homeStore.setBabyExistence(babyExistence);
cb2 && cb2();
// 授权注册成功后做一次登录
this.wxAutoLogin();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment