output.js 3.81 KB
import api from '~/utils/request/request'
// const { appId } = wx.getAccountInfoSync().miniProgram
const CODE = {
  platformEntrance: 'BUSINESS_ASSISTANT',
  productCode: 'PC00c3'
}
class outputApi {
  /** 获取服务商(生意助手看产值)我的客户页总收益 */
  getMerchantTotal(data) {
    return api.post({
      method: 'scrm.api.boutiquecoupon.partnermerchant.getMerchantTotal',
      ...data
    })
  }
  /** 分页获取服务商(生意助手看产值)我的客户页数据 */
  getCustomerPageList(data) {
    return api.post({
      method: 'scrm.api.boutiquecoupon.partnermerchant.customerPageList',
      ...data
    })
  }
  /** 服务商(生意助手看产值)我的客户详情数据 */
  getCustomerDetail(data) {
    return api.post({
      method: 'scrm.api.boutiquecoupon.partnermerchant.getCustomerDetail',
      ...data
    })
  }

  /**获取园区店开通场景数据 */
  getSignMerchant(data) {
    return api.post(
      {
        method: 'scrm.api.boutiquecoupon.getSceneTotal.byYqMerchantId',
        ...data
      }
      // true
    )
  }
  /**获取服务商(生意助手看产值)我的门店页数据 */
  partnerMerchantTotal(data) {
    return api.post(
      {
        method: 'scrm.api.boutiquecoupon.partnermerchant.yqList',
        ...data
      },
      true
    )
  }
  /** 查找可开通的产品 */
  getNoOpenPro(data) {
    return api.post({
      method: 'scrm.api.busassistant.activity.findNotOpenProducts',
      ...data
    })
  }
  /**查询场景和产品的开通状态 */
  getSceneProStatus(data) {
    return api.post({
      method: 'scrm.api.busassistant.activity.findSceneProductStatus',
      ...data
    })
  }
  /** 申请开通活动*/
  applyActivity(data) {
    return api.post({
      method: 'scrm.api.busassistant.activity.apply',
      ...data
    })
  }

  /** 查询门店众筹活动产值 */
  getActivityRevenue(data) {
    return api.post({
      method: 'scrm.api.busassistant.merchant.activity.Revenue',
      ...data
    })
  }

  /** 查询门店权益订单数据统计-车险升级活动产值 */
  getEquityRevenue(data) {
    return api.post({
      // method: 'scrm.api.busassistant.merchant.equity.statistics',
      method: 'dj.api.smartcarlife.vd.quotation.merchant.statistics',
      ...data
    }, false, 'dj')
  }

  /** 店面汇总-下载海报 */
  getPosterUrl(data) {
    return api.post({
      method: 'scrm.api.busassistant.crowdFunding.poster',
      ...data
    })
  }
  /**长按海报埋点 */
  reportPosterTrack(data) {
    return api.post({
      method: 'scrm.api.busassistant.crowdFunding.poster.shared.createRecord',
      ...data
    })
  }

  /**获取活动最新战报 */
  getNewReportUrl(data) {
    return api.post({
      method: 'scrm.api.stoassistant.crowd.activity.newest.report',
      ...data
    })
  }

  /**获取最新喜报 */
  getNewGoodUrl(data) {
    return api.post({
      method: 'scrm.api.busassistant.crowdFunding.good.report',
      ...data
    })
  }

  /** 根据场景查询产品 */
  findProByScene(data) {
    return api.post({
      method: 'scrm.api.busassistant.activity.productByscene',
      ...data
    })
  }

  /** 业务经营汇总列表查询 */
  getBusiStatistics(data) {
    return api.post({
      method: 'scrm.api.boutiquecoupon.store.assistant.merchants.total.statistics.forStoreManager',
      ...data
    })
  }
  //客户画像展示
  portraitView(data) {
    return api.post({
      method: 'entmicro.api.customer.portrait.view',
      apiProjectName: 'entmicro',
      ...data
    })
  }
 
  // 我的员工
  /** 服务商查询园区店员工产值统计 */
  getStaffList(data) {
    data.routerMethod = 'dj.api.smarcarlife.yquser.stat.byPartnerMerchant'
    return api.post({
      method: 'scrm.api.boutiquecoupon.rop.boutique.router.withoutLogin',
      ...data
    })
  }
}
export default outputApi