Browse Source

會員相關

1. 忘記密碼 - 重新寄送信件按鈕秒數到鼠
2. 上傳圖片限制大小
Dev
Janie 2 years ago
parent
commit
b020698a8f
  1. 39
      FrontEnd/components/user/cropImageDialog.vue
  2. 26
      FrontEnd/pages/user/forgot.vue

39
FrontEnd/components/user/cropImageDialog.vue

@ -127,8 +127,45 @@ export default {
min-height: 717px;
}
@media screen and (min-width: 961px) {
min-height: 1000px;
min-height: 800px;
}
}
.vue-advanced-cropper{
height: 600px !important;
}
.vue-advanced-cropper__stretcher{
height: 600px !important;
}
.vue-advanced-cropper__boundaries{
height: 600px !important;
}
.vue-advanced-cropper__foreground{
height: 600px !important;
}
.vue-advanced-cropper__image-wrapper{
height: 600px !important;
}
.vue-advanced-cropper__background{
height: 600px !important;
}
//
.vue-circle-stencil .vue-circle-stencil--movable{
height: 400px !important;
}
.vue-bounding-box .vue-circle-stencil__bounding-box{
height: 400px !important;
}
.vue-preview__wrapper{
height: 400px !important;
}
</style>

26
FrontEnd/pages/user/forgot.vue

@ -190,7 +190,7 @@ export default {
resetValid: false,
disableBtn: false,
resetSuccess: false,
countdown: 0,
countdown: 60,
Email: "",
userConfirmPass: "",
userData: {
@ -258,16 +258,20 @@ export default {
if(data){
this.result = data;
this.disableBtn = !this.disableBtn;
// this.timeout = setInterval(() => {
// if (this.countdown > 0) {
// this.countdown--;
// }
// if (this.countdown === 0) {
// this.disableBtn = !this.disableBtn;
// this.countdown = 60;
// clearInterval(this.timeout);
// }
// }, 1000);
this.timeout = setInterval(() => {
if (this.countdown > 0) {
this.countdown--;
}
if (this.countdown == 0) {
this.disableBtn = false;
console.log(this.disableBtn);
this.countdown = 60;
console.log(this.countdown);
clearInterval(this.timeout);
}
}, 1000);
}
}
})

Loading…
Cancel
Save