111
This commit is contained in:
parent
d955894b45
commit
28065a3a18
1
.gitignore
vendored
1
.gitignore
vendored
@ -12,7 +12,6 @@ yarn.lock
|
||||
uni_modules
|
||||
node_modules
|
||||
dist
|
||||
unpackage
|
||||
dist-ssr
|
||||
*.local
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user