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

@@ -2,9 +2,9 @@
<div class="account_frontPage">
<a-tabs class="account_frontPage_body" v-model:activeKey="activeKey" @change="changeTabs">
<a-tab-pane v-for="item in frontPageList" :key="item.key">
<myInformation v-if="item.key == 'myInformation'" :ref="item.key"></myInformation>
<bind v-if="item.key == 'bind'" :ref="item.key"></bind>
<cancelRenewal v-if="item.key == 'cancelRenewal'" :ref="item.key"></cancelRenewal>
<myInformation v-if="item.key == 'myInformation' && activeKey == 'myInformation'" :ref="item.key"></myInformation>
<bind v-if="item.key == 'bind' && activeKey == 'bind'" :ref="item.key"></bind>
<cancelRenewal v-if="item.key == 'cancelRenewal' && activeKey == 'cancelRenewal'" :ref="item.key"></cancelRenewal>
<template #tab>
<a-badge :count="0" >
<span>{{item.title}}</span>

View File

@@ -46,7 +46,7 @@
<a-spin size="large" />
</div>
<weiXinModel ref="weiXinModel"></weiXinModel>
<bindEmail ref="bindEmail" type="Modify"></bindEmail>
<bindEmail ref="bindEmail"></bindEmail>
</div>
</template>
<script>
@@ -129,7 +129,7 @@ export default defineComponent({
})
}
const modifyEmail = ()=>{
bindPageDom.bindEmail.init()
bindPageDom.bindEmail.init('Modify')
}
onMounted(async ()=>{

View File

@@ -1,6 +1,7 @@
<template>
<div class="accountEdit_page">
<div class="accountEdit_page_head">
<div>{{ $t('account.UpdateAvatar') }}</div>
<div class="upload_item">
<div class="upload_file_item">
<a-upload

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)
}
},
});