添加常用国家选择
This commit is contained in:
@@ -199,14 +199,7 @@ const userHabit : Module<UserHabit,RootState> = {
|
||||
|
||||
},
|
||||
setUserDetail(state,data){
|
||||
if(
|
||||
(!data.email && state.userDetail.email == '-------------') ||
|
||||
(!data.country && !state.userDetail.country) ||
|
||||
(!data.occupation && !state.userDetail.occupation)
|
||||
){
|
||||
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:'-------------'
|
||||
@@ -217,6 +210,14 @@ const userHabit : Module<UserHabit,RootState> = {
|
||||
state.userDetail.occupation = data.occupation//头像
|
||||
state.userDetail.usernameModify = data.usernameModify//当月剩余修改次数
|
||||
state.userDetail.isBeginner = data.isBeginner == 1 ? true : false;//是否完成新手指引
|
||||
if(
|
||||
(!data.email && state.userDetail.email == '-------------') ||
|
||||
(!data.country && !state.userDetail.country) ||
|
||||
(!data.occupation && !state.userDetail.occupation)
|
||||
){
|
||||
state.bindEmail.isBindEmail = true
|
||||
state.bindEmail.type = ''
|
||||
}
|
||||
/**
|
||||
* 用于区分游客与系统用户
|
||||
* 0 : 游客
|
||||
|
||||
Reference in New Issue
Block a user