indexApi.js 2.11 KB
import api from './request'
const path = 'scrm.api.shopmall.'
module.exports = {
  /**获取商户小程序首页配置 */
  getHomeConfig(data) {
    return api.post({ method: `${path}weapp.homeConfig.getByMerchant`, ...data })
  },
  /**查询当前商户的分类列表 */
  getClassifyList(data) {
    return api.post({ method: `${path}classify.weapp.listByMerchantId`, ...data })
  },
  /**获取附近商户接口 */
  getMerchantList(data) {
    return api.post({ method: `scrm.api.carlife.merchant.recently.merchant`, storeCount: 10, ...data })
  },
  /** 分页查询活动 */
  getActivityList(data) {
    return api.post({ method: `${path}weapp.activity.page`, pageSize: 10, ...data })
  },
  /**分页查询直播   */
  getLiveList(data) {
    return api.post({ method: `scrm.api.live.weapp.live.page`, pageSize: 10, ...data })
  },
  /** 广汇获取城市列表 */
  getCityList() {
    return api.post({ method: 'scrm.api.carlife.cgacar.api.cities' })
  },
  /** 广汇获取车辆品牌列表 */
  getBrandList() {
    return api.post({ method: 'scrm.api.carlife.cgacar.api.brands' })
  },
  /** 广汇获取门店列表 */
  getGHStoreList(data) {
    return api.post({ method: 'scrm.api.carlife.cgacar.api.stores', pageSize: 10, ...data })
  },
  /** 创建维保预约单接口 */
  createMaintainOrder(data) {
    return api.post({ method: 'scrm.api.carlife.cgacar.commom.maintain.create', ...data })
  },
  /**新车频道 */
  /**获取品牌列表 */
  newBrandList(data){
    return api.post({ method: 'scrm.api.carlife.weapp.clue.vehicle.brandList', ...data })
  },
  /**获取车系列表 */
  newCarSeriesList(data){
    return api.post({ method: 'scrm.api.carlife.weapp.clue.vehicle.seriesList', ...data })
  },
  /**获取车型列表 */
  newCarTypeList(data){
    return api.post({ method: 'scrm.api.carlife.weapp.clue.vehicle.shapeList', ...data })
  },
  /**新增试驾预约 */
  addAppointment(data){
    return api.post({ method: 'scrm.api.carlife.weapp.clue.drive.add', ...data })
  },
  /**新增新车询价 */
  addNewCarEnquiry(data){
    return api.post({ method: 'scrm.api.carlife.weapp.clue.newCar', ...data })
  }
}