注册微信后绑定邮箱
This commit is contained in:
@@ -338,14 +338,10 @@ export default defineComponent({
|
||||
userEmail: this.email,
|
||||
emailVerifyCode: emailVerifyCode,
|
||||
};
|
||||
console.log(data);
|
||||
|
||||
Https.axiosPost(Https.httpUrls.accountBindEmail, data).then(
|
||||
(rv: any) => {
|
||||
console.log(rv);
|
||||
|
||||
if(rv.token)setCookie("token", rv.token);
|
||||
// this.setSuccessLogin(rv)
|
||||
this.setSuccessLogin(rv)
|
||||
}
|
||||
).catch(res=>{
|
||||
});
|
||||
|
||||
@@ -2,6 +2,7 @@ import {Module} from 'vuex'
|
||||
import {RootState} from '../index'
|
||||
import { Https } from "@/tool/https";
|
||||
import { setLang } from "@/tool/guide";
|
||||
import { setCookie } from "@/tool/cookie";
|
||||
import store from '../index'
|
||||
interface UserHabit{
|
||||
clothingType:any,
|
||||
@@ -212,6 +213,8 @@ const userHabit : Module<UserHabit,RootState> = {
|
||||
state.userDetail.occupation = data.occupation//头像
|
||||
state.userDetail.usernameModify = data.usernameModify//当月剩余修改次数
|
||||
state.userDetail.isBeginner = data.isBeginner == 1 ? true : false;//是否完成新手指引
|
||||
setCookie("isBeginner", state.userDetail.isBeginner);
|
||||
|
||||
if(
|
||||
(!data.email && state.userDetail.email == '-------------') ||
|
||||
(!data.country && !state.userDetail.country) ||
|
||||
|
||||
@@ -730,7 +730,6 @@ export default defineComponent({
|
||||
//判断账号剩余时间是否太短
|
||||
let isModalOne = JSON.parse(sessionStorage.getItem("isTimeOne") as any)
|
||||
|
||||
if(this.store.state.UserHabit.bindEmail.isBindEmail)return
|
||||
if(!isModalOne){//判断是否是试用用户
|
||||
// if(!isTest && !isModalOne){//判断是否是试用用户
|
||||
await new Promise(async (resolve) => {
|
||||
|
||||
Reference in New Issue
Block a user