diff --git a/sheep/api/member/auth.js b/sheep/api/member/auth.js
index d265e201..92ec829f 100644
--- a/sheep/api/member/auth.js
+++ b/sheep/api/member/auth.js
@@ -1,6 +1,19 @@
import request from '@/sheep/request';
const AuthUtil = {
+ // 使用手机 + 验证码登录
+ smsLogin: (data) => {
+ return request({
+ url: '/app-api/member/auth/sms-login',
+ method: 'POST',
+ data,
+ custom: {
+ showSuccess: true,
+ loadingMsg: '登录中',
+ successMsg: '登录成功',
+ },
+ });
+ },
// 发送手机验证码
sendSmsCode: (mobile, scene) => {
return request({
@@ -8,20 +21,20 @@ const AuthUtil = {
method: 'POST',
data: {
mobile,
- scene
+ scene,
},
custom: {
loadingMsg: '发送中',
showSuccess: true,
- successMsg: '发送成功'
- }
+ successMsg: '发送成功',
+ },
});
},
// 登出系统
logout: () => {
return request({
url: '/app-api/member/auth/logout',
- method: 'POST'
+ method: 'POST',
});
},
};
diff --git a/sheep/components/s-auth-modal/components/account-login.vue b/sheep/components/s-auth-modal/components/account-login.vue
index 7663204b..187e2a9f 100644
--- a/sheep/components/s-auth-modal/components/account-login.vue
+++ b/sheep/components/s-auth-modal/components/account-login.vue
@@ -4,10 +4,10 @@
- 账号登录
短信登录
+ 账号登录
如果未设置过密码,请点击忘记密码
diff --git a/sheep/components/s-auth-modal/components/sms-login.vue b/sheep/components/s-auth-modal/components/sms-login.vue
index 46ffc577..0651b780 100644
--- a/sheep/components/s-auth-modal/components/sms-login.vue
+++ b/sheep/components/s-auth-modal/components/sms-login.vue
@@ -4,10 +4,10 @@
+ 短信登录
账号登录
- 短信登录
未注册的手机号,验证后自动注册账号
@@ -59,10 +59,11 @@