Authored by 郭成尧

Merge branch 'feature/h5mnprblmwbvw' into release/6.5.2

... ... @@ -24,6 +24,7 @@ exports.index = function(req, res, next) {
content: result,
activity_id: req.params.code,
isFeature: true,
wechatShare: true,
loadJs: [{
src: global.yoho.config.jsSdk
}]
... ... @@ -87,18 +88,21 @@ exports.couponSend = (req, res, next) => {
// 接口要加 session 校验,跨域异步请求未添加相关参数
if (req.yoho.isApp) {
if (app.app_version && app.client_type && app.session_key && app.uid) {
// 小程序调接口获取 session 的方式不同,H5 嵌小程序,client_type 标记为 h5
let isMiniApp = app.client_type === 'miniapp';
uid = {
toString: () => {
return _.parseInt(app.uid);
},
sessionKey: app.session_key,
appVersion: app.app_version,
appSessionType: app.client_type
appVersion: isMiniApp ? _.get(global, 'yoho.config.appVersion') : app.app_version,
appSessionType: isMiniApp ? 'h5' : app.client_type
};
}
}
model.couponSend(uid, token, app).then(result => {
model.couponSend(uid, token).then(result => {
res.set({
'Cache-Control': 'no-cache',
Pragma: 'no-cache',
... ...
... ... @@ -130,7 +130,7 @@ module.exports = {
maxQps: 1200,
maxQps10m: 2500,
geetestJs: '//static.geetest.com/static/tools/gt.js',
jsSdk: '//cdn.yoho.cn/js-sdk/1.2.10/jssdk.js',
jsSdk: '//cdn.yoho.cn/js-sdk/1.3.0/jssdk.js',
redis: {
connect: {
host: '127.0.0.1',
... ...
... ... @@ -125,7 +125,7 @@
<input type="hidden" id="no-download" value="no-download">
{{/if}}
{{#wechatShare}}
<script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.1.0.js"></script>
<script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
{{/wechatShare}}
{{#if devEnv}}
<script>
... ...
... ... @@ -307,4 +307,9 @@ $(function() {
// 个性化券查询
persenalCouponInit();
// 小程序相关处理
if (window.__wxjs_environment === 'miniprogram') {
require('./miniprogram');
}
});
... ...
require('./link-handle');
require('./post-message');
... ...
/* global wx */
import $ from 'yoho-jquery';
class LinkHandle {
constructor() {
$(document).delegate('a:not(.yoho-coin, .yoho-conpon)', 'click', event => {
let $currentTarget = $(event.currentTarget);
let href = $currentTarget.attr('href');
if (!href) {
return;
}
let path = this.transToPath(href);
this.goMiniProgram(path);
event.preventDefault();
});
}
/**
* 跳小程序原生页面
*/
goMiniProgram(path) {
if (wx) {
wx.miniProgram.navigateTo({
url: path
});
} else {
console.error('no wx object');
}
}
/**
* 转换为小程序页面地址
*/
transToPath(href) {
let path = '';
let openbyParamsArr = href.split(/openby:yohobuy(=|=)/);
let paramsStr = openbyParamsArr[openbyParamsArr.length - 1];
let paramsObj = {};
try {
paramsObj = JSON.parse(paramsStr);
} catch (error) {
console.error('paramsStr is: ', paramsStr);
}
if (paramsObj.action === 'go.productDetail' && paramsObj.params && paramsObj.params.product_skn) { // 商品详情页
path = `/pages/goodsDetail/goodsDetail?productSkn=${paramsObj.params.product_skn}&page_name=home`;
} else if (paramsObj.action === 'go.list') { // 列表页、专区
let queryParams = this.transOpenbyParams(paramsObj.params);
path = `/pages/goodsList/goodsList${queryParams}`;
} else if (paramsObj.action === 'go.poollist') { // 商品池
let queryParams = this.transOpenbyParams(paramsObj.params);
path = `/pages/goodsList/productPool${queryParams}`;
} else if (paramsObj.action === 'go.h5' && paramsObj.params && paramsObj.params.url) { // 活动模板
let queryParams = this.transOpenbyParams(paramsObj.params.param);
let url = `${paramsObj.params.url}${queryParams}`;
path = `/pages/webview/webview?page_name=home&url=${url}`;
} else if (paramsObj.action === 'go.shop') { // 店铺
path = `/pages/goodsList/brandStore?shopId=${paramsObj.params.shop_id}`;
} else {
wx.miniProgram.postMessage({
message: '暂不支持,请使用Yoho!buy有货app选购'
});
}
return path;
}
/**
* 转换 openby 参数
*/
transOpenbyParams(params) {
let paramsArr = [];
if (params && $.isPlainObject(params)) {
for (let key in params) {
if (params.hasOwnProperty(key)) {
paramsArr.push(`${key}=${params[key]}`);
}
}
} else {
console.info('params is:', params);
}
return paramsArr.length ? `?${paramsArr.join('&')}` : '';
}
}
export default new LinkHandle();
... ...
/* global wx */
/**
* 向小程序发消息
*/
class PostMessage {
constructor() {
if (wx) {
wx.miniProgram.postMessage({
data: {
title: document.title
}
});
} else {
console.error('no wx object');
}
}
}
export default new PostMessage();
... ...
... ... @@ -65,7 +65,7 @@ if (/QQ/i.test(navigator.userAgent)) {
if (/MicroMessenger/i.test(navigator.userAgent)) {
$.ajax({
url: '//res.wx.qq.com/open/js/jweixin-1.1.0.js',
url: '//res.wx.qq.com/open/js/jweixin-1.3.2.js',
dataType: 'script',
cache: true,
success: function() {
... ...
!function(e){"use strict";function t(e,t){if("undefined"==typeof document)return t;e=e||"";var i=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");return n.type="text/css",i.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t}function i(){}function n(e){s=[e]}function o(e,t,i){return e&&e.apply&&e.apply(t.context||t,i)}function a(e){return/\?/.test(e)?"&":"?"}function r(t){function r(e){Y++||(H(),$&&(A[W]={s:[e]}),z&&(e=z.apply(t,[e])),o(B,t,[e,_,t]),o(R,t,[t,_]))}function c(e){Y++||(H(),$&&e!=S&&(A[W]=e),o(L,t,[t,e]),o(R,t,[t,e]))}t=e.extend({},O,t);var d,D,U,q,M,B=t.success,L=t.error,R=t.complete,z=t.dataFilter,Q=t.callbackParameter,P=t.callback,J=t.cache,$=t.pageCache,G=t.charset,W=t.url,F=t.data,X=t.timeout,Y=0,H=i;return I&&I(function(e){e.done(B).fail(L),B=e.resolve,L=e.reject}).promise(t),t.abort=function(){!Y++&&H()},!1===o(t.beforeSend,t,[t])||Y?t:(W=W||l,F=F?"string"==typeof F?F:e.param(F,t.traditional):l,W+=F?a(W)+F:l,Q&&(W+=a(W)+encodeURIComponent(Q)+"=?"),!J&&!$&&(W+=a(W)+"_"+(new Date).getTime()+"="),W=W.replace(/=\?(&|$)/,"="+P+"$1"),$&&(d=A[W])?d.s?r(d.s[0]):c(d):(C[P]=n,U=e(k)[0],U.id=m+N++,G&&(U[u]=G),E&&E.version()<11.6?(q=e(k)[0]).text="document.getElementById('"+U.id+"')."+y+"()":U[p]=p,j&&(U.htmlFor=U.id,U.event=g),U[v]=U[y]=U[b]=function(e){if(!U[w]||!/i/.test(U[w])){try{U[g]&&U[g]()}catch(e){}e=s,s=0,e?r(e[0]):c(f)}},U.src=W,H=function(e){M&&clearTimeout(M),U[b]=U[v]=U[y]=null,T[x](U),q&&T[x](q)},T[h](U,D=T.firstChild),q&&T[h](q,D),M=X>0&&setTimeout(function(){c(S)},X)),t)}function c(e){return new RegExp(e+"=([^;$]*)","i").test(decodeURIComponent(document.cookie))?RegExp.$1:""}function d(e,t,i){var n,o,a,r,c="";void 0!==t&&(i=i||{},null===t&&(t="",i.expires=-1),i.expires&&("number"==typeof i.expires||i.expires.toUTCString)&&("number"==typeof i.expires?(r=new Date,r.setTime(r.getTime()+24*i.expires*60*60*1e3)):r=i.expires,c="; expires="+r.toUTCString()),n=i.path?"; path="+i.path:"",o=i.domain?"; domain="+i.domain:"",a=i.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(t),c,n,o,a].join(""))}e="default"in e?e.default:e;var s,p="async",u="charset",l="",f="error",h="insertBefore",m="_jqjsp",g="onclick",y="on"+f,v="onload",b="onreadystatechange",w="readyState",x="removeChild",k="<script>",_="success",S="timeout",C=window,I=e.Deferred,T=e("head")[0]||document.documentElement,A={},N=0,O={callback:m,url:location.href},E=C.opera,j=!!e("<div>").html("\x3c!--[if IE]><i><![endif]--\x3e").find("i").length;r.setup=function(t){e.extend(O,t)},e.jsonp=r,t(".featuretip.tip-wrap{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1000;background:rgba(0,0,0,.5)}.featuretip .tip{position:fixed;left:50%;top:50%;margin-left:-140px;margin-top:-140px;width:280px;background:#fff;border-top:40px solid #000;text-align:center;line-height:1.25}.featuretip .tip .title{margin:20px auto;font-size:24px;font-weight:700;text-align:center}.featuretip .tip .highlight{font-size:18px}.featuretip .tip .content{font-size:16px;color:#444;text-align:center}.featuretip .tip .button{display:block;margin:20px auto;width:150px;height:30px;font-size:14px;line-height:30px;text-align:center;color:#fff;background:#000;text-decoration:none}",void 0),t(".feature-coin.tip-wrap{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1000;background:rgba(0,0,0,.5)}.feature-coin .tip{position:fixed;left:50%;top:50%;margin-left:-140px;margin-top:-140px;width:280px;background:#fff;text-align:center;line-height:1.25;background-repeat:no-repeat}.feature-coin .tip .tip-close{position:absolute;right:0;top:0;width:25px;height:25px;line-height:25px;text-align:center;font-size:16px;color:#fff;background:#000;cursor:pointer}.feature-coin .tip .title{margin:21px auto;font-size:22px;font-weight:700;text-align:center}.feature-coin .tip .highlight{font-size:18px}.feature-coin .tip .content{padding:4px;font-size:16px;color:#444;text-align:center;height:48px;overflow:hidden}.feature-coin .bottom-button{text-align:center}.feature-coin .tip .button,.feature-coin .tip .coin{display:inline-block;margin:20px auto;width:116px;height:26px;font-size:14px;line-height:26px;text-align:center;color:#fff;background:#000;text-decoration:none;border:2px solid #000}.feature-coin .tip .coin{color:#000;background:#fff}",void 0);var D={Android:function(){return!!navigator.userAgent.match(/Android/i)},BlackBerry:function(){return!!navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return!!navigator.userAgent.match(/iPhone|iPad|iPod/i)},Windows:function(){return!!navigator.userAgent.match(/IEMobile/i)},any:function(){return D.Android()||D.BlackBerry()||D.iOS()||D.Windows()}},U=D.any()?"//m.yohobuy.com/home/mycurrency":"//www.yohobuy.com/home/currency",q=e('<div class="featuretip tip-wrap"><div class="tip"><div class="title"></div><div class="content"></div><a class="button" href="">返回</a></div></div>'),M=e('<div class="feature-coin tip-wrap"><div class="tip"><div class="tip-close">&times;</div><div class="title"></div><div class="content"></div><div class="bottom-button"><a class="button" href="">去逛逛</a><a class="coin" href=\''+U+'?openby:yohobuy={"action":"go.mine"}\'>查看有货币</a></div></div></div>'),B=function(){if(!window._jssdkQS){var t={},i=void 0,n=void 0,o=window.location.search.slice(1).split("&");for(n=0;n<o.length;n++)i=o[n].split("="),t[i[0]]=i[1];window._jssdkQS=t}return e.extend({},window._jssdkQS)},L=function(){var t=B(),i=[],n="?";delete t.uid,delete t.app_version,delete t.client_type,delete t.session_key,delete t.client_secret;for(var o in t)i.push(o+"="+t[o]);t.expires||i.push("expires="+6048e5),i.push("callback=jQueryMktCode"),n+=i.join("&"),e.getScript("//m.yohobuy.com/activity/wechat/1111"+n,function(){})},R=function(){var t=e("body");t.on("click",".feature-coin .close,.feature-coin .tip-close",function(e){M.fadeOut(),e.preventDefault()}),t.on("click",".feature-coin.tip-wrap",function(e){"feature-coin tip-wrap"===e.target.className&&(M.fadeOut(),e.preventDefault())}),t.on("click",".featuretip .close",function(e){q.fadeOut(),e.preventDefault()}),t.on("click",".featuretip .refresh",function(){location.reload()}),t.on("click",".featuretip.tip-wrap",function(e){"featuretip tip-wrap"===e.target.className&&(q.fadeOut(),e.preventDefault())})},z={queryString:B,init:function(){L(),R()},isApp:function(){var e=B();return!(!e.app_version&&("app"!==e.openrefer||!e.uid))},image:function(e,t,i,n,o){return n=isNaN(Number(n))?2:n,e=e||"",e=e.replace(/{width}/g,t).replace(/{height}/g,i).replace(/{mode}/g,n),e.indexOf("imageView2")>0&&(o=o||90,e+="/q/"+o),e.replace("quality/80","quality/60").replace("http:","")},sParamByIframe:function(t){e.getScript("//m.yohobuy.com/activity/wechat/1111"+t,function(){})},showTip:function(t){t=t||{title:"",content:"",close:!0},q.find(".title").html(t.title),q.find(".content").html(t.content),t.close?q.find(".button").addClass("close"):q.find(".button").addClass("refresh").html("刷新"),e("body").append(q),q.show()},showCoinTip:function(t){t=t||{title:"",content:"",close:!0},M.find(".title").html(t.title),M.find(".content").html(t.content),t.close&&M.find(".button").addClass("close"),t.coin?M.find(".coin").css("display","inline-block"):M.find(".coin").hide(),t.img&&M.find(".tip").css("background-image","url("+t.img+")"),e("body").append(M),M.show()}},Q=function(){var e=location.href.split("?")[0];return"//m.yohobuy.com/signin.html?refer="+encodeURIComponent(location.href)+'&openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"'+e.replace(/\//g,"\\/")+'","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}'},P={uid:"",noLoginUrl:Q,init:function(){var t=this;return r({url:"//m.yohobuy.com/passport/login/user?callback=?"}).then(function(i){return 200===i.code&&(t.uid=Number(i.data)||0),!t.uid&&z.isApp()&&(t.uid=Number(z.queryString().uid)||0),e.Deferred().resolve(t.uid)},function(){return z.isApp()&&(t.uid=Number(z.queryString().uid)||0),e.Deferred().resolve(t.uid)})},auth:function(){if(!this.uid){var t=Q();e("a.auth").attr("href",t)}},favout:function(e){e&&this.uid&&r({url:"//service.yoho.cn/activity/favorite/addFavorite?productSkn="+e+"&uid="+this.uid+"&callback=?"}).then(function(e){200===e.code?z.showTip({content:"恭喜您,收藏成功",close:!0}):z.showTip({content:e.message,close:!0})},function(){z.showTip({title:"收藏失败<br>请刷新重新领取",content:"如多次收藏失败,请联系客服人员<br>带来不便敬请谅解",close:!1})})},getMktCode:function(){return this.uid?Number(this.uid)%1024>=512?0x5af3107a40c3:0x5af3107a40c1:0x5af3107a40c5}},J=["checkJsApi","onMenuShareTimeline","onMenuShareAppMessage","onMenuShareQQ","onMenuShareWeibo","onMenuShareQZone"],$={title:document.title,link:location.href,desc:"YOHO!BUY",imgUrl:"http://static.yohobuy.com/m/v1/img/touch/apple-touch-icon-144x144-precomposed-new.png"},G=function(){var t=z.queryString().share_id;if(t)return r({url:"//m.yohobuy.com/activity/share?callback=?",data:{shareId:t}}).then(function(t){return t&&200===t.code&&t.data&&($.title=t.data.title,$.link=t.data.link||location.href,$.desc=t.data.content||t.data.title,$.imgUrl=t.data.pic),e.Deferred().resolve()},function(){return e.Deferred().resolve()});var i=e("#shareTitle").val(),n=e("#shareImg").val(),o=e("#shareDesc").val(),a=e("#shareLink").val();return $.title=i||$.title,$.imgUrl=n||$.imgUrl,$.desc=o||$.desc,$.link=a||$.link,e.Deferred().resolve()},W={init:function(){/QQ/i.test(navigator.userAgent)&&e.ajax({url:"//qzonestyle.gtimg.cn/qzone/qzact/common/share/share.js",dataType:"script",cache:!0,success:function(){G().then(function(){window.setShareInfo&&window.setShareInfo({title:$.title,summary:$.desc,pic:$.imgUrl,url:$.link})})}}),/MicroMessenger/i.test(navigator.userAgent)&&e.ajax({url:"//res.wx.qq.com/open/js/jweixin-1.1.0.js",dataType:"script",cache:!0,success:function(){r({url:"//m.yohobuy.com/activity/wechat/share?callback=?",data:{url:location.href}}).then(function(e){window.wx&&(window.wx.config({debug:!1,appId:e.appId,timestamp:e.timestamp,nonceStr:e.nonceStr,signature:e.signature,jsApiList:J}),G().then(function(){window.wx.ready(function(){window.wx.onMenuShareAppMessage($),window.wx.onMenuShareTimeline($),window.wx.onMenuShareQQ($),window.wx.onMenuShareWeibo($),window.wx.onMenuShareQZone($)})}))})}})}},F={"baidu.com":0x5af3107a4037,"so.com":0x5af3107a4031,"sogou.com":0x5af3107a4035,"bing.com":0x5af3107a4039,"m.sm.cn":0x5af3107a403b,"google.com":0x5af3107a403d},X=function(){var e,t=document.referrer;for(var i in F)if(t.indexOf(i)>-1){e=F[i];break}return e},Y=function(){var e=z.queryString(),t=e.mkt_code||e.union_type||X()||"100000000000349";return delete e.openapp,"yohobuy://yohobuy.com/goapp?ct="+t+'&openby:yohobuy={"action":"go.h5",'+(e.share_id?'"share":"/operations/api/v5/webshare/getShare","shareparam":{"share_id":"'+e.share_id+'"},':"")+'"params":{"islogin":"N","url":"http://feature.yoho.cn'+location.pathname+'","param":'+JSON.stringify(e)+"}}"},H={init:function(){if(z.queryString().openapp){var e=navigator.userAgent.toLowerCase(),t=e.indexOf("os")>-1||e.indexOf("iphone")>-1||e.indexOf("mac")>-1||e.indexOf("ipad")>-1,i=Y();if(t)window.location.href=i;else{var n=document.createElement("iframe");n.src=i,n.style.display="none",document.body.appendChild(n)}}}},Z={cookie:c,setCookie:d},V=function(e){e.app=z.queryString(),e.app.uid=e.uid,r({url:"//m.yohobuy.com/activity/coin/sendCoin?callback=?",data:e}).then(function(e){200===e.code&&e.data?200===e.data.code?z.showCoinTip({title:"恭喜您,成功领取有货币!",content:"特殊情况下到账有延时<br>请耐心等待",close:!0,coin:!0,img:e.data.popupImg}):501===e.data.code?z.showCoinTip({title:"领取失败",content:"哎呀,你来的有点早,活动还没开始呢<br/>稍后再来哦",close:!0,img:e.data.popupImg}):502===e.data.code?z.showCoinTip({title:"领取失败",content:"抱歉,活动已结束了,下次要快哟~~",close:!0,img:e.data.popupImg}):503===e.data.code?z.showCoinTip({title:"已经领取",content:"贪心会长胖,你已经领取过了啦~~",close:!0,img:e.data.popupImg}):504===e.data.code?z.showCoinTip({title:"领取失败",content:"哎呀,你来晚了,有货币已经领完了,<br/>下次早点来哦",close:!0,img:e.data.popupImg}):e.data.msg&&z.showCoinTip({title:"领取失败",content:"抱歉,系统错误,有货君正奋力解决中...请稍后再来",close:!0,img:e.data.popupImg}):e.message&&z.showCoinTip({title:"领取失败",content:"抱歉,系统错误,有货君正奋力解决中...请稍后再来",close:!0,img:e.data&&e.data.popupImg})},function(){z.showCoinTip({title:"领取失败",content:"抱歉,系统错误,有货君正奋力解决中...请稍后再来",close:!0})})},K=function(e){e.app=z.queryString(),e.app.uid=Z.cookie("app_uid")||e.app.uid,e.app.app_version=Z.cookie("app_version")||e.app.app_version,e.app.client_type=Z.cookie("app_client_type")||e.app.client_type,e.app.session_key=Z.cookie("app_session_key")||e.app.session_key,r({url:"//m.yohobuy.com/activity/feature/couponSend?callback=?",data:e}).then(function(e){200===e.code?z.showTip({title:"领取成功",content:"恭喜您,领取成功",close:!0}):401===e.code?z.showTip({title:"已经领取",content:'快去分享给更多<br>喜爱<span class="highlight">潮流</span>的小伙伴吧!',close:!0}):e.message&&z.showTip({title:"领取失败<br>请刷新重新领取",content:e.message+"<br>如多次领取失败,请联系客服人员<br>带来不便敬请谅解",close:!1})},function(){z.showTip({title:"领取失败<br>请刷新重新领取",content:"如多次领取失败,请联系客服人员<br>带来不便敬请谅解",close:!1})})},ee=function(t){if(t){var i=Z.cookie("yoho-coin-token");i&&(V({token:i,uid:t}),Z.setCookie("yoho-coin-token",""))}e("body").on("click",".yoho-coin",function(){var t=e(this).data("token");if(!P.uid)return Z.setCookie("yoho-coin-token",t),e("#intimacy-link").length<=0&&e("body").append("<a href='"+P.noLoginUrl()+'\' style="display:none;" id="intimacy-link"><span class="intimacy-link"></span></a>'),void e(".intimacy-link").click();V({token:t,uid:P.uid})})},te=function(t){if(t){var i=Z.cookie("yoho-conpon-token");i&&(K({token:i,uid:t}),Z.setCookie("yoho-conpon-token",""))}e("body").on("click",".yoho-conpon",function(){var t=e(this).data("token");if(!P.uid)return Z.setCookie("yoho-conpon-token",t),e("#intimacy-link").length<=0&&e("body").append("<a href='"+P.noLoginUrl()+'\' style="display:none;" id="intimacy-link"><span class="intimacy-link"></span></a>'),void e(".intimacy-link").click();K({token:t,uid:P.uid})})},ie={init:function(e){ee(e),te(e)}},ne=!1,oe=function(e,t,i,n,o){if(i){e.find(".brand-name").html(i.brand_name),e.find(".product-detail").attr("href","//m.yohobuy.com/product/pro_"+i.product_id+"_"+i.goods_id+"/"+i.cn_alphabet+'.html?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":'+i.product_skn+"}}"),e.find(".product-detail-img").attr("src",z.image(i.default_images,n.w,n.h,2,75)),e.find(".product-name").html(i.product_name),e.find(".vip-price-val").html("¥"+i.vip_price),e.find(".sale-price").html("¥"+i.sales_price),i.sales_price===i.market_price?e.find(".market-price").hide():e.find(".market-price").html("¥"+i.market_price).show();var a=e.find(".product-brand");a&&(i.shop_id?a.attr("href","//m.yohobuy.com/product/index/brand?domain="+i.brand_domain+'&openby:yohobuy={"action":"go.shop","params":{"shop_id":'+i.shop_id+',"shop_template_type":'+(i.shop_template_type||"1")+',"is_red_shop":'+(i.is_red_shop||1)+"}}"):a.attr("href","//m.yohobuy.com/product/index/brand?domain="+i.brand_domain+'&openby:yohobuy={"action":"go.brand","params":{"brand_id":'+i.brand_id+"}}")),o&&(o.I_INDEX||(o.I_INDEX=0),o.I_INDEX++,e.find(".product-detail").attr("fp",JSON.stringify(o)),a&&(o.I_INDEX++,a.attr("fp",JSON.stringify(o))));var r=e.find(".list-product");if(r){var c="",d=t.gender?t.gender:"1,3",s="//list.m.yohobuy.com?gender="+d;r.data("sort")&&(c+=',"sort":'+i.small_sort_id,s+="&sort="+i.small_sort_id),r.data("misort")&&(c+=',"misort":'+i.middle_sort_id,s+="&misort="+i.middle_sort_id),r.data("msort")&&(c+=',"msort":'+i.max_sort_id,s+="&msort="+i.max_sort_id),s+='&openby:yohobuy={"action":"go.list","params":{"actiontype":1,"gender":'+d+c+"}}",r.attr("href",s)}return e.html(e.html()),e}},ae=function e(t){if(t.length){var i=t.shift();return i&&i.default_images?i:e(t)}},re=function(t,i,n){var o=t.attr("cloneitem"),a=t.find(".loading"),c=t.find(".feature-product-info"),d=t.data("rownum");if(c.length){if(n.abtest&&(!i.uid||Number(i.uid)%1024>=512))return void(o?e(c[0]).remove():(c.removeClass("novisible"),a.hide()));var s=t.find(".imgwh").val()||"";s=s.split("x")||[];var p={w:s[0]||300,h:s[1]||400},u=t.attr("fp");u=u?JSON.parse(u):"",r({url:"//m.yohobuy.com/activity/individuation?callback=?",data:e.extend({},i,n)}).then(function(i){if(!i||!i.length)return void(o?e(c[0]).remove():(c.removeClass("novisible"),a.hide()));if(i.length=i.length-i.length%d,o)for(var r=isNaN(Number(o))?i.length:Number(o),s=0;s<r;s++){var l=ae(i);if(0===s){var f=e(c[0]),h=oe(f,n,l,p,u);h?h.removeClass("novisible"):f.remove()}else{var m=oe(e(c[0]).clone(),n,l,p,u);m&&(m.removeClass("novisible"),m.appendTo(t))}}else{for(var g=1;g<i.length;g++)c.last().after(c.clone());var y=t.find(".feature-product-info");y.each(function(t,o){var a=e(o);oe(a,n,ae(i),p,u)}),y.removeClass("novisible"),a.hide()}},function(){o?e(c[0]).remove():(c.removeClass("novisible"),a.hide())})}},ce=function(){var t=P.getMktCode();z.sParamByIframe("callback=jQueryMktCode&cover=1&mkt_code="+t+"&expires=604800000");var i=[];e("a").each(function(){var t=e(this).attr("href");!t||/^#.*$/.test(t)||/^javascript.*$/i.test(t)||i.push(t)});var n=0,o=setInterval(function(){if(++n>3)return void clearInterval(o);window._yas&&window._yas.sendAppLogs&&window.appBaseLogs&&(clearInterval(o),window._yas.sendAppLogs({appop:"YB_H5_PAGE_AB_OPEN_L",param:JSON.stringify({C_ID:z.queryString().yh_channel||1,PAGE_URL:window.originUrl,PAGE_NAME:decodeURI(window.qs.title||document.title),ACTION_URL:i,CROWD_CODE:t+""})},!0),e("a").click(function(){var i=e(this).attr("href");!i||/^#.*$/.test(i)||/^javascript.*$/i.test(i)||window._yas.sendAppLogs({appop:"YB_H5_PAGE_AB_FLR_C",param:JSON.stringify({C_ID:z.queryString().yh_channel||1,PAGE_URL:window.originUrl,PAGE_NAME:decodeURI(window.qs.title||document.title),F_URL:i,CROWD_CODE:t+""})},!0)}))},1e3)},de=function(t){e(".product-source").each(function(i,n){n=e(n);var o=n.attr("condition");if(o){o=JSON.parse(o);var a=z.queryString().yh_channel;o.abtest&&(ne=!0),a&&(o.yh_channel=a),i>3?setTimeout(function(){re(n,t,o)},300):re(n,t,o)}}),ne&&ce()},se={init:function(e){!e&&z.isApp()?document.addEventListener("deviceready",function(){window.yohoInterface.triggerEvent(function(e){de({uid:e.uid,udid:e.udid})},function(){},{method:"get.analyticAppData"})},!1):de({uid:e,udid:Z.cookie("_yasvd")})}};e(function(){H.init(),P.init().then(function(e){se.init(e),ie.init(e),P.auth(),W.init(),z.init()})});var pe={auth:P.auth,favout:P.favout,getMktCode:function(){return P.getMktCode()},getUid:function(){return P.uid}},ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(e){"object"===("undefined"==typeof module?"undefined":ue(module))&&"object"===ue(module.exports)?module.exports=e():"function"==typeof define&&define.amd?define([],e):window._jssdk=e()}(function(){return pe})}(jQuery);
(function ($) {
'use strict';
function __$styleInject(css, returnValue) {
if (typeof document === 'undefined') {
return returnValue;
}
css = css || '';
var head = document.head || document.getElementsByTagName('head')[0];
var style = document.createElement('style');
style.type = 'text/css';
head.appendChild(style);
if (style.styleSheet){
style.styleSheet.cssText = css;
} else {
style.appendChild(document.createTextNode(css));
}
return returnValue;
}
$ = 'default' in $ ? $['default'] : $;
/* eslint-disable */
// Noop
function noop() {}
// Generic callback
function genericCallback(data) {
lastValue = [data];
}
// Call if defined
function callIfDefined(method, object, parameters) {
return method && method.apply && method.apply(object.context || object, parameters);
}
// Give joining character given url
function qMarkOrAmp(url) {
return (/\?/.test(url) ? "&" : "?"
);
}
var STR_ASYNC = "async";
var STR_CHARSET = "charset";
var STR_EMPTY = "";
var STR_ERROR = "error";
var STR_INSERT_BEFORE = "insertBefore";
var STR_JQUERY_JSONP = "_jqjsp";
var STR_ON = "on";
var STR_ON_CLICK = STR_ON + "click";
var STR_ON_ERROR = STR_ON + STR_ERROR;
var STR_ON_LOAD = STR_ON + "load";
var STR_ON_READY_STATE_CHANGE = STR_ON + "readystatechange";
var STR_READY_STATE = "readyState";
var STR_REMOVE_CHILD = "removeChild";
var STR_SCRIPT_TAG = "<script>";
var STR_SUCCESS = "success";
var STR_TIMEOUT = "timeout";
var win = window;
var Deferred = $.Deferred;
var head = $("head")[0] || document.documentElement;
var pageCache = {};
var count = 0;
var lastValue;
var xOptionsDefaults = {
//beforeSend: undefined,
//cache: false,
callback: STR_JQUERY_JSONP,
//callbackParameter: undefined,
//charset: undefined,
//complete: undefined,
//context: undefined,
//data: "",
//dataFilter: undefined,
//error: undefined,
//pageCache: false,
//success: undefined,
//timeout: 0,
//traditional: false,
url: location.href
};
var opera = win.opera;
var oldIE = !!$("<div>").html("<!--[if IE]><i><![endif]-->").find("i").length;
// ###################### MAIN FUNCTION ##
function jsonp(xOptions) {
// Build data with default
xOptions = $.extend({}, xOptionsDefaults, xOptions);
// References to xOptions members (for better minification)
var successCallback = xOptions.success,
errorCallback = xOptions.error,
completeCallback = xOptions.complete,
dataFilter = xOptions.dataFilter,
callbackParameter = xOptions.callbackParameter,
successCallbackName = xOptions.callback,
cacheFlag = xOptions.cache,
pageCacheFlag = xOptions.pageCache,
charset = xOptions.charset,
url = xOptions.url,
data = xOptions.data,
timeout = xOptions.timeout,
pageCached,
// Abort/done flag
done = 0,
// Life-cycle functions
cleanUp = noop,
// Support vars
supportOnload,
supportOnreadystatechange,
// Request execution vars
firstChild,
script,
scriptAfter,
timeoutTimer;
// If we have Deferreds:
// - substitute callbacks
// - promote xOptions to a promise
Deferred && Deferred(function (defer) {
defer.done(successCallback).fail(errorCallback);
successCallback = defer.resolve;
errorCallback = defer.reject;
}).promise(xOptions);
// Create the abort method
xOptions.abort = function () {
!done++ && cleanUp();
};
// Call beforeSend if provided (early abort if false returned)
if (callIfDefined(xOptions.beforeSend, xOptions, [xOptions]) === !1 || done) {
return xOptions;
}
// Control entries
url = url || STR_EMPTY;
data = data ? typeof data == "string" ? data : $.param(data, xOptions.traditional) : STR_EMPTY;
// Build final url
url += data ? qMarkOrAmp(url) + data : STR_EMPTY;
// Add callback parameter if provided as option
callbackParameter && (url += qMarkOrAmp(url) + encodeURIComponent(callbackParameter) + "=?");
// Add anticache parameter if needed
!cacheFlag && !pageCacheFlag && (url += qMarkOrAmp(url) + "_" + new Date().getTime() + "=");
// Replace last ? by callback parameter
url = url.replace(/=\?(&|$)/, "=" + successCallbackName + "$1");
// Success notifier
function notifySuccess(json) {
if (!done++) {
cleanUp();
// Pagecache if needed
pageCacheFlag && (pageCache[url] = { s: [json] });
// Apply the data filter if provided
dataFilter && (json = dataFilter.apply(xOptions, [json]));
// Call success then complete
callIfDefined(successCallback, xOptions, [json, STR_SUCCESS, xOptions]);
callIfDefined(completeCallback, xOptions, [xOptions, STR_SUCCESS]);
}
}
// Error notifier
function notifyError(type) {
if (!done++) {
// Clean up
cleanUp();
// If pure error (not timeout), cache if needed
pageCacheFlag && type != STR_TIMEOUT && (pageCache[url] = type);
// Call error then complete
callIfDefined(errorCallback, xOptions, [xOptions, type]);
callIfDefined(completeCallback, xOptions, [xOptions, type]);
}
}
// Check page cache
if (pageCacheFlag && (pageCached = pageCache[url])) {
pageCached.s ? notifySuccess(pageCached.s[0]) : notifyError(pageCached);
} else {
// Install the generic callback
// (BEWARE: global namespace pollution ahoy)
win[successCallbackName] = genericCallback;
// Create the script tag
script = $(STR_SCRIPT_TAG)[0];
script.id = STR_JQUERY_JSONP + count++;
// Set charset if provided
if (charset) {
script[STR_CHARSET] = charset;
}
opera && opera.version() < 11.60 ?
// onerror is not supported: do not set as async and assume in-order execution.
// Add a trailing script to emulate the event
(scriptAfter = $(STR_SCRIPT_TAG)[0]).text = "document.getElementById('" + script.id + "')." + STR_ON_ERROR + "()" :
// onerror is supported: set the script as async to avoid requests blocking each others
script[STR_ASYNC] = STR_ASYNC;
// Internet Explorer: event/htmlFor trick
if (oldIE) {
script.htmlFor = script.id;
script.event = STR_ON_CLICK;
}
// Attached event handlers
script[STR_ON_LOAD] = script[STR_ON_ERROR] = script[STR_ON_READY_STATE_CHANGE] = function (result) {
// Test readyState if it exists
if (!script[STR_READY_STATE] || !/i/.test(script[STR_READY_STATE])) {
try {
script[STR_ON_CLICK] && script[STR_ON_CLICK]();
} catch (_) {}
result = lastValue;
lastValue = 0;
result ? notifySuccess(result[0]) : notifyError(STR_ERROR);
}
};
// Set source
script.src = url;
// Re-declare cleanUp function
cleanUp = function cleanUp(i) {
timeoutTimer && clearTimeout(timeoutTimer);
script[STR_ON_READY_STATE_CHANGE] = script[STR_ON_LOAD] = script[STR_ON_ERROR] = null;
head[STR_REMOVE_CHILD](script);
scriptAfter && head[STR_REMOVE_CHILD](scriptAfter);
};
// Append main script
head[STR_INSERT_BEFORE](script, firstChild = head.firstChild);
// Append trailing script if needed
scriptAfter && head[STR_INSERT_BEFORE](scriptAfter, firstChild);
// If a timeout is needed, install it
timeoutTimer = timeout > 0 && setTimeout(function () {
notifyError(STR_TIMEOUT);
}, timeout);
}
return xOptions;
}
// ###################### SETUP FUNCTION ##
jsonp.setup = function (xOptions) {
$.extend(xOptionsDefaults, xOptions);
};
// ###################### INSTALL in jQuery ##
$.jsonp = jsonp;
/* eslint-disable */
__$styleInject(".featuretip.tip-wrap{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1000;background:rgba(0,0,0,.5)}.featuretip .tip{position:fixed;left:50%;top:50%;margin-left:-140px;margin-top:-140px;width:280px;background:#fff;border-top:40px solid #000;text-align:center;line-height:1.25}.featuretip .tip .title{margin:20px auto;font-size:24px;font-weight:700;text-align:center}.featuretip .tip .highlight{font-size:18px}.featuretip .tip .content{font-size:16px;color:#444;text-align:center}.featuretip .tip .button{display:block;margin:20px auto;width:150px;height:30px;font-size:14px;line-height:30px;text-align:center;color:#fff;background:#000;text-decoration:none}", undefined);
__$styleInject(".feature-coin.tip-wrap{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1000;background:rgba(0,0,0,.5)}.feature-coin .tip{position:fixed;left:50%;top:50%;margin-left:-140px;margin-top:-140px;width:280px;background:#fff;text-align:center;line-height:1.25;background-repeat:no-repeat}.feature-coin .tip .tip-close{position:absolute;right:0;top:0;width:25px;height:25px;line-height:25px;text-align:center;font-size:16px;color:#fff;background:#000;cursor:pointer}.feature-coin .tip .title{margin:21px auto;font-size:22px;font-weight:700;text-align:center}.feature-coin .tip .highlight{font-size:18px}.feature-coin .tip .content{padding:4px;font-size:16px;color:#444;text-align:center;height:48px;overflow:hidden}.feature-coin .bottom-button{text-align:center}.feature-coin .tip .button,.feature-coin .tip .coin{display:inline-block;margin:20px auto;width:116px;height:26px;font-size:14px;line-height:26px;text-align:center;color:#fff;background:#000;text-decoration:none;border:2px solid #000}.feature-coin .tip .coin{color:#000;background:#fff}", undefined);
var isMobile = {
Android: function Android() {
return navigator.userAgent.match(/Android/i) ? true : false;
},
BlackBerry: function BlackBerry() {
return navigator.userAgent.match(/BlackBerry/i) ? true : false;
},
iOS: function iOS() {
return navigator.userAgent.match(/iPhone|iPad|iPod/i) ? true : false;
},
Windows: function Windows() {
return navigator.userAgent.match(/IEMobile/i) ? true : false;
},
any: function any() {
return isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Windows();
}
};
var mycurrency = isMobile.any() ? '//m.yohobuy.com/home/mycurrency' : '//www.yohobuy.com/home/currency';
var $tipTmpl = $('<div class="featuretip tip-wrap"><div class="tip"><div class="title"></div><div class="content"></div><a class="button" href="">返回</a></div></div>'); // eslint-disable-line
var $cointipTmpl = $('<div class="feature-coin tip-wrap"><div class="tip"><div class="tip-close">&times;</div><div class="title"></div><div class="content"></div><div class="bottom-button"><a class="button" href="">去逛逛</a><a class="coin" href=\'' + mycurrency + '?openby:yohobuy={"action":"go.mine"}\'>查看有货币</a></div></div></div>'); // eslint-disable-line
var _queryString = function _queryString() {
if (!window._jssdkQS) {
var vars = {},
hash = void 0,
i = void 0,
hashes = window.location.search.slice(1).split('&');
for (i = 0; i < hashes.length; i++) {
hash = hashes[i].split('=');
vars[hash[0]] = hash[1];
}
window._jssdkQS = vars;
}
return $.extend({}, window._jssdkQS);
};
var _sParamByIframe = function _sParamByIframe() {
var paramsObj = _queryString();
var queryArray = [];
var queryString = '?';
delete paramsObj['uid'];
delete paramsObj['app_version'];
delete paramsObj['client_type'];
delete paramsObj['session_key'];
delete paramsObj['client_secret'];
for (var i in paramsObj) {
queryArray.push(i + '=' + paramsObj[i]);
}
if (!paramsObj['expires']) {
queryArray.push('expires=' + 7 * 24 * 60 * 60 * 1000);
}
queryArray.push('callback=jQueryMktCode');
queryString += queryArray.join('&');
$.getScript('//m.yohobuy.com/activity/wechat/1111' + queryString, function () {});
// $('<iframe style="display:none;" src="//m.yohobuy.com/activity/wechat/1111' + queryString + '"></iframe>').prependTo('body');
};
var _bindEvent = function _bindEvent() {
var $body = $('body');
$body.on('click', '.feature-coin .close,.feature-coin .tip-close', function (e) {
$cointipTmpl.fadeOut();
e.preventDefault();
});
$body.on('click', '.feature-coin.tip-wrap', function (e) {
if ('feature-coin tip-wrap' === e.target.className) {
$cointipTmpl.fadeOut();
e.preventDefault();
}
});
$body.on('click', '.featuretip .close', function (e) {
$tipTmpl.fadeOut();
e.preventDefault();
});
$body.on('click', '.featuretip .refresh', function () {
location.reload();
});
$body.on('click', '.featuretip.tip-wrap', function (e) {
if ('featuretip tip-wrap' === e.target.className) {
$tipTmpl.fadeOut();
e.preventDefault();
}
});
};
var utils = {
queryString: _queryString,
init: function init() {
//发送活动页参数
_sParamByIframe();
// 绑定事件
_bindEvent();
},
isApp: function isApp() {
var qs = _queryString();
var isApp = !!qs.app_version || qs.openrefer === 'app' && qs.uid;
return !!isApp;
},
image: function image(url, width, height, mode, quality) {
mode = !isNaN(Number(mode)) ? mode : 2;
url = url || '';
url = url.replace(/{width}/g, width).replace(/{height}/g, height).replace(/{mode}/g, mode);
if (url.indexOf('imageView2') > 0) {
quality = quality || 90;
url += '/q/' + quality;
}
return url.replace('quality/80', 'quality/60').replace('http:', '');
},
sParamByIframe: function sParamByIframe(params) {
$.getScript('//m.yohobuy.com/activity/wechat/1111' + params, function () {});
// $('<iframe style="display:none;" src="//m.yohobuy.com/activity/wechat/1111?' + params + '"></iframe>').prependTo('body');
},
showTip: function showTip(data) {
data = data || {
title: '',
content: '',
close: true
};
$tipTmpl.find('.title').html(data.title);
$tipTmpl.find('.content').html(data.content);
if (data.close) {
$tipTmpl.find('.button').addClass('close');
} else {
$tipTmpl.find('.button').addClass('refresh').html('刷新');
}
$('body').append($tipTmpl);
$tipTmpl.show();
},
showCoinTip: function showCoinTip(data) {
data = data || {
title: '',
content: '',
close: true
};
$cointipTmpl.find('.title').html(data.title);
$cointipTmpl.find('.content').html(data.content);
if (data.close) {
$cointipTmpl.find('.button').addClass('close');
}
if (data.coin) {
$cointipTmpl.find('.coin').css('display', 'inline-block');
} else {
$cointipTmpl.find('.coin').hide();
}
if (data.img) {
$cointipTmpl.find('.tip').css('background-image', 'url(' + data.img + ')');
}
$('body').append($cointipTmpl);
$cointipTmpl.show();
}
};
var _noLoginUrl = function _noLoginUrl() {
var referrer = location.href.split('?')[0];
return '//m.yohobuy.com/signin.html?refer=' + encodeURIComponent(location.href) + '&openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' + referrer.replace(/\//g, '\\/') + '","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}';
};
var user = {
uid: '',
noLoginUrl: _noLoginUrl,
init: function init() {
var _this = this;
return jsonp({
url: '//m.yohobuy.com/passport/login/user?callback=?'
}).then(function (res) {
if (res.code === 200) {
_this.uid = Number(res.data) || 0;
}
if (!_this.uid && utils.isApp()) {
_this.uid = Number(utils.queryString().uid) || 0;
}
return $.Deferred().resolve(_this.uid);
}, function () {
utils.isApp() && (_this.uid = Number(utils.queryString().uid) || 0);
return $.Deferred().resolve(_this.uid);
});
},
auth: function auth() {
if (!this.uid) {
var noLoginUrl = _noLoginUrl();
$('a.auth').attr('href', noLoginUrl);
}
},
favout: function favout(skn) {
if (!skn || !this.uid) {
return;
}
jsonp({
url: '//service.yoho.cn/activity/favorite/addFavorite?productSkn=' + skn + '&uid=' + this.uid + '&callback=?'
}).then(function (res) {
if (res.code === 200) {
utils.showTip({
content: '恭喜您,收藏成功',
close: true
});
} else {
utils.showTip({
content: res.message,
close: true
});
}
}, function () {
utils.showTip({
title: '收藏失败<br>请刷新重新领取',
content: '如多次收藏失败,请联系客服人员<br>带来不便敬请谅解',
close: false
});
});
},
getMktCode: function getMktCode() {
var mkt_code = void 0;
if (this.uid) {
if (Number(this.uid) % 1024 >= 512) {
mkt_code = 100000000000195; // 默认的值
} else {
mkt_code = 100000000000193; // 个性化,动态接口数据
}
} else {
mkt_code = 100000000000197; // 访客接口数据
}
return mkt_code;
}
};
var jsApiList = ['checkJsApi', 'onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone'];
var shareData = {
title: document.title,
link: location.href,
desc: 'YOHO!BUY',
imgUrl: 'http://static.yohobuy.com/m/v1/img/touch/apple-touch-icon-144x144-precomposed-new.png'
};
var _getShareDataById = function _getShareDataById() {
var shareId = utils.queryString().share_id;
if (shareId) {
return jsonp({
url: '//m.yohobuy.com/activity/share?callback=?',
data: {
shareId: shareId
}
}).then(function (res) {
if (res && res.code === 200 && res.data) {
shareData.title = res.data.title;
shareData.link = res.data.link || location.href;
shareData.desc = res.data.content || res.data.title;
shareData.imgUrl = res.data.pic;
}
return $.Deferred().resolve();
}, function () {
return $.Deferred().resolve();
});
} else {
var shareTitle = $('#shareTitle').val();
var shareImg = $('#shareImg').val();
var shareDesc = $('#shareDesc').val();
var shareLink = $('#shareLink').val();
shareData.title = shareTitle ? shareTitle : shareData.title;
shareData.imgUrl = shareImg ? shareImg : shareData.imgUrl;
shareData.desc = shareDesc ? shareDesc : shareData.desc;
shareData.link = shareLink ? shareLink : shareData.link;
return $.Deferred().resolve();
}
};
var share = {
init: function init() {
if (/QQ/i.test(navigator.userAgent)) {
$.ajax({
url: '//qzonestyle.gtimg.cn/qzone/qzact/common/share/share.js',
dataType: 'script',
cache: true,
success: function success() {
_getShareDataById().then(function () {
window.setShareInfo && window.setShareInfo({
title: shareData.title,
summary: shareData.desc,
pic: shareData.imgUrl,
url: shareData.link
});
});
}
});
}
if (/MicroMessenger/i.test(navigator.userAgent)) {
$.ajax({
url: '//res.wx.qq.com/open/js/jweixin-1.3.2.js',
dataType: 'script',
cache: true,
success: function success() {
jsonp({
url: '//m.yohobuy.com/activity/wechat/share?callback=?',
data: {
url: location.href
}
}).then(function (res) {
if (window.wx) {
window.wx.config({
debug: false,
appId: res.appId,
timestamp: res.timestamp,
nonceStr: res.nonceStr,
signature: res.signature,
jsApiList: jsApiList
});
_getShareDataById().then(function () {
window.wx.ready(function () {
window.wx.onMenuShareAppMessage(shareData);
window.wx.onMenuShareTimeline(shareData);
window.wx.onMenuShareQQ(shareData);
window.wx.onMenuShareWeibo(shareData);
window.wx.onMenuShareQZone(shareData);
});
});
}
});
}
});
}
}
};
/**
* 移动端尝试打开 app
*/
var channelMap = {
'baidu.com': 100000000000055,
'so.com': 100000000000049,
'sogou.com': 100000000000053,
'bing.com': 100000000000057,
'm.sm.cn': 100000000000059,
'google.com': 100000000000061
};
var getMktcBySeo = function getMktcBySeo() {
var mktc,
rf = document.referrer;
for (var domain in channelMap) {
if (rf.indexOf(domain) > -1) {
mktc = channelMap[domain];
break;
}
}
return mktc;
};
var getAppPath = function getAppPath() {
var qs = utils.queryString();
var ct = qs.mkt_code || qs.union_type || getMktcBySeo() || '100000000000349';
delete qs.openapp; // 防止重复打开
var shareParams = qs.share_id ? '"share":"/operations/api/v5/webshare/getShare","shareparam":{"share_id":"' + qs.share_id + '"},' : '',
appPath = 'yohobuy://yohobuy.com/goapp?ct=' + ct + '&openby:yohobuy={"action":"go.h5",' + shareParams + '"params":{"islogin":"N","url":"http://feature.yoho.cn' + location.pathname + '","param":' + JSON.stringify(qs) + '}}';
return appPath;
};
var openapp = {
init: function init() {
if (utils.queryString().openapp) {
var u = navigator.userAgent.toLowerCase();
var isiOS = u.indexOf('os') > -1 || u.indexOf('iphone') > -1 || u.indexOf('mac') > -1 || u.indexOf('ipad') > -1;
var appPath = getAppPath();
if (isiOS) {
window.location.href = appPath;
} else {
var ifr = document.createElement('iframe');
ifr.src = appPath;
ifr.style.display = 'none';
document.body.appendChild(ifr);
}
}
}
};
function cookie(name) {
var re = new RegExp(name + '=([^;$]*)', 'i'),
matchPattern = '$1';
return re.test(decodeURIComponent(document.cookie)) ? RegExp[matchPattern] : '';
}
function setCookie(name, value, options) {
var expires = '',
path,
domain,
secure,
date;
if (typeof value !== 'undefined') {
options = options || {};
if (value === null) {
value = '';
options.expires = -1;
}
if (options.expires && (typeof options.expires === 'number' || options.expires.toUTCString)) {
if (typeof options.expires === 'number') {
date = new Date();
date.setTime(date.getTime() + options.expires * 24 * 60 * 60 * 1000);
} else {
date = options.expires;
}
expires = '; expires=' + date.toUTCString();
}
path = options.path ? '; path=' + options.path : '';
domain = options.domain ? '; domain=' + options.domain : '';
secure = options.secure ? '; secure' : '';
document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
}
}
var cookies = {
cookie: cookie,
setCookie: setCookie
};
/* global wx */
// 1. 优惠券领取
// 2. YOHO币领取
var baseUrl = '//activity.yoho.cn';
if (location.hostname === 'm.yohobuy.com') {
baseUrl = '//m.yohobuy.com/activity';
}
var _getCoin = function _getCoin(data) {
data.app = utils.queryString();
data.app.uid = data.uid;
jsonp({
url: baseUrl + '/coin/sendCoin?callback=?',
data: data
}).then(function (res) {
if (res.code === 200 && res.data) {
if (res.data.code === 200) {
utils.showCoinTip({
title: '恭喜您,成功领取有货币!',
content: '特殊情况下到账有延时<br>请耐心等待',
close: true,
coin: true,
img: res.data.popupImg
});
} else if (res.data.code === 501) {
utils.showCoinTip({
title: '领取失败',
content: '哎呀,你来的有点早,活动还没开始呢<br/>稍后再来哦',
close: true,
img: res.data.popupImg
});
} else if (res.data.code === 502) {
utils.showCoinTip({
title: '领取失败',
content: '抱歉,活动已结束了,下次要快哟~~',
close: true,
img: res.data.popupImg
});
} else if (res.data.code === 503) {
utils.showCoinTip({
title: '已经领取',
content: '贪心会长胖,你已经领取过了啦~~',
close: true,
img: res.data.popupImg
});
} else if (res.data.code === 504) {
utils.showCoinTip({
title: '领取失败',
content: '哎呀,你来晚了,有货币已经领完了,<br/>下次早点来哦',
close: true,
img: res.data.popupImg
});
} else if (res.data.msg) {
utils.showCoinTip({
title: '领取失败',
content: '抱歉,系统错误,有货君正奋力解决中...请稍后再来',
close: true,
img: res.data.popupImg
});
}
} else if (res.message) {
utils.showCoinTip({
title: '领取失败',
content: '抱歉,系统错误,有货君正奋力解决中...请稍后再来',
close: true,
img: res.data && res.data.popupImg
});
}
}, function () {
utils.showCoinTip({
title: '领取失败',
content: '抱歉,系统错误,有货君正奋力解决中...请稍后再来',
close: true
});
});
};
var _getCoupon = function _getCoupon(data) {
data.app = utils.queryString();
data.app.uid = cookies.cookie('app_uid') || data.app.uid;
data.app.app_version = cookies.cookie('app_version') || data.app.app_version;
data.app.client_type = cookies.cookie('app_client_type') || data.app.client_type;
data.app.session_key = cookies.cookie('app_session_key') || data.app.session_key;
jsonp({
url: baseUrl + '/feature/couponSend?callback=?',
data: data
}).then(function (res) {
if (res.code === 200) {
utils.showTip({
title: '领取成功',
content: '恭喜您,领取成功',
close: true
});
} else if (res.code === 401) {
utils.showTip({
title: '已经领取',
content: '快去分享给更多<br>喜爱<span class="highlight">潮流</span>的小伙伴吧!',
close: true
});
} else if (res.message) {
utils.showTip({
title: '领取失败<br>请刷新重新领取',
content: res.message + '<br>如多次领取失败,请联系客服人员<br>带来不便敬请谅解',
close: false
});
}
}, function () {
utils.showTip({
title: '领取失败<br>请刷新重新领取',
content: '如多次领取失败,请联系客服人员<br>带来不便敬请谅解',
close: false
});
});
};
var _initCoin = function _initCoin(uid) {
if (uid) {
var cointoken = cookies.cookie('yoho-coin-token');
if (cointoken) {
_getCoin({
token: cointoken,
uid: uid
});
cookies.setCookie('yoho-coin-token', '');
}
}
$('body').on('click', '.yoho-coin', function () {
var token = $(this).data('token');
if (user.uid) {
_getCoin({
token: token,
uid: user.uid
});
} else {
cookies.setCookie('yoho-coin-token', token);
if (window.__wxjs_environment === 'miniprogram' && wx && wx.miniProgram) {
wx.miniProgram.navigateTo({
url: '../bindPhoneNumber/bindPhoneNumber?h5back=' + location.href
});
return;
}
if ($('#intimacy-link').length <= 0) {
$('body').append('<a href=\'' + user.noLoginUrl() + '\' style="display:none;" id="intimacy-link"><span class="intimacy-link"></span></a>');
}
$('.intimacy-link').click();
return;
}
});
};
var _initCoupon = function _initCoupon(uid) {
if (uid) {
var conpontoken = cookies.cookie('yoho-conpon-token');
if (conpontoken) {
_getCoupon({
token: conpontoken,
uid: uid
});
cookies.setCookie('yoho-conpon-token', '');
}
}
$('body').on('click', '.yoho-conpon', function () {
var token = $(this).data('token');
if (user.uid) {
_getCoupon({
token: token,
uid: user.uid
});
} else {
cookies.setCookie('yoho-conpon-token', token);
if (window.__wxjs_environment === 'miniprogram' && wx && wx.miniProgram) {
wx.miniProgram.navigateTo({
url: '../bindPhoneNumber/bindPhoneNumber?h5back=' + location.href
});
return;
}
if ($('#intimacy-link').length <= 0) {
$('body').append('<a href=\'' + user.noLoginUrl() + '\' style="display:none;" id="intimacy-link"><span class="intimacy-link"></span></a>');
}
$('.intimacy-link').click();
return;
}
});
};
var promotion = {
init: function init(uid) {
_initCoin(uid); // 初始化有货币
_initCoupon(uid); // 初始化优惠券
}
};
var abTestFlag = false; // ab测试
var _replaceData = function _replaceData(el, cond, data, wh, fp) {
if (!data) {
return;
}
el.find('.brand-name').html(data.brand_name);
el.find('.product-detail').attr('href', '//m.yohobuy.com/product/' + data.product_skn + '.html?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":' + data.product_skn + '}}');
el.find('.product-detail-img').attr('src', utils.image(data.default_images, wh.w, wh.h, 2, 75));
el.find('.product-name').html(data.product_name);
el.find('.vip-price-val').html('\xA5' + data.vip_price);
el.find('.sale-price').html('\xA5' + data.sales_price);
if (data.sales_price === data.market_price) {
el.find('.market-price').hide();
} else {
el.find('.market-price').html('\xA5' + data.market_price).show();
}
var brandDom = el.find('.product-brand');
if (brandDom) {
if (data.shop_id) {
brandDom.attr('href', '//m.yohobuy.com/product/index/brand?domain=' + data.brand_domain + '&openby:yohobuy={"action":"go.shop","params":{"shop_id":' + data.shop_id + ',"shop_template_type":' + (data.shop_template_type || "1") + ',"is_red_shop":' + (data.is_red_shop || 1) + '}}');
} else {
brandDom.attr('href', '//m.yohobuy.com/product/index/brand?domain=' + data.brand_domain + '&openby:yohobuy={"action":"go.brand","params":{"brand_id":' + data.brand_id + '}}');
}
}
// 楼层数据
if (fp) {
if (!fp.I_INDEX) fp.I_INDEX = 0;
fp.I_INDEX++;
el.find('.product-detail').attr('fp', JSON.stringify(fp));
if (brandDom) {
fp.I_INDEX++;
brandDom.attr('fp', JSON.stringify(fp));
}
}
var listDom = el.find('.list-product');
if (listDom) {
var sortStr = '',
gender = cond.gender ? cond.gender : '1,3',
url = '//list.m.yohobuy.com?gender=' + gender;
if (listDom.data('sort')) {
sortStr += ',"sort":' + data.small_sort_id;
url += '&sort=' + data.small_sort_id;
}
if (listDom.data('misort')) {
sortStr += ',"misort":' + data.middle_sort_id;
url += '&misort=' + data.middle_sort_id;
}
if (listDom.data('msort')) {
sortStr += ',"msort":' + data.max_sort_id;
url += '&msort=' + data.max_sort_id;
}
url += '&openby:yohobuy={"action":"go.list","params":{"actiontype":1,"gender":' + gender + sortStr + '}}';
listDom.attr('href', url);
}
el.html(el.html());
return el;
};
var _getProductData = function _getProductData(dataArr) {
if (!dataArr.length) {
return;
}
var data = dataArr.shift();
if (!data || !data.default_images) {
return _getProductData(dataArr);
}
return data;
};
var _jsonp = function _jsonp(el, param, cond) {
var cloneitem = el.attr('cloneitem');
var loading = el.find('.loading');
var goods = el.find('.feature-product-info');
var rowNum = el.data('rownum');
if (!goods.length) {
return;
}
if (cond.abtest) {
// ab测试,访客 和 >=512的uid 显示默认推荐
if (!param.uid || Number(param.uid) % 1024 >= 512) {
if (cloneitem) {
$(goods[0]).remove();
} else {
goods.removeClass('novisible');
loading.hide();
}
return;
}
}
var imgwh = el.find('.imgwh').val() || ''; // 获取图片宽x高
imgwh = imgwh.split('x') || [];
var wh = {
w: imgwh[0] || 300,
h: imgwh[1] || 400
};
// 楼层数据
var fp = el.attr('fp');
fp = fp ? JSON.parse(fp) : '';
jsonp({
url: '//m.yohobuy.com/activity/individuation?callback=?',
data: $.extend({}, param, cond)
}).then(function (res) {
if (!res || !res.length) {
if (cloneitem) {
$(goods[0]).remove();
} else {
goods.removeClass('novisible');
loading.hide();
}
return;
}
// 最后商品数量不足一行,截掉
res.length = res.length - res.length % rowNum;
if (cloneitem) {
// 可复制item
var cnt = isNaN(Number(cloneitem)) ? res.length : Number(cloneitem);
for (var indx = 0; indx < cnt; indx++) {
var data = _getProductData(res); // 获取商品数据
if (indx === 0) {
var gel = $(goods[0]);
var nel = _replaceData(gel, cond, data, wh, fp);
if (nel) {
nel.removeClass('novisible');
} else {
gel.remove();
}
} else {
var _nel = _replaceData($(goods[0]).clone(), cond, data, wh, fp);
if (_nel) {
_nel.removeClass('novisible');
_nel.appendTo(el);
}
}
}
} else {
for (var i = 1; i < res.length; i++) {
goods.last().after(goods.clone());
}
var $newGoods = el.find('.feature-product-info');
$newGoods.each(function (indx, perProduct) {
var $perProduct = $(perProduct);
_replaceData($perProduct, cond, _getProductData(res), wh, fp);
});
$newGoods.removeClass('novisible');
loading.hide();
}
}, function () {
if (cloneitem) {
$(goods[0]).remove();
} else {
goods.removeClass('novisible');
loading.hide();
}
});
};
var _abTest = function _abTest() {
var mkt_code = user.getMktCode();
// cover覆盖mkt_code
utils.sParamByIframe('callback=jQueryMktCode&cover=1&mkt_code=' + mkt_code + '&expires=' + 7 * 24 * 60 * 60 * 1000);
// 上报曝光事件
var actionUrl = [];
$('a').each(function () {
var href = $(this).attr('href');
if (href && !/^#.*$/.test(href) && !/^javascript.*$/i.test(href)) {
actionUrl.push(href);
}
});
var cnt = 0;
var timer = setInterval(function () {
cnt++;
if (cnt > 3) {
clearInterval(timer);
return;
}
if (window._yas && window._yas.sendAppLogs && window.appBaseLogs) {
clearInterval(timer);
window._yas.sendAppLogs({
appop: 'YB_H5_PAGE_AB_OPEN_L',
param: JSON.stringify({
C_ID: utils.queryString().yh_channel || 1,
PAGE_URL: window.originUrl,
PAGE_NAME: decodeURI(window.qs.title || document.title),
ACTION_URL: actionUrl,
CROWD_CODE: mkt_code + ''
})
}, true);
$('a').click(function () {
var furl = $(this).attr('href');
if (furl && !/^#.*$/.test(furl) && !/^javascript.*$/i.test(furl)) {
window._yas.sendAppLogs({
appop: 'YB_H5_PAGE_AB_FLR_C',
param: JSON.stringify({
C_ID: utils.queryString().yh_channel || 1,
PAGE_URL: window.originUrl,
PAGE_NAME: decodeURI(window.qs.title || document.title),
F_URL: furl,
CROWD_CODE: mkt_code + ''
})
}, true);
}
});
}
}, 1000);
};
var _getProduct = function _getProduct(param) {
$('.product-source').each(function (i, el) {
el = $(el);
var cond = el.attr('condition');
if (!cond) {
return;
}
cond = JSON.parse(cond);
var yh_channel = utils.queryString().yh_channel;
if (cond.abtest) {
abTestFlag = true;
}
if (yh_channel) {
cond.yh_channel = yh_channel;
}
if (i > 3) {
setTimeout(function () {
_jsonp(el, param, cond);
}, 300);
} else {
_jsonp(el, param, cond);
}
});
abTestFlag && _abTest();
};
var individuation = {
init: function init(uid) {
if (!uid && utils.isApp()) {
// document.addEventListener('deviceready', function() {
// window.yohoInterface.triggerEvent(function(data) {
// // 获取个性话数据
// _getProduct({
// uid: data.uid,
// udid: data.udid
// });
// }, function() {}, {
// method: 'get.analyticAppData'
// });
// }, false);
_getProduct({
uid: '',
udid: utils.queryString().udid || ''
});
} else {
// 获取个性话数据
_getProduct({
uid: uid,
udid: cookies.cookie('_yasvd')
});
}
}
};
// app.js
$(function () {
openapp.init();
user.init().then(function (uid) {
individuation.init(uid); // 个性化推荐
promotion.init(uid); // 促销
user.auth(); // 权限验证
share.init(); // 分享
utils.init();
});
});
var jssdk = {
auth: user.auth,
favout: user.favout,
getMktCode: function getMktCode() {
return user.getMktCode();
},
getUid: function getUid() {
return user.uid;
}
};
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
return typeof obj;
} : function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
};
(function (factory) {
/* eslint-disable */
if ((typeof module === 'undefined' ? 'undefined' : _typeof(module)) === 'object' && _typeof(module.exports) === 'object') {
module.exports = factory();
} else if (typeof define === 'function' && define.amd) {
define([], factory);
} else {
window._jssdk = factory();
}
/* eslint-disable */
})(function () {
return jssdk;
});
}(jQuery));
... ...
!function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){var o=n(12);if(window.YohoAcquisitionObject){var r=window.YohoAcquisitionObject;window[r].p&&(o.apply(this,window[r].p),window[r]=o)}e.exports=o},function(e,t){t.flashChecker=function(){var e=0,t=0,n=0,o=null;return n?(o=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),o&&(e=1,t=o.GetVariable("$version"))):navigator.plugins&&navigator.plugins.length>0&&(o=navigator.plugins["Shockwave Flash"],o&&(e=1,t=o.description.replace("Shockwave Flash",""))),{f:e,v:t}},t.Hash=function(e){var t,n=1,o=0;if(e)for(n=0,t=e.length-1;t>=0;t--)o=e.charCodeAt(t),n=(n<<6&268435455)+o+(o<<14),o=266338304&n,0!==o&&(n^=o>>21);return n},t.Random=function(){return Math.round(2147483647*Math.random())},t.hashClientInfo=function(){var e=window.navigator,n=window.history.length,o=[e.appName,e.version,e.language,e.platform,e.userAgent,e.javaEnabled(),window.screen,window.screen.colorDepth,window.document.cookie?window.document.cookie:"",window.document.referrer?window.document.referrer:""];e=o.join("");for(var r=e.length;n>0;)e+=n--^r++;return t.Hash(e)},t.merge=function(e,t){var n={};for(var o in e)n[o]=e[o];for(var r in t)n[r]=t[r];return n},t.genParam=function(e){var t=[];for(var n in e)t.push(n+"="+e[n]);return t.join("&")},t.trim=function(e){if(String.prototype.trim)return null===e?"":String.prototype.trim.call(e);var t=/^\s+/,n=/\s+$/,o="";return e?(o=e.toString().replace(t,""),o=o.replace(n,"")):void 0},t.getGeo=function(e){function t(t){var n=t.coords.longitude,o=t.coords.latitude;e(o,n)}function n(t){e(!1)}if(window.navigator.geolocation){var o={enableHighAccuracy:!0};window.navigator.geolocation.getCurrentPosition(t,n,o)}else e(!1)},t.queryString=function(){var e,t,n={},o=window.location.search.slice(1).split("&");for(t=0;t<o.length;t++)e=o[t].split("="),n[e[0]]=e[1];return n},t.closest=function(e,t){for(var n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;e&&!n.call(e,t);)e=e.parentElement;return e},t.getChannel=function(){function e(e){var t,n=document.cookie;return n&&(n=n.split(";"),n.forEach(function(n){if(n.indexOf(e)>-1)return void(t=decodeURIComponent(n.replace(e+"=","").trim()))})),t}return{boys:1,girls:2,kids:3,lifestyle:4}[e("_Channel")]};t.getAppVersion=function(){var e=window.qs.app_version||window.qs.appVersion;return e};var n={"baidu.com":0x5af3107a4037,"so.com":0x5af3107a4031,"sogou.com":0x5af3107a4035,"bing.com":0x5af3107a4039,"m.sm.cn":0x5af3107a403b,"google.com":0x5af3107a403d};t.getMktcBySeo=function(){var e,t=document.referrer;for(var o in n)if(t.indexOf(o)>-1){e=n[o];break}return e},t.setFontSize=function(){var e=document.documentElement;if(!e.style.fontSize){var t=e.clientWidth;if(!t)return;t>=640?e.style.fontSize="40px":e.style.fontSize=40*(t/640)+"px"}},t.getDownloadStr=function(e){var t='<div class="top-downloadbar';return e&&(t+=" top-downloadbar-wechat"),t+='" id="top-downloadbar"><a href="javascript:void(0);" class="download-close" id="download-close"></a>\t <span class="download-icon"></span><span class="download-text">Yoho!Buy有货</span>',e?(t+='<a class="download-go-wechat" id="download-go" href="https://union.yoho.cn/union/app-downloads.html">立即打开</a>',t+='<a class="download-wechat" id="download-wechat" href="https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MjM5ODI5MDA4MA==&scene=110#wechat_redirect">加关注</a></div>'):(t+='<p class="download-text-desc">新用户送惊喜礼包</p>',t+='<a class="download-go" id="download-go" href="https://union.yoho.cn/union/app-downloads.html">立即打开</a></div>'),t},t.getAppPath=function(){var e=document.getElementById("main-wrap").dataset.apppath;return e=(e||"").replace("yohobuy://yohobuy.com/goapp?","")||'openby:yohobuy={"action":"go.home","params":{"gender":"1","channel":"2"}}'}},function(e,t){function n(){var e=document.domain.split("."),t=e.length;return t>1&&isNaN(e[t-1])?"."+e[t-2]+"."+e[t-1]:document.domain}e.exports={version:"1.0",yasPath:"/web/",yasDomain:n(),yasImgDomain:"//analytics.m.yohobuy.com/yas.gif",yasMobileDomain:"//analytics.m.yohobuy.com/yas_mobile"}},function(e,t,n){t=e.exports=n(4)(),t.push([e.id,'.top-downloadbar{display:block;height:2.25rem;background:rgba(68,68,68,.95);width:100%;padding:.125rem 0;position:relative;box-sizing:content-box}.top-downloadbar .download-close{margin-left:.25rem;width:.7rem;height:.7rem;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNAay06AAAAWUSURBVFiFzZhPTxNdFIefC1iJIq2ZTjG2I7QlKRQQS4IrNLrQIWrFho3GhS7dGL/C+zHcGhewM4qSlh0JK6mCiW2JsWBs6x/qiFQxUGznXWBHSmlpQd68v+2ce+8z5957zj1H+P1+nf+hGnYzyGKx4Ha7URQFWZYxm82YTCYAstksy8vLpNNpEokE8Xicb9++1byGqNZjQgi8Xi/9/f04HA6EEADouk4mk2FtbQ2AgwcP0tzcXPQ9mUwyPT1NNBpF16vboKo85nK5UFUVq9UKQDKZZG5ujoWFBdLpNLlcrsi+vr4eWZZxOp10dHSgKAqKonD27FlCoRDz8/M7O6KSxxoaGlBVlb6+PnRdJxqNMjU1xeLiYjX/Y8hmszEwMIDX60UIwcuXLwmFQvz69at2sEOHDnHjxg2OHz/O169fefLkCYlEoiagrVIUBb/fjyRJfPjwgZGREX7+/Lmtbb3H4/lnO6jbt2/T0tJCLBZjZGSEpaWlPUEBZDIZXr16hSRJuFwuPB4PkUiE9fX1ncEOHDjAzZs3aWlpYWZmhsePH5ecob0ol8sRi8VoamrC7XbT2trK69evyefzRXZ1WweqqordbufNmzc8e/as6ltUi3RdZ3x8nEgkgt1uR1XVEpsiMJfLhc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Zljlz5szfaapslsvlYnBwEEmSgI20EYvFePfuXcU2VFtbGx6PB0VREEKgaRrBYHDvbagiw9+Nu9OnT2O3241Lkc/n+f79e1Hj7siRI0UvlULjLhKJVF3dVw22WRaLhfb2dk6cOIEkSdu2OjVN4/3797x9+3Z/W53/tf4F/0jgMDtkmrEAAAAASUVORK5CYII=")}.top-downloadbar .download-close,.top-downloadbar .download-icon{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);background-size:cover}.top-downloadbar .download-icon{width:2rem;height:2rem;left:1.25rem;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEYAAABGCAYAAABxLuKEAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNAay06AAABA1SURBVHic7Zx5bFTV28c/996Z6XTolO4bbaFAoIVSWiw7+HMDIQQRRFQCxrBEIbIYC4gSFFCjaILIloASoSzGFcFUFquISABBQSpbaQNtKdCZ6XSZzpTZ7vtHnfu2zNKhCqj4TfrHnHuW53zvOc95lnMrjB49WqYVuFwuGhsbuX79Ok6nE5fLhSy32uxvAUEQEEURlUpFSEgIWq0WlUrVaruANex2Ow0NDVit1r9M0NsNWZZxu904nU4aGxupra0lNDSUdu3aERIS4redX2Jqa2uxWCy3RNg7DZvNhs1mQ6fTERkZ6bOOFzFutxuTyYTdbr/lAt5pWK1W7HY70dHRXttLbP7D7XZTVVV1V5DigdPppKqqCpfL1aK8BTFGo9Grwt0AWZYxGAwtyhRiamtrcTgct12ovwtcLhcmk0n5rQJwOBzU19ffMaH+LrDZbNjtdjQaTdOK+Y+U/0dNTQ0Aotvt/kfbKX817HY7DocD8T9SvNHQ0IB4/fr1Oy3H3w52ux3V3XgSSZJEfX091dXVAISFhREVFYUsy8iyjMvlQvVPcgj/CqjVai5evEhqairjxo1DkiROnDjBkSNHSE1Nxe1243a7Ee8mUgRB4OrVq2RlZbFq1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IiGhgagKWupVquDPjBEUcRms2E0GhFFkenTp1NXV8cnn3xChw4dfJ5IkiQhpKSkBE2MZ5Abk+BarZbQ0FCfK6+57yIIAiqVKqhbVpIk0dDQQE1NDREREYqCbitEUaSxsVHJTHi2nL+xheTk5KCJuVsgSRKqQJGsuxVut/vPXWf9N0MlSZLfvXa3QhRFVFqt1ueNorsZKpUKVXh4OGaz+U7L8rdCu3btUEVHRyv53P/QhNjYWFQhISFERET8t2r+gE6nQ6/XN51KKSkpSlDpbkdaWhrwx61NvV5PTEwMVVVVd1SoO43w8HDlMqbiXaenp990euPfBJVKRWZmpvK7RdghKyvrL//W6J+C3r17t0i1tCBGq9XSp08fv9c5/o3QaDTk5OR4XWnzClSFhoZyzz33EBsbe9uEu1OIjIykT58+PpOFPrMEoiiSkZFBQkICFRUV/7qjPDw8nOTkZK8vZ5ojYPokMjKSyMhI6urqMJlM1NXVKf/A65/ieHpiQBqNBr1eT3R0dFCfAfwfkRV6AFYsdF8AAAAASUVORK5CYII=")}.top-downloadbar .download-text{position:absolute;top:50%;-webkit-transform:translateY(-80%);transform:translateY(-80%);left:3.5rem;color:#fff;font-size:.6rem}.top-downloadbar-wechat .download-text{-webkit-transform:translateY(-50%);transform:translateY(-50%)}.top-downloadbar .download-text-desc{position:absolute;top:50%;-webkit-transform:translateY(-10%) scale(.5);transform:translateY(-10%) scale(.5);-webkit-transform-origin:left center;transform-origin:left center;left:3.5rem;color:#c7c7c7;font-size:1rem}.top-downloadbar .download-go{right:.375rem;background:red}.top-downloadbar .download-go,.top-downloadbar .download-go-wechat{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);font-size:.6rem;padding:0 .375rem;height:1.125rem;line-height:1.125rem;border-radius:.125rem;color:#fff;text-decoration:none}.top-downloadbar .download-go-wechat{right:3.425rem;background:#000}.top-downloadbar .download-wechat{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:.375rem;font-size:.6rem;padding:0 .375rem;height:1.125rem;line-height:1.125rem;border-radius:.125rem;background:red;color:#fff;text-decoration:none}',""])},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var o={},r=0;r<this.length;r++){var i=this[r][0];"number"==typeof i&&(o[i]=!0)}for(r=0;r<t.length;r++){var a=t[r];"number"==typeof a[0]&&o[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(e,t,n){function o(e,t){for(var n=0;n<e.length;n++){var o=e[n],r=f[o.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](o.parts[i]);for(;i<o.parts.length;i++)r.parts.push(c(o.parts[i],t))}else{for(var a=[],i=0;i<o.parts.length;i++)a.push(c(o.parts[i],t));f[o.id]={id:o.id,refs:1,parts:a}}}}function r(e){for(var t=[],n={},o=0;o<e.length;o++){var r=e[o],i=r[0],a=r[1],s=r[2],d=r[3],c={css:a,media:s,sourceMap:d};n[i]?n[i].parts.push(c):t.push(n[i]={id:i,parts:[c]})}return t}function i(e,t){var n=g(),o=y[y.length-1];if("top"===e.insertAt)o?o.nextSibling?n.insertBefore(t,o.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),y.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function a(e){e.parentNode.removeChild(e);var t=y.indexOf(e);t>=0&&y.splice(t,1)}function s(e){var t=document.createElement("style");return t.type="text/css",i(e,t),t}function d(e){var t=document.createElement("link");return t.rel="stylesheet",i(e,t),t}function c(e,t){var n,o,r;if(t.singleton){var i=v++;n=w||(w=s(t)),o=u.bind(null,n,i,!1),r=u.bind(null,n,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=d(t),o=p.bind(null,n),r=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),o=l.bind(null,n),r=function(){a(n)});return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}function u(e,t,n,o){var r=n?"":o.css;if(e.styleSheet)e.styleSheet.cssText=b(t,r);else{var i=document.createTextNode(r),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function l(e,t){var n=t.css,o=t.media;if(o&&e.setAttribute("media",o),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function p(e,t){var n=t.css,o=t.sourceMap;o&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var r=new Blob([n],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(r),i&&URL.revokeObjectURL(i)}var f={},h=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},m=h(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),g=h(function(){return document.head||document.getElementsByTagName("head")[0]}),w=null,v=0,y=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=m()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=r(e);return o(n,t),function(e){for(var i=[],a=0;a<n.length;a++){var s=n[a],d=f[s.id];d.refs--,i.push(d)}if(e){var c=r(e);o(c,t)}for(var a=0;a<i.length;a++){var d=i[a];if(0===d.refs){for(var u=0;u<d.parts.length;u++)d.parts[u]();delete f[d.id]}}}};var b=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t,n){var o=n(3);"string"==typeof o&&(o=[[e.id,o,""]]);n(5)(o,{});o.locals&&(e.exports=o.locals)},function(module,exports){"object"!=typeof JSON&&(JSON={}),function(){"use strict";function f(e){return e<10?"0"+e:e}function this_value(){return this.valueOf()}function quote(e){return rx_escapable.lastIndex=0,rx_escapable.test(e)?'"'+e.replace(rx_escapable,function(e){var t=meta[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function str(e,t){var n,o,r,i,a,s=gap,d=t[e];switch(d&&"object"==typeof d&&"function"==typeof d.toJSON&&(d=d.toJSON(e)),"function"==typeof rep&&(d=rep.call(t,e,d)),typeof d){case"string":return quote(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";if(gap+=indent,a=[],"[object Array]"===Object.prototype.toString.apply(d)){for(i=d.length,n=0;n<i;n+=1)a[n]=str(n,d)||"null";return r=0===a.length?"[]":gap?"[\n"+gap+a.join(",\n"+gap)+"\n"+s+"]":"["+a.join(",")+"]",gap=s,r}if(rep&&"object"==typeof rep)for(i=rep.length,n=0;n<i;n+=1)"string"==typeof rep[n]&&(o=rep[n],r=str(o,d),r&&a.push(quote(o)+(gap?": ":":")+r));else for(o in d)Object.prototype.hasOwnProperty.call(d,o)&&(r=str(o,d),r&&a.push(quote(o)+(gap?": ":":")+r));return r=0===a.length?"{}":gap?"{\n"+gap+a.join(",\n"+gap)+"\n"+s+"}":"{"+a.join(",")+"}",gap=s,r}}var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;"function"!=typeof JSON.stringify&&(meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(e,t,n){var o;if(gap="",indent="","number"==typeof n)for(o=0;o<n;o+=1)indent+=" ";else"string"==typeof n&&(indent=n);if(rep=t,t&&"function"!=typeof t&&("object"!=typeof t||"number"!=typeof t.length))throw new Error("JSON.stringify");return str("",{"":e})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){function walk(e,t){var n,o,r=e[t];if(r&&"object"==typeof r)for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(o=walk(r,n),void 0!==o?r[n]=o:delete r[n]);return reviver.call(e,t,r)}var j;if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}(),module.exports=JSON},function(e,t,n){var o=n(1);e.exports=function(e,t,n){if("undefined"==typeof t){var r=null;if(document.cookie)for(var i=document.cookie.split(";"),a=0;a<i.length;a++){var s=o.trim(i[a]);if(s.substring(0,e.length+1)==e+"="){r=decodeURIComponent(s.substring(e.length+1));break}}return r}n=n||{},null===t&&(t="",n.expires=-1);var d="";if(n.expires&&("number"==typeof n.expires||n.expires.toUTCString)){var c;"number"==typeof n.expires?(c=new Date,c.setTime(c.getTime()+24*n.expires*60*60*1e3)):c=n.expires,d="; expires="+c.toUTCString()}var u=n.path?"; path="+n.path:"",l=n.domain?"; domain="+n.domain:"",p=n.secure?"; secure":"";document.cookie=[e,"=",encodeURIComponent(t),d,u,l,p].join("")}},function(e,t,n){var o=n(1),r=n(2),i=r.yasPath,a=r.yasImgDomain,s=r.yasMobileDomain,d=function(e,t){var n;return window.XMLHttpRequest?n=new XMLHttpRequest:"undefined"!=typeof XDomainRequest?n=new XDomainRequest:window.ActiveXObject&&(n=new ActiveXObject("Microsoft.XMLHTTP")),n};t.imgSend=function(e,t){var n=o.getAppVersion();if(!(window.appBaseLogs||n>="5.2.1")){var r=new Image(1,1);r.src=a+i+"?"+e,r.onload=function(){r.onload=null,t&&t()}}},t.appSend=function(e,t){if(window.appBaseLogs){var n=d();n&&(n.ontimeout=function(e){console.log("timeout: ",JSON.stringify(e))},n.onerror=function(e){console.log("error: ",JSON.stringify(e))},n.onreadystatechange=function(){4==n.readyState&&200==n.status&&t&&t()},n.open("post",("https:"===document.location.protocol?"https:":"http:")+s,!0),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.send(e))}},t.downloadSend=function(e,t,n){var o=d();o&&(o.ontimeout=function(e){console.log("timeout: ",JSON.stringify(e))},o.onerror=function(e){console.log("error: ",JSON.stringify(e))},o.onreadystatechange=function(){4==o.readyState&&200==o.status&&n&&n()},o.open("post",("https:"===document.location.protocol?"https:":"http:")+e,!0),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.send(t))}},function(e,t){t.addEventHandler=function(e,t,n){e&&(e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n)},t.removeEventHandler=function(e,t,n){e&&(e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent?e.detachEvent("on"+t,n):delete e["on"+t])}},function(e,t){t.init=function(){"bind"in Function.prototype||(Function.prototype.bind=function(e){var t=this;if(arguments.length<=1)return function(){return t.apply(e,arguments)};var n=Array.prototype.slice.call(arguments,1);return function(){return t.apply(e,0===arguments.length?n:n.concat(Array.prototype.slice.call(arguments)))}}),"trim"in String.prototype||(String.prototype.trim=function(){return this.replace(/^\s+/,"").replace(/\s+$/,"")}),"indexOf"in Array.prototype||(Array.prototype.indexOf=function(e,t){void 0===t&&(t=0),t<0&&(t+=this.length),t<0&&(t=0);for(var n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1}),"lastIndexOf"in Array.prototype||(Array.prototype.lastIndexOf=function(e,t){for(void 0===t&&(t=this.length-1),t<0&&(t+=this.length),t>this.length-1&&(t=this.length-1),t++;t-- >0;)if(t in this&&this[t]===e)return t;return-1}),"forEach"in Array.prototype||(Array.prototype.forEach=function(e,t){for(var n=0,o=this.length;n<o;n++)n in this&&e.call(t,this[n],n,this)}),"map"in Array.prototype||(Array.prototype.map=function(e,t){for(var n=new Array(this.length),o=0,r=this.length;o<r;o++)o in this&&(n[o]=e.call(t,this[o],o,this));return n}),"filter"in Array.prototype||(Array.prototype.filter=function(e,t){for(var n,o=[],r=0,i=this.length;r<i;r++)r in this&&e.call(t,n=this[r],r,this)&&o.push(n);return o}),"every"in Array.prototype||(Array.prototype.every=function(e,t){for(var n=0,o=this.length;n<o;n++)if(n in this&&!e.call(t,this[n],n,this))return!1;return!0}),"some"in Array.prototype||(Array.prototype.some=function(e,t){for(var n=0,o=this.length;n<o;n++)if(n in this&&e.call(t,this[n],n,this))return!0;return!1})}},function(e,t,n){function o(e){var t=h.merge(b,I);t=h.merge(t,k);var n=d();n&&(t=h.merge(t,n));var o=i();o&&(t=h.merge(t,o),m("_yasmp",null,{path:"/",domain:v.yasDomain,expires:73e3}));var r=m("_yascustjson");if(r){var a=JSON.parse(r);t=h.merge(t,a),m("_yascustjson",null,{path:"/",domain:v.yasDomain,expires:73e3})}var s=m("_yaserror");if(s){var c=JSON.parse(s);t=h.merge(t,c),m("_yaserror",null,{path:"/",domain:v.yasDomain,expires:73e3})}var u=h.genParam(t);e=e?e:function(){},g.imgSend(u,e);var l=m("_yasev");l&&g.imgSend(l,function(){m("_yasev",null,{path:"/",domain:v.yasDomain,expires:73e3})})}function r(){var e=m("_yasvd");return e?{cid:e,isNew:"N"}:(e=h.Random()^2147483647&h.hashClientInfo(),m("_yasvd",e,{path:"/",domain:y,expires:73e3}),{cid:e,isNew:"Y"})}function i(){var e=m("_yasmp");if(e){var t=e.split(",");if(3===t.length)return{x:t[0],y:t[1],et:t[2]};if(4===t.length)return{x:t[0],y:t[1],et:t[2],ix:t[3]}}return null}function a(e){var t=0,n=0;return e.pageX||e.pageY?(t=e.pageX,n=e.pageY):(e.clientX||e.clientY)&&(t=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,n=e.clientY+document.body.scrollTop+document.documentElement.scrollTop),t-=window.screen.width/2,n=window.screen.height/2-n,{x:t,y:n}}function s(){var e=window.qs.mkt_code||window.qs.union_type||h.getMktcBySeo();if(e){var t={path:"/",domain:y,expires:new Date(Date.now()+6048e5)};S?m("mkt_code",e,t):m("mkt_code")&&"100000000000349"!==e||m("mkt_code",e,t)}}function d(){var e=m("mkt_code")||window.qs.mkt_code||window.qs.union_type;return e?{mktc:e}:null}function c(){for(var e=window.qs.mkt_code||window.qs.union_type||h.getMktcBySeo()||"100000000000349",t=document.getElementsByTagName("a"),n=0;n<t.length;n++){var o=t[n].getAttribute("href")||"";if(o.indexOf("union.yoho.cn/union/downapp.html")>-1||o.indexOf("union.yoho.cn/union/app-downloads.html")>-1||o.indexOf("union.yoho.cn/union/ClickUnionRest/addUnion4Jump")>-1){var r=[];e&&o.indexOf("union_type")===-1&&r.push("union_type="+e),o.indexOf("client_id")===-1&&r.push("client_id="+U.cid),o.indexOf("openby:yohobuy")===-1&&r.push(h.getAppPath()),r.length&&(o+=o.indexOf("?")===-1?"?":"&",o+=r.join("&"),t[n].setAttribute("href",o)),w.addEventHandler(t[n],"click",function(e){C.sendCustomInfo&&C.sendCustomInfo({op:"YB_DOWNLOAD_C",param:JSON.stringify({C_ID:window.qs.yh_channel||h.getChannel()||1,TO_URL:e.target.getAttribute("href")})},!0)})}}}function u(){var e=document.getElementById("no-download"),t=document.getElementById("top-downloadbar"),o=N.some(function(e){return new RegExp(e,"i").test(location.href)});if(!(e||window.qs.nodownload||"app"===window.qs.openrefer||t||o)&&!x&&(A||S)&&(E||O)){if(t=document.getElementById("float-layer-app"),t&&t.parentNode.removeChild(t),m("_downloadBar"))return;h.setFontSize();var r=(n(6),document.createElement("div"));r.innerHTML=h.getDownloadStr(S),document.body.insertBefore(r,document.body.firstChild);var i=document.getElementById("download-close");w.addEventHandler(i,"click",function(){m("_downloadBar","close",{path:"/",domain:v.yasDomain,expires:new Date(Date.now()+6e4)}),g.downloadSend("//m.yohobuy.com/activitylog.json?close",""),r.style.display="none",_hmt&&_hmt.push&&_hmt.push(["_trackEvent","顶部下载条目","点击关闭Banner"])});var a=document.getElementById("download-go");w.addEventHandler(a,"click",function(e){g.downloadSend("//m.yohobuy.com/activitylog.json?download",""),_hmt&&_hmt.push&&_hmt.push(["_trackEvent","顶部下载条目","所有打开和下载",encodeURIComponent(e.currentTarget.getAttribute("href"))])});var s=document.getElementById("download-wechat");w.addEventHandler(s,"click",function(){g.downloadSend("//m.yohobuy.com/activitylog.json?attenion",""),_hmt&&_hmt.push&&_hmt.push(["_trackEvent","顶部下载条目","微信里面关注"])})}}function l(e,t,n,o,r){var i=m("_yasev");i?i+="&":i="",m("_yasev",i+"vd="+I.vd+"&t="+e+"&i="+t+"&l="+o+"&v="+r,{path:"/",domain:y,expires:73e3}),V++}function p(e,t){e.av&&(window.indx=e.indx,window.originUrl=e.origin||location.href,window.appBaseLogs={device:{ak:e.ak,udid:e.udid},status:[{av:e.av,udid:e.udid,sid:e.sid}],events:[{uid:e.uid,sid:e.sid,abtype:e.abtype}]},window.originUrl&&window.qs&&C.sendAppLogs({appop:"YB_H5_PAGE_OPEN_L",param:JSON.stringify({C_ID:window.qs.yh_channel||h.getChannel()||1,PAGE_URL:window.originUrl,PAGE_NAME:decodeURI(window.qs.title||document.title),ACTION_URL:t})},!1))}n(7);var f=n(11);f.init();var h=n(1),m=n(8),g=n(9),w=n(10),v=n(2),y=(v.version,v.yaPath,v.yasDomain),b={h:document.domain,p:window.location.port,u:window.location.pathname,ft:0,fst:0,sv:"",ab:m("ab_5")||"",op:"YB_PAGE_OPEN_L",apf:window.location.search.indexOf("app_version=")>=0?"Y":"N"},x=/yohobuy/i.test(navigator.userAgent)||/app_version=/i.test(window.location.search)||!!window.yohoInterface,A=/(iPhone|Android|iPad|iPod|iOS)/i.test(navigator.userAgent),S=/micromessenger/i.test(navigator.userAgent),E=/m\.yohobuy\.com/i.test(document.domain),O=/feature\.yoho\.cn/i.test(document.domain)||/activity\.yoho\.cn/i.test(document.domain),N=["m.yohobuy.com/brands","m.yohobuy.com/passport"],U=r(),I={ak:"",cd:U.cid,vd:(new Date).getTime()+U.cid,ud:"",rf:document.referrer,ckf:U.isNew},R=h.flashChecker(),k={sr:window.screen.width+"x"+window.screen.height,wr:window.screen.availWidth+"x"+window.screen.availHeight,sd:window.screen.colorDepth,ln:window.navigator.language?window.navigator.language:window.navigator.browserLanguage,sy:window.navigator.platform,ce:window.navigator.cookieEnabled,fv:R.f?R.v:0},D=function(){},C=function(e,t,n,r,i,d){function l(e,t,n){O="This page contains error! \n\n",O+="Error message is:"+e+"\n",O+="URL is: "+t+"\n",O+="Line is:"+n+"\n\n";var o=JSON.stringify({er:O});return m("_yaserror",o,{path:"/",domain:y,expires:73e3}),!1}window.qs=h.queryString(),I.ak=n,b.sv=t,I.ud=r?r:"",I.ts=(new Date).getTime();var p=window.qs.yh_channel||h.getChannel();if(p&&(b.param=JSON.stringify({C_ID:p})),m("_yasgeo")){var f=m("_yasgeo").split(",");I.la=f[0],I.lo=f[1],m("_yasgeo",null,{path:"/",domain:v.yasDomain,expires:73e3})}var g=(new Date).getTime(),x=null,A=!1;if(b.ft=g-e,w.addEventHandler(window,"load",function(t){var n=(new Date).getTime();b.fst=n-e,w.removeEventHandler(window,"load",arguments.callee),window.clearTimeout(x),A||o()}),x=window.setTimeout(function(){b.fst=0,b.fse=">3s",A=!0,o()},3e3),i&&h.getGeo(function(e,t){e&&m("_yasgeo",e+","+t,{path:"/",domain:y,expires:73e3})}),u(),s(),c(),d&&d[0])for(var S=0,E=d.length;S<E;S++)d[S].setAttribute("yoho_index",S+1);else w.addEventHandler(document,"click",function(e){e=e||window.event;var t=e.target||e.srcElement;if(t&&("A"===t.nodeName||"IMG"===t.nodeName&&"A"===t.parentNode.nodeName)){var n=a(e),o=n.x+","+n.y+","+e.type,r=t.getAttribute("yoho_index")||t.parentNode.getAttribute("yoho_index");r&&(o+=","+r),m("_yasmp",o,{path:"/",domain:y,expires:73e3})}ix=0});onerror=l;var O=""},V=0;if(C.add=function(e,t,n,o,r){V>3?g.imgSend(m("_yasev"),function(){m("_yasev",null,{path:"/",domain:v.yasDomain,expires:73e3}),V=0,l(e,t,n,o,r)}):l(e,t,n,o,r)},C.sendMouseEvent=function(e,t){e=e||window.event;var n=a(e);if(t){var o={x:n.x,y:n.y,et:e.type},r=h.merge(b,I);r=h.merge(r,k),r=h.merge(r,o);var i=h.genParam(r);g.imgSend(i,function(){})}else m("_yasmp",n.x+","+n.y+","+e.type,{path:"/",domain:y,expires:73e3})},C.sendCustomInfo=function(e,t,n){if(window.appBaseLogs&&e.appop)return e.op=e.appop,C.sendAppLogs(e,!0);if(delete e.appop,e.ts=(new Date).getTime(),t){var o=h.merge(b,I);o=h.merge(o,k),o=h.merge(o,e);var r=d();
r&&(o=h.merge(o,r));var i=h.genParam(o);g.imgSend(i,n)}else{var a=JSON.stringify(e);m("_yascustjson",a,{path:"/",domain:y,expires:73e3})}},C.sendAppLogs=function(e,t){if(window.appBaseLogs){var n=JSON.parse(e.param);n.F_URL&&(n.F_URL=decodeURIComponent(n.F_URL));var o=window.appBaseLogs.events[0];o.abtype&&(n.AB_TYPE=o.abtype);var r=h.merge(o,{ts:(new Date).getTime().toString(),indx:++window.indx,op:e.appop,param:n}),i=h.merge(window.appBaseLogs,{events:[r]});g.appSend("_mlogs="+encodeURIComponent(JSON.stringify(i))),window._yasloaded=!0,t&&(window.isandroidyas?window.prompt(JSON.stringify({method:"set.analyticEventIndex",arguments:{indx:window.indx}})):window.yohoInterface.triggerEvent(D,D,{method:"set.analyticEventIndex",arguments:{indx:window.indx}}))}},navigator.userAgent.indexOf("YohoBuy-android-yas")>-1){window.isandroidyas=!0;var M=window.prompt(JSON.stringify({method:"get.analyticAppData"}));p(JSON.parse(M||"{}"))}else w.addEventHandler(document,"deviceready",function(e){window._yasloaded=!1;for(var t=[],n=document.getElementsByTagName("a"),o=0;o<n.length;o++){var r=n[o].getAttribute("href");!r||/^#.*$/.test(r)||/^javascript.*$/i.test(r)||t.push(r)}w.addEventHandler(document,"click",function(e){if(window.originUrl){e=e||window.event;var t=e.target||e.srcElement;if(t=h.closest(t,"a")){var n={C_ID:window.qs.yh_channel||h.getChannel()||1,PAGE_URL:window.originUrl,PAGE_NAME:decodeURI(window.qs.title||document.title),F_URL:t.getAttribute("href")},o=t.getAttribute("fp");o&&(o=JSON.parse(o),n.F_ID=o.F_ID,n.F_NM=o.F_NM,n.F_INDEX=o.F_INDEX,n.I_INDEX=o.I_INDEX,n.I_NM=o.I_NM||""),C.sendAppLogs({appop:"YB_H5_PAGE_FLR_C",param:JSON.stringify(n)},!0)}}}),window.yohoInterface.triggerEvent(function(e){p(e,t)},D,{method:"get.analyticAppData"});var i=setInterval(function(){window._yasloaded&&(clearInterval(i),window.yohoInterface.triggerEvent(D,D,{method:"set.analyticEventIndex",arguments:{indx:window.indx}}))},500)});e.exports=C}]);
\ No newline at end of file
!function(e){function t(o){if(n[o])return n[o].exports;var i=n[o]={exports:{},id:o,loaded:!1};return e[o].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){var o=n(15);if(window.YohoAcquisitionObject){var i=window.YohoAcquisitionObject;window[i].p&&(o.apply(this,window[i].p),window[i]=o)}e.exports=o},function(e,t){e.exports=function(e,t,n){if(void 0===t){var o=null;if(document.cookie)for(var i=document.cookie.split(";"),r=0;r<i.length;r++){var a=(i[r]||"").trim();if(a.substring(0,e.length+1)==e+"="){o=decodeURIComponent(a.substring(e.length+1));break}}return o}n=n||{},null===t&&(t="",n.expires=-1);var d="";if(n.expires&&("number"==typeof n.expires||n.expires.toUTCString)){var s;"number"==typeof n.expires?(s=new Date,s.setTime(s.getTime()+24*n.expires*60*60*1e3)):s=n.expires,d="; expires="+s.toUTCString()}var c=n.path?"; path="+n.path:"",l=n.domain?"; domain="+n.domain:"",p=n.secure?"; secure":"";document.cookie=[e,"=",encodeURIComponent(t),d,c,l,p].join("")}},function(e,t){function n(){var e=document.domain.split("."),t=e.length;return t>1&&isNaN(e[t-1])?"."+e[t-2]+"."+e[t-1]:document.domain}e.exports={version:"1.0",yasPath:"/web/",yasDomain:n(),yasImgDomain:"//analytics.m.yohobuy.com/yas.gif",yasMobileDomain:"//analytics.m.yohobuy.com/yas_mobile"}},,function(e,t,n){var o=n(1);t.flashChecker=function(){var e=0,t=0,n=null;return navigator.plugins&&navigator.plugins.length>0&&(n=navigator.plugins["Shockwave Flash"])&&(e=1,t=n.description.replace("Shockwave Flash","")),{f:e,v:t}},t.Hash=function(e){var t,n=1,o=0;if(e)for(n=0,t=e.length-1;t>=0;t--)o=e.charCodeAt(t),n=(n<<6&268435455)+o+(o<<14),0!==(o=266338304&n)&&(n^=o>>21);return n},t.Random=function(){return Math.round(2147483647*Math.random())},t.hashClientInfo=function(){var e=window.navigator,n=window.history.length;e=[e.appName,e.version,e.language,e.platform,e.userAgent,e.javaEnabled(),window.screen,window.screen.colorDepth,window.document.cookie?window.document.cookie:"",window.document.referrer?window.document.referrer:""].join("");for(var o=e.length;n>0;)e+=n--^o++;return t.Hash(e)},t.merge=function(e,t){var n={};for(var o in e)n[o]=e[o];for(var i in t)n[i]=t[i];return n},t.genParam=function(e){var t=[];for(var n in e)t.push(n+"="+e[n]);return t.join("&")},t.trim=function(e){if(String.prototype.trim)return null===e?"":String.prototype.trim.call(e);var t=/^\s+/,n=/\s+$/,o="";return e?(o=e.toString().replace(t,""),o=o.replace(n,"")):void 0},t.getGeo=function(e){function t(t){var n=t.coords.longitude,o=t.coords.latitude;e(o,n)}function n(t){e(!1)}if(window.navigator.geolocation){var o={enableHighAccuracy:!0};window.navigator.geolocation.getCurrentPosition(t,n,o)}else e(!1)},t.queryString=function(){var e,t,n={},o=window.location.search.slice(1).split("&");for(t=0;t<o.length;t++)e=o[t].split("="),n[e[0]]=e[1];return n},t.closest=function(e,t){for(var n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;e&&!n.call(e,t);)e=e.parentElement;return e},t.getChannel=function(){return{boys:1,girls:2,kids:3,lifestyle:4}[o("_Channel")||"boys"]};t.getAppVersion=function(){return window.qs.app_version||window.qs.appVersion};var i={"baidu.com":0x5af3107a4037,"so.com":0x5af3107a4031,"sogou.com":0x5af3107a4035,"bing.com":0x5af3107a4039,"m.sm.cn":0x5af3107a403b,"google.com":0x5af3107a403d};"m.yohobuy.com"===location.hostname||/\.m\.yohobuy\.com$/.test(location.hostname)||(i={"baidu.com":0x5af3107a5f73,"so.com":0x5af3107a5f6b,"sogou.com":0x5af3107a5f71,"bing.com":0x5af3107a5f6d,"m.sm.cn":0x5af3107a5f75,"google.com":0x5af3107a5f6f}),t.getMktcBySeo=function(){var e,t=document.referrer;for(var n in i)if(t.indexOf(n)>-1){e=i[n];break}return e},t.setFontSize=function(){var e=document.documentElement;if(!e.style.fontSize){var t=e.clientWidth;if(!t)return;e.style.fontSize=t>=640?"40px":t/640*40+"px"}};var r=function(){var e="//cdn.yoho.cn/static/wechat/miniapp-yohobuy.jpg?imageView2/1/w/258/h/258",t=document.getElementById("main-wrap").getAttribute("data-minipath")||e,n='<div class="mini-app-dialog-bg" id="mini-app-dialog-bg"></div>';return n+='<div class="mini-app-dialog" id="mini-app-dialog">',n+='<div class="mini-app-header"><span class="mini-app-close" id="mini-app-close"></span></div>',n+='<div class="mini-app-content"><img src="'+t+'" onerror="this.src= \''+e+"';this.onerror=null;\" /></div>",n+='<div class="mini-app-footer">长按识别小程序码进入有货精选</div>',n+="</div>"};t.getDownloadStr=function(e){var t='<div class="top-downloadbar';return e&&(t+=" top-downloadbar-wechat"),t+='" id="top-downloadbar"><a href="javascript:void(0);" class="download-close" id="download-close"></a>\t <span class="download-icon"></span><span class="download-text">Yoho!Buy有货</span>',e?(t+='<a class="download-go-wechat" id="download-go" href="https://union.yoho.cn/union/app-downloads.html">立即打开</a>',t+='<a class="mini-app-open" id="mini-app-open" href="javascript:;">进入小程序</a>',t+=r()):(t+='<p class="download-text-desc">新用户送惊喜礼包</p>',t+='<a class="download-go" id="download-go" href="https://union.yoho.cn/union/app-downloads.html">立即打开</a></div>'),t},t.getAppPath=function(){var e=document.getElementById("main-wrap").dataset||{},t=e.apppath;return t=(t||"").replace("yohobuy://yohobuy.com/goapp?","")||'openby:yohobuy={"action":"go.home","params":{"gender":"1","channel":"2"}}'},t.getUdid=function(){return o("udid")||""||0}},function(e,t,n){t=e.exports=n(6)(),t.push([e.id,'.top-downloadbar{display:block;height:2.25rem;background:rgba(68,68,68,.95);width:100%;padding:.125rem 0;position:relative;box-sizing:content-box}.top-downloadbar .download-close{margin-left:.25rem;width:.7rem;height:.7rem;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNAay06AAAAWUSURBVFiFzZhPTxNdFIefC1iJIq2ZTjG2I7QlKRQQS4IrNLrQIWrFho3GhS7dGL/C+zHcGhewM4qSlh0JK6mCiW2JsWBs6x/qiFQxUGznXWBHSmlpQd68v+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WUOHz5MXV31DtwKNTExUbStgUCgpgxRX19PU1MTy8vLwG+PffnyhWPHjmGz2fj06dOuoDafqcKFqMVzsixTV1dHOp0GfnuskBudTueeobZeiGo919bWBmzUEwZYPB5H13U6OjoqDu7u7q4IVQluc4LeTp2dnei6Tjwe/wO2tLRk5CqbzVZ28IULF6oOCVvhLl68WNbWZrPhcDhIJpPGE9447dPT0wAMDAyUnSAWi5HNZgkGg1XFqXA4zPj4OGtraxXzcGHNAgNsqpKEENy5cwdJknjw4MGeK6JqpSgKt27dQtM07t+/b4Qdw2O6rhMKhRBC4Pf7jQi8nzKZTEZuDYVCRU/5osA1Pz/P7OwskiQZh3y/JITgypUrSJLE7OxsSXVeElGDwSCpVIrOzk4uX768L3BCCC5dukRXVxepVIpgMFhiUwK2vr7O6OioUb0MDw//1W01mUwMDw/T19eHpmmMjo5WV/AW4CKRCE6n02iMfP78mUwmsycoRVG4fv06ra2tfPz4kYcPH5ZtEfwnTRVZljlz5szfaapslsvlYnBwEEmSgI20EYvFePfuXcU2VFtbGx6PB0VREEKgaRrBYHDvbagiw9+Nu9OnT2O3241Lkc/n+f79e1Hj7siRI0UvlULjLhKJVF3dVw22WRaLhfb2dk6cOIEkSdu2OjVN4/3797x9+3Z/W53/tf4F/0jgMDtkmrEAAAAASUVORK5CYII=")}.top-downloadbar .download-close,.top-downloadbar .download-icon{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);background-size:cover}.top-downloadbar .download-icon{width:2rem;height:2rem;left:1.25rem;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEYAAABGCAYAAABxLuKEAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNAay06AAABA1SURBVHic7Zx5bFTV28c/996Z6XTolO4bbaFAoIVSWiw7+HMDIQQRRFQCxrBEIbIYC4gSFFCjaILIloASoSzGFcFUFquISABBQSpb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ar .download-text{position:absolute;top:50%;-webkit-transform:translateY(-80%);transform:translateY(-80%);left:3.5rem;color:#fff;font-size:.6rem}.top-downloadbar-wechat .download-text{-webkit-transform:translateY(-50%);transform:translateY(-50%)}.top-downloadbar .download-text-desc{position:absolute;top:50%;-webkit-transform:translateY(-10%) scale(.5);transform:translateY(-10%) scale(.5);-webkit-transform-origin:left center;transform-origin:left center;left:3.5rem;color:#c7c7c7;font-size:1rem}.top-downloadbar .download-go{right:.375rem;background:red}.top-downloadbar .download-go,.top-downloadbar .download-go-wechat{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);font-size:.6rem;padding:0 .375rem;height:1.125rem;line-height:1.125rem;border-radius:.125rem;color:#fff;text-decoration:none}.top-downloadbar .download-go-wechat{right:4.7rem;background:#000}.top-downloadbar .download-wechat,.top-downloadbar .mini-app-open{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:.375rem;font-size:.6rem;padding:0 .375rem;height:1.125rem;line-height:1.125rem;border-radius:.125rem;background:red;color:#fff;text-decoration:none}.mini-app-dialog,.mini-app-dialog-bg{display:none}.mini-app-dialog-bg{background-color:#000;opacity:.3;position:fixed;width:100%;height:12.5rem;z-index:30;height:100%}.mini-app-dialog{text-align:center;position:fixed;z-index:31;left:50%;top:50%;width:12.5rem;border-radius:.2rem;background-color:#fff;margin-left:-6.25rem;margin-top:-6rem}.mini-app-dialog .mini-app-header{height:2rem;line-height:2rem}.mini-app-dialog .mini-app-content{padding:.625rem}.mini-app-dialog .mini-app-content img{width:6.45rem;height:6.45rem}.mini-app-dialog .mini-app-footer{height:3.65rem;line-height:3.65rem;font-size:.7rem}.mini-app-dialog .mini-app-close{width:.75rem;height:.75rem;position:absolute;right:.25rem;top:.25rem;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAmFJREFUeNrMl99OE0EUxrdL9bYYbWoEJajUP5ckXsM2IZJe0IQQqY9AGq0+QY0vUExs+gqQkCblAi0ktPckvUQoQoyihDbE6qWELN9pzjbr6O7MlK7xJB/Tdg/nN+fszOzZkG3bhszK5fIlDI+hKegRdAe6wpe/Q/vQFrQBradSqV+ymCE/MICDGF5AGeiaoWYnUAHKYwJtbTCgaQyLUMzozZpQFvAlJTCAAxjecJb9sCL0DBM48wQzlGY4Z/TXStATN9wUHBYDgJLNchX/zBjZznO2QdpT5553wLx6dy6wkFStBcVptTulzvpAJ3jfNhQCb0Mj0LTH9Sj0snOPke1lyQr+ihkeYExAexKoBd/P9D8+fhlimnwaRX0c38FxCAEpmOUBJ2gCPk34UsarPvGu0ilo8lHoZ2PQpgsuZv6BocfwuYXPVWhUErMDHle4d3GG3wDgkOEfGWq5oDUFKNm4yRkZPcCtHjLtVjGMPxGN7XCP4RbDaSveZOhtjTgRytjW3Iu24m++RuCfGv67XN4jZDoMXcfnL1z2A404P0zJ3hShlgPl8lZd8EkN+B6B67qZMvQudJ/vuS68TuCKxKnB0G8C1LEHDI9plL1icp/U8nFKuqCbAtQNrzKcjswZSWtUcZ5OOXx55eFI5aNM3ivseTo6k9BDaM3D5zUmlwvzF3pIL3g8oWoaq5WAnySPxXy3A+FuMGsEb8+dzrPb+uCHZQxvA4QW3B2n2HNRD70SALQkVvQ3MHeBaW7I+2VFscP8vxr6v7zCZLk1iv6TVxiFl7ZBvtwWXtoqAJ7KYp4LMACryxGMnWAbNgAAAABJRU5ErkJggg==");background-size:cover}',""])},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var o={},i=0;i<this.length;i++){var r=this[i][0];"number"==typeof r&&(o[r]=!0)}for(i=0;i<t.length;i++){var a=t[i];"number"==typeof a[0]&&o[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(e,t,n){function o(e,t){for(var n=0;n<e.length;n++){var o=e[n],i=f[o.id];if(i){i.refs++;for(var r=0;r<i.parts.length;r++)i.parts[r](o.parts[r]);for(;r<o.parts.length;r++)i.parts.push(c(o.parts[r],t))}else{for(var a=[],r=0;r<o.parts.length;r++)a.push(c(o.parts[r],t));f[o.id]={id:o.id,refs:1,parts:a}}}}function i(e){for(var t=[],n={},o=0;o<e.length;o++){var i=e[o],r=i[0],a=i[1],d=i[2],s=i[3],c={css:a,media:d,sourceMap:s};n[r]?n[r].parts.push(c):t.push(n[r]={id:r,parts:[c]})}return t}function r(e,t){var n=g(),o=y[y.length-1];if("top"===e.insertAt)o?o.nextSibling?n.insertBefore(t,o.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),y.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function a(e){e.parentNode.removeChild(e);var t=y.indexOf(e);t>=0&&y.splice(t,1)}function d(e){var t=document.createElement("style");return t.type="text/css",r(e,t),t}function s(e){var t=document.createElement("link");return t.rel="stylesheet",r(e,t),t}function c(e,t){var n,o,i;if(t.singleton){var r=v++;n=w||(w=d(t)),o=l.bind(null,n,r,!1),i=l.bind(null,n,r,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=s(t),o=u.bind(null,n),i=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=d(t),o=p.bind(null,n),i=function(){a(n)});return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else i()}}function l(e,t,n,o){var i=n?"":o.css;if(e.styleSheet)e.styleSheet.cssText=b(t,i);else{var r=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(r,a[t]):e.appendChild(r)}}function p(e,t){var n=t.css,o=t.media;if(o&&e.setAttribute("media",o),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function u(e,t){var n=t.css,o=t.sourceMap;o&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var i=new Blob([n],{type:"text/css"}),r=e.href;e.href=URL.createObjectURL(i),r&&URL.revokeObjectURL(r)}var f={},m=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}},h=m(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),g=m(function(){return document.head||document.getElementsByTagName("head")[0]}),w=null,v=0,y=[];e.exports=function(e,t){t=t||{},void 0===t.singleton&&(t.singleton=h()),void 0===t.insertAt&&(t.insertAt="bottom");var n=i(e);return o(n,t),function(e){for(var r=[],a=0;a<n.length;a++){var d=n[a],s=f[d.id];s.refs--,r.push(s)}if(e){o(i(e),t)}for(var a=0;a<r.length;a++){var s=r[a];if(0===s.refs){for(var c=0;c<s.parts.length;c++)s.parts[c]();delete f[s.id]}}}};var b=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t,n){var o=n(5);"string"==typeof o&&(o=[[e.id,o,""]]);n(7)(o,{});o.locals&&(e.exports=o.locals)},function(module,exports){"object"!=typeof JSON&&(JSON={}),function(){"use strict";function f(e){return e<10?"0"+e:e}function this_value(){return this.valueOf()}function quote(e){return rx_escapable.lastIndex=0,rx_escapable.test(e)?'"'+e.replace(rx_escapable,function(e){var t=meta[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function str(e,t){var n,o,i,r,a,d=gap,s=t[e];switch(s&&"object"==typeof s&&"function"==typeof s.toJSON&&(s=s.toJSON(e)),"function"==typeof rep&&(s=rep.call(t,e,s)),typeof s){case"string":return quote(s);case"number":return isFinite(s)?String(s):"null";case"boolean":case"null":return String(s);case"object":if(!s)return"null";if(gap+=indent,a=[],"[object Array]"===Object.prototype.toString.apply(s)){for(r=s.length,n=0;n<r;n+=1)a[n]=str(n,s)||"null";return i=0===a.length?"[]":gap?"[\n"+gap+a.join(",\n"+gap)+"\n"+d+"]":"["+a.join(",")+"]",gap=d,i}if(rep&&"object"==typeof rep)for(r=rep.length,n=0;n<r;n+=1)"string"==typeof rep[n]&&(o=rep[n],(i=str(o,s))&&a.push(quote(o)+(gap?": ":":")+i));else for(o in s)Object.prototype.hasOwnProperty.call(s,o)&&(i=str(o,s))&&a.push(quote(o)+(gap?": ":":")+i);return i=0===a.length?"{}":gap?"{\n"+gap+a.join(",\n"+gap)+"\n"+d+"}":"{"+a.join(",")+"}",gap=d,i}}var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;"function"!=typeof JSON.stringify&&(meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(e,t,n){var o;if(gap="",indent="","number"==typeof n)for(o=0;o<n;o+=1)indent+=" ";else"string"==typeof n&&(indent=n);if(rep=t,t&&"function"!=typeof t&&("object"!=typeof t||"number"!=typeof t.length))throw new Error("JSON.stringify");return str("",{"":e})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){function walk(e,t){var n,o,i=e[t];if(i&&"object"==typeof i)for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(o=walk(i,n),void 0!==o?i[n]=o:delete i[n]);return reviver.call(e,t,i)}var j;if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}(),module.exports=JSON},function(e,t,n){var o=n(4),i=n(2),r=i.yasPath,a=i.yasImgDomain,d=i.yasMobileDomain,s=function(e,t){var n;return window.XMLHttpRequest?n=new XMLHttpRequest:"undefined"!=typeof XDomainRequest?n=new XDomainRequest:window.ActiveXObject&&(n=new ActiveXObject("Microsoft.XMLHTTP")),n};t.imgSend=function(e,t){var n=o.getAppVersion();if(!(window.appBaseLogs||window.yohoInterface||n>="5.2.1")){var i=new Image(1,1);i.src=a+r+"?"+e,i.onload=function(){i.onload=null,t&&t()}}},t.appSend=function(e,t){if(window.appBaseLogs){var n=s();n&&(n.ontimeout=function(e){console.log("timeout: ",JSON.stringify(e))},n.onerror=function(e){console.log("error: ",JSON.stringify(e))},n.onreadystatechange=function(){4==n.readyState&&200==n.status&&t&&t()},n.open("post",("https:"===document.location.protocol?"https:":"http:")+d,!0),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.send(e))}},t.downloadSend=function(e,t,n){var o=s();o&&(o.ontimeout=function(e){console.log("timeout: ",JSON.stringify(e))},o.onerror=function(e){console.log("error: ",JSON.stringify(e))},o.onreadystatechange=function(){4==o.readyState&&200==o.status&&n&&n()},o.open("post",("https:"===document.location.protocol?"https:":"http:")+e,!0),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.send(t))}},function(e,t){t.addEventHandler=function(e,t,n){e&&(e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n)},t.removeEventHandler=function(e,t,n){e&&(e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent?e.detachEvent("on"+t,n):delete e["on"+t])}},function(e,t){t.init=function(){"bind"in Function.prototype||(Function.prototype.bind=function(e){var t=this;if(arguments.length<=1)return function(){return t.apply(e,arguments)};var n=Array.prototype.slice.call(arguments,1);return function(){return t.apply(e,0===arguments.length?n:n.concat(Array.prototype.slice.call(arguments)))}}),"trim"in String.prototype||(String.prototype.trim=function(){return this.replace(/^\s+/,"").replace(/\s+$/,"")}),"indexOf"in Array.prototype||(Array.prototype.indexOf=function(e,t){void 0===t&&(t=0),t<0&&(t+=this.length),t<0&&(t=0);for(var n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1}),"lastIndexOf"in Array.prototype||(Array.prototype.lastIndexOf=function(e,t){for(void 0===t&&(t=this.length-1),t<0&&(t+=this.length),t>this.length-1&&(t=this.length-1),t++;t-- >0;)if(t in this&&this[t]===e)return t;return-1}),"forEach"in Array.prototype||(Array.prototype.forEach=function(e,t){for(var n=0,o=this.length;n<o;n++)n in this&&e.call(t,this[n],n,this)}),"map"in Array.prototype||(Array.prototype.map=function(e,t){for(var n=new Array(this.length),o=0,i=this.length;o<i;o++)o in this&&(n[o]=e.call(t,this[o],o,this));return n}),"filter"in Array.prototype||(Array.prototype.filter=function(e,t){for(var n,o=[],i=0,r=this.length;i<r;i++)i in this&&e.call(t,n=this[i],i,this)&&o.push(n);return o}),"every"in Array.prototype||(Array.prototype.every=function(e,t){for(var n=0,o=this.length;n<o;n++)if(n in this&&!e.call(t,this[n],n,this))return!1;return!0}),"some"in Array.prototype||(Array.prototype.some=function(e,t){for(var n=0,o=this.length;n<o;n++)if(n in this&&e.call(t,this[n],n,this))return!0;return!1})}},,,function(e,t,n){function o(e){var t=f.merge(y,O);t=f.merge(t,k);var n=s();n&&(t=f.merge(t,n));var o=r();o&&(t=f.merge(t,o),m("_yasmp",null,{path:"/",domain:w.yasDomain,expires:73e3}));var i=m("_yascustjson");if(i){var a=JSON.parse(i);t=f.merge(t,a),m("_yascustjson",null,{path:"/",domain:w.yasDomain,expires:73e3})}var d=f.genParam(t);e=e||function(){},h.imgSend(d,e);var c=m("_yasev");c&&h.imgSend(c,function(){m("_yasev",null,{path:"/",domain:w.yasDomain,expires:73e3})})}function i(){var e=m("_yasvd");return e?{cid:e,isNew:"N"}:(e=f.Random()^2147483647&f.hashClientInfo(),m("_yasvd",e,{path:"/",domain:v,expires:73e3}),{cid:e,isNew:"Y"})}function r(){var e=m("_yasmp");if(e){var t=e.split(",");if(3===t.length)return{x:t[0],y:t[1],et:t[2]};if(4===t.length)return{x:t[0],y:t[1],et:t[2],ix:t[3]}}return null}function a(e){var t=0,n=0;return e.pageX||e.pageY?(t=e.pageX,n=e.pageY):(e.clientX||e.clientY)&&(t=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,n=e.clientY+document.body.scrollTop+document.documentElement.scrollTop),t-=window.screen.width/2,n=window.screen.height/2-n,{x:t,y:n}}function d(){var e=window.qs.mkt_code||window.qs.union_type||f.getMktcBySeo();if(e){var t={path:"/",domain:v,expires:new Date(Date.now()+6048e5)};m("mkt_code")&&m("mkt_code")===e&&"100000000000349"!==e||m("mkt_code",e,t)}}function s(){var e=m("mkt_code")||window.qs.mkt_code||window.qs.union_type;return e?{mktc:e}:null}function c(){for(var e=window.qs.mkt_code||window.qs.union_type||f.getMktcBySeo()||"100000000000349",t=document.getElementsByTagName("a"),n=0;n<t.length;n++){var o=t[n].getAttribute("href")||"",i=o.indexOf("union.yoho.cn/union/downapp.html")>-1,r=o.indexOf("union.yoho.cn/union/app-downloads.html")>-1,a=o.indexOf("union.yoho.cn/union/ClickUnionRest/addUnion4Jump")>-1;if(i||r||a){var d=[];if(e&&-1===o.indexOf("union_type")&&d.push("union_type="+e),-1===o.indexOf("client_id")&&d.push("client_id="+U.cid),-1===o.indexOf("openby:yohobuy")&&r&&d.push(f.getAppPath()),d.length){if(-1===o.indexOf("?"))o+="?",o+=d.join("&");else{o.split("?");o=o[0]+"?"+d.join("&")+o[1]}t[n].setAttribute("href",o)}g.addEventHandler(t[n],"click",function(e){C.sendCustomInfo&&C.sendCustomInfo({op:"YB_DOWNLOAD_C",param:JSON.stringify({C_ID:window.qs.yh_channel||f.getChannel()||1,TO_URL:e.target.getAttribute("href")})},!0)})}}}function l(){var e=document.getElementById("no-download"),t=document.getElementById("top-downloadbar"),o=N.some(function(e){return new RegExp(e,"i").test(location.href)});if(!(e||window.qs.nodownload||"app"===window.qs.openrefer||t||o)&&!b&&(A||x)&&(S||E)){if(t=document.getElementById("float-layer-app"),t&&t.parentNode.removeChild(t),m("_downloadBar"))return;f.setFontSize();var i=(n(8),document.createElement("div"));i.innerHTML=f.getDownloadStr(x),document.body.insertBefore(i,document.body.firstChild);var r=document.getElementById("download-close");g.addEventHandler(r,"click",function(){m("_downloadBar","close",{path:"/",domain:w.yasDomain,expires:new Date(Date.now()+6e4)}),h.downloadSend("//m.yohobuy.com/activitylog.json?close",""),i.style.display="none",_hmt&&_hmt.push&&_hmt.push(["_trackEvent","顶部下载条目","点击关闭Banner"])});var a=document.getElementById("download-go");g.addEventHandler(a,"click",function(e){h.downloadSend("//m.yohobuy.com/activitylog.json?download",""),_hmt&&_hmt.push&&_hmt.push(["_trackEvent","顶部下载条目","所有打开和下载",encodeURIComponent(e.currentTarget.getAttribute("href"))])});var d=document.getElementById("download-wechat");g.addEventHandler(d,"click",function(){h.downloadSend("//m.yohobuy.com/activitylog.json?attenion",""),_hmt&&_hmt.push&&_hmt.push(["_trackEvent","顶部下载条目","微信里面关注"])});var s=document.getElementById("mini-app-open"),c=document.getElementById("mini-app-close");g.addEventHandler(s,"click",function(){_hmt&&_hmt.push&&_hmt.push(["_trackEvent","打开小程序按钮","打开"]),D()}),g.addEventHandler(c,"click",function(){_hmt&&_hmt.push&&_hmt.push(["_trackEvent","打开小程序按钮","关闭"]),D()}),(document.getElementById("main-wrap").getAttribute("data-minipath")||"").indexOf("isOpen=true")>-1&&D()}}function p(e,t,n,o,i){var r=m("_yasev");r?r+="&":r="",m("_yasev",r+"vd="+O.vd+"&t="+e+"&i="+t+"&l="+o+"&v="+i,{path:"/",domain:v,expires:73e3}),B++}function u(e,t){e.av&&(window.indx=e.indx,window.originUrl=e.origin||location.href,window.appBaseLogs={device:{ak:e.ak,udid:e.udid},status:[{av:e.av,udid:e.udid,sid:e.sid}],events:[{uid:e.uid,sid:e.sid,abtype:e.abtype}]},window.originUrl&&window.qs&&C.sendAppLogs({appop:"YB_H5_PAGE_OPEN_L",param:JSON.stringify({C_ID:window.qs.yh_channel||f.getChannel()||1,PAGE_URL:window.originUrl,PAGE_NAME:decodeURI(window.qs.title||document.title),ACTION_URL:t})},!1))}n(9),n(12).init();var f=n(4),m=n(1),h=n(10),g=n(11),w=n(2),v=(w.version,w.yaPath,w.yasDomain),y={h:document.domain,p:window.location.port,u:window.location.pathname,ft:0,fst:0,sv:"",ab:m("ab_5")||"",op:"YB_PAGE_OPEN_L",apf:window.location.search.indexOf("app_version=")>=0?"Y":"N",udid:f.getUdid()},b=/yoho/i.test(navigator.userAgent)||/app_version=/i.test(window.location.search)||!!window.yohoInterface,A=/(iPhone|Android|iPad|iPod|iOS)/i.test(navigator.userAgent),x=/micromessenger/i.test(navigator.userAgent),S=/m\.yohobuy\.com/i.test(document.domain),E=/feature\.yoho\.cn/i.test(document.domain)||/activity\.yoho\.cn/i.test(document.domain),N=["m.yohobuy.com/brands","m.yohobuy.com/passport"],U=i(),O={ak:"",cd:U.cid,vd:(new Date).getTime()+U.cid,ud:"",rf:document.referrer,ckf:U.isNew},I=f.flashChecker(),k={sr:window.screen.width+"x"+window.screen.height,wr:window.screen.availWidth+"x"+window.screen.availHeight,sd:window.screen.colorDepth,ln:window.navigator.language?window.navigator.language:window.navigator.browserLanguage,sy:window.navigator.platform,ce:window.navigator.cookieEnabled,fv:I.f?I.v:0},R=function(){},C=function(e,t,n,i,r,s){window.qs=f.queryString(),O.ak=n,y.sv=t,O.ud=i||"",O.ts=(new Date).getTime();var p=window.qs.yh_channel||f.getChannel();if(p&&(y.param=JSON.stringify({C_ID:p})),m("_yasgeo")){var u=m("_yasgeo").split(",");O.la=u[0],O.lo=u[1],m("_yasgeo",null,{path:"/",domain:w.yasDomain,expires:73e3})}var h=(new Date).getTime(),b=null,A=!1;if(y.ft=h-e,g.addEventHandler(window,"load",function(t){var n=(new Date).getTime();y.fst=n-e,g.removeEventHandler(window,"load",arguments.callee),window.clearTimeout(b),A||o()}),b=window.setTimeout(function(){y.fst=0,y.fse=">3s",A=!0,o()},3e3),r&&f.getGeo(function(e,t){e&&m("_yasgeo",e+","+t,{path:"/",domain:v,expires:73e3})}),l(),d(),c(),s&&s[0])for(var x=0,S=s.length;x<S;x++)s[x].setAttribute("yoho_index",x+1);else g.addEventHandler(document,"click",function(e){e=e||window.event;var t=e.target||e.srcElement;if(t&&("A"===t.nodeName||"IMG"===t.nodeName&&"A"===t.parentNode.nodeName)){var n=a(e),o=n.x+","+n.y+","+e.type,i=t.getAttribute("yoho_index")||t.parentNode.getAttribute("yoho_index");i&&(o+=","+i),m("_yasmp",o,{path:"/",domain:v,expires:73e3})}ix=0})},D=function(){var e=document.getElementById("mini-app-dialog-bg"),t=document.getElementById("mini-app-dialog");t.style.display="block"===t.style.display?"none":"block",e.style.display=t.style.display},B=0;if(C.add=function(e,t,n,o,i){B>3?h.imgSend(m("_yasev"),function(){m("_yasev",null,{path:"/",domain:w.yasDomain,expires:73e3}),B=0,p(e,t,n,o,i)}):p(e,t,n,o,i)},C.sendMouseEvent=function(e,t){e=e||window.event;var n=a(e);if(t){var o={x:n.x,y:n.y,et:e.type},i=f.merge(y,O);i=f.merge(i,k),i=f.merge(i,o);var r=f.genParam(i);h.imgSend(r,function(){})}else m("_yasmp",n.x+","+n.y+","+e.type,{path:"/",domain:v,expires:73e3})},C.sendCustomInfo=function(e,t,n){if(window.appBaseLogs&&e.appop)return e.op=e.appop,C.sendAppLogs(e,!0);if(delete e.appop,e.ts=(new Date).getTime(),t){var o=f.merge(y,O);o=f.merge(o,k),o=f.merge(o,e);var i=s();i&&(o=f.merge(o,i));var r=f.genParam(o);h.imgSend(r,n)}else{var a=JSON.stringify(e);m("_yascustjson",a,{path:"/",domain:v,expires:73e3})}},C.sendAppLogs=function(e,t){if(window.appBaseLogs){var n=JSON.parse(e.param);n.F_URL&&(n.F_URL=decodeURIComponent(n.F_URL));var o=window.appBaseLogs.events[0];o.abtype&&(n.AB_TYPE=o.abtype);var i=f.merge(o,{ts:(new Date).getTime().toString(),indx:++window.indx,op:e.appop,param:n}),r=f.merge(window.appBaseLogs,{events:[i]});h.appSend("_mlogs="+encodeURIComponent(JSON.stringify(r))),window._yasloaded=!0,t&&(window.isandroidyas?window.prompt(JSON.stringify({method:"set.analyticEventIndex",arguments:{indx:window.indx}})):window.yohoInterface.triggerEvent(R,R,{method:"set.analyticEventIndex",arguments:{indx:window.indx}}))}},navigator.userAgent.indexOf("YohoBuy-android-yas")>-1){window.isandroidyas=!0;var M=window.prompt(JSON.stringify({method:"get.analyticAppData"}));u(JSON.parse(M||"{}"))}else g.addEventHandler(document,"deviceready",function(e){window._yasloaded=!1;for(var t=[],n=document.getElementsByTagName("a"),o=0;o<n.length;o++){var i=n[o].getAttribute("href");!i||/^#.*$/.test(i)||/^javascript.*$/i.test(i)||t.push(i)}g.addEventHandler(document,"click",function(e){if(window.originUrl){e=e||window.event;var t=e.target||e.srcElement;if(t=f.closest(t,"a")){var n={C_ID:window.qs.yh_channel||f.getChannel()||1,PAGE_URL:window.originUrl,PAGE_NAME:decodeURI(window.qs.title||document.title),F_URL:t.getAttribute("href")},o=t.getAttribute("fp");o&&(o=JSON.parse(o),n.F_ID=o.F_ID,n.F_NM=o.F_NM,n.F_INDEX=o.F_INDEX,n.I_INDEX=o.I_INDEX,n.I_NM=o.I_NM||""),C.sendAppLogs({appop:"YB_H5_PAGE_FLR_C",param:JSON.stringify(n)},!0)}}}),window.yohoInterface.triggerEvent(function(e){u(e,t)},R,{method:"get.analyticAppData"});var r=setInterval(function(){window._yasloaded&&(clearInterval(r),window.yohoInterface.triggerEvent(R,R,{method:"set.analyticEventIndex",arguments:{indx:window.indx}}))},500)});e.exports=C}]);
\ No newline at end of file
!function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};t.m=e,t.c=r,t.p="",t(0)}({0:function(e,t,r){String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")});var n=r(15),o=r(16);n.init(),o.init()},1:function(e,t){e.exports=function(e,t,r){if(void 0===t){var n=null;if(document.cookie)for(var o=document.cookie.split(";"),i=0;i<o.length;i++){var d=(o[i]||"").trim();if(d.substring(0,e.length+1)==e+"="){n=decodeURIComponent(d.substring(e.length+1));break}}return n}r=r||{},null===t&&(t="",r.expires=-1);var a="";if(r.expires&&("number"==typeof r.expires||r.expires.toUTCString)){var u;"number"==typeof r.expires?(u=new Date,u.setTime(u.getTime()+24*r.expires*60*60*1e3)):u=r.expires,a="; expires="+u.toUTCString()}var p=r.path?"; path="+r.path:"",s=r.domain?"; domain="+r.domain:"",c=r.secure?"; secure":"";document.cookie=[e,"=",encodeURIComponent(t),a,p,s,c].join("")}},5:function(e,t,r){var n=r(1),o=window._yohoAppName||"unknown",i={config:{reportUrl:"//badjs.yoho.cn/apm/yas2.gif"},stringify:function(e){for(var t=[],r=0;r<e.length;r++){var n=e[r],o=[];for(var i in n)n.hasOwnProperty(i)&&o.push(i+"::"+n[i]);t.push(o.join("$$"))}return t.join("**")},report:function(e,t){if(e){(new Image).src=this.config.reportUrl+"?s="+o+"&l="+e+"&t="+(new Date).getTime(),t&&t()}},getUdid:function(){return n("udid")||""||0},getUid:function(){return(n("_UID")||"").split("::")[1]||0},getReqId:function(){return n("docreqid")||0},getRoute:function(){return window._router||""}};e.exports=i},15:function(e,t,r){var n=r(1),o=r(5),i="_errLog",d={writeError:function(e,t,r,d,a){var u=JSON.parse(n(i)||"[]");u.push({tp:"err",msg:e,sc:t,ln:r,cn:d,pt:encodeURIComponent(location.href),u:o.getUid(),ud:o.getUdid(),rid:o.getReqId(),st:JSON.stringify(a&&a.stack),r:o.getRoute()}),n(i,JSON.stringify(u)),u.length>=5&&this.reportError()},clearError:function(){n(i,"[]")},reportError:function(){var e=this,t=JSON.parse(n(i)||"[]"),r=o.stringify(t);o.report(r,function(){e.clearError()})},init:function(){var e=this;window.onerror=function(t,r,n,o,i){e.writeError(t,r,n,o,i)},this.reportError()}};e.exports=d},16:function(e,t,r){function n(e){var t=e.offsetTop;return null!==e.offsetParent&&(t+=n(e.offsetParent)),t}var o=r(5),i=window.screen.height,d=[],a=!1,u=!1,p=0,s=setInterval(function(){var e,t;if(a){if(d.length)for(e=0;e<d.length;e++){if(t=d[e],!t.complete){u=!1;break}u=!0}else u=!0;u&&(p=(new Date).getTime()-_timeStart,clearInterval(s))}else{var r=document.body&&document.body.querySelectorAll("img")||[];for(e=0;e<r.length;e++){t=r[e];var o=n(t);if(o>i){a=!0;break}o<=i&&!t.hasPushed&&(t.hasPushed=1,d.push(t))}}},0),c={reportTime:function(e){var t=o.stringify(e);o.report(t)},addEvent:function(){var e=this,t=[],r=encodeURIComponent(location.href),n=o.getUid(),i=o.getUdid(),d=o.getReqId(),c=window.performance&&window.performance.timing.navigationStart||0,f=o.getRoute();_timeStart=window._timeStart||0,document.addEventListener&&document.addEventListener("DOMContentLoaded",function(e){t.push({tp:"dcl",t:(new Date).getTime()-_timeStart,pt:r,u:n,ud:i,rid:d,r:f}),(document.body&&document.body.querySelectorAll("img")||[]).length||(a=!0)},!1),window.addEventListener&&window.addEventListener("load",function(o){t.push({tp:"ld",t:(new Date).getTime()-_timeStart,pt:r,u:n,ud:i,rid:d,r:f}),u=!0,a=!0,s&&clearInterval(s),p&&t.push({tp:"fs",t:p,pt:r,u:n,ud:i,rid:d,r:f}),t.push({tp:"pf",dcl:(window.performance&&window.performance.timing.domComplete||0)-c,ld:(window.performance&&window.performance.timing.loadEventStart||0)-c,pt:r,u:n,ud:i,rid:d,r:f}),e.reportTime(t)},!1)},init:function(){this.addEvent()}};e.exports=c}});
\ No newline at end of file
... ...
!function(e){function t(o){if(n[o])return n[o].exports;var i=n[o]={exports:{},id:o,loaded:!1};return e[o].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){var o=n(17);if(window.YohoAcquisitionObject){var i=window.YohoAcquisitionObject;window[i].p&&(o.apply(this,window[i].p),window[i]=o)}e.exports=o},function(e,t){e.exports=function(e,t,n){if(void 0===t){var o=null;if(document.cookie)for(var i=document.cookie.split(";"),r=0;r<i.length;r++){var a=(i[r]||"").trim();if(a.substring(0,e.length+1)==e+"="){o=decodeURIComponent(a.substring(e.length+1));break}}return o}n=n||{},null===t&&(t="",n.expires=-1);var d="";if(n.expires&&("number"==typeof n.expires||n.expires.toUTCString)){var s;"number"==typeof n.expires?(s=new Date,s.setTime(s.getTime()+24*n.expires*60*60*1e3)):s=n.expires,d="; expires="+s.toUTCString()}var c=n.path?"; path="+n.path:"",p=n.domain?"; domain="+n.domain:"",l=n.secure?"; secure":"";document.cookie=[e,"=",encodeURIComponent(t),d,c,p,l].join("")}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var o={},i=0;i<this.length;i++){var r=this[i][0];"number"==typeof r&&(o[r]=!0)}for(i=0;i<t.length;i++){var a=t[i];"number"==typeof a[0]&&o[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(e,t,n){function o(e,t){for(var n=0;n<e.length;n++){var o=e[n],i=f[o.id];if(i){i.refs++;for(var r=0;r<i.parts.length;r++)i.parts[r](o.parts[r]);for(;r<o.parts.length;r++)i.parts.push(c(o.parts[r],t))}else{for(var a=[],r=0;r<o.parts.length;r++)a.push(c(o.parts[r],t));f[o.id]={id:o.id,refs:1,parts:a}}}}function i(e){for(var t=[],n={},o=0;o<e.length;o++){var i=e[o],r=i[0],a=i[1],d=i[2],s=i[3],c={css:a,media:d,sourceMap:s};n[r]?n[r].parts.push(c):t.push(n[r]={id:r,parts:[c]})}return t}function r(e,t){var n=g(),o=y[y.length-1];if("top"===e.insertAt)o?o.nextSibling?n.insertBefore(t,o.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),y.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function a(e){e.parentNode.removeChild(e);var t=y.indexOf(e);t>=0&&y.splice(t,1)}function d(e){var t=document.createElement("style");return t.type="text/css",r(e,t),t}function s(e){var t=document.createElement("link");return t.rel="stylesheet",r(e,t),t}function c(e,t){var n,o,i;if(t.singleton){var r=v++;n=w||(w=d(t)),o=p.bind(null,n,r,!1),i=p.bind(null,n,r,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=s(t),o=u.bind(null,n),i=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=d(t),o=l.bind(null,n),i=function(){a(n)});return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else i()}}function p(e,t,n,o){var i=n?"":o.css;if(e.styleSheet)e.styleSheet.cssText=b(t,i);else{var r=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(r,a[t]):e.appendChild(r)}}function l(e,t){var n=t.css,o=t.media;if(o&&e.setAttribute("media",o),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function u(e,t){var n=t.css,o=t.sourceMap;o&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var i=new Blob([n],{type:"text/css"}),r=e.href;e.href=URL.createObjectURL(i),r&&URL.revokeObjectURL(r)}var f={},m=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}},h=m(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),g=m(function(){return document.head||document.getElementsByTagName("head")[0]}),w=null,v=0,y=[];e.exports=function(e,t){t=t||{},void 0===t.singleton&&(t.singleton=h()),void 0===t.insertAt&&(t.insertAt="bottom");var n=i(e);return o(n,t),function(e){for(var r=[],a=0;a<n.length;a++){var d=n[a],s=f[d.id];s.refs--,r.push(s)}if(e){o(i(e),t)}for(var a=0;a<r.length;a++){var s=r[a];if(0===s.refs){for(var c=0;c<s.parts.length;c++)s.parts[c]();delete f[s.id]}}}};var b=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t){function n(){var e=document.domain.split("."),t=e.length;return t>1&&isNaN(e[t-1])?"."+e[t-2]+"."+e[t-1]:document.domain}e.exports={version:"1.0",yasPath:"/web/",yasDomain:n(),yasImgDomain:"//analytics.m.yohobuy.com/yas.gif",yasMobileDomain:"//analytics.m.yohobuy.com/yas_mobile"}},,function(e,t,n){var o=n(1);t.flashChecker=function(){var e=0,t=0,n=null;return navigator.plugins&&navigator.plugins.length>0&&(n=navigator.plugins["Shockwave Flash"])&&(e=1,t=n.description.replace("Shockwave Flash","")),{f:e,v:t}},t.Hash=function(e){var t,n=1,o=0;if(e)for(n=0,t=e.length-1;t>=0;t--)o=e.charCodeAt(t),n=(n<<6&268435455)+o+(o<<14),0!==(o=266338304&n)&&(n^=o>>21);return n},t.Random=function(){return Math.round(2147483647*Math.random())},t.hashClientInfo=function(){var e=window.navigator,n=window.history.length;e=[e.appName,e.version,e.language,e.platform,e.userAgent,e.javaEnabled(),window.screen,window.screen.colorDepth,window.document.cookie?window.document.cookie:"",window.document.referrer?window.document.referrer:""].join("");for(var o=e.length;n>0;)e+=n--^o++;return t.Hash(e)},t.merge=function(e,t){var n={};for(var o in e)n[o]=e[o];for(var i in t)n[i]=t[i];return n},t.genParam=function(e){var t=[];for(var n in e)t.push(n+"="+e[n]);return t.join("&")},t.trim=function(e){if(String.prototype.trim)return null===e?"":String.prototype.trim.call(e);var t=/^\s+/,n=/\s+$/,o="";return e?(o=e.toString().replace(t,""),o=o.replace(n,"")):void 0},t.getGeo=function(e){function t(t){var n=t.coords.longitude,o=t.coords.latitude;e(o,n)}function n(t){e(!1)}if(window.navigator.geolocation){var o={enableHighAccuracy:!0};window.navigator.geolocation.getCurrentPosition(t,n,o)}else e(!1)},t.queryString=function(){var e,t,n={},o=window.location.search.slice(1).split("&");for(t=0;t<o.length;t++)e=o[t].split("="),n[e[0]]=e[1];return n},t.closest=function(e,t){for(var n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;e&&!n.call(e,t);)e=e.parentElement;return e},t.getChannel=function(){return{boys:1,girls:2,kids:3,lifestyle:4}[o("_Channel")||"boys"]};t.getAppVersion=function(){return window.qs.app_version||window.qs.appVersion};var i={"baidu.com":0x5af3107a4037,"so.com":0x5af3107a4031,"sogou.com":0x5af3107a4035,"bing.com":0x5af3107a4039,"m.sm.cn":0x5af3107a403b,"google.com":0x5af3107a403d};"m.yohobuy.com"===location.hostname||/\.m\.yohobuy\.com$/.test(location.hostname)||(i={"baidu.com":0x5af3107a5f73,"so.com":0x5af3107a5f6b,"sogou.com":0x5af3107a5f71,"bing.com":0x5af3107a5f6d,"m.sm.cn":0x5af3107a5f75,"google.com":0x5af3107a5f6f}),t.getMktcBySeo=function(){var e,t=document.referrer;for(var n in i)if(t.indexOf(n)>-1){e=i[n];break}return e},t.setFontSize=function(){var e=document.documentElement;if(!e.style.fontSize){var t=e.clientWidth;if(!t)return;e.style.fontSize=t>=640?"40px":t/640*40+"px"}},t.getMiniAppDialog=function(){var e="//cdn.yoho.cn/static/wechat/miniapp-yohobuy.jpg?imageView2/1/w/258/h/258",t=document.getElementById("main-wrap").getAttribute("data-minipath")||e,n='<div class="mini-app-dialog-bg" id="mini-app-dialog-bg"></div>';return n+='<div class="mini-app-dialog" id="mini-app-dialog">',n+='<div class="mini-app-header"><span class="mini-app-close" id="mini-app-close"></span></div>',n+='<div class="mini-app-content"><img id="mini-app-img" src="'+t+'" onerror="this.src= \''+e+"';this.onerror=null;\" /></div>",n+='<div class="mini-app-footer">长按识别小程序码进入有货精选</div>',n+="</div>"},t.getDownloadStr=function(e){var t='<div class="top-downloadbar';return e&&(t+=" top-downloadbar-wechat"),t+='" id="top-downloadbar"><a href="javascript:void(0);" class="download-close" id="download-close"></a>\t <span class="download-icon"></span><span class="download-text">Yoho!Buy有货</span>',e?(t+='<a class="download-go-wechat" id="download-go" href="https://union.yoho.cn/union/app-downloads.html">立即打开</a>',t+='<a class="mini-app-open" id="mini-app-open" href="javascript:;">进入小程序</a>'):(t+='<p class="download-text-desc">新用户送惊喜礼包</p>',t+='<a class="download-go" id="download-go" href="https://union.yoho.cn/union/app-downloads.html">立即打开</a></div>'),t},t.getAppPath=function(){var e=document.getElementById("main-wrap").dataset||{},t=e.apppath;return t=(t||"").replace("yohobuy://yohobuy.com/goapp?","")||'openby:yohobuy={"action":"go.home","params":{"gender":"1","channel":"2"}}'},t.getUdid=function(){return o("udid")||""||0}},function(e,t,n){t=e.exports=n(2)(),t.push([e.id,'.top-downloadbar{display:block;height:2.25rem;background:rgba(68,68,68,.95);width:100%;padding:.125rem 0;position:relative;box-sizing:content-box}.top-downloadbar .download-close{margin-left:.25rem;width:.7rem;height:.7rem;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNAay06AAAAWUSURBVFiFzZhPTxNdFIefC1iJIq2ZTjG2I7QlKRQQS4IrNLrQIWrFho3GhS7dGL/C+zHcGhewM4qSlh0JK6mCiW2JsWBs6x/qiFQxUGznXWBHSmlpQd68v+2ce+8z5957zj1H+P1+nf+hGnYzyGKx4Ha7URQFWZYxm82YTCYAstksy8vLpNNpEokE8Xicb9++1byGqNZjQgi8Xi/9/f04HA6EEADouk4mk2FtbQ2AgwcP0tzcXPQ9mUwyPT1NNBpF16vboKo85nK5UFUVq9UKQDKZZG5ujoWFBdLpNLlcrsi+vr4eWZZxOp10dHSgKAqKonD27FlCoRDz8/M7O6KSxxoaGlBVlb6+PnRdJxqNMjU1xeLiYjX/Y8hmszEwMIDX60UIwcuXLwmFQvz69at2sEOHDnHjxg2OHz/O169fefLkCYlEoiagrVIUBb/fjyRJfPjwgZGREX7+/Lmtbb3H4/lnO6jbt2/T0tJCLBZjZGSEpaWlPUEBZDIZXr16hSRJuFwuPB4PkUiE9fX1ncEOHDjAzZs3aWlpYWZmhsePH5ecob0ol8sRi8VoamrC7XbT2trK69evyefzRXZ1WweqqordbufNmzc8e/as6ltUi3RdZ3x8nEgkgt1uR1XVEpsiMJfLhc/nQ9M0Hj16tC9Qm+GePn2Kpmn4fD5cLtf2YEIIVFVF13XGxsbIZrP7BlVQNptlbGwMXddRVdWIfUVgXq8Xq9VKNBote/vOnTvH3bt36erqqnrxnp4e7t27x/n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b2dk6cOIEkSdu2OjVN4/3797x9+3Z/W53/tf4F/0jgMDtkmrEAAAAASUVORK5CYII=")}.top-downloadbar .download-close,.top-downloadbar .download-icon{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);background-size:cover}.top-downloadbar .download-icon{width:2rem;height:2rem;left:1.25rem;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEYAAABGCAYAAABxLuKEAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNAay06AAABA1SURBVHic7Zx5bFTV28c/996Z6XTolO4bbaFAoIVSWiw7+HMDIQQRRFQCxrBEIbIYC4gSFFCjaILIloASoSzGFcFUFquISABBQSpbaQNtKdCZ6XSZzpTZ7vtHnfu2zNKhCqj4TfrHnHuW53zvOc95lnMrjB49WqYVuFwuGhsbuX79Ok6nE5fLhSy32uxvAUEQEEURlUpFSEgIWq0WlUrVaruANex2Ow0NDVit1r9M0NsNWZZxu904nU4aGxupra0lNDSUdu3aERIS4redX2Jqa2uxWCy3RNg7DZvNhs1mQ6fTERkZ6bOOFzFutxuTyYTdbr/lAt5pWK1W7HY70dHRXttLbP7D7XZTVVV1V5DigdPppKqqCpfL1aK8BTFGo9Grwt0AWZYxGAwtyhRiamtrcTgct12ovwtcLhcmk0n5rQJwOBzU19ffMaH+LrDZbNjtdjQaTdOK+Y+U/0dNTQ0Aotvt/kfbKX817HY7DocD8T9SvNHQ0IB4/fr1Oy3H3w52ux3V3XgSSZJEfX091dXVAISFhREVFYUsy8iyjMvlQvVPcgj/CqjVai5evEhqairjxo1DkiROnDjBkSNHSE1Nxe1243a7Ee8mUgRB4OrVq2RlZbFq1SqSkpKQZZlFixYxYcIESkpKEEURWZZbWr7/drhcLmw2G/PmzcNkMnHp0iUAfv75Z4YNG0ZiYiIenfuPIEYQBKDJZWlsbEQU2ya2w+Ggc+fOyLLMzp07eeqpp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aSxsVHJTHi2nL+xheTk5KCJuVsgSRKqQJGsuxVut/vPXWf9N0MlSZLfvXa3QhRFVFqt1ueNorsZKpUKVXh4OGaz+U7L8rdCu3btUEVHRyv53P/QhNjYWFQhISFERET8t2r+gE6nQ6/XN51KKSkpSlDpbkdaWhrwx61NvV5PTEwMVVVVd1SoO43w8HDlMqbiXaenp990euPfBJVKRWZmpvK7RdghKyvrL//W6J+C3r17t0i1tCBGq9XSp08fv9c5/o3QaDTk5OR4XWnzClSFhoZyzz33EBsbe9uEu1OIjIykT58+PpOFPrMEoiiSkZFBQkICFRUV/7qjPDw8nOTkZK8vZ5ojYPokMjKSyMhI6urqMJlM1NXVKf/A65/ieHpiQBqNBr1eT3R0dFCfAfwfkRV6AFYsdF8AAAAASUVORK5CYII=")}.top-downloadbar .download-text{position:absolute;top:50%;-webkit-transform:translateY(-80%);transform:translateY(-80%);left:3.5rem;color:#fff;font-size:.6rem}.top-downloadbar-wechat .download-text{-webkit-transform:translateY(-50%);transform:translateY(-50%)}.top-downloadbar .download-text-desc{position:absolute;top:50%;-webkit-transform:translateY(-10%) scale(.5);transform:translateY(-10%) scale(.5);-webkit-transform-origin:left center;transform-origin:left center;left:3.5rem;color:#c7c7c7;font-size:1rem}.top-downloadbar .download-go{right:.375rem;background:red}.top-downloadbar .download-go,.top-downloadbar .download-go-wechat{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);font-size:.6rem;padding:0 .375rem;height:1.125rem;line-height:1.125rem;border-radius:.125rem;color:#fff;text-decoration:none}.top-downloadbar .download-go-wechat{right:4.7rem;background:#000}.top-downloadbar .download-wechat,.top-downloadbar .mini-app-open{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:.375rem;font-size:.6rem;padding:0 .375rem;height:1.125rem;line-height:1.125rem;border-radius:.125rem;background:red;color:#fff;text-decoration:none}',""])},function(e,t,n){t=e.exports=n(2)(),t.push([e.id,'.mini-app-dialog,.mini-app-dialog-bg{display:none}.mini-app-dialog-bg{background-color:#000;opacity:.3;position:fixed;width:100%;z-index:9998;height:100%}.mini-app-dialog{position:fixed;z-index:9999;left:50%;top:50%;width:12.5rem;border-radius:.2rem;background-color:#fff;margin-left:-6.25rem;margin-top:-6.8rem}.mini-app-dialog,.mini-app-dialog div{text-align:center}.mini-app-dialog .mini-app-header{height:2rem;line-height:2rem}.mini-app-dialog .mini-app-content{padding:.625rem}.mini-app-dialog .mini-app-content img{width:6.45rem;height:6.45rem}.mini-app-dialog .mini-app-footer{height:3.65rem;line-height:3.65rem;font-size:.7rem}.mini-app-dialog .mini-app-close{width:.75rem;height:.75rem;position:absolute;right:.25rem;top:.25rem;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAmFJREFUeNrMl99OE0EUxrdL9bYYbWoEJajUP5ckXsM2IZJe0IQQqY9AGq0+QY0vUExs+gqQkCblAi0ktPckvUQoQoyihDbE6qWELN9pzjbr6O7MlK7xJB/Tdg/nN+fszOzZkG3bhszK5fIlDI+hKegRdAe6wpe/Q/vQFrQBradSqV+ymCE/MICDGF5AGeiaoWYnUAHKYwJtbTCgaQyLUMzozZpQFvAlJTCAAxjecJb9sCL0DBM48wQzlGY4Z/TXStATN9wUHBYDgJLNchX/zBjZznO2QdpT5553wLx6dy6wkFStBcVptTulzvpAJ3jfNhQCb0Mj0LTH9Sj0snOPke1lyQr+ihkeYExAexKoBd/P9D8+fhlimnwaRX0c38FxCAEpmOUBJ2gCPk34UsarPvGu0ilo8lHoZ2PQpgsuZv6BocfwuYXPVWhUErMDHle4d3GG3wDgkOEfGWq5oDUFKNm4yRkZPcCtHjLtVjGMPxGN7XCP4RbDaSveZOhtjTgRytjW3Iu24m++RuCfGv67XN4jZDoMXcfnL1z2A404P0zJ3hShlgPl8lZd8EkN+B6B67qZMvQudJ/vuS68TuCKxKnB0G8C1LEHDI9plL1icp/U8nFKuqCbAtQNrzKcjswZSWtUcZ5OOXx55eFI5aNM3ivseTo6k9BDaM3D5zUmlwvzF3pIL3g8oWoaq5WAnySPxXy3A+FuMGsEb8+dzrPb+uCHZQxvA4QW3B2n2HNRD70SALQkVvQ3MHeBaW7I+2VFscP8vxr6v7zCZLk1iv6TVxiFl7ZBvtwWXtoqAJ7KYp4LMACryxGMnWAbNgAAAABJRU5ErkJggg==");background-size:cover}',""])},function(e,t,n){var o=n(7);"string"==typeof o&&(o=[[e.id,o,""]]);n(3)(o,{});o.locals&&(e.exports=o.locals)},function(e,t,n){var o=n(8);"string"==typeof o&&(o=[[e.id,o,""]]);n(3)(o,{});o.locals&&(e.exports=o.locals)},function(module,exports){"object"!=typeof JSON&&(JSON={}),function(){"use strict";function f(e){return e<10?"0"+e:e}function this_value(){return this.valueOf()}function quote(e){return rx_escapable.lastIndex=0,rx_escapable.test(e)?'"'+e.replace(rx_escapable,function(e){var t=meta[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function str(e,t){var n,o,i,r,a,d=gap,s=t[e];switch(s&&"object"==typeof s&&"function"==typeof s.toJSON&&(s=s.toJSON(e)),"function"==typeof rep&&(s=rep.call(t,e,s)),typeof s){case"string":return quote(s);case"number":return isFinite(s)?String(s):"null";case"boolean":case"null":return String(s);case"object":if(!s)return"null";if(gap+=indent,a=[],"[object Array]"===Object.prototype.toString.apply(s)){for(r=s.length,n=0;n<r;n+=1)a[n]=str(n,s)||"null";return i=0===a.length?"[]":gap?"[\n"+gap+a.join(",\n"+gap)+"\n"+d+"]":"["+a.join(",")+"]",gap=d,i}if(rep&&"object"==typeof rep)for(r=rep.length,n=0;n<r;n+=1)"string"==typeof rep[n]&&(o=rep[n],(i=str(o,s))&&a.push(quote(o)+(gap?": ":":")+i));else for(o in s)Object.prototype.hasOwnProperty.call(s,o)&&(i=str(o,s))&&a.push(quote(o)+(gap?": ":":")+i);return i=0===a.length?"{}":gap?"{\n"+gap+a.join(",\n"+gap)+"\n"+d+"}":"{"+a.join(",")+"}",gap=d,i}}var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;"function"!=typeof JSON.stringify&&(meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(e,t,n){var o;if(gap="",indent="","number"==typeof n)for(o=0;o<n;o+=1)indent+=" ";else"string"==typeof n&&(indent=n);if(rep=t,t&&"function"!=typeof t&&("object"!=typeof t||"number"!=typeof t.length))throw new Error("JSON.stringify");return str("",{"":e})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){function walk(e,t){var n,o,i=e[t];if(i&&"object"==typeof i)for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(o=walk(i,n),void 0!==o?i[n]=o:delete i[n]);return reviver.call(e,t,i)}var j;if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}(),module.exports=JSON},function(e,t,n){var o=n(6),i=n(4),r=i.yasPath,a=i.yasImgDomain,d=i.yasMobileDomain,s=function(e,t){var n;return window.XMLHttpRequest?n=new XMLHttpRequest:"undefined"!=typeof XDomainRequest?n=new XDomainRequest:window.ActiveXObject&&(n=new ActiveXObject("Microsoft.XMLHTTP")),n};t.imgSend=function(e,t){var n=o.getAppVersion();if(!(window.appBaseLogs||window.yohoInterface||n>="5.2.1")){var i=new Image(1,1);i.src=a+r+"?"+e,i.onload=function(){i.onload=null,t&&t()}}},t.appSend=function(e,t){if(window.appBaseLogs){var n=s();n&&(n.ontimeout=function(e){console.log("timeout: ",JSON.stringify(e))},n.onerror=function(e){console.log("error: ",JSON.stringify(e))},n.onreadystatechange=function(){4==n.readyState&&200==n.status&&t&&t()},n.open("post",("https:"===document.location.protocol?"https:":"http:")+d,!0),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.send(e))}},t.downloadSend=function(e,t,n){var o=s();o&&(o.ontimeout=function(e){console.log("timeout: ",JSON.stringify(e))},o.onerror=function(e){console.log("error: ",JSON.stringify(e))},o.onreadystatechange=function(){4==o.readyState&&200==o.status&&n&&n()},o.open("post",("https:"===document.location.protocol?"https:":"http:")+e,!0),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.send(t))}},function(e,t){t.addEventHandler=function(e,t,n){e&&(e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n)},t.removeEventHandler=function(e,t,n){e&&(e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent?e.detachEvent("on"+t,n):delete e["on"+t])}},function(e,t){t.init=function(){"bind"in Function.prototype||(Function.prototype.bind=function(e){var t=this;if(arguments.length<=1)return function(){return t.apply(e,arguments)};var n=Array.prototype.slice.call(arguments,1);return function(){return t.apply(e,0===arguments.length?n:n.concat(Array.prototype.slice.call(arguments)))}}),"trim"in String.prototype||(String.prototype.trim=function(){return this.replace(/^\s+/,"").replace(/\s+$/,"")}),"indexOf"in Array.prototype||(Array.prototype.indexOf=function(e,t){void 0===t&&(t=0),t<0&&(t+=this.length),t<0&&(t=0);for(var n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1}),"lastIndexOf"in Array.prototype||(Array.prototype.lastIndexOf=function(e,t){for(void 0===t&&(t=this.length-1),t<0&&(t+=this.length),t>this.length-1&&(t=this.length-1),t++;t-- >0;)if(t in this&&this[t]===e)return t;return-1}),"forEach"in Array.prototype||(Array.prototype.forEach=function(e,t){for(var n=0,o=this.length;n<o;n++)n in this&&e.call(t,this[n],n,this)}),"map"in Array.prototype||(Array.prototype.map=function(e,t){for(var n=new Array(this.length),o=0,i=this.length;o<i;o++)o in this&&(n[o]=e.call(t,this[o],o,this));return n}),"filter"in Array.prototype||(Array.prototype.filter=function(e,t){for(var n,o=[],i=0,r=this.length;i<r;i++)i in this&&e.call(t,n=this[i],i,this)&&o.push(n);return o}),"every"in Array.prototype||(Array.prototype.every=function(e,t){for(var n=0,o=this.length;n<o;n++)if(n in this&&!e.call(t,this[n],n,this))return!1;return!0}),"some"in Array.prototype||(Array.prototype.some=function(e,t){for(var n=0,o=this.length;n<o;n++)if(n in this&&e.call(t,this[n],n,this))return!0;return!1})}},,,function(e,t,n){function o(e){var t=m.merge(b,O);t=m.merge(t,R);var n=s();n&&(t=m.merge(t,n));var o=r();o&&(t=m.merge(t,o),h("_yasmp",null,{path:"/",domain:v.yasDomain,expires:73e3}));var i=h("_yascustjson");if(i){var a=JSON.parse(i);t=m.merge(t,a),h("_yascustjson",null,{path:"/",domain:v.yasDomain,expires:73e3})}var d=m.genParam(t);e=e||function(){},g.imgSend(d,e);var c=h("_yasev");c&&g.imgSend(c,function(){h("_yasev",null,{path:"/",domain:v.yasDomain,expires:73e3})})}function i(){var e=h("_yasvd");return e?{cid:e,isNew:"N"}:(e=m.Random()^2147483647&m.hashClientInfo(),h("_yasvd",e,{path:"/",domain:y,expires:73e3}),{cid:e,isNew:"Y"})}function r(){var e=h("_yasmp");if(e){var t=e.split(",");if(3===t.length)return{x:t[0],y:t[1],et:t[2]};if(4===t.length)return{x:t[0],y:t[1],et:t[2],ix:t[3]}}return null}function a(e){var t=0,n=0;return e.pageX||e.pageY?(t=e.pageX,n=e.pageY):(e.clientX||e.clientY)&&(t=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,n=e.clientY+document.body.scrollTop+document.documentElement.scrollTop),t-=window.screen.width/2,n=window.screen.height/2-n,{x:t,y:n}}function d(){var e=window.qs.mkt_code||window.qs.union_type||m.getMktcBySeo();if(e){var t={path:"/",domain:y,expires:new Date(Date.now()+6048e5)};h("mkt_code")&&h("mkt_code")===e&&"100000000000349"!==e||h("mkt_code",e,t)}}function s(){var e=h("mkt_code")||window.qs.mkt_code||window.qs.union_type;return e?{mktc:e}:null}function c(){for(var e=window.qs.mkt_code||window.qs.union_type||m.getMktcBySeo()||"100000000000349",t=document.getElementsByTagName("a"),n=0;n<t.length;n++){var o=t[n].getAttribute("href")||"",i=o.indexOf("union.yoho.cn/union/downapp.html")>-1,r=o.indexOf("union.yoho.cn/union/app-downloads.html")>-1,a=o.indexOf("union.yoho.cn/union/ClickUnionRest/addUnion4Jump")>-1;if(i||r||a){var d=[];if(e&&-1===o.indexOf("union_type")&&d.push("union_type="+e),-1===o.indexOf("client_id")&&d.push("client_id="+I.cid),-1===o.indexOf("openby:yohobuy")&&r&&d.push(m.getAppPath()),d.length){if(-1===o.indexOf("?"))o+="?",o+=d.join("&");else{o.split("?");o=o[0]+"?"+d.join("&")+o[1]}t[n].setAttribute("href",o)}w.addEventHandler(t[n],"click",function(e){M.sendCustomInfo&&M.sendCustomInfo({op:"YB_DOWNLOAD_C",param:JSON.stringify({C_ID:window.qs.yh_channel||m.getChannel()||1,TO_URL:e.target.getAttribute("href")})},!0)})}}}function p(){if(!E)return!1;m.setFontSize();var e=(n(10),document.createElement("div"));e.innerHTML=m.getMiniAppDialog(),D.appendChild(e);var t,o=document.getElementById("mini-app-close"),i=document.getElementById("mini-app-img");w.addEventHandler(i,"touchstart",function(){t=setTimeout(function(){_hmt&&_hmt.push&&_hmt.push(["_trackEvent","小程序码","长按超过1秒"])},1e3)}),w.addEventHandler(i,"touchend",function(){clearTimeout(t)}),w.addEventHandler(o,"click",function(){_hmt&&_hmt.push&&_hmt.push(["_trackEvent","打开小程序按钮","关闭"]),B()}),(document.getElementById("main-wrap").getAttribute("data-minipath")||"").indexOf("isOpen=true")>-1&&(_hmt&&_hmt.push&&_hmt.push(["_trackEvent","打开小程序按钮","自动打开"]),B())}function l(){var e=document.getElementById("no-download"),t=document.getElementById("top-downloadbar"),o=U.some(function(e){return new RegExp(e,"i").test(location.href)});if(!(e||window.qs.nodownload||"app"===window.qs.openrefer||t||o)&&!A&&(x||E)&&(S||N)){if(t=document.getElementById("float-layer-app"),t&&t.parentNode.removeChild(t),h("_downloadBar"))return;m.setFontSize();var i=(n(9),document.createElement("div"));i.innerHTML=m.getDownloadStr(E),D.appendChild(i);var r=document.getElementById("download-close");w.addEventHandler(r,"click",function(){h("_downloadBar","close",{path:"/",domain:v.yasDomain,expires:new Date(Date.now()+6e4)}),g.downloadSend("//m.yohobuy.com/activitylog.json?close",""),i.style.display="none",_hmt&&_hmt.push&&_hmt.push(["_trackEvent","顶部下载条目","点击关闭Banner"])});var a=document.getElementById("download-go");w.addEventHandler(a,"click",function(e){g.downloadSend("//m.yohobuy.com/activitylog.json?download",""),_hmt&&_hmt.push&&_hmt.push(["_trackEvent","顶部下载条目","所有打开和下载",encodeURIComponent(e.currentTarget.getAttribute("href"))])});var d=document.getElementById("download-wechat");w.addEventHandler(d,"click",function(){g.downloadSend("//m.yohobuy.com/activitylog.json?attenion",""),_hmt&&_hmt.push&&_hmt.push(["_trackEvent","顶部下载条目","微信里面关注"])});var s=document.getElementById("mini-app-open");w.addEventHandler(s,"click",function(){_hmt&&_hmt.push&&_hmt.push(["_trackEvent","打开小程序按钮","打开"]),B()})}}function u(e,t,n,o,i){var r=h("_yasev");r?r+="&":r="",h("_yasev",r+"vd="+O.vd+"&t="+e+"&i="+t+"&l="+o+"&v="+i,{path:"/",domain:y,expires:73e3}),T++}function f(e,t){e.av&&(window.indx=e.indx,window.originUrl=e.origin||location.href,window.appBaseLogs={device:{ak:e.ak,udid:e.udid},status:[{av:e.av,udid:e.udid,sid:e.sid}],events:[{uid:e.uid,sid:e.sid,abtype:e.abtype}]},window.originUrl&&window.qs&&M.sendAppLogs({appop:"YB_H5_PAGE_OPEN_L",param:JSON.stringify({C_ID:window.qs.yh_channel||m.getChannel()||1,PAGE_URL:window.originUrl,PAGE_NAME:decodeURI(window.qs.title||document.title),ACTION_URL:t})},!1))}n(11),n(14).init();var m=n(6),h=n(1),g=n(12),w=n(13),v=n(4),y=(v.version,v.yaPath,v.yasDomain),b={h:document.domain,p:window.location.port,u:window.location.pathname,ft:0,fst:0,sv:"",ab:h("ab_5")||"",op:"YB_PAGE_OPEN_L",apf:window.location.search.indexOf("app_version=")>=0?"Y":"N",udid:m.getUdid()},A=/yoho/i.test(navigator.userAgent)||/app_version=/i.test(window.location.search)||!!window.yohoInterface,x=/(iPhone|Android|iPad|iPod|iOS)/i.test(navigator.userAgent),E=/micromessenger/i.test(navigator.userAgent),S=/m\.yohobuy\.com/i.test(document.domain),N=/feature\.yoho\.cn/i.test(document.domain)||/activity\.yoho\.cn/i.test(document.domain),U=["m.yohobuy.com/brands","m.yohobuy.com/passport"],I=i(),O={ak:"",cd:I.cid,vd:(new Date).getTime()+I.cid,ud:"",rf:document.referrer,ckf:I.isNew},k=m.flashChecker(),R={sr:window.screen.width+"x"+window.screen.height,wr:window.screen.availWidth+"x"+window.screen.availHeight,sd:window.screen.colorDepth,ln:window.navigator.language?window.navigator.language:window.navigator.browserLanguage,sy:window.navigator.platform,ce:window.navigator.cookieEnabled,fv:k.f?k.v:0},C=function(){},D=document.createElement("div");document.body.insertBefore(D,document.body.firstChild);var M=function(e,t,n,i,r,s){window.qs=m.queryString(),O.ak=n,b.sv=t,O.ud=i||"",O.ts=(new Date).getTime();var u=window.qs.yh_channel||m.getChannel();if(u&&(b.param=JSON.stringify({C_ID:u})),h("_yasgeo")){var f=h("_yasgeo").split(",");O.la=f[0],O.lo=f[1],h("_yasgeo",null,{path:"/",domain:v.yasDomain,expires:73e3})}var g=(new Date).getTime(),A=null,x=!1;if(b.ft=g-e,w.addEventHandler(window,"load",function(t){var n=(new Date).getTime();b.fst=n-e,w.removeEventHandler(window,"load",arguments.callee),window.clearTimeout(A),x||o()}),A=window.setTimeout(function(){b.fst=0,b.fse=">3s",x=!0,o()},3e3),r&&m.getGeo(function(e,t){e&&h("_yasgeo",e+","+t,{path:"/",domain:y,expires:73e3})}),p(),l(),d(),c(),s&&s[0])for(var E=0,S=s.length;E<S;E++)s[E].setAttribute("yoho_index",E+1);else w.addEventHandler(document,"click",function(e){e=e||window.event;var t=e.target||e.srcElement;if(t&&("A"===t.nodeName||"IMG"===t.nodeName&&"A"===t.parentNode.nodeName)){var n=a(e),o=n.x+","+n.y+","+e.type,i=t.getAttribute("yoho_index")||t.parentNode.getAttribute("yoho_index");i&&(o+=","+i),h("_yasmp",o,{path:"/",domain:y,expires:73e3})}ix=0})},B=function(){var e=document.getElementById("mini-app-dialog-bg"),t=document.getElementById("mini-app-dialog");e&&t&&(t.style.display="block"===t.style.display?"none":"block",e.style.display=t.style.display)},T=0;if(M.add=function(e,t,n,o,i){T>3?g.imgSend(h("_yasev"),function(){h("_yasev",null,{path:"/",domain:v.yasDomain,expires:73e3}),T=0,u(e,t,n,o,i)}):u(e,t,n,o,i)},M.sendMouseEvent=function(e,t){e=e||window.event;var n=a(e);if(t){var o={x:n.x,y:n.y,et:e.type},i=m.merge(b,O);i=m.merge(i,R),i=m.merge(i,o);var r=m.genParam(i);g.imgSend(r,function(){})}else h("_yasmp",n.x+","+n.y+","+e.type,{path:"/",domain:y,expires:73e3})},M.sendCustomInfo=function(e,t,n){if(window.appBaseLogs&&e.appop)return e.op=e.appop,M.sendAppLogs(e,!0);if(delete e.appop,e.ts=(new Date).getTime(),t){var o=m.merge(b,O);o=m.merge(o,R),o=m.merge(o,e);var i=s();i&&(o=m.merge(o,i));var r=m.genParam(o);g.imgSend(r,n)}else{var a=JSON.stringify(e);h("_yascustjson",a,{path:"/",domain:y,expires:73e3})}},M.sendAppLogs=function(e,t){if(window.appBaseLogs){var n=JSON.parse(e.param);n.F_URL&&(n.F_URL=decodeURIComponent(n.F_URL));var o=window.appBaseLogs.events[0];o.abtype&&(n.AB_TYPE=o.abtype);var i=m.merge(o,{ts:(new Date).getTime().toString(),indx:++window.indx,op:e.appop,param:n}),r=m.merge(window.appBaseLogs,{events:[i]});g.appSend("_mlogs="+encodeURIComponent(JSON.stringify(r))),window._yasloaded=!0,t&&(window.isandroidyas?window.prompt(JSON.stringify({method:"set.analyticEventIndex",arguments:{indx:window.indx}})):window.yohoInterface.triggerEvent(C,C,{method:"set.analyticEventIndex",arguments:{indx:window.indx}}))}},navigator.userAgent.indexOf("YohoBuy-android-yas")>-1){window.isandroidyas=!0;var F=window.prompt(JSON.stringify({method:"get.analyticAppData"}));f(JSON.parse(F||"{}"))}else w.addEventHandler(document,"deviceready",function(e){window._yasloaded=!1;for(var t=[],n=document.getElementsByTagName("a"),o=0;o<n.length;o++){var i=n[o].getAttribute("href");!i||/^#.*$/.test(i)||/^javascript.*$/i.test(i)||t.push(i)}w.addEventHandler(document,"click",function(e){if(window.originUrl){e=e||window.event;var t=e.target||e.srcElement;if(t=m.closest(t,"a")){var n={C_ID:window.qs.yh_channel||m.getChannel()||1,PAGE_URL:window.originUrl,PAGE_NAME:decodeURI(window.qs.title||document.title),F_URL:t.getAttribute("href")},o=t.getAttribute("fp");o&&(o=JSON.parse(o),n.F_ID=o.F_ID,n.F_NM=o.F_NM,n.F_INDEX=o.F_INDEX,n.I_INDEX=o.I_INDEX,n.I_NM=o.I_NM||""),M.sendAppLogs({appop:"YB_H5_PAGE_FLR_C",param:JSON.stringify(n)},!0)}}}),window.yohoInterface.triggerEvent(function(e){f(e,t)},C,{method:"get.analyticAppData"});var r=setInterval(function(){window._yasloaded&&(clearInterval(r),window.yohoInterface.triggerEvent(C,C,{method:"set.analyticEventIndex",arguments:{indx:window.indx}}))},500)});e.exports=M}]);
\ No newline at end of file
!function(e){function t(o){if(n[o])return n[o].exports;var i=n[o]={exports:{},id:o,loaded:!1};return e[o].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){var o=n(17);if(window.YohoAcquisitionObject){var i=window.YohoAcquisitionObject;window[i].p&&(o.apply(this,window[i].p),window[i]=o)}e.exports=o},function(e,t){e.exports=function(e,t,n){if(void 0===t){var o=null;if(document.cookie)for(var i=document.cookie.split(";"),r=0;r<i.length;r++){var a=(i[r]||"").trim();if(a.substring(0,e.length+1)==e+"="){o=decodeURIComponent(a.substring(e.length+1));break}}return o}n=n||{},null===t&&(t="",n.expires=-1);var d="";if(n.expires&&("number"==typeof n.expires||n.expires.toUTCString)){var s;"number"==typeof n.expires?(s=new Date,s.setTime(s.getTime()+24*n.expires*60*60*1e3)):s=n.expires,d="; expires="+s.toUTCString()}var c=n.path?"; path="+n.path:"",p=n.domain?"; domain="+n.domain:"",l=n.secure?"; secure":"";document.cookie=[e,"=",encodeURIComponent(t),d,c,p,l].join("")}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var o={},i=0;i<this.length;i++){var r=this[i][0];"number"==typeof r&&(o[r]=!0)}for(i=0;i<t.length;i++){var a=t[i];"number"==typeof a[0]&&o[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(e,t,n){function o(e,t){for(var n=0;n<e.length;n++){var o=e[n],i=f[o.id];if(i){i.refs++;for(var r=0;r<i.parts.length;r++)i.parts[r](o.parts[r]);for(;r<o.parts.length;r++)i.parts.push(c(o.parts[r],t))}else{for(var a=[],r=0;r<o.parts.length;r++)a.push(c(o.parts[r],t));f[o.id]={id:o.id,refs:1,parts:a}}}}function i(e){for(var t=[],n={},o=0;o<e.length;o++){var i=e[o],r=i[0],a=i[1],d=i[2],s=i[3],c={css:a,media:d,sourceMap:s};n[r]?n[r].parts.push(c):t.push(n[r]={id:r,parts:[c]})}return t}function r(e,t){var n=g(),o=y[y.length-1];if("top"===e.insertAt)o?o.nextSibling?n.insertBefore(t,o.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),y.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function a(e){e.parentNode.removeChild(e);var t=y.indexOf(e);t>=0&&y.splice(t,1)}function d(e){var t=document.createElement("style");return t.type="text/css",r(e,t),t}function s(e){var t=document.createElement("link");return t.rel="stylesheet",r(e,t),t}function c(e,t){var n,o,i;if(t.singleton){var r=v++;n=w||(w=d(t)),o=p.bind(null,n,r,!1),i=p.bind(null,n,r,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=s(t),o=u.bind(null,n),i=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=d(t),o=l.bind(null,n),i=function(){a(n)});return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else i()}}function p(e,t,n,o){var i=n?"":o.css;if(e.styleSheet)e.styleSheet.cssText=b(t,i);else{var r=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(r,a[t]):e.appendChild(r)}}function l(e,t){var n=t.css,o=t.media;if(o&&e.setAttribute("media",o),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function u(e,t){var n=t.css,o=t.sourceMap;o&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var i=new Blob([n],{type:"text/css"}),r=e.href;e.href=URL.createObjectURL(i),r&&URL.revokeObjectURL(r)}var f={},m=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}},h=m(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),g=m(function(){return document.head||document.getElementsByTagName("head")[0]}),w=null,v=0,y=[];e.exports=function(e,t){t=t||{},void 0===t.singleton&&(t.singleton=h()),void 0===t.insertAt&&(t.insertAt="bottom");var n=i(e);return o(n,t),function(e){for(var r=[],a=0;a<n.length;a++){var d=n[a],s=f[d.id];s.refs--,r.push(s)}if(e){o(i(e),t)}for(var a=0;a<r.length;a++){var s=r[a];if(0===s.refs){for(var c=0;c<s.parts.length;c++)s.parts[c]();delete f[s.id]}}}};var b=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t){function n(){var e=document.domain.split("."),t=e.length;return t>1&&isNaN(e[t-1])?"."+e[t-2]+"."+e[t-1]:document.domain}e.exports={version:"1.0",yasPath:"/web/",yasDomain:n(),yasImgDomain:"//analytics.m.yohobuy.com/yas.gif",yasMobileDomain:"//analytics.m.yohobuy.com/yas_mobile"}},,function(e,t,n){var o=n(1);t.flashChecker=function(){var e=0,t=0,n=null;return navigator.plugins&&navigator.plugins.length>0&&(n=navigator.plugins["Shockwave Flash"])&&(e=1,t=n.description.replace("Shockwave Flash","")),{f:e,v:t}},t.Hash=function(e){var t,n=1,o=0;if(e)for(n=0,t=e.length-1;t>=0;t--)o=e.charCodeAt(t),n=(n<<6&268435455)+o+(o<<14),0!==(o=266338304&n)&&(n^=o>>21);return n},t.Random=function(){return Math.round(2147483647*Math.random())},t.hashClientInfo=function(){var e=window.navigator,n=window.history.length;e=[e.appName,e.version,e.language,e.platform,e.userAgent,e.javaEnabled(),window.screen,window.screen.colorDepth,window.document.cookie?window.document.cookie:"",window.document.referrer?window.document.referrer:""].join("");for(var o=e.length;n>0;)e+=n--^o++;return t.Hash(e)},t.merge=function(e,t){var n={};for(var o in e)n[o]=e[o];for(var i in t)n[i]=t[i];return n},t.genParam=function(e){var t=[];for(var n in e)t.push(n+"="+e[n]);return t.join("&")},t.trim=function(e){if(String.prototype.trim)return null===e?"":String.prototype.trim.call(e);var t=/^\s+/,n=/\s+$/,o="";return e?(o=e.toString().replace(t,""),o=o.replace(n,"")):void 0},t.getGeo=function(e){function t(t){var n=t.coords.longitude,o=t.coords.latitude;e(o,n)}function n(t){e(!1)}if(window.navigator.geolocation){var o={enableHighAccuracy:!0};window.navigator.geolocation.getCurrentPosition(t,n,o)}else e(!1)},t.queryString=function(){var e,t,n={},o=window.location.search.slice(1).split("&");for(t=0;t<o.length;t++)e=o[t].split("="),n[e[0]]=e[1];return n},t.closest=function(e,t){for(var n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;e&&!n.call(e,t);)e=e.parentElement;return e},t.getChannel=function(){return{boys:1,girls:2,kids:3,lifestyle:4}[o("_Channel")||"boys"]};t.getAppVersion=function(){return window.qs.app_version||window.qs.appVersion};var i={"baidu.com":0x5af3107a4037,"so.com":0x5af3107a4031,"sogou.com":0x5af3107a4035,"bing.com":0x5af3107a4039,"m.sm.cn":0x5af3107a403b,"google.com":0x5af3107a403d};"m.yohobuy.com"===location.hostname||/\.m\.yohobuy\.com$/.test(location.hostname)||(i={"baidu.com":0x5af3107a5f73,"so.com":0x5af3107a5f6b,"sogou.com":0x5af3107a5f71,"bing.com":0x5af3107a5f6d,"m.sm.cn":0x5af3107a5f75,"google.com":0x5af3107a5f6f}),t.getMktcBySeo=function(){var e,t=document.referrer;for(var n in i)if(t.indexOf(n)>-1){e=i[n];break}return e},t.setFontSize=function(){var e=document.documentElement;if(!e.style.fontSize){var t=e.clientWidth;if(!t)return;e.style.fontSize=t>=640?"40px":t/640*40+"px"}},t.getMiniAppDialog=function(){var e="//cdn.yoho.cn/static/wechat/miniapp-yohobuy.jpg?imageView2/1/w/258/h/258",t=document.getElementById("main-wrap").getAttribute("data-minipath")||e,n='<div class="mini-app-dialog-bg" id="mini-app-dialog-bg"></div>';return n+='<div class="mini-app-dialog" id="mini-app-dialog">',n+='<div class="mini-app-header"><span class="mini-app-close" id="mini-app-close"></span></div>',n+='<div class="mini-app-content"><img id="mini-app-img" src="'+t+'" onerror="this.src= \''+e+"';this.onerror=null;\" /></div>",n+='<div class="mini-app-footer">长按识别小程序码进入有货精选</div>',n+="</div>"},t.getDownloadStr=function(e){var t='<div class="top-downloadbar';return e&&(t+=" top-downloadbar-wechat"),t+='" id="top-downloadbar"><a href="javascript:void(0);" class="download-close" id="download-close"></a>\t <span class="download-icon"></span><span class="download-text">Yoho!Buy有货</span>',e?(t+='<a class="download-go-wechat" id="download-go" href="https://union.yoho.cn/union/app-downloads.html">立即打开</a>',t+='<a class="mini-app-open" id="mini-app-open" href="javascript:;">进入小程序</a>'):(t+='<p class="download-text-desc">新用户送惊喜礼包</p>',t+='<a class="download-go" id="download-go" href="https://union.yoho.cn/union/app-downloads.html">立即打开</a></div>'),t},t.getAppPath=function(){var e=document.getElementById("main-wrap").dataset||{},t=e.apppath;return t=(t||"").replace("yohobuy://yohobuy.com/goapp?","")||'openby:yohobuy={"action":"go.home","params":{"gender":"1","channel":"2"}}'},t.getUdid=function(){return o("udid")||""||0}},function(e,t,n){t=e.exports=n(2)(),t.push([e.id,'.top-downloadbar{display:block;height:2.25rem;background:rgba(68,68,68,.95);width:100%;padding:.125rem 0;position:relative;box-sizing:content-box}.top-downloadbar .download-close{margin-left:.25rem;width:.7rem;height:.7rem;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNAay06AAAAWUSURBVFiFzZhPTxNdFIefC1iJIq2ZTjG2I7QlKRQQS4IrNLrQIWrFho3GhS7dGL/C+zHcGhewM4qSlh0JK6mCiW2JsWBs6x/qiFQxUGznXWBHSmlpQd68v+2ce+8z5957zj1H+P1+nf+hGnYzyGKx4Ha7URQFWZYxm82YTCYAstksy8vLpNNpEokE8Xicb9++1byGqNZjQgi8Xi/9/f04HA6EEADouk4mk2FtbQ2AgwcP0tzcXPQ9mUwyPT1NNBpF16vboKo85nK5UFUVq9UKQDKZZG5ujoWFBdLpNLlcrsi+vr4eWZZxOp10dHSgKAqKonD27FlCoRDz8/M7O6KSxxoaGlBVlb6+PnRdJxqNMjU1xeLiYjX/Y8hmszEwMIDX60UIwcuXLwmFQvz69at2sEOHDnHjxg2OHz/O169fefLkCYlEoiagrVIUBb/fjyRJfPjwgZGREX7+/Lmtbb3H4/lnO6jbt2/T0tJCLBZjZGSEpaWlPUEBZDIZXr16hSRJuFwuPB4PkUiE9fX1ncEOHDjAzZs3aWlpYWZmhsePH5ecob0ol8sRi8VoamrC7XbT2trK69evyefzRXZ1WweqqordbufNmzc8e/as6ltUi3RdZ3x8nEgkgt1uR1XVEpsiMJfLhc/nQ9M0Hj16tC9Qm+GePn2Kpmn4fD5cLtf2YEIIVFVF13XGxsbIZrP7BlVQNptlbGwMXddRVdWIfUVgXq8Xq9VKNBote/vOnTvH3bt36erqqnrxnp4e7t27x/nz57f9nkgkiEajWK1WvF5vKVh/fz8AU1NTZRc5deoUFouFQCBAT0/PjlC9vb0MDQ3R3NyMz+cra1dYs8BggFksFhwOB6lUqmLwnJycRNd1hBAMDQ1VhOvt7cXv9yOEQNd1Jicny9ouLi6STCZxOBwcPXr0D1h7eztCCGKxWNnBADMzMwSDwR3htkJNTEzw4sWLinPPzc0hhMDtdv8BczgcACwsLFQcDBAOh0vguru7K0I9f/58x3kLaxdYGgBkWSaXy1WdA8PhMACDg4MIIbh27Rqwkbx3AwWQTqfJ5/PIsvwHzGw2s7KyUhJ9dwO3GyjYyAg/fvzAbDYDv7fSZDKxurpa9SSb4TZv626hClpdXTUenCUpqVZtF4hXVlb2Ou3GVmazWRobG2sefPLkSa5evWp4Cja2MhAIABCJRGqar7Gx0fjROoDl5WUOHz5MXV31DtwKNTExUbStgUCgpgxRX19PU1MTy8vLwG+PffnyhWPHjmGz2fj06dOuoDafqcKFqMVzsixTV1dHOp0GfnuskBudTueeobZeiGo919bWBmzUEwZYPB5H13U6OjoqDu7u7q4IVQluc4LeTp2dnei6Tjwe/wO2tLRk5CqbzVZ28IULF6oOCVvhLl68WNbWZrPhcDhIJpPGE9447dPT0wAMDAyUnSAWi5HNZgkGg1XFqXA4zPj4OGtraxXzcGHNAgNsqpKEENy5cwdJknjw4MGeK6JqpSgKt27dQtM07t+/b4Qdw2O6rhMKhRBC4Pf7jQi8nzKZTEZuDYVCRU/5osA1Pz/P7OwskiQZh3y/JITgypUrSJLE7OxsSXVeElGDwSCpVIrOzk4uX768L3BCCC5dukRXVxepVIpgMFhiUwK2vr7O6OioUb0MDw//1W01mUwMDw/T19eHpmmMjo5WV/AW4CKRCE6n02iMfP78mUwmsycoRVG4fv06ra2tfPz4kYcPH5ZtEfwnTRVZljlz5szfaapslsvlYnBwEEmSgI20EYvFePfuXcU2VFtbGx6PB0VREEKgaRrBYHDvbagiw9+Nu9OnT2O3241Lkc/n+f79e1Hj7siRI0UvlULjLhKJVF3dVw22WRaLhfb2dk6cOIEkSdu2OjVN4/3797x9+3Z/W53/tf4F/0jgMDtkmrEAAAAASUVORK5CYII=")}.top-downloadbar .download-close,.top-downloadbar .download-icon{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);background-size:cover}.top-downloadbar .download-icon{width:2rem;height:2rem;left:1.25rem;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEYAAABGCAYAAABxLuKEAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNAay06AAABA1SURBVHic7Zx5bFTV28c/996Z6XTolO4bbaFAoIVSWiw7+HMDIQQRRFQCxrBEIbIYC4gSFFCjaILIloASoSzGFcFUFquISABBQSpbaQNtKdCZ6XSZzpTZ7vtHnfu2zNKhCqj4TfrHnHuW53zvOc95lnMrjB49WqYVuFwuGhsbuX79Ok6nE5fLhSy32uxvAUEQEEURlUpFSEgIWq0WlUrVaruANex2Ow0NDVit1r9M0NsNWZZxu904nU4aGxupra0lNDSUdu3aERIS4redX2Jqa2uxWCy3RNg7DZvNhs1mQ6fTERkZ6bOOFzFutxuTyYTdbr/lAt5pWK1W7HY70dHRXttLbP7D7XZTVVV1V5DigdPppKqqCpfL1aK8BTFGo9Grwt0AWZYxGAwtyhRiamtrcTgct12ovwtcLhcmk0n5rQJwOBzU19ffMaH+LrDZbNjtdjQaTdOK+Y+U/0dNTQ0Aotvt/kfbKX817HY7DocD8T9SvNHQ0IB4/fr1Oy3H3w52ux3V3XgSSZJEfX091dXVAISFhREVFYUsy8iyjMvlQvVPcgj/CqjVai5evEhqairjxo1DkiROnDjBkSNHSE1Nxe1243a7Ee8mUgRB4OrVq2RlZbFq1SqSkpKQZZlFixYxYcIESkpKEEURWZZbWr7/drhcLmw2G/PmzcNkMnHp0iUAfv75Z4YNG0ZiYiIenfuPIEYQBKDJZWlsbEQU2ya2w+Ggc+fOyLLMzp07eeqpp5g8eTJ79uyhrKyMQYMGKaaLCmizjlGr1dTU1GAymQgPD0er1aJWq5EkqU39+YMoihiNRjIyMrhw4QIGg4HU1FTlWVlZGVarFUEQlLkkJyej1+sVN0c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NjYWFQhISFERET8t2r+gE6nQ6/XN51KKSkpSlDpbkdaWhrwx61NvV5PTEwMVVVVd1SoO43w8HDlMqbiXaenp990euPfBJVKRWZmpvK7RdghKyvrL//W6J+C3r17t0i1tCBGq9XSp08fv9c5/o3QaDTk5OR4XWnzClSFhoZyzz33EBsbe9uEu1OIjIykT58+PpOFPrMEoiiSkZFBQkICFRUV/7qjPDw8nOTkZK8vZ5ojYPokMjKSyMhI6urqMJlM1NXVKf/A65/ieHpiQBqNBr1eT3R0dFCfAfwfkRV6AFYsdF8AAAAASUVORK5CYII=")}.top-downloadbar .download-text{position:absolute;top:50%;-webkit-transform:translateY(-80%);transform:translateY(-80%);left:3.5rem;color:#fff;font-size:.6rem}.top-downloadbar-wechat .download-text{-webkit-transform:translateY(-50%);transform:translateY(-50%)}.top-downloadbar .download-text-desc{position:absolute;top:50%;-webkit-transform:translateY(-10%) scale(.5);transform:translateY(-10%) scale(.5);-webkit-transform-origin:left center;transform-origin:left center;left:3.5rem;color:#c7c7c7;font-size:1rem}.top-downloadbar .download-go{right:.375rem;background:red}.top-downloadbar .download-go,.top-downloadbar .download-go-wechat{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);font-size:.6rem;padding:0 .375rem;height:1.125rem;line-height:1.125rem;border-radius:.125rem;color:#fff;text-decoration:none}.top-downloadbar .download-go-wechat{right:4.7rem;background:#000}.top-downloadbar .download-wechat,.top-downloadbar .mini-app-open{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:.375rem;font-size:.6rem;padding:0 .375rem;height:1.125rem;line-height:1.125rem;border-radius:.125rem;background:red;color:#fff;text-decoration:none}',""])},function(e,t,n){t=e.exports=n(2)(),t.push([e.id,'.mini-app-dialog,.mini-app-dialog-bg{display:none}.mini-app-dialog-bg{background-color:#000;opacity:.3;position:fixed;width:100%;z-index:9998;height:100%}.mini-app-dialog{position:fixed;z-index:9999;left:50%;top:50%;width:12.5rem;border-radius:.2rem;background-color:#fff;margin-left:-6.25rem;margin-top:-6.8rem}.mini-app-dialog,.mini-app-dialog div{text-align:center}.mini-app-dialog .mini-app-header{height:2rem;line-height:2rem}.mini-app-dialog .mini-app-content{padding:.625rem}.mini-app-dialog .mini-app-content img{width:6.45rem;height:6.45rem}.mini-app-dialog .mini-app-footer{height:3.65rem;line-height:3.65rem;font-size:.7rem}.mini-app-dialog .mini-app-close{width:.75rem;height:.75rem;position:absolute;right:.25rem;top:.25rem;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAmFJREFUeNrMl99OE0EUxrdL9bYYbWoEJajUP5ckXsM2IZJe0IQQqY9AGq0+QY0vUExs+gqQkCblAi0ktPckvUQoQoyihDbE6qWELN9pzjbr6O7MlK7xJB/Tdg/nN+fszOzZkG3bhszK5fIlDI+hKegRdAe6wpe/Q/vQFrQBradSqV+ymCE/MICDGF5AGeiaoWYnUAHKYwJtbTCgaQyLUMzozZpQFvAlJTCAAxjecJb9sCL0DBM48wQzlGY4Z/TXStATN9wUHBYDgJLNchX/zBjZznO2QdpT5553wLx6dy6wkFStBcVptTulzvpAJ3jfNhQCb0Mj0LTH9Sj0snOPke1lyQr+ihkeYExAexKoBd/P9D8+fhlimnwaRX0c38FxCAEpmOUBJ2gCPk34UsarPvGu0ilo8lHoZ2PQpgsuZv6BocfwuYXPVWhUErMDHle4d3GG3wDgkOEfGWq5oDUFKNm4yRkZPcCtHjLtVjGMPxGN7XCP4RbDaSveZOhtjTgRytjW3Iu24m++RuCfGv67XN4jZDoMXcfnL1z2A404P0zJ3hShlgPl8lZd8EkN+B6B67qZMvQudJ/vuS68TuCKxKnB0G8C1LEHDI9plL1icp/U8nFKuqCbAtQNrzKcjswZSWtUcZ5OOXx55eFI5aNM3ivseTo6k9BDaM3D5zUmlwvzF3pIL3g8oWoaq5WAnySPxXy3A+FuMGsEb8+dzrPb+uCHZQxvA4QW3B2n2HNRD70SALQkVvQ3MHeBaW7I+2VFscP8vxr6v7zCZLk1iv6TVxiFl7ZBvtwWXtoqAJ7KYp4LMACryxGMnWAbNgAAAABJRU5ErkJggg==");background-size:cover}',""])},function(e,t,n){var o=n(7);"string"==typeof o&&(o=[[e.id,o,""]]);n(3)(o,{});o.locals&&(e.exports=o.locals)},function(e,t,n){var o=n(8);"string"==typeof o&&(o=[[e.id,o,""]]);n(3)(o,{});o.locals&&(e.exports=o.locals)},function(module,exports){"object"!=typeof JSON&&(JSON={}),function(){"use strict";function f(e){return e<10?"0"+e:e}function this_value(){return this.valueOf()}function quote(e){return rx_escapable.lastIndex=0,rx_escapable.test(e)?'"'+e.replace(rx_escapable,function(e){var t=meta[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function str(e,t){var n,o,i,r,a,d=gap,s=t[e];switch(s&&"object"==typeof s&&"function"==typeof s.toJSON&&(s=s.toJSON(e)),"function"==typeof rep&&(s=rep.call(t,e,s)),typeof s){case"string":return quote(s);case"number":return isFinite(s)?String(s):"null";case"boolean":case"null":return String(s);case"object":if(!s)return"null";if(gap+=indent,a=[],"[object Array]"===Object.prototype.toString.apply(s)){for(r=s.length,n=0;n<r;n+=1)a[n]=str(n,s)||"null";return i=0===a.length?"[]":gap?"[\n"+gap+a.join(",\n"+gap)+"\n"+d+"]":"["+a.join(",")+"]",gap=d,i}if(rep&&"object"==typeof rep)for(r=rep.length,n=0;n<r;n+=1)"string"==typeof rep[n]&&(o=rep[n],(i=str(o,s))&&a.push(quote(o)+(gap?": ":":")+i));else for(o in s)Object.prototype.hasOwnProperty.call(s,o)&&(i=str(o,s))&&a.push(quote(o)+(gap?": ":":")+i);return i=0===a.length?"{}":gap?"{\n"+gap+a.join(",\n"+gap)+"\n"+d+"}":"{"+a.join(",")+"}",gap=d,i}}var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;"function"!=typeof JSON.stringify&&(meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(e,t,n){var o;if(gap="",indent="","number"==typeof n)for(o=0;o<n;o+=1)indent+=" ";else"string"==typeof n&&(indent=n);if(rep=t,t&&"function"!=typeof t&&("object"!=typeof t||"number"!=typeof t.length))throw new Error("JSON.stringify");return str("",{"":e})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){function walk(e,t){var n,o,i=e[t];if(i&&"object"==typeof i)for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(o=walk(i,n),void 0!==o?i[n]=o:delete i[n]);return reviver.call(e,t,i)}var j;if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}(),module.exports=JSON},function(e,t,n){var o=n(6),i=n(4),r=i.yasPath,a=i.yasImgDomain,d=i.yasMobileDomain,s=function(e,t){var n;return window.XMLHttpRequest?n=new XMLHttpRequest:"undefined"!=typeof XDomainRequest?n=new XDomainRequest:window.ActiveXObject&&(n=new ActiveXObject("Microsoft.XMLHTTP")),n};t.imgSend=function(e,t){var n=o.getAppVersion();if(!(window.appBaseLogs||window.yohoInterface||n>="5.2.1")){var i=new Image(1,1);i.src=a+r+"?"+e,i.onload=function(){i.onload=null,t&&t()}}},t.appSend=function(e,t){if(window.appBaseLogs){var n=s();n&&(n.ontimeout=function(e){console.log("timeout: ",JSON.stringify(e))},n.onerror=function(e){console.log("error: ",JSON.stringify(e))},n.onreadystatechange=function(){4==n.readyState&&200==n.status&&t&&t()},n.open("post",("https:"===document.location.protocol?"https:":"http:")+d,!0),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.send(e))}},t.downloadSend=function(e,t,n){var o=s();o&&(o.ontimeout=function(e){console.log("timeout: ",JSON.stringify(e))},o.onerror=function(e){console.log("error: ",JSON.stringify(e))},o.onreadystatechange=function(){4==o.readyState&&200==o.status&&n&&n()},o.open("post",("https:"===document.location.protocol?"https:":"http:")+e,!0),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.send(t))}},function(e,t){t.addEventHandler=function(e,t,n){e&&(e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n)},t.removeEventHandler=function(e,t,n){e&&(e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent?e.detachEvent("on"+t,n):delete e["on"+t])}},function(e,t){t.init=function(){"bind"in Function.prototype||(Function.prototype.bind=function(e){var t=this;if(arguments.length<=1)return function(){return t.apply(e,arguments)};var n=Array.prototype.slice.call(arguments,1);return function(){return t.apply(e,0===arguments.length?n:n.concat(Array.prototype.slice.call(arguments)))}}),"trim"in String.prototype||(String.prototype.trim=function(){return this.replace(/^\s+/,"").replace(/\s+$/,"")}),"indexOf"in Array.prototype||(Array.prototype.indexOf=function(e,t){void 0===t&&(t=0),t<0&&(t+=this.length),t<0&&(t=0);for(var n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1}),"lastIndexOf"in Array.prototype||(Array.prototype.lastIndexOf=function(e,t){for(void 0===t&&(t=this.length-1),t<0&&(t+=this.length),t>this.length-1&&(t=this.length-1),t++;t-- >0;)if(t in this&&this[t]===e)return t;return-1}),"forEach"in Array.prototype||(Array.prototype.forEach=function(e,t){for(var n=0,o=this.length;n<o;n++)n in this&&e.call(t,this[n],n,this)}),"map"in Array.prototype||(Array.prototype.map=function(e,t){for(var n=new Array(this.length),o=0,i=this.length;o<i;o++)o in this&&(n[o]=e.call(t,this[o],o,this));return n}),"filter"in Array.prototype||(Array.prototype.filter=function(e,t){for(var n,o=[],i=0,r=this.length;i<r;i++)i in this&&e.call(t,n=this[i],i,this)&&o.push(n);return o}),"every"in Array.prototype||(Array.prototype.every=function(e,t){for(var n=0,o=this.length;n<o;n++)if(n in this&&!e.call(t,this[n],n,this))return!1;return!0}),"some"in Array.prototype||(Array.prototype.some=function(e,t){for(var n=0,o=this.length;n<o;n++)if(n in this&&e.call(t,this[n],n,this))return!0;return!1})}},,,function(e,t,n){function o(e){var t=m.merge(b,k);t=m.merge(t,C);var n=s();n&&(t=m.merge(t,n));var o=r();o&&(t=m.merge(t,o),h("_yasmp",null,{path:"/",domain:v.yasDomain,expires:73e3}));var i=h("_yascustjson");if(i){var a=JSON.parse(i);t=m.merge(t,a),h("_yascustjson",null,{path:"/",domain:v.yasDomain,expires:73e3})}var d=m.genParam(t);e=e||function(){},g.imgSend(d,e);var c=h("_yasev");c&&g.imgSend(c,function(){h("_yasev",null,{path:"/",domain:v.yasDomain,expires:73e3})})}function i(){var e=h("_yasvd");return e?{cid:e,isNew:"N"}:(e=m.Random()^2147483647&m.hashClientInfo(),h("_yasvd",e,{path:"/",domain:y,expires:73e3}),{cid:e,isNew:"Y"})}function r(){var e=h("_yasmp");if(e){var t=e.split(",");if(3===t.length)return{x:t[0],y:t[1],et:t[2]};if(4===t.length)return{x:t[0],y:t[1],et:t[2],ix:t[3]}}return null}function a(e){var t=0,n=0;return e.pageX||e.pageY?(t=e.pageX,n=e.pageY):(e.clientX||e.clientY)&&(t=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,n=e.clientY+document.body.scrollTop+document.documentElement.scrollTop),t-=window.screen.width/2,n=window.screen.height/2-n,{x:t,y:n}}function d(){var e=window.qs.mkt_code||window.qs.union_type||m.getMktcBySeo();if(e){var t={path:"/",domain:y,expires:new Date(Date.now()+6048e5)};h("mkt_code")&&h("mkt_code")===e&&"100000000000349"!==e||h("mkt_code",e,t)}}function s(){var e=h("mkt_code")||window.qs.mkt_code||window.qs.union_type;return e?{mktc:e}:null}function c(){for(var e=window.qs.mkt_code||window.qs.union_type||m.getMktcBySeo()||"100000000000349",t=document.getElementsByTagName("a"),n=0;n<t.length;n++){var o=t[n].getAttribute("href")||"",i=o.indexOf("union.yoho.cn/union/downapp.html")>-1,r=o.indexOf("union.yoho.cn/union/app-downloads.html")>-1,a=o.indexOf("union.yoho.cn/union/ClickUnionRest/addUnion4Jump")>-1;if(i||r||a){var d=[];if(e&&-1===o.indexOf("union_type")&&d.push("union_type="+e),-1===o.indexOf("client_id")&&d.push("client_id="+O.cid),-1===o.indexOf("openby:yohobuy")&&r&&d.push(m.getAppPath()),d.length){if(-1===o.indexOf("?"))o+="?",o+=d.join("&");else{o.split("?");o=o[0]+"?"+d.join("&")+o[1]}t[n].setAttribute("href",o)}w.addEventHandler(t[n],"click",function(e){B.sendCustomInfo&&B.sendCustomInfo({op:"YB_DOWNLOAD_C",param:JSON.stringify({C_ID:window.qs.yh_channel||m.getChannel()||1,TO_URL:e.target.getAttribute("href")})},!0)})}}}function p(){if(!E)return!1;m.setFontSize();var e=(n(10),document.createElement("div"));e.innerHTML=m.getMiniAppDialog(),M.appendChild(e);var t,o=document.getElementById("mini-app-close"),i=document.getElementById("mini-app-img");w.addEventHandler(i,"touchstart",function(){t=setTimeout(function(){_hmt&&_hmt.push&&_hmt.push(["_trackEvent","小程序码","长按超过1秒"])},1e3)}),w.addEventHandler(i,"touchend",function(){clearTimeout(t)}),w.addEventHandler(o,"click",function(){_hmt&&_hmt.push&&_hmt.push(["_trackEvent","打开小程序按钮","关闭"]),T()}),(document.getElementById("main-wrap").getAttribute("data-minipath")||"").indexOf("isOpen=true")>-1&&(_hmt&&_hmt.push&&_hmt.push(["_trackEvent","打开小程序按钮","自动打开"]),T())}function l(){var e=document.getElementById("no-download"),t=document.getElementById("top-downloadbar"),o=I.some(function(e){return new RegExp(e,"i").test(location.href)});if(!(e||window.qs.nodownload||"app"===window.qs.openrefer||t||o)&&!A&&(x||E||S)&&(N||U)){if(t=document.getElementById("float-layer-app"),t&&t.parentNode.removeChild(t),h("_downloadBar"))return;m.setFontSize();var i=(n(9),document.createElement("div"));i.innerHTML=m.getDownloadStr(E),M.appendChild(i);var r=document.getElementById("download-close");w.addEventHandler(r,"click",function(){h("_downloadBar","close",{path:"/",domain:v.yasDomain,expires:new Date(Date.now()+6e4)}),g.downloadSend("//m.yohobuy.com/activitylog.json?close",""),i.style.display="none",_hmt&&_hmt.push&&_hmt.push(["_trackEvent","顶部下载条目","点击关闭Banner"])});var a=document.getElementById("download-go");w.addEventHandler(a,"click",function(e){g.downloadSend("//m.yohobuy.com/activitylog.json?download",""),_hmt&&_hmt.push&&_hmt.push(["_trackEvent","顶部下载条目","所有打开和下载",encodeURIComponent(e.currentTarget.getAttribute("href"))])});var d=document.getElementById("download-wechat");w.addEventHandler(d,"click",function(){g.downloadSend("//m.yohobuy.com/activitylog.json?attenion",""),_hmt&&_hmt.push&&_hmt.push(["_trackEvent","顶部下载条目","微信里面关注"])});var s=document.getElementById("mini-app-open");w.addEventHandler(s,"click",function(){_hmt&&_hmt.push&&_hmt.push(["_trackEvent","打开小程序按钮","打开"]),T()})}}function u(e,t,n,o,i){var r=h("_yasev");r?r+="&":r="",h("_yasev",r+"vd="+k.vd+"&t="+e+"&i="+t+"&l="+o+"&v="+i,{path:"/",domain:y,expires:73e3}),F++}function f(e,t){e.av&&(window.indx=e.indx,window.originUrl=e.origin||location.href,window.appBaseLogs={device:{ak:e.ak,udid:e.udid},status:[{av:e.av,udid:e.udid,sid:e.sid}],events:[{uid:e.uid,sid:e.sid,abtype:e.abtype}]},window.originUrl&&window.qs&&B.sendAppLogs({appop:"YB_H5_PAGE_OPEN_L",param:JSON.stringify({C_ID:window.qs.yh_channel||m.getChannel()||1,PAGE_URL:window.originUrl,PAGE_NAME:decodeURI(window.qs.title||document.title),ACTION_URL:t})},!1))}n(11),n(14).init();var m=n(6),h=n(1),g=n(12),w=n(13),v=n(4),y=(v.version,v.yaPath,v.yasDomain),b={h:document.domain,p:window.location.port,u:window.location.pathname,ft:0,fst:0,sv:"",ab:h("ab_5")||"",op:"YB_PAGE_OPEN_L",apf:window.location.search.indexOf("app_version=")>=0?"Y":"N",udid:m.getUdid()},A=/yoho/i.test(navigator.userAgent)||/app_version=/i.test(window.location.search)||!!window.yohoInterface,x=/(iPhone|Android|iPad|iPod|iOS)/i.test(navigator.userAgent),E=/micromessenger/i.test(navigator.userAgent),S="miniprogram"===window.__wxjs_environment,N=/m\.yohobuy\.com/i.test(document.domain),U=/feature\.yoho\.cn/i.test(document.domain)||/activity\.yoho\.cn/i.test(document.domain),I=["m.yohobuy.com/brands","m.yohobuy.com/passport"],O=i(),k={ak:"",cd:O.cid,vd:(new Date).getTime()+O.cid,ud:"",rf:document.referrer,ckf:O.isNew},R=m.flashChecker(),C={sr:window.screen.width+"x"+window.screen.height,wr:window.screen.availWidth+"x"+window.screen.availHeight,sd:window.screen.colorDepth,ln:window.navigator.language?window.navigator.language:window.navigator.browserLanguage,sy:window.navigator.platform,ce:window.navigator.cookieEnabled,fv:R.f?R.v:0},D=function(){},M=document.createElement("div");document.body.insertBefore(M,document.body.firstChild);var B=function(e,t,n,i,r,s){window.qs=m.queryString(),k.ak=n,b.sv=t,k.ud=i||"",k.ts=(new Date).getTime();var u=window.qs.yh_channel||m.getChannel();if(u&&(b.param=JSON.stringify({C_ID:u})),h("_yasgeo")){var f=h("_yasgeo").split(",");k.la=f[0],k.lo=f[1],h("_yasgeo",null,{path:"/",domain:v.yasDomain,expires:73e3})}var g=(new Date).getTime(),A=null,x=!1;if(b.ft=g-e,w.addEventHandler(window,"load",function(t){var n=(new Date).getTime();b.fst=n-e,w.removeEventHandler(window,"load",arguments.callee),window.clearTimeout(A),x||o()}),A=window.setTimeout(function(){b.fst=0,b.fse=">3s",x=!0,o()},3e3),r&&m.getGeo(function(e,t){e&&h("_yasgeo",e+","+t,{path:"/",domain:y,expires:73e3})}),p(),l(),d(),c(),s&&s[0])for(var E=0,S=s.length;E<S;E++)s[E].setAttribute("yoho_index",E+1);else w.addEventHandler(document,"click",function(e){e=e||window.event;var t=e.target||e.srcElement;if(t&&("A"===t.nodeName||"IMG"===t.nodeName&&"A"===t.parentNode.nodeName)){var n=a(e),o=n.x+","+n.y+","+e.type,i=t.getAttribute("yoho_index")||t.parentNode.getAttribute("yoho_index");i&&(o+=","+i),h("_yasmp",o,{path:"/",domain:y,expires:73e3})}ix=0})},T=function(){var e=document.getElementById("mini-app-dialog-bg"),t=document.getElementById("mini-app-dialog");e&&t&&(t.style.display="block"===t.style.display?"none":"block",e.style.display=t.style.display)},F=0;if(B.add=function(e,t,n,o,i){F>3?g.imgSend(h("_yasev"),function(){h("_yasev",null,{path:"/",domain:v.yasDomain,expires:73e3}),F=0,u(e,t,n,o,i)}):u(e,t,n,o,i)},B.sendMouseEvent=function(e,t){e=e||window.event;var n=a(e);if(t){var o={x:n.x,y:n.y,et:e.type},i=m.merge(b,k);i=m.merge(i,C),i=m.merge(i,o);var r=m.genParam(i);g.imgSend(r,function(){})}else h("_yasmp",n.x+","+n.y+","+e.type,{path:"/",domain:y,expires:73e3})},B.sendCustomInfo=function(e,t,n){if(window.appBaseLogs&&e.appop)return e.op=e.appop,B.sendAppLogs(e,!0);if(delete e.appop,e.ts=(new Date).getTime(),t){var o=m.merge(b,k);o=m.merge(o,C),o=m.merge(o,e);var i=s();i&&(o=m.merge(o,i));var r=m.genParam(o);g.imgSend(r,n)}else{var a=JSON.stringify(e);h("_yascustjson",a,{path:"/",domain:y,expires:73e3})}},B.sendAppLogs=function(e,t){if(window.appBaseLogs){var n=JSON.parse(e.param);n.F_URL&&(n.F_URL=decodeURIComponent(n.F_URL));var o=window.appBaseLogs.events[0];o.abtype&&(n.AB_TYPE=o.abtype);var i=m.merge(o,{ts:(new Date).getTime().toString(),indx:++window.indx,op:e.appop,param:n}),r=m.merge(window.appBaseLogs,{events:[i]});g.appSend("_mlogs="+encodeURIComponent(JSON.stringify(r))),window._yasloaded=!0,t&&(window.isandroidyas?window.prompt(JSON.stringify({method:"set.analyticEventIndex",arguments:{indx:window.indx}})):window.yohoInterface.triggerEvent(D,D,{method:"set.analyticEventIndex",arguments:{indx:window.indx}}))}},navigator.userAgent.indexOf("YohoBuy-android-yas")>-1){window.isandroidyas=!0;var j=window.prompt(JSON.stringify({method:"get.analyticAppData"}));f(JSON.parse(j||"{}"))}else w.addEventHandler(document,"deviceready",function(e){window._yasloaded=!1;for(var t=[],n=document.getElementsByTagName("a"),o=0;o<n.length;o++){var i=n[o].getAttribute("href");!i||/^#.*$/.test(i)||/^javascript.*$/i.test(i)||t.push(i)}w.addEventHandler(document,"click",function(e){if(window.originUrl){e=e||window.event;var t=e.target||e.srcElement;if(t=m.closest(t,"a")){var n={C_ID:window.qs.yh_channel||m.getChannel()||1,PAGE_URL:window.originUrl,PAGE_NAME:decodeURI(window.qs.title||document.title),F_URL:t.getAttribute("href")},o=t.getAttribute("fp");o&&(o=JSON.parse(o),n.F_ID=o.F_ID,n.F_NM=o.F_NM,n.F_INDEX=o.F_INDEX,n.I_INDEX=o.I_INDEX,n.I_NM=o.I_NM||""),B.sendAppLogs({appop:"YB_H5_PAGE_FLR_C",param:JSON.stringify(n)},!0)}}}),window.yohoInterface.triggerEvent(function(e){f(e,t)},D,{method:"get.analyticAppData"});var r=setInterval(function(){window._yasloaded&&(clearInterval(r),window.yohoInterface.triggerEvent(D,D,{method:"set.analyticEventIndex",arguments:{indx:window.indx}}))},500)});e.exports=B}]);
\ No newline at end of file
... ...