提交 11db91df 编写于 作者: 芊里

login密码登录失败

上级 6b1c380c
......@@ -28,7 +28,7 @@
<!-- 其他登录方式 -->
<view class="auth-box">
<text class="login-text" hover-class="hover" @click="toPwdLogin">密码登录</text>
<text class="login-text" hover-class="hover" @click="openLoginList">其他登录方式</text>
<!-- <text class="login-text" hover-class="hover" @click="openLoginList">其他登录方式</text> -->
</view>
</view>
</view>
......@@ -54,7 +54,6 @@
}],
phoneArea: ['+86'],
currenPhoneArea: '+86',
phoneNumber: '',
formData: {
phone: '17777777777'
......
......@@ -117,8 +117,8 @@
"data":{
"action":"login",
"params":{
"username":formData.phone,
"password":formData.pwd
"username":this.formData.phone,
"password":this.formData.pwd
}
},
success:async (e) => {
......
......@@ -95,9 +95,37 @@ import mixin from '../../common/loginPage.mixin.js';
if (this.phoneNumber == '') return uni.showToast({
title: '请填写手机号',
icon: 'none'
});
// 发送成功后开启倒计时
done();
});
uniCloud.callFunction({
"name": "user-center",
"data": {
"action": "sendSmsCode",
"params": {
"mobile": this.phoneNumber,
"type": "login"
}
},
success: (e) => {
console.log(e);
// uni.showToast({
// title: JSON.stringify(e.result),
// icon: 'none'
// });
uni.showModal({
content: JSON.stringify(e.result),
showCancel: false,
confirmText: '知道了'
});
// 发送成功后开启倒计时
done();
},
fail: (err) => {
console.log(err);
},
complete: () => {
uni.hideLoading()
}
})
},
/**
* 完成并提交
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册