diff --git a/api/business/base.js b/api/business/base.js index 9a2a296..1b28335 100644 --- a/api/business/base.js +++ b/api/business/base.js @@ -8,4 +8,11 @@ export function postForkUser(params) { method: 'post', params: params }) -} \ No newline at end of file +} +//查询城市树结构 +export function treeCity() { + return request({ + url: '/base/city/treeCity', + method: 'get', + }) +} diff --git a/api/business/member.js b/api/business/member.js index 5e17acc..3b2adea 100644 --- a/api/business/member.js +++ b/api/business/member.js @@ -1,6 +1,7 @@ import upload from '@/utils/upload' import request from '@/utils/request' +//------------------名片----------------------- // 查询当前登录用户的名片 export function getUserBusiCard() { return request({ @@ -8,10 +9,75 @@ export function getUserBusiCard() { method: 'get', }) } -// 查询当前登录用户的名片 +// 获取博主名片详情 +export function getBusiCardById(params) { + return request({ + url: '/member/busiCard/getBusiCardById', + method: 'get', + params:params + }) +} +//提交博主名片审核申请 +export function applyBusiCard(data) { + return request({ + url: '/member/busiCard/toApply', + method: 'post', + data: data + }) +} +//删除名片信息 +export function removeBusiCard(params) { + return request({ + url: '/member/busiCard/remove', + method: 'delete', + params:params + }) +} + +//------------------地址----------------------- +// 查询当前登录用户的收货地址 export function getUserAddress() { return request({ url: '/member/address/listByUser', method: 'get', }) +} +// 博主地址选择器 +export function uniSelectList() { + return request({ + url: '/member/address/uniSelectList', + method: 'get', + }) +} +//保存地址信息 +export function saveAddress(data) { + return request({ + url: '/member/address/save', + method: 'post', + data: data + }) +} +// 设置默认收货地址 +export function setDefault(params) { + return request({ + url: '/member/address/setDefault', + method: 'get', + params: params + }) +} +// 删除地址 +export function removeAddress(params) { + return request({ + url: '/member/address/remove', + method: 'delete', + params:params + }) +} +// 获取地址详细信息 +export function getById(params) { + return request({ + url: '/member/address/getById', + method: 'get', + params:params + }) } \ No newline at end of file diff --git a/api/system/config.js b/api/system/config.js index 9fe7fb5..fb5c06c 100644 --- a/api/system/config.js +++ b/api/system/config.js @@ -18,3 +18,11 @@ export function getCatgByCode(params) { params:params }) } +// 根据code查分类值列表 +export function uniListByParentCode(params) { + return request({ + url: '/base/category/uniListByParentCode', + method: 'get', + params:params + }) +} diff --git a/config.js b/config.js index b9e4484..990cf51 100644 --- a/config.js +++ b/config.js @@ -1,6 +1,6 @@ // 应用全局配置 module.exports = { - baseUrl: 'http://192.168.1.17:8080', + baseUrl: 'http://192.168.1.4:8080', // baseUrl: 'http://localhost:8080', // 应用信息 appInfo: { diff --git a/pages/mine/addr/addr-detail.vue b/pages/mine/addr/addr-detail.vue index dcc4d02..5bdd503 100644 --- a/pages/mine/addr/addr-detail.vue +++ b/pages/mine/addr/addr-detail.vue @@ -24,7 +24,7 @@