mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-23 07:41:53 +08:00
可变参数/app-api应配置到baseUrl
This commit is contained in:
parent
5efd621f21
commit
a3defee272
@ -2,14 +2,14 @@
|
||||
const { http } = uni.$u
|
||||
|
||||
//获得用户收件地址列表
|
||||
export const getAddressList = params => http.get('/app-api/member/address/list', params)
|
||||
export const getAddressList = params => http.get('/member/address/list', params)
|
||||
//创建用户收件地址
|
||||
export const createAddress = data => http.post('/app-api/member/address/create', data)
|
||||
export const createAddress = data => http.post('/member/address/create', data)
|
||||
//通过ID获得用户收件地址
|
||||
export const getAddressById = params => http.get('/app-api/member/address/get', { params })
|
||||
export const getAddressById = params => http.get('/member/address/get', { params })
|
||||
//获得默认的用户收件地址
|
||||
export const getDefaultUserAddress = params => http.get('/app-api/member/address/get-default', { params })
|
||||
export const getDefaultUserAddress = params => http.get('/member/address/get-default', { params })
|
||||
//更新用户收件地址
|
||||
export const updateAddress = params => http.put('/app-api/member/address/update', params)
|
||||
export const updateAddress = params => http.put('/member/address/update', params)
|
||||
//删除用户收件地址
|
||||
export const deleteAddress = params => http.delete('/app-api/member/address/delete', {}, { params })
|
||||
export const deleteAddress = params => http.delete('/member/address/delete', {}, { params })
|
||||
|
@ -2,11 +2,11 @@
|
||||
const { http } = uni.$u
|
||||
|
||||
//使用手机 + 密码登录
|
||||
export const passwordLogin = data => http.post('/app-api/member/login', data)
|
||||
export const passwordLogin = data => http.post('/member/login', data)
|
||||
//退出登录
|
||||
export const logout = data => http.post('/app-api/member/logout', data)
|
||||
export const logout = data => http.post('/member/logout', data)
|
||||
//发送手机验证码
|
||||
export const sendSmsCode = data => http.post('/app-api/member/send-sms-code', data)
|
||||
export const sendSmsCode = data => http.post('/member/send-sms-code', data)
|
||||
//使用手机 + 验证码登录
|
||||
export const smsLogin = data => http.post('/app-api/member/sms-login', data)
|
||||
export const smsLogin = data => http.post('/member/sms-login', data)
|
||||
|
||||
|
@ -2,6 +2,6 @@
|
||||
const { http } = uni.$u
|
||||
|
||||
// 获取滚动图数据
|
||||
export const getBannerData = params => http.get('/app-api/index', { params })
|
||||
export const getBannerData = params => http.get('/index', { params })
|
||||
// 获取滚动通知数据
|
||||
export const getNoticeData = params => http.get('/app-api/notice', { params })
|
||||
export const getNoticeData = params => http.get('/notice', { params })
|
||||
|
@ -2,13 +2,13 @@
|
||||
const { http } = uni.$u
|
||||
|
||||
//获取用户信息
|
||||
export const getUserInfo = params => http.get('/app-api/member/user/get', params)
|
||||
export const getUserInfo = params => http.get('/member/user/get', params)
|
||||
//修改用户头像
|
||||
export const updateAvatar = filePath =>
|
||||
http.upload('/app-api/member/user/update-avatar', {
|
||||
http.upload('/member/user/update-avatar', {
|
||||
name: 'avatarFile',
|
||||
fileType: 'image',
|
||||
filePath: filePath
|
||||
})
|
||||
//修改用户昵称
|
||||
export const updateNickname = params => http.put('/app-api/member/user/update-nickname', {}, { params })
|
||||
export const updateNickname = params => http.put('/member/user/update-nickname', {}, { params })
|
||||
|
@ -1,6 +1,6 @@
|
||||
module.exports = {
|
||||
//后端接口地址
|
||||
baseUrl: 'http://127.0.0.1:48080',
|
||||
baseUrl: 'http://127.0.0.1:48080/app-api',
|
||||
header: {
|
||||
//租户ID
|
||||
'tenant-id': 1
|
||||
|
Loading…
Reference in New Issue
Block a user