homeSet.js
765 Bytes
import { http } from '@/main'
const getHomeInfoListApi = params => {
params.method = 'scrm.api.shopmall.homeConfig.get'
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
const updateHomeApi = params => {
params.method = 'scrm.api.shopmall.homeConfig.update'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 在线客服
const getConsultantListApi = params => {
params.method = 'scrm.api.carlife.config.consultant.list'
return http({
url: 'rop-scrm-carlife/router',
method: 'GET',
data: params,
sign: true
})
}
export default { getHomeInfoListApi, updateHomeApi, getConsultantListApi }