Authored by 沈志敏

增加activity.yoho.cn的活动域名

{
"name": "yas-jssdk",
"version": "2.3.2",
"version": "2.3.3",
"description": "YOHO!采集系统的前端js的开发包",
"keywords": [
"YOHO!",
... ...
... ... @@ -248,7 +248,7 @@ exports.setFontSize = function() {
}
}
exports.getDownloadStr = function(isWechat, mktc) {
exports.getDownloadStr = function(isWechat) {
var str = '<div class="top-downloadbar';
if (isWechat) {
str += ' top-downloadbar-wechat';
... ... @@ -256,11 +256,11 @@ exports.getDownloadStr = function(isWechat, mktc) {
str += '" id="top-downloadbar"><a href="javascript:void(0);" class="download-close" id="download-close"></a>\
<span class="download-icon"></span><span class="download-text">Yoho!Buy有货</span>';
if (isWechat) {
str += '<a class="download-go-wechat" id="download-go" href="https://union.yoho.cn/union/app-downloads.html' + (mktc ? '?union_type=' + mktc : '') +'">立即打开</a>';
str += '<a class="download-go-wechat" id="download-go" href="https://union.yoho.cn/union/app-downloads.html">立即打开</a>';
str += '<a class="download-wechat" id="download-wechat" href="https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MjM5MzI3MDkwNg==&scene=110#wechat_redirect">加关注</a></div>';
} else {
str += '<p class="download-text-desc">新用户送惊喜礼包</p>';
str += '<a class="download-go" id="download-go" href="https://union.yoho.cn/union/app-downloads.html' + (mktc ? '?union_type=' + mktc : '') + '">立即打开</a></div>';
str += '<a class="download-go" id="download-go" href="https://union.yoho.cn/union/app-downloads.html">立即打开</a></div>';
}
return str;
}
\ No newline at end of file
... ...
... ... @@ -49,7 +49,7 @@ var isApp = /yohobuy/i.test(navigator.userAgent) || /app_version=/i.test(window.
var isMobile = /(iPhone|Android|iPad|iPod|iOS)/i.test(navigator.userAgent);
var isWechat = /micromessenger/i.test(navigator.userAgent);
var ismyhbuy = /m\.yohobuy\.com/i.test(document.domain);
var isfeature = /feature\.yoho\.cn/i.test(document.domain);
var isfeature = /feature\.yoho\.cn/i.test(document.domain) || /activity\.yoho\.cn/i.test(document.domain);
var downloadBlackLst = ['m.yohobuy.com/brands', 'm.yohobuy.com/passport'];
//获取跟踪ID
... ... @@ -369,7 +369,7 @@ function getMktc() {
}
function setUnionType() {
var mktc = window.qs.mkt_code || window.qs.union_type || util.getMktcBySeo();
var mktc = window.qs.mkt_code || window.qs.union_type || util.getMktcBySeo() || '100000000000349';
var aDom = document.getElementsByTagName("a"); //获取页面所有a标签
for (var i = 0; i < aDom.length; i++) {
var href = aDom[i].getAttribute('href') || '';
... ...