discovery.js 1 KB
import api from '../request/http'

module.exports = {
  /**查询商户的指定类型专区列表 */
  getZoneInfo(zoneType) {
    return api.post({
      method: `scrm.api.shopmall.zoneInfo.weapp.listByMerchantId`,
      zoneType //专区类型(1发现频道,2商城专区)
    })
  },
  /*获取商户详情 */
  getMerchantDetail(data) {
    return api.post({
      method: 'scrm.api.carlife.merchant.detail',
      ...data
    })
  },
   /**查询小程序发现频道-配置升级的分类列表  */
   getDiscoverChannelCategory(data) {
    return api.post({
      method: 'scrm.api.shopmall.discover.category.merchant.list',
      ...data
    })
  },
  getDiscoverConfig(data) {
    return api.post({
      method: 'scrm.api.shopmall.weapp.discover.channel.merchant.getconfig',
      ...data
    })
  },
   /**查询小程序发现频道-配置升级的商品  */
   getDiscoverChannelCategoryGoods(data) {
    return api.post({
      method: 'scrm.api.shopmall.goods.configuration.list.mini',
      ...data
    })
  }
}