You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
98 lines
1.9 KiB
JavaScript
98 lines
1.9 KiB
JavaScript
/**
|
|
* home请求数据
|
|
* @author wangyinjia
|
|
* @date 2020/2/24
|
|
*/
|
|
|
|
import http from '../CommonHttp'
|
|
|
|
/**
|
|
* 查询所有的零售公司信息
|
|
* @param params
|
|
* @param call
|
|
* @returns {Promise<any>}
|
|
*/
|
|
export function listOfRetailCompany(params, call) {
|
|
return http.get('/retail/company', params).then(call)
|
|
}
|
|
|
|
/**
|
|
* 查询零售公司下的店铺
|
|
* @param params
|
|
* @param call
|
|
* @returns {Promise<any>}
|
|
*/
|
|
export function listOfStoreByCompany(params, call) {
|
|
return http.get('/retail/store/company', params).then(call)
|
|
}
|
|
|
|
/**
|
|
* 查询店铺下的导购
|
|
* @param params
|
|
* @param call
|
|
* @returns {Promise<any>}
|
|
*/
|
|
export function listOfSellerByStore(params, call) {
|
|
return http.get('/retail/seller/store', params).then(call)
|
|
}
|
|
|
|
/**
|
|
* 零售公司的推广数据
|
|
* @param params
|
|
* @param call
|
|
* @returns {Promise<any>}
|
|
*/
|
|
export function generalizeOfRetail(params, call) {
|
|
return http.get('/retail/retail/new', params).then(call)
|
|
}
|
|
|
|
/**
|
|
* 门店的推广数据
|
|
* @param params
|
|
* @param call
|
|
* @returns {Promise<any>}
|
|
*/
|
|
export function generalizeOfStore(params, call) {
|
|
return http.get('/retail/store', params).then(call)
|
|
}
|
|
|
|
/**
|
|
* 导购的推广数据
|
|
* @param params
|
|
* @param call
|
|
* @returns {Promise<any>}
|
|
*/
|
|
export function generalizeOfSeller(params, call) {
|
|
return http.get('/retail/seller', params).then(call)
|
|
}
|
|
|
|
/**
|
|
* 门店信息
|
|
* @param params
|
|
* @param call
|
|
* @returns {Promise<any>}
|
|
*/
|
|
export function storeInit(params, call) {
|
|
return http.post('/poi/store/user/shop', params).then(call)
|
|
}
|
|
/**
|
|
* 导购信息
|
|
* @param params
|
|
* @param call
|
|
* @returns {Promise<any>}
|
|
*/
|
|
export function sellerInit(params, call) {
|
|
return http.post('/poi/seller/user/seller', params).then(call)
|
|
}
|
|
|
|
export default {
|
|
listOfRetailCompany,
|
|
listOfStoreByCompany,
|
|
listOfSellerByStore,
|
|
generalizeOfRetail,
|
|
generalizeOfStore,
|
|
generalizeOfSeller,
|
|
storeInit,
|
|
sellerInit
|
|
}
|