web/buyer/src/api/shopentry.js

78 lines
1.5 KiB
JavaScript
Raw Normal View History

2021-05-13 10:56:04 +08:00
import request, {
Method
} from '@/plugins/request.js'
// 店铺分页列表
export function shopList (params) {
return request({
2022-01-25 09:46:12 +08:00
url: '/buyer/store/store',
2021-05-13 10:56:04 +08:00
needToken: true,
method: Method.GET,
params
})
}
// 申请店铺第一步-填写企业信息
export function applyFirst (params) {
return request({
2022-01-25 09:46:12 +08:00
url: '/buyer/store/store/apply/first',
2021-05-13 10:56:04 +08:00
needToken: true,
method: Method.PUT,
params
})
}
// 申请店铺第一步-填写企业信息
export function applySecond (params) {
return request({
2022-01-25 09:46:12 +08:00
url: '/buyer/store/store/apply/second',
2021-05-13 10:56:04 +08:00
needToken: true,
method: Method.PUT,
params
})
}
// 申请店铺第一步-填写企业信息
export function applyThird (params) {
return request({
2022-01-25 09:46:12 +08:00
url: '/buyer/store/store/apply/third',
2021-05-13 10:56:04 +08:00
needToken: true,
method: Method.PUT,
params
})
}
// 店铺详情
export function getDetailById (id) {
return request({
2022-01-25 09:46:12 +08:00
url: `/buyer/store/store/get/detail/${id}`,
2021-05-13 10:56:04 +08:00
needToken: true,
method: Method.GET
})
}
// 店铺分类
export function getCateById (id) {
return request({
2022-02-17 14:54:18 +08:00
url: `/buyer/store/store/label/get/${id}`,
2021-05-13 10:56:04 +08:00
needToken: true,
method: Method.GET
})
}
// 店铺入驻协议
export function agreement () {
return request({
2022-01-25 09:46:12 +08:00
url: `/buyer/other/article/type/STORE_REGISTER`,
2021-05-13 10:56:04 +08:00
needToken: true,
method: Method.GET
})
}
// 获取当前登录会员的店铺信息
export function applyStatus () {
return request({
2022-01-25 09:46:12 +08:00
url: `/buyer/store/store/apply`,
2021-05-13 10:56:04 +08:00
needToken: true,
method: Method.GET
})
}