diff --git a/src/api/index.js b/src/api/index.js index 8c847d4..3c37641 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -6,3 +6,27 @@ export const wechatPlatform = (platform) => { url: `/auth/wechatPlatform/${platform}` }) } + +export const sellerList = () => { + return service({ + method: 'post', + url: '/accessory/sellerlist/' + }) +} + +export const shopList = (ids) => { + return service({ + method: 'post', + url: '/accessory/shoplist', + data: { + ids + } + }) +} + +export const supplierList = () => { + return service({ + method: 'post', + url: `/member/supplierlist/`, + }) +} diff --git a/src/api/inquiry.js b/src/api/inquiry.js new file mode 100644 index 0000000..d717c7a --- /dev/null +++ b/src/api/inquiry.js @@ -0,0 +1,33 @@ +import service from '@/service' + +export const inquiryFilter = (users,status,days=7) => { + return service({ + method: 'get', + url: '/store/inquiryFilter', + params: { + users, + status, + days + } + }) +} + +export const inquiryList = (users,keys={},page=1,page_size=20) => { + return service({ + method: 'post', + url: '/store/inquiryList', + data: { + users, + keys, + page, + page_size, + } + }) +} + +export const customerList = () => { + return service({ + method: 'get', + url: '/store/customerList' + }) +} diff --git a/src/api/user.js b/src/api/user.js index bb5f520..81a5868 100644 --- a/src/api/user.js +++ b/src/api/user.js @@ -36,3 +36,10 @@ export const getEmailCode = (email) => { url: `/accessory/mailVerifyCode?email=${email}` }) } + +export const loadShopInfo = () => { + return service({ + method: 'get', + url: '/store/loadShopInfo' + }) +} diff --git a/src/components/SidePanel.vue b/src/components/SidePanel.vue index a6e939d..105e7c6 100644 --- a/src/components/SidePanel.vue +++ b/src/components/SidePanel.vue @@ -33,6 +33,12 @@ active-text-color="#409EFF" router > + + + +