Authored by 郝肖肖

注册埋点

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