提交 de1617b7 编写于 作者: L linju

123

上级 ec6e4ac2
......@@ -75,7 +75,7 @@
changePwd(){
if(this.userInfo){
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 {
uni.showToast({
......
......@@ -91,15 +91,16 @@
},
success: (e) => {
console.log(e);
// uni.showToast({
// title: JSON.stringify(e.result),
// icon: 'none'
// });
uni.showModal({
content: JSON.stringify(e.result),
showCancel: false,
confirmText: '知道了'
uni.showToast({
title: JSON.stringify(e.result),
icon: 'none'
});
// uni.showModal({
// content: JSON.stringify(e.result),
// showCancel: false,
// confirmText: '知道了'
// });
// 发送成功后开启倒计时
done();
},
......
......@@ -135,7 +135,9 @@
title: '登陆成功',
icon: 'none'
});
uni.navigateBack()
uni.switchTab({
url:"/pages/list/list"
})
}else{
uni.showModal({
title: '错误',
......
......@@ -4,7 +4,7 @@
<view class="content">
<!-- 顶部文字 -->
<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-item name="phone">
......@@ -124,15 +124,15 @@ import mixin from '../../common/loginPage.mixin.js';
},
success: (e) => {
console.log(e);
// uni.showToast({
// title: JSON.stringify(e.result),
// icon: 'none'
// });
uni.showModal({
content: JSON.stringify(e.result),
showCancel: false,
confirmText: '知道了'
uni.showToast({
title: JSON.stringify(e.result),
icon: 'none'
});
// uni.showModal({
// content: JSON.stringify(e.result),
// showCancel: false,
// confirmText: '知道了'
// });
// 发送成功后开启倒计时
done();
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册