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