diff --git a/.gitignore b/.gitignore index 61789f6..8f35647 100644 --- a/.gitignore +++ b/.gitignore @@ -12,7 +12,6 @@ yarn.lock uni_modules node_modules dist -unpackage dist-ssr *.local diff --git a/api/api.js b/api/api.js index 0b7c740..a7124e0 100644 --- a/api/api.js +++ b/api/api.js @@ -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); diff --git a/pages/login/login.vue b/pages/login/login.vue index f722c9e..5821abe 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -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();