Commit fc184bb6 authored by spc's avatar spc

showMask

parent e3ab3ac2
...@@ -573,7 +573,7 @@ const onGetPhoneNumber = async (e) => { ...@@ -573,7 +573,7 @@ const onGetPhoneNumber = async (e) => {
try { try {
// 隐藏授权弹窗 // 隐藏授权弹窗
showMask.value = false; showMask.value = false;
userStore.phoneCallback(e.detail).then(async () => { userStore.phoneCallback(e.detail, null, null, async () => {
// 重新获取用户信息(登录后) // 重新获取用户信息(登录后)
await fetchAct915HomeData(); await fetchAct915HomeData();
......
...@@ -71,7 +71,7 @@ export const useUserStore = defineStore("userInfo", { ...@@ -71,7 +71,7 @@ export const useUserStore = defineStore("userInfo", {
* @param {Object} data : {encryptedData, iv, code} * @param {Object} data : {encryptedData, iv, code}
* @returns * @returns
*/ */
async phoneCallback(data, onOpenRegisterFn = () => { }, cb) { async phoneCallback(data, onOpenRegisterFn = () => { }, cb,cb2) {
uni.login({ uni.login({
provider: "weixin", provider: "weixin",
success: async (res) => { success: async (res) => {
...@@ -94,6 +94,7 @@ export const useUserStore = defineStore("userInfo", { ...@@ -94,6 +94,7 @@ export const useUserStore = defineStore("userInfo", {
const homeStore = useHomeStore(); const homeStore = useHomeStore();
await homeStore.setBabyExistence(babyExistence); await homeStore.setBabyExistence(babyExistence);
cb2 && cb2();
// 授权注册成功后做一次登录 // 授权注册成功后做一次登录
this.wxAutoLogin(); 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