diff --git a/uni_modules/uni-login-page/pages/index/index.vue b/uni_modules/uni-login-page/pages/index/index.vue index c13ec97264431d81de184ee11b3e68920909fecf..efdf973216c9c0a11f266488d3ae678605de337c 100644 --- a/uni_modules/uni-login-page/pages/index/index.vue +++ b/uni_modules/uni-login-page/pages/index/index.vue @@ -28,7 +28,7 @@ 密码登录 - 其他登录方式 + @@ -54,7 +54,6 @@ }], phoneArea: ['+86'], currenPhoneArea: '+86', - phoneNumber: '', formData: { phone: '17777777777' diff --git a/uni_modules/uni-login-page/pages/index/pwd-login.vue b/uni_modules/uni-login-page/pages/index/pwd-login.vue index b02281e8cd7141c22f9b0b29ae3609ea15a9ecc2..8a659b580e644f695daafbfd15ddfdfd02d0d1ef 100644 --- a/uni_modules/uni-login-page/pages/index/pwd-login.vue +++ b/uni_modules/uni-login-page/pages/index/pwd-login.vue @@ -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) => { diff --git a/uni_modules/uni-login-page/pages/index/pwd-retrieve.vue b/uni_modules/uni-login-page/pages/index/pwd-retrieve.vue index eee3cb0e3e57f8a242a7999b198ad7c949c5047c..4be34ad2e0c21f2f9cbec2bec5773128c8305ba5 100644 --- a/uni_modules/uni-login-page/pages/index/pwd-retrieve.vue +++ b/uni_modules/uni-login-page/pages/index/pwd-retrieve.vue @@ -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() + } + }) }, /** * 完成并提交