@ -1,4 +1,5 @@ |
||||
# 变量必须以 VITE_ 为前缀才能暴露给外部读取 |
||||
NODE_ENV = 'development' |
||||
VITE_APP_TITLE = '无糖运营平台' |
||||
VITE_APP_BASE_API = 'http://39.106.16.162:8080' |
||||
VITE_APP_BASE_API = 'http://127.0.0.1:8080' |
||||
# VITE_APP_BASE_API = 'http://39.106.16.162:8080' |
@ -1,48 +1,48 @@ |
||||
import request from '@/utils/request' |
||||
//账号登录接口
|
||||
export const userLoginService = (loginData) => { |
||||
return request.post('/user/login', loginData, { |
||||
return request.post('/api/user/login', loginData, { |
||||
headers: { 'Content-Type': 'application/json;charset=UTF-8' }, |
||||
}) |
||||
} |
||||
//手机号登录接口
|
||||
export const userPhoneLoginService = (phones) => { |
||||
return request.post('/user/phone/login?phone=' + phones) |
||||
return request.post('/api/user/phone/login?phone=' + phones) |
||||
} |
||||
//账号注册接口
|
||||
export const userRegisterService = (jsonData) => { |
||||
return request.post('/user/register', jsonData, { |
||||
return request.post('/api/user/register', jsonData, { |
||||
headers: { 'Content-Type': 'application/json;charset=UTF-8' }, |
||||
}) |
||||
} |
||||
//手机号注册接口
|
||||
export const userPhoneRegisterService = (jsonData) => { |
||||
return request.post('/user/phone/register', jsonData, { |
||||
return request.post('/api/user/phone/register', jsonData, { |
||||
headers: { 'Content-Type': 'application/json;charset=UTF-8' }, |
||||
}) |
||||
} |
||||
//手机号验证码请求
|
||||
export const userCodeRegisterService = (phoness) => { |
||||
return request.post('/user/code?phone=' + phoness) |
||||
return request.post('/api/user/code?phone=' + phoness) |
||||
} |
||||
//用户信息接口
|
||||
export const userGetInfoService = (token) => |
||||
request.get('/user/info', { |
||||
request.get('/api/user/info', { |
||||
headers: { Authorization: `Bearer ${token}` }, |
||||
}) |
||||
//修改用户信息
|
||||
export const userChangeService = (jsonData) => { |
||||
return request.post('/user/update', jsonData, { |
||||
return request.post('/api/user/update', jsonData, { |
||||
headers: { 'Content-Type': 'application/json;charset=UTF-8' }, |
||||
}) |
||||
} |
||||
//获取身份信息
|
||||
export const userIdenService = (id) => { |
||||
return request.post('/user/personal/info?id=' + id) |
||||
return request.post('/api/user/personal/info?id=' + id) |
||||
} |
||||
//修改身份信息
|
||||
export const userIdenChangeService = (dataToSend) => { |
||||
return request.post('/user/update/PersonalInfo', dataToSend, { |
||||
return request.post('/api/user/update/PersonalInfo', dataToSend, { |
||||
headers: { 'Content-Type': 'application/json;charset=UTF-8' }, |
||||
}) |
||||
} |
||||
|
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 8.5 KiB |
Before Width: | Height: | Size: 9.9 KiB After Width: | Height: | Size: 9.9 KiB |
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
Before Width: | Height: | Size: 9.0 KiB After Width: | Height: | Size: 9.0 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 6.0 KiB |
After Width: | Height: | Size: 5.1 KiB |