Authored by 郝肖肖

注册埋点

@@ -14,6 +14,8 @@ var tip = require('../../plugin/tip'); @@ -14,6 +14,8 @@ var tip = require('../../plugin/tip');
14 var trim = $.trim; 14 var trim = $.trim;
15 var showErrTip = tip.show; 15 var showErrTip = tip.show;
16 16
  17 +require('../../common');
  18 +
17 api.bindEyesEvt({ 19 api.bindEyesEvt({
18 status: 'open' // 默认眼睛打开 20 status: 'open' // 默认眼睛打开
19 }); 21 });
@@ -49,6 +51,16 @@ $btnSure.on('touchstart', function() { @@ -49,6 +51,16 @@ $btnSure.on('touchstart', function() {
49 var res = data.data; 51 var res = data.data;
50 52
51 if (data.code === 200) { 53 if (data.code === 200) {
  54 + // 统计代码:用于统计从哪个渠道注册成功的
  55 + if (window._yas && window._yas.sendCustomInfo) {
  56 + window._yas.sendCustomInfo({
  57 + op: 'YB_REGISTER_SUCCESS_L',
  58 + param: JSON.stringify({
  59 + C_ID: window._ChannelVary[window.cookie('_Channel')] || 1,
  60 + UNION_TYPE: window.queryString().union_type || window.cookie('unionTypeYas') || false
  61 + })
  62 + }, true);
  63 + }
52 showErrTip('注册成功'); 64 showErrTip('注册成功');
53 65
54 location.href = res.href; 66 location.href = res.href;