diff --git a/pages/login/forgetPwd.vue b/pages/login/forgetPwd.vue
index 56e9e12..3be07f2 100644
--- a/pages/login/forgetPwd.vue
+++ b/pages/login/forgetPwd.vue
@@ -66,22 +66,22 @@
title: '正在发送验证码...'
})
let res = await setSendMsg(data.mobile,'forget')
- if ( res.code == 0 ) {
+ uni.hideLoading();
+ uni.hideToast();
+ if( res ){
data.sending = true;
uni.showToast({
title: '验证码发送成功请注意查收',
icon: 'none',
- duration: 1000
})
data.countDown();
} else {
uni.showModal({
showCancel: false,
title: '短信发送失败',
- content: res.msg ? res.msg : '请一分钟后再获取验证码'
+ content: '请一分钟后再获取验证码'
});
}
- uni.hideLoading();
}
}
@@ -146,25 +146,15 @@
msg: data.code,
})
uni.hideLoading();
- if (res.code === 0) {
- uni.showToast({
- title: '密码找回成功',
- icon: 'none'
+ uni.showToast({
+ title: '密码找回成功',
+ icon: 'none'
+ });
+ setTimeout(function() {
+ uni.navigateTo({
+ url: '/pages/login/login'
});
- setTimeout(function() {
- uni.navigateTo({
- url: '/pages/login/login'
- });
- }, 1000)
-
- } else {
-
- uni.showModal({
- showCancel: false,
- title: '密码找回失败',
- content: res.msg,
- });
- }
+ }, 1000)
}
}
diff --git a/pages/login/login.vue b/pages/login/login.vue
index aec81b7..d4dae0c 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -37,7 +37,7 @@
《隐私政策》
和
- 《用户服务协议》
+ 《用户服务协议》
@@ -128,6 +128,7 @@
password: password,
phone: mobile
})
+ console.log(res)
uni.setStorageSync('token', res.token)
uni.setStorageSync('userId', res.user.userId)
uni.setStorageSync('userName', res.user.userName)
diff --git a/pages/login/register.vue b/pages/login/register.vue
index 0391bb3..9f65a0a 100644
--- a/pages/login/register.vue
+++ b/pages/login/register.vue
@@ -35,9 +35,9 @@
注册即同意
- 《隐私政策》
+ 《隐私政策》
与
- 《用户协议》
+ 《用户协议》
diff --git a/pages/me/agreement.vue b/pages/me/agreement.vue
index 471ff98..e82dc7d 100644
--- a/pages/me/agreement.vue
+++ b/pages/me/agreement.vue
@@ -1,6 +1,6 @@
-
+
拒绝
同意
@@ -8,43 +8,39 @@
-