import MD from 'spark-utils/out/md/index.js';

let appId = CFG.appID;
let openId = CFG.openId || 1;
const dcm = '202.' + CFG.projectId + '.'+openId+'.0';
const domain = '//embedlog.duiba.com.cn';

//openid 暂时打在dom上
//端外页没打
let MDList = [
  {
    ele: `.point1`,
    data: {
      dpm: `${appId}.110.1.1`,
      dcm,
      domain,
      appId
    },
    once: true
  },
  {
    ele: `.point2`,
    data: {
      dpm: `${appId}.110.2.1`,
      dcm,
      domain,
      appId
    },
    once: true
  },
  {
    ele: `.point3`,
    data: {
      dpm: `${appId}.110.3.1`,
      dcm,
      domain,
      appId
    },
    once: true
  },
  {
    ele: `.point4`,
    data: {
      dpm: `${appId}.110.4.1`,
      dcm,
      domain,
      appId
    },
    once: true
  },
  {
    ele: `.point5`,
    data: {
      dpm: `${appId}.110.5.1`,
      dcm,
      domain,
      appId
    },
    once: true
  },
  {
    ele: `.point6`,
    data: {
      dpm: `${appId}.110.6.1`,
      dcm,
      domain,
      appId
    },
    once: false
  },
];

export default () =>
  MD({
    show: MDList, // 曝光
    click: MDList // 点击
  });
