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

@@ -261,9 +261,11 @@ li {
transform: rotate(360deg); transform: rotate(360deg);
} }
} }
.el-popper.is-pure {
border: 1px solid;
}
.el-popper { .el-popper {
padding: 0.5rem 1.1rem; padding: 0.5rem 1.1rem;
border: 2px solid;
} }
.el-popper .el-popper__arrow { .el-popper .el-popper__arrow {
display: none; display: none;

View File

@@ -272,10 +272,11 @@ input:focus{
.el-popper.is-pure{
border: 1px solid;
}
.el-popper{ .el-popper{
padding: .5rem 1.1rem; padding: .5rem 1.1rem;
border: 2px solid;
.el-popper__arrow{ .el-popper__arrow{
display: none; display: none;
} }

View File

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

View File

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

View File

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

View File

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

View File

@@ -608,6 +608,7 @@ export default {
userName:'用户名', userName:'用户名',
email:'邮箱', email:'邮箱',
Submit:'提交', Submit:'提交',
UpdateAvatar:'修改头像',
//消息 //消息
systemMessages:'系统消息', systemMessages:'系统消息',
comment:'评论', comment:'评论',

View File

@@ -607,6 +607,7 @@ export default {
userName:'User Name', userName:'User Name',
email:'Email', email:'Email',
Submit:'Submit', Submit:'Submit',
UpdateAvatar:'Update Avatar',
//消息 //消息
systemMessages:'System Messages', systemMessages:'System Messages',
comment:'Comment', comment:'Comment',

View File

@@ -22,7 +22,7 @@ interface UserHabit{
messageSystem:any, messageSystem:any,
sex:any, sex:any,
userDetail:any, userDetail:any,
isBindEmail:any, bindEmail:any,
} }
const userHabit : Module<UserHabit,RootState> = { const userHabit : Module<UserHabit,RootState> = {
@@ -79,7 +79,10 @@ const userHabit : Module<UserHabit,RootState> = {
subscriptionType:null, subscriptionType:null,
subscriptionId:null, subscriptionId:null,
}, },
isBindEmail:false bindEmail : {
isBindEmail:false,
type:''
}
}, },
mutations:{ mutations:{
res_clothingType(state,data){ res_clothingType(state,data){
@@ -177,12 +180,23 @@ const userHabit : Module<UserHabit,RootState> = {
//是否是affiliate用户 //是否是affiliate用户
affiliate:false, 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){ setUserDetail(state,data){
// console.log(data); // console.log(data);
console.log(data.email,state.userDetail.email); 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 // if(!data.email && !state.userDetail.email)state.isBindEmail = true
// state.userDetail = data // state.userDetail = data
state.userDetail.email = data.email?data.email:'-------------' state.userDetail.email = data.email?data.email:'-------------'

View File

@@ -610,11 +610,11 @@ export default defineComponent({
flex-shrink: 0; flex-shrink: 0;
display: flex; display: flex;
// padding: 0 30px; // padding: 0 30px;
padding: 0 6rem; padding: 2rem 6rem;
width: 100%; width: 100%;
height: auto; height: auto;
background: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.2);
// border-bottom: 0.1rem solid rgba(3, 3, 3, 0.1); border-bottom: 1px solid #e1e1e1;
position: relative; position: relative;
align-items: center; align-items: center;
z-index: 9; z-index: 9;

View File

@@ -4,7 +4,6 @@
<!-- <generalCanvas></generalCanvas> --> <!-- <generalCanvas></generalCanvas> -->
<div class="page_content"> <div class="page_content">
{{ userDetail.systemList }}
<div class="userSystem" v-if="userDetail.systemList.indexOf(1) == -1"> <div class="userSystem" v-if="userDetail.systemList.indexOf(1) == -1">
You can use these features only after becoming a regular user~ You can use these features only after becoming a regular user~
</div> </div>
@@ -92,19 +91,20 @@
</div> </div>
<div class="right_content_block_box"> <div class="right_content_block_box">
<div class="right_content_block"> <div class="right_content_block">
<div class="right_content_header">
<div class="content_header_left">
<i class="fi fi-rs-comments"></i><span class="content_header_des">
{{ $t('HomeView.GeneratedDesign') }}
</span>
</div>
</div>
<div class="right_content_body"> <div class="right_content_body">
<div class="right_content_header">
<div class="content_header_left">
<i class="fi fi-rs-comments"></i><span class="content_header_des">
{{ $t('HomeView.GeneratedDesign') }}
</span>
</div>
</div>
<div class="right_content_img_block scroll_style Guide_1_17 active" :class="[driver__.driver?'showEvents':'']"> <div class="right_content_img_block scroll_style Guide_1_17 active" :class="[driver__.driver?'showEvents':'']">
<div class="right_content_img_item" ref="designImg"> <div class="right_content_img_item" ref="designImg">
<div class="content_img_block active" :style="collStyle" @mousedown.stop="designMousedown(getMousePosition($event,false))" @touchstart.passive="designMousedown(getMousePosition($event,true))" <div class="content_img_block content_img_GetWidth active" :style="collStyle" @mousedown.stop="designMousedown(getMousePosition($event,false))" @touchstart.passive="designMousedown(getMousePosition($event,true))"
v-for="(design, index) in likeDesignCollectionList" :key="design.id" v-for="(design, index) in likeDesignCollectionList" :key="design.id"
@click="designDetail( @click="designDetail(
design, design,
@@ -126,7 +126,7 @@
<div class="content_img_block" v-show="showDesignMark" :style="collStyle"> <div class="content_img_block" v-show="showDesignMark" :style="collStyle">
<a-spin size="large" class="content_img_flex"></a-spin> <a-spin size="large" class="content_img_flex"></a-spin>
</div> </div>
<div class="content_img_block" :style="collStyle" v-for="( <div class="content_img_block content_img_GetWidth" :style="collStyle" v-for="(
design, index design, index
) in designCollectionList" :key="design?.designItemId" @mousedown.stop="designMousedown(getMousePosition($event,false))" @touchstart.passive="designMousedown(getMousePosition($event,true))"> ) in designCollectionList" :key="design?.designItemId" @mousedown.stop="designMousedown(getMousePosition($event,false))" @touchstart.passive="designMousedown(getMousePosition($event,true))">
<div class="content_img_flex" <div class="content_img_flex"
@@ -157,15 +157,14 @@
</div> </div>
</div> </div>
<div class="right_content_block recycleBin" :class="{recycleBinShow:recycleDomHidden && designCollectionId}"> <div class="right_content_block recycleBin" :class="{recycleBinShow:recycleDomHidden && designCollectionId}">
<div class="right_content_header">
<div class="content_header_left">
<i class="fi fi-rs-comments"></i><span class="content_header_des">
{{ $t('HomeView.recycleBin') }}
</span>
</div>
</div>
<div class="right_content_body"> <div class="right_content_body">
<div class="right_content_header">
<div class="content_header_left">
<i class="fi fi-rs-comments"></i><span class="content_header_des">
{{ $t('HomeView.recycleBin') }}
</span>
</div>
</div>
<div class="right_content_img_block scroll_style"> <div class="right_content_img_block scroll_style">
<div class="right_content_img_item"> <div class="right_content_img_item">
<div class="content_img_block" v-for="( <div class="content_img_block" v-for="(
@@ -389,7 +388,7 @@ export default defineComponent({
const setDesignImgWidth = ()=>{ const setDesignImgWidth = ()=>{
nextTick(()=>{ nextTick(()=>{
let width = designImg.value.parentElement.offsetWidth let width = designImg.value.parentElement.offsetWidth
let sonDom = designImg.value.querySelectorAll('.content_img_block')[designImg.value.querySelectorAll('.content_img_block').length - 1] let sonDom = designImg.value.querySelectorAll('.content_img_GetWidth')[0]
if(Math.floor(width / (sonDom.offsetWidth+10 + 1)) > (likeDesignCollectionList.value.length + designCollectionList.value.length)){ if(Math.floor(width / (sonDom.offsetWidth+10 + 1)) > (likeDesignCollectionList.value.length + designCollectionList.value.length)){
designImg.value.style.width = 100+'%' designImg.value.style.width = 100+'%'
}else{ }else{
@@ -1398,7 +1397,7 @@ export default defineComponent({
position: absolute; position: absolute;
width: 100%; width: 100%;
height: 100%; height: 100%;
padding-bottom: 2.1rem; padding-bottom: 4rem;
box-sizing: border-box; box-sizing: border-box;
z-index:1; z-index:1;
.home_page_body { .home_page_body {
@@ -1666,11 +1665,14 @@ export default defineComponent({
// height: calc(50% - 4.5rem); // height: calc(50% - 4.5rem);
flex: 1; flex: 1;
overflow: auto; overflow: auto;
background: #f6f6fa;
border-radius: 2rem;
display: flex;
flex-direction: column;
.right_content_img_block { .right_content_img_block {
// overflow-y: auto; // overflow-y: auto;
background: #f6f6fa;
border-radius: 2rem;
height: 100%; height: 100%;
flex: 1;
display: flex; display: flex;
width: auto; width: auto;
// overflow: hidden; // overflow: hidden;

View File

@@ -229,7 +229,6 @@
</div> </div>
<div class="right_content_body" v-show="uploadGenerate !='Upload'"> <div class="right_content_body" v-show="uploadGenerate !='Upload'">
<div class="content_body_header content_body_header_generate"> <div class="content_body_header content_body_header_generate">
<div class="content_body_header_right"></div>
<!-- <div v-show="selectCode == 'Printboard' && scene?.value == 'Pattern'" class="printModel"> <!-- <div v-show="selectCode == 'Printboard' && scene?.value == 'Pattern'" class="printModel">
<div @click.stop="PrintModel">{{ printModel.name }}</div> <div @click.stop="PrintModel">{{ printModel.name }}</div>
<ul v-show="printModel.optype"> <ul v-show="printModel.optype">
@@ -1766,7 +1765,7 @@ export default defineComponent({
.library_body_left{ .library_body_left{
// width: 27.5rem; // width: 27.5rem;
// width: 36.5rem; // width: 36.5rem;
width: 23rem; width: 25rem;
height: 100%; height: 100%;
margin-right: 3rem; margin-right: 3rem;
background: #f7f8fa; background: #f7f8fa;
@@ -1965,7 +1964,7 @@ export default defineComponent({
} }
} }
&.content_body_header_generate{ &.content_body_header_generate{
justify-content: flex-start; // justify-content: flex-start;
.checkboxItem { .checkboxItem {
margin-right: 4rem; margin-right: 4rem;
label { label {