This commit is contained in:
zoujiandong 2025-06-17 13:27:34 +08:00
parent d955894b45
commit 28065a3a18
3 changed files with 5 additions and 3 deletions

1
.gitignore vendored
View File

@ -12,7 +12,6 @@ yarn.lock
uni_modules
node_modules
dist
unpackage
dist-ssr
*.local

View File

@ -6,7 +6,7 @@ const api = {
return request('/login/wechat/mobile', data, 'post', true);
},
mobileLogin(data) {
return request('/login/mobile_login', data, 'post', true);
return request('/login/mobile', data, 'post', true);
},
getCode(data) {
return request('/code/phone', data, 'post', true);

View File

@ -353,7 +353,10 @@ const getCode = () => {
}
};
const getSms=()=>{
api.getCode({phone: phone.value}).then(res=>{
api.getCode({
phone: phone.value,
scene:1
}).then(res=>{
uni.hideLoading();
uni.$u.toast("验证码已发送");
uCodeRef.value.start();