This commit is contained in:
X1627315083
2025-01-02 11:47:09 +08:00
parent e20fae0c95
commit d053a8c92b
12 changed files with 77 additions and 50 deletions

View File

@@ -15,7 +15,7 @@
:destroyOnClose="true"
:zIndex="9999"
>
<div class="generalModel_btn" v-if="type == 'Modify'">
<div class="generalModel_btn" v-if="bindType == 'Modify'">
<div class="generalModel_closeIcon" @click.stop="cancelDsign()">
<!-- <i class="fi fi-rr-cross-small"></i> -->
<svg width="46" height="46" viewBox="0 0 46 46" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -37,12 +37,12 @@
'login_active',
]"
>
<span v-if="type == 'Modify'">Modify Email</span>
<span v-if="bindType == 'Modify'">Modify Email</span>
<span v-else>Bind Email</span>
</div>
</div>
<!-- 账号密码登录 start -->
<!-- v-show="loginType == 'username'" -->
<!-- v-show="login$props.Type == 'username'" -->
<div >
<div class="login_form_content" :state="emailStap">
<div class="login_form_title marign_top30">Email</div>
@@ -95,7 +95,7 @@
:state="emailStap"
@click="submitPerLogin()"
>
<span v-if="type == 'Modify'">Modify Email</span>
<span v-if="bindType == 'Modify'">Modify Email</span>
<span v-else>Bind Email</span>
</div>
</div>
@@ -126,14 +126,17 @@ export default defineComponent({
components: {
VerificationCodeInput,
},
props:['type'],
setup(){
setup(prop, { emit }){
const bindType = ''
let timer:any = 0;
const {locale} = useI18n()
const store = useStore();
let register = reactive({
registerModel:computed(()=>{
return store.state.UserHabit.isBindEmail
return store.state.UserHabit.bindEmail.isBindEmail
}),
bindType:computed(()=>{
return store.state.UserHabit.bindEmail.type
}),
registerModelMask:true,
pageWidth:'45%'
@@ -165,10 +168,13 @@ export default defineComponent({
};
},
methods: {
init(){
this.registerModel = true
init(type:any){
let data = {
type,
isBindEmail:true
}
this.store.commit('setIsBindEmail', data)
this.emailLastStepFun()
},
@@ -297,7 +303,7 @@ export default defineComponent({
}
},
cancelDsign(){
this.registerModel = false
this.store.commit('setIsBindEmail', false)
}
},
});