reportTrackApi.js 375 Bytes
import { sopApi, bigdatautilApi } from '~/api/api'
import { getUserInfo } from '~/utils/cache/userInfo'
/**SOP埋点 */
export function customerBehavior() {
  let { taskId } = wx.getLaunchOptionsSync().query
  if (!taskId) return
  let { openId, phone } = getUserInfo()
  sopApi.customerBehavior({
    customerPhone: phone,
    behaviorType: 1,
    taskId,
    openId
  })
}