discoveryApi.js 1.75 KB
import api from '~/utils/request/request'
const path = 'scrm.api.shopmall.zoneInfo.weapp.'
module.exports = {
  /**查询商户的指定类型专区列表 */
  getZoneInfo(zoneType) {
    return api.post({
      method: `${path}listByMerchantId`,
      zoneType //专区类型(1发现频道,2商城专区)
    })
  },
  /** 晒单详情 */
  getOrderShareRecordDetail(id) {
    return api.post({
      method: 'scrm.api.shopmall.weapp.orderShareRecord.detail',
      id
    })
  },
  getDiscoverConfig(data) {
    return api.post({
      method: 'scrm.api.shopmall.weapp.discover.channel.merchant.getconfig',
      ...data
    })
  },
  getDiscoverChannelDetail(data) {
    wx.$api.showLoading('加载中...')
    return api.post({
      method: 'scrm.api.shopmall.weapp.discoverchannel.detail',
      ...data
    })
  },
  /**判断用户是否有领过膜类专区的优惠券 */
  judgeRecord(data) {
    return api.post({
      method: 'scrm.api.shopmall.weapp.discoverchannel.coupon.record.get',
      ...data
    })
  },

  /**发现列表视频直播  */
  getDiscoverChannelVideo(data) {
    return api.post({
      method: 'scrm.api.busassistant.discover.channel.live',
      ...data
    })
  },
  /**查询小程序发现频道-配置升级的分类列表  */
  getDiscoverChannelCategory(data) {
    return api.post({
      method: 'scrm.api.shopmall.discover.category.merchant.list',
      ...data
    })
  },
  /**查询小程序发现频道-配置升级的商品  */
  getDiscoverChannelCategoryGoods(data) {
    return api.post({
      method: 'scrm.api.shopmall.goods.configuration.list.mini',
      ...data
    })
  },
  /*获取商户详情 */
  getMerchantDetail(data) {
    return api.post({
      method: 'scrm.api.carlife.merchant.detail',
      ...data
    })
  }
}