Merge remote-tracking branch 'origin/StableVersion' into dev_vite

This commit is contained in:
X1627315083
2025-09-30 10:49:27 +08:00
3 changed files with 96 additions and 40 deletions

View File

@@ -119,7 +119,9 @@ export default defineComponent({
// detailData.frontBack.back[index].style[key] = value*sacle+'px' // detailData.frontBack.back[index].style[key] = value*sacle+'px'
} }
}); });
setTimeout(() => {
emit('modelOnLoad') emit('modelOnLoad')
});
}; };
img.src = detailData.frontBack?.body?.path; img.src = detailData.frontBack?.body?.path;
}) })

View File

@@ -68,6 +68,7 @@
<div class="codeEmail">Weve sent an code to your email <span>{{ email }}</span></div> <div class="codeEmail">Weve sent an code to your email <span>{{ email }}</span></div>
<div class="codeEmailInput"> <div class="codeEmailInput">
<VerificationCodeInput <VerificationCodeInput
ref="verificationCodeInputDom"
:ct="emailCode" :ct="emailCode"
@sendCaptcha="submitEmailLogin($event)" @sendCaptcha="submitEmailLogin($event)"
></VerificationCodeInput> ></VerificationCodeInput>
@@ -97,7 +98,9 @@
<div <div
class="login_submit_button" class="login_submit_button"
:state="emailStap" :state="emailStap"
:class="{'active':animation}"
@click="submitPerLogin()" @click="submitPerLogin()"
@mousedown="loginBtnMousedown"
> >
Sign in Sign in
</div> </div>
@@ -302,6 +305,8 @@ export default defineComponent({
passwordType: "password", passwordType: "password",
userId: "", userId: "",
loginTime: true, loginTime: true,
animation: false,
inputCodeTime: null as any,
}; };
}, },
onBeforeUnmount() { onBeforeUnmount() {
@@ -415,6 +420,16 @@ export default defineComponent({
submitPerLogin() { submitPerLogin() {
//输入账号密码 //输入账号密码
if (this.emailStap >= 2) { if (this.emailStap >= 2) {
let verificationCodeInputDom:any = this.$refs.verificationCodeInputDom
let code = verificationCodeInputDom.getCtData.map(item => item).join('');
console.log(code)
if(code.length !== this.emailCode.length){
message.info("Please enter the complete verification code.");
}else{
this.submitEmailLogin(code)
}
//提交验证码
return; return;
} else { } else {
if (!this.password) { if (!this.password) {
@@ -482,6 +497,8 @@ export default defineComponent({
//邮箱登录提交 //邮箱登录提交
submitEmailLogin(emailVerifyCode: any) { submitEmailLogin(emailVerifyCode: any) {
clearTimeout(this.inputCodeTime)
this.inputCodeTime = setTimeout(()=>{
let data = { let data = {
email: this.email, email: this.email,
emailVerifyCode: emailVerifyCode, emailVerifyCode: emailVerifyCode,
@@ -496,6 +513,7 @@ export default defineComponent({
.catch((res) => { .catch((res) => {
this.$emit('update:isMask',false) this.$emit('update:isMask',false)
}); });
},1000)
}, },
isCheckAgreement() { isCheckAgreement() {
message.info("Agree to all terms, privacy fees and policies"); message.info("Agree to all terms, privacy fees and policies");
@@ -600,6 +618,14 @@ export default defineComponent({
// } // }
// ); // );
// }, // },
loginBtnMousedown(){
this.animation = true
let mouseup = ()=>{
this.animation = false
document.removeEventListener('mouseup',mouseup)
}
document.addEventListener('mouseup',mouseup)
},
}, },
mounted() { mounted() {
}, },
@@ -761,13 +787,12 @@ export default defineComponent({
transition: all 0.3s; transition: all 0.3s;
margin-top: 5rem; margin-top: 5rem;
font-weight: 600; font-weight: 600;
&.active{
transform: scale(.9);
}
&:hover { &:hover {
background: #3c3c3c; background: #3c3c3c;
} }
&[state="2"] {
cursor: not-allowed;
}
} }
.NewAccount{ .NewAccount{
font-size: 1.6rem; font-size: 1.6rem;
@@ -776,6 +801,8 @@ export default defineComponent({
margin-top: 1.2rem; margin-top: 1.2rem;
text-align: left; text-align: left;
cursor: pointer; cursor: pointer;
width: min-content;
white-space: nowrap;
} }
.segmentation{ .segmentation{
margin-top: 4rem; margin-top: 4rem;

View File

@@ -90,6 +90,7 @@
<div class="codeEmail">Weve sent an code to your email <span>{{ email }}</span></div> <div class="codeEmail">Weve sent an code to your email <span>{{ email }}</span></div>
<div class="codeEmailInput"> <div class="codeEmailInput">
<VerificationCodeInput <VerificationCodeInput
ref="verificationCodeInputDom"
:ct="emailCode" :ct="emailCode"
@sendCaptcha="submitEmailLogin($event)" @sendCaptcha="submitEmailLogin($event)"
></VerificationCodeInput> ></VerificationCodeInput>
@@ -125,9 +126,11 @@
</div> </div>
</div> --> </div> -->
<div <div
class="login_submit_button marign_top40" class="login_submit_button"
:state="emailStap" :state="emailStap"
:class="{'active':animation}"
@click="submitPerLogin()" @click="submitPerLogin()"
@mousedown="loginBtnMousedown"
> >
Sign in Sign in
</div> </div>
@@ -310,6 +313,8 @@ export default defineComponent({
passwordType: "password", passwordType: "password",
userId: "", userId: "",
loginTime: true, loginTime: true,
animation: false,
inputCodeTime: null as any,
}; };
}, },
onBeforeUnmount() { onBeforeUnmount() {
@@ -421,6 +426,16 @@ export default defineComponent({
submitPerLogin() { submitPerLogin() {
//输入账号密码 //输入账号密码
if (this.emailStap >= 2) { if (this.emailStap >= 2) {
let verificationCodeInputDom:any = this.$refs.verificationCodeInputDom
let code = verificationCodeInputDom.getCtData.map(item => item).join('');
console.log(code)
if(code.length !== this.emailCode.length){
message.info("Please enter the complete verification code.");
}else{
this.submitEmailLogin(code)
}
//提交验证码
return; return;
} else { } else {
if (!this.password) { if (!this.password) {
@@ -489,6 +504,8 @@ export default defineComponent({
//邮箱登录提交 //邮箱登录提交
submitEmailLogin(emailVerifyCode: any) { submitEmailLogin(emailVerifyCode: any) {
clearTimeout(this.inputCodeTime)
this.inputCodeTime = setTimeout(()=>{
let data = { let data = {
email: this.email, email: this.email,
emailVerifyCode: emailVerifyCode, emailVerifyCode: emailVerifyCode,
@@ -504,6 +521,7 @@ export default defineComponent({
.catch((res) => { .catch((res) => {
this.$emit('update:isMask',false) this.$emit('update:isMask',false)
}); });
},1000)
}, },
isCheckAgreement() { isCheckAgreement() {
message.info("Agree to all terms, privacy fees and policies"); message.info("Agree to all terms, privacy fees and policies");
@@ -608,6 +626,14 @@ export default defineComponent({
// } // }
// ); // );
// }, // },
loginBtnMousedown(){
this.animation = true
let mouseup = ()=>{
this.animation = false
document.removeEventListener('mouseup',mouseup)
}
document.addEventListener('mouseup',mouseup)
},
}, },
mounted() { mounted() {
}, },
@@ -785,13 +811,12 @@ export default defineComponent({
transition: all 0.3s; transition: all 0.3s;
margin-top: 5rem; margin-top: 5rem;
font-weight: 600; font-weight: 600;
&.active{
transform: scale(.9);
}
&:hover { &:hover {
background: #3c3c3c; background: #3c3c3c;
} }
&[state="2"] {
cursor: not-allowed;
}
} }
.NewAccount{ .NewAccount{
font-size: 1.6rem; font-size: 1.6rem;
@@ -800,6 +825,8 @@ export default defineComponent({
margin-top: 1.2rem; margin-top: 1.2rem;
text-align: left; text-align: left;
cursor: pointer; cursor: pointer;
width: min-content;
white-space: nowrap;
} }
.segmentation{ .segmentation{
margin-top: 4rem; margin-top: 4rem;