bigdatautilApi.js 713 Bytes
const url = '/rop-scrm-bigdatautil/router'

import { util } from 'utils'
export default {
  /**埋点 */
  reportTrack (id) {
    let userInfo = util.getLocalStorage('dj_scrm_userInfo')
    let data = {
      one_id: '',
      staff_id: '',
      staff_uuid: userInfo.uuid,
      user_phone: '',
      create_time: new Date().format('yyyy-MM-dd hh:mm:ss'),
      item_type: 3,
      customer_phone: '',
      action_type: 4,
      item_id: id,
      business_type: 1,
      add_way: 104,
      merchant_id: userInfo.merchantId
    }
    return window.$HTTP({
      url,
      data: {
        method: 'entmicro.api.customercollect.reportCustomerList',
        jsonList: [JSON.stringify(data)]
      },
    })
  }
}