111
This commit is contained in:
parent
d955894b45
commit
28065a3a18
1
.gitignore
vendored
1
.gitignore
vendored
@ -12,7 +12,6 @@ yarn.lock
|
|||||||
uni_modules
|
uni_modules
|
||||||
node_modules
|
node_modules
|
||||||
dist
|
dist
|
||||||
unpackage
|
|
||||||
dist-ssr
|
dist-ssr
|
||||||
*.local
|
*.local
|
||||||
|
|
||||||
|
|||||||
@ -6,7 +6,7 @@ const api = {
|
|||||||
return request('/login/wechat/mobile', data, 'post', true);
|
return request('/login/wechat/mobile', data, 'post', true);
|
||||||
},
|
},
|
||||||
mobileLogin(data) {
|
mobileLogin(data) {
|
||||||
return request('/login/mobile_login', data, 'post', true);
|
return request('/login/mobile', data, 'post', true);
|
||||||
},
|
},
|
||||||
getCode(data) {
|
getCode(data) {
|
||||||
return request('/code/phone', data, 'post', true);
|
return request('/code/phone', data, 'post', true);
|
||||||
|
|||||||
@ -353,7 +353,10 @@ const getCode = () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
const getSms=()=>{
|
const getSms=()=>{
|
||||||
api.getCode({phone: phone.value}).then(res=>{
|
api.getCode({
|
||||||
|
phone: phone.value,
|
||||||
|
scene:1
|
||||||
|
}).then(res=>{
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
uni.$u.toast("验证码已发送");
|
uni.$u.toast("验证码已发送");
|
||||||
uCodeRef.value.start();
|
uCodeRef.value.start();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user