diff --git a/src/App.vue b/src/App.vue index 3e9f70d9..c78513c2 100644 --- a/src/App.vue +++ b/src/App.vue @@ -7,5 +7,6 @@ font-family: Avenir, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; + height: 100%; } diff --git a/src/component/Account/frontPage.vue b/src/component/Account/frontPage.vue index 3fb8084e..f681627f 100644 --- a/src/component/Account/frontPage.vue +++ b/src/component/Account/frontPage.vue @@ -50,6 +50,9 @@ export default defineComponent({ ], loadingShow:false, activeKey: '', + userDetail:computed(()=>{ + return store.state.UserHabit.userDetail + }) }) let domRefs:any = reactive({ myInformation:ref(null), @@ -86,8 +89,13 @@ export default defineComponent({ Https.axiosGet(Https.httpUrls.bindWeChat, {params:data}) .then((rv) => { accountfrontPage.loadingShow = false - console.log(rv); - + let value = { + accountExtendList:{ + WeChat:rv, + Google:accountfrontPage.userDetail.accountExtendList?.Google + } + } + store.commit("upUserDetail", value) router.push({ query: {} }); }) .catch((res) => {accountfrontPage.loadingShow = false}); diff --git a/src/component/Account/frontPage/bindPage.vue b/src/component/Account/frontPage/bindPage.vue index 5f936a2c..b4971aa3 100644 --- a/src/component/Account/frontPage/bindPage.vue +++ b/src/component/Account/frontPage/bindPage.vue @@ -76,6 +76,13 @@ export default defineComponent({ Https.axiosGet(Https.httpUrls.bindGoogle, {params:data}) .then((rv) => { accountHomeData.loadingShow = false + let value = { + accountExtendList:{ + WeChat:accountHomeData.userDetail.accountExtendList?.WeChat, + Google:rv, + } + } + store.commit("upUserDetail", value) }) .catch((res) => {accountHomeData.loadingShow = false}); } diff --git a/src/component/HomePage/bindEmail.vue b/src/component/HomePage/bindEmail.vue new file mode 100644 index 00000000..9f484720 --- /dev/null +++ b/src/component/HomePage/bindEmail.vue @@ -0,0 +1,562 @@ + + + + + \ No newline at end of file diff --git a/src/component/mainPage/signUp/registerModel.vue b/src/component/mainPage/signUp/registerModel.vue index 1ea68c3b..0fefd3b0 100644 --- a/src/component/mainPage/signUp/registerModel.vue +++ b/src/component/mainPage/signUp/registerModel.vue @@ -503,10 +503,11 @@ export default defineComponent({ setCookie("isBeginner", isBeginner); setCookie("isBeginnerNum", 0); //从第一步开始,机器人开始的话就是从第二部开始 setCookie("userInfo", JSON.stringify(rv)); - let userid = { + let userid:any = { ueserId:rv.userId, systemUser:rv.systemUser } + if(rv.email)userid.email = rv.email this.store.commit("upUserDetail", userid); if (window.innerWidth < 768) { diff --git a/src/tool/https.js b/src/tool/https.js index 1766d2b2..f006b91b 100644 --- a/src/tool/https.js +++ b/src/tool/https.js @@ -100,7 +100,7 @@ axios.interceptors.response.use((res) =>{ } } if(!sSystemUser){ - // router.replace('/') + router.replace('/') } message.warning('Please login and try again~') store.commit('createDetail') diff --git a/src/views/HomeMain.vue b/src/views/HomeMain.vue index 97cebe45..a9e2af85 100644 --- a/src/views/HomeMain.vue +++ b/src/views/HomeMain.vue @@ -133,10 +133,12 @@ + +