1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
| import http from '../utils/http'
| import { Get_LOGIN_SMS } from './chat';
| export const LOGIN_URL = '/login';
| export const TEL_LOGIN_URL = '/send_login_sms';
| /**
| * @summary description
| */
| export const PostLogin = async (params,extraData={}) => {
| return http.request({
| url: LOGIN_URL,
| method: 'POST',
| data: params,
| headers: {
| 'content-Type': 'application/x-www-form-urlencoded',
| },
| ...extraData
| });
| };
|
| /**
| * @summary description
| */
| export const PostLogout = async () => {
| return http.request({
| url: '/logout',
| method: 'POST',
| });
| };
|
| //发送短信验证码
| export const loginVerifyMessage = async (params,extraData={}) => {
| return http.request({
| url: TEL_LOGIN_URL,
| method: 'POST',
| data: params,
| headers: {
| 'Content-Type': 'application/x-www-form-urlencoded',
| },
| ...extraData
| });
| };
|
| //发送短信验证码登录
| export const loginMessageUser = async (params,extraData={}) => {
| return http.request({
| url: Get_LOGIN_SMS,
| method: 'POST',
| data: params,
| headers: {
| 'Content-Type': 'application/x-www-form-urlencoded',
| },
| ...extraData
| });
| };
|
|