diff --git a/pages/index/customer.vue b/pages/index/customer.vue
index 44df236..bde7c7a 100644
--- a/pages/index/customer.vue
+++ b/pages/index/customer.vue
@@ -46,7 +46,7 @@
-
+
diff --git a/pages/mine/resetPwd.vue b/pages/mine/resetPwd.vue
index fc420d1..0aa2c36 100644
--- a/pages/mine/resetPwd.vue
+++ b/pages/mine/resetPwd.vue
@@ -8,42 +8,42 @@
- 邮箱
+ {{$t('email')}}
- 获取验证码
- 重新获取({{vcodeTime}}s)
+ {{$t('getcode')}}
+ ({{vcodeTime}}s)
- 重置密码
+ {{$t('resetpassword')}}
- 确认修改
+ {{$t('Confirmbtn')}}
@@ -74,20 +74,27 @@
login() {
if(this.email==''){
uni.showToast({
- title:'邮箱不能为空',
+ title:this.$t('emailerr'),
icon: 'none'
});
return false
}
if(this.password==''){
uni.showToast({
- title:'密码不能为空',
+ title:this.$t('passworerr'),
icon: 'none'
});
return false
}
},
getVcode() {
+ if(this.email==''){
+ uni.showToast({
+ title:this.$t('emailerr'),
+ icon: 'none'
+ });
+ return false
+ }
this.vcodeTime = 60
this.vcodeTimer = setInterval(() => {
if (this.vcodeTime > 0) {
@@ -97,9 +104,18 @@
this.vcodeTimer = null
}
}, 1000)
- uni.showToast({
- title: "获取验证码",
- icon: 'none'
+ request({
+ url:'user/sendCode',
+ method:'POST',
+ data:{
+ email: this.email,
+ }
+ }).then(res => {
+ console.log(res.data.data)
+ uni.showToast({
+ title:res.data.message,
+ icon: 'none'
+ })
})
},
}