fix
This commit is contained in:
@@ -22,7 +22,7 @@ interface UserHabit{
|
||||
messageSystem:any,
|
||||
sex:any,
|
||||
userDetail:any,
|
||||
isBindEmail:any,
|
||||
bindEmail:any,
|
||||
}
|
||||
|
||||
const userHabit : Module<UserHabit,RootState> = {
|
||||
@@ -79,7 +79,10 @@ const userHabit : Module<UserHabit,RootState> = {
|
||||
subscriptionType:null,
|
||||
subscriptionId:null,
|
||||
},
|
||||
isBindEmail:false
|
||||
bindEmail : {
|
||||
isBindEmail:false,
|
||||
type:''
|
||||
}
|
||||
},
|
||||
mutations:{
|
||||
res_clothingType(state,data){
|
||||
@@ -177,12 +180,23 @@ const userHabit : Module<UserHabit,RootState> = {
|
||||
//是否是affiliate用户
|
||||
affiliate:false,
|
||||
}
|
||||
state.isBindEmail = false
|
||||
state.bindEmail = {
|
||||
isBindEmail:false,
|
||||
type:''
|
||||
}
|
||||
},
|
||||
setIsBindEmail(state,data){
|
||||
state.bindEmail.isBindEmail = data.isBindEmail
|
||||
state.bindEmail.type = data.type
|
||||
|
||||
},
|
||||
setUserDetail(state,data){
|
||||
// console.log(data);
|
||||
console.log(data.email,state.userDetail.email);
|
||||
if((!data.email || data.email == '-------------') && state.userDetail.email == '-------------')state.isBindEmail = true
|
||||
if(!data.email && state.userDetail.email == '-------------'){
|
||||
state.bindEmail.isBindEmail = true
|
||||
state.bindEmail.type = ''
|
||||
}
|
||||
// if(!data.email && !state.userDetail.email)state.isBindEmail = true
|
||||
// state.userDetail = data
|
||||
state.userDetail.email = data.email?data.email:'-------------'
|
||||
|
||||
Reference in New Issue
Block a user