修改部分样式
This commit is contained in:
95
src/pages/login/api .md
Normal file
95
src/pages/login/api .md
Normal file
@@ -0,0 +1,95 @@
|
||||
|
||||
// 授权接口
|
||||
|
||||
fetch("https://sit.light120.com/api/user/wx_auth", {
|
||||
"headers": {
|
||||
"accept": "application/json",
|
||||
"accept-language": "zh-CN,zh;q=0.9",
|
||||
"content-type": "application/json",
|
||||
"priority": "u=1, i",
|
||||
"sec-ch-ua": "\"Chromium\";v=\"134\", \"Not:A-Brand\";v=\"24\", \"Google Chrome\";v=\"134\"",
|
||||
"sec-ch-ua-mobile": "?0",
|
||||
"sec-ch-ua-platform": "\"Windows\"",
|
||||
"sec-fetch-dest": "empty",
|
||||
"sec-fetch-mode": "cors",
|
||||
"sec-fetch-site": "same-origin"
|
||||
},
|
||||
"referrer": "https://sit.light120.com/api/docs",
|
||||
"referrerPolicy": "strict-origin-when-cross-origin",
|
||||
"body": "{\n \"code\": \"string\"\n}",
|
||||
"method": "POST",
|
||||
"mode": "cors",
|
||||
"credentials": "omit"
|
||||
});
|
||||
|
||||
|
||||
// 用户手机号一键登录登陆
|
||||
fetch("https://sit.light120.com/api/user/phone_verify", {
|
||||
"headers": {
|
||||
"accept": "application/json",
|
||||
"accept-language": "zh-CN,zh;q=0.9",
|
||||
"content-type": "application/json",
|
||||
"priority": "u=1, i",
|
||||
"sec-ch-ua": "\"Chromium\";v=\"134\", \"Not:A-Brand\";v=\"24\", \"Google Chrome\";v=\"134\"",
|
||||
"sec-ch-ua-mobile": "?0",
|
||||
"sec-ch-ua-platform": "\"Windows\"",
|
||||
"sec-fetch-dest": "empty",
|
||||
"sec-fetch-mode": "cors",
|
||||
"sec-fetch-site": "same-origin"
|
||||
},
|
||||
"referrer": "https://sit.light120.com/api/docs",
|
||||
"referrerPolicy": "strict-origin-when-cross-origin",
|
||||
"body": "{\n \"code\": \"string\"\n}",
|
||||
"method": "POST",
|
||||
"mode": "cors",
|
||||
"credentials": "omit"
|
||||
});
|
||||
|
||||
|
||||
|
||||
// 发送短信
|
||||
|
||||
fetch("https://sit.light120.com/api/user/sms/send", {
|
||||
"headers": {
|
||||
"accept": "application/json",
|
||||
"accept-language": "zh-CN,zh;q=0.9",
|
||||
"content-type": "application/json",
|
||||
"priority": "u=1, i",
|
||||
"sec-ch-ua": "\"Chromium\";v=\"134\", \"Not:A-Brand\";v=\"24\", \"Google Chrome\";v=\"134\"",
|
||||
"sec-ch-ua-mobile": "?0",
|
||||
"sec-ch-ua-platform": "\"Windows\"",
|
||||
"sec-fetch-dest": "empty",
|
||||
"sec-fetch-mode": "cors",
|
||||
"sec-fetch-site": "same-origin"
|
||||
},
|
||||
"referrer": "https://sit.light120.com/api/docs",
|
||||
"referrerPolicy": "strict-origin-when-cross-origin",
|
||||
"body": "{\n \"phone\": \"13122585075\"\n}",
|
||||
"method": "POST",
|
||||
"mode": "cors",
|
||||
"credentials": "omit"
|
||||
});
|
||||
|
||||
|
||||
// 验证验证码接口
|
||||
|
||||
fetch("https://sit.light120.com/api/user/sms/verify", {
|
||||
"headers": {
|
||||
"accept": "application/json",
|
||||
"accept-language": "zh-CN,zh;q=0.9",
|
||||
"content-type": "application/json",
|
||||
"priority": "u=1, i",
|
||||
"sec-ch-ua": "\"Chromium\";v=\"134\", \"Not:A-Brand\";v=\"24\", \"Google Chrome\";v=\"134\"",
|
||||
"sec-ch-ua-mobile": "?0",
|
||||
"sec-ch-ua-platform": "\"Windows\"",
|
||||
"sec-fetch-dest": "empty",
|
||||
"sec-fetch-mode": "cors",
|
||||
"sec-fetch-site": "same-origin"
|
||||
},
|
||||
"referrer": "https://sit.light120.com/api/docs",
|
||||
"referrerPolicy": "strict-origin-when-cross-origin",
|
||||
"body": "{\n \"phone\": \"13800138000\",\n \"code\": \"123456\"\n}",
|
||||
"method": "POST",
|
||||
"mode": "cors",
|
||||
"credentials": "omit"
|
||||
});
|
||||
Reference in New Issue
Block a user