carLifeApi.js 697 Bytes
const url = '/rop-scrm-carlife/router'

import { util } from 'utils'
export default {
  /**获取车品牌列表 */
  getCarBrandList(data = {}) {
    data.method = 'scrm.api.carlife.common.getOnlyCarBrandList'
    return window.$HTTP({
      url,
      data
    })
  },
  /** 获取车系列表 */
  getCarSeriesList(params) {
    let data = {
      method: 'scrm.api.carlife.common.getCarSeriesList',
      ...params
    }
    return window.$HTTP({
      url,
      data
    })
  },
  /** 获取车型 */
  getCarTypeList(carSeriesId) {
    let data = {
      method: 'scrm.api.carlife.common.getCarTypeList',
      carSeriesId
    }
    return window.$HTTP({
      url,
      data
    })
  }
}