提交 de1617b7 编写于 作者: L linju

123

上级 ec6e4ac2
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
changePwd(){ changePwd(){
if(this.userInfo){ if(this.userInfo){
uni.navigateTo({ uni.navigateTo({
url:'/uni_modules/uni-login-page/pages/index/pwd-retrieve?phoneNumber='+ this.userInfo.phone +'&phoneArea=+86' url:'/uni_modules/uni-login-page/pages/index/pwd-retrieve?phoneNumber='+ (this.userInfo.phone||'') +'&phoneArea=+86'
}); });
} else { } else {
uni.showToast({ uni.showToast({
......
...@@ -91,15 +91,16 @@ ...@@ -91,15 +91,16 @@
}, },
success: (e) => { success: (e) => {
console.log(e); console.log(e);
// uni.showToast({ uni.showToast({
// title: JSON.stringify(e.result), title: JSON.stringify(e.result),
// icon: 'none' icon: 'none'
// });
uni.showModal({
content: JSON.stringify(e.result),
showCancel: false,
confirmText: '知道了'
}); });
// uni.showModal({
// content: JSON.stringify(e.result),
// showCancel: false,
// confirmText: '知道了'
// });
// 发送成功后开启倒计时 // 发送成功后开启倒计时
done(); done();
}, },
......
...@@ -135,7 +135,9 @@ ...@@ -135,7 +135,9 @@
title: '登陆成功', title: '登陆成功',
icon: 'none' icon: 'none'
}); });
uni.navigateBack() uni.switchTab({
url:"/pages/list/list"
})
}else{ }else{
uni.showModal({ uni.showModal({
title: '错误', title: '错误',
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<view class="content"> <view class="content">
<!-- 顶部文字 --> <!-- 顶部文字 -->
<text class="content-top-title">重置密码</text> <text class="content-top-title">重置密码</text>
<login-ikonw class="login-iknow" :text="tipText"></login-ikonw> <login-ikonw v-show="formData.phone" class="login-iknow" :text="tipText"></login-ikonw>
<!-- 登录框 (选择手机号所属国家和地区需要另行实现) --> <!-- 登录框 (选择手机号所属国家和地区需要另行实现) -->
<uni-forms ref="form" :value="formData" :rules="rules"> <uni-forms ref="form" :value="formData" :rules="rules">
<uni-forms-item name="phone"> <uni-forms-item name="phone">
...@@ -124,15 +124,15 @@ import mixin from '../../common/loginPage.mixin.js'; ...@@ -124,15 +124,15 @@ import mixin from '../../common/loginPage.mixin.js';
}, },
success: (e) => { success: (e) => {
console.log(e); console.log(e);
// uni.showToast({ uni.showToast({
// title: JSON.stringify(e.result), title: JSON.stringify(e.result),
// icon: 'none' icon: 'none'
// });
uni.showModal({
content: JSON.stringify(e.result),
showCancel: false,
confirmText: '知道了'
}); });
// uni.showModal({
// content: JSON.stringify(e.result),
// showCancel: false,
// confirmText: '知道了'
// });
// 发送成功后开启倒计时 // 发送成功后开启倒计时
done(); done();
}, },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册