...
|
...
|
@@ -204,7 +204,7 @@ $.extend({ |
|
|
|
|
|
// 单击下载按钮 - 接受微信商城或者第三方来源的数据埋点信息
|
|
|
if (queryString().union_type) {
|
|
|
setCookie('unionTypeYas', queryString().union_type);
|
|
|
setCookie('unionTypeYas', queryString().union_type, {path: '/'});
|
|
|
}
|
|
|
|
|
|
}());
|
...
|
...
|
@@ -307,6 +307,31 @@ if ($footer.find('.user-name').text().length === 11) { |
|
|
$footer.find('.user-name').html(phoneHidden($footer.find('.user-name').text()));
|
|
|
}
|
|
|
|
|
|
// 浮层下载APP
|
|
|
function downLoadApp() {
|
|
|
var appUrl = 'http://union.yoho.cn/union/downapp.html';
|
|
|
var clickedAt = new Date();
|
|
|
|
|
|
setTimeout(function() {
|
|
|
var mkt = queryString().union_type || cookie('unionTypeYas') || false;
|
|
|
|
|
|
if ((new Date()) - clickedAt < 2000) {
|
|
|
if (mkt) {
|
|
|
appUrl += '?union_type=' + mkt;
|
|
|
}
|
|
|
|
|
|
if (window._yas && window._yas.sendCustomInfo) {
|
|
|
window._yas.sendCustomInfo({
|
|
|
op: 'YB_DOWNLOAD_C',
|
|
|
param: JSON.stringify({C_ID: _ChannelVary[cookie('_Channel')] || 1, TO_URL: appUrl})
|
|
|
}, true);
|
|
|
}
|
|
|
|
|
|
window.location = appUrl;
|
|
|
}
|
|
|
}, 500);
|
|
|
}
|
|
|
|
|
|
// 为您优选埋点 http://redmine.yoho.cn/issues/10117
|
|
|
function givePoint(parameter) {
|
|
|
var CID = 1;
|
...
|
...
|
@@ -398,3 +423,5 @@ window.queryString = queryString(); |
|
|
window.givePoint = givePoint;
|
|
|
|
|
|
window._ChannelVary = _ChannelVary;
|
|
|
|
|
|
window.downLoadApp = downLoadApp; |
...
|
...
|
|