Authored by bblu

download-app

... ... @@ -22,6 +22,7 @@
<url-pattern>/downshow.html</url-pattern>
<url-pattern>/downyohoshow.html</url-pattern>
<url-pattern>/downapp3.html</url-pattern>
<url-pattern>/app-downloads.html</url-pattern>
</servlet-mapping>
<servlet-mapping>
... ...
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Yoho!Buy有货|年轻人潮流购物中心,中国潮流购物风向标</title>
<meta name="keywords"
content="Yoho!Buy有货 有货官网,潮流志,潮流男装,潮牌,美国潮牌,日本潮牌,香港潮牌,潮牌店,新品首发,欧美潮流,全球购,代购,时尚,流行,特卖,B2C,正品,购物网站,网上购物,货到付款">
<meta name="description" content="Yoho!Buy有货,年轻人潮流购物中心,中国最大的潮流商品购物网站。100%品牌正品保证,支持货到付款。">
<meta name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
<meta http-equiv="cleartype" content="on">
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
<meta content="telephone=no" name="format-detection"/>
<meta content="email=no" name="format-detection"/>
<link rel="dns-prefetch" href="http://cdn.yoho.cn">
<link rel="dns-prefetch" href="http://static.yohobuy.com">
<link rel="dns-prefetch" href="http://img10.static.yhbimg.com">
<link rel="dns-prefetch" href="http://img11.static.yhbimg.com">
<link rel="dns-prefetch" href="http://img12.static.yhbimg.com">
<link rel="dns-prefetch" href="http://img13.static.yhbimg.com">
<link rel="dns-prefetch" href="http://analytics.m.yohobuy.com">
<link rel="dns-prefetch" href="http://search.m.yohobuy.com">
<link rel="dns-prefetch" href="http://list.m.yohobuy.com">
<link rel="dns-prefetch" href="http://guang.m.yohobuy.com">
<script type="text/javascript">
var isWechat = /micromessenger/i.test(navigator.userAgent || '');
if (isWechat) document.title = document.title.replace(' | Yoho!Buy有货 | 潮流购物逛不停', '');
</script>
<script type="text/javascript">
(function (d, c) {
var e = d.documentElement, a = "orientationchange" in window ? "orientationchange" : "resize", b = function () {
var f = e.clientWidth;
if (!f) {
return
}
if (f >= 640) {
e.style.fontSize = "40px"
} else {
e.style.fontSize = 40 * (f / 640) + "px"
}
};
if (!d.addEventListener) {
return
}
b();
c.addEventListener(a, b, false);
d.addEventListener("DOMContentLoaded", b, false)
})(document, window);
</script>
<link rel="stylesheet" media="all" href="http://cdn.yoho.cn/m-yohobuy-node/5.3.20/common.css">
<link rel="stylesheet" media="all" href="http://cdn.yoho.cn/m-yohobuy-node/5.3.20/activity.app-downloads.css">
<link rel="apple-touch-icon-precomposed"
href="http://static.yohobuy.com/m/v1/img/touch/apple-touch-icon-144x144-precomposed-new.png">
<link rel="apple-touch-startup-image" sizes="640x920"
href="http://static.yohobuy.com/m/v1/img/startup/startup-retina.png"
media="screen and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2)">
<link rel="apple-touch-startup-image" sizes="320x460" href="http://static.yohobuy.com/m/v1/img/startup/startup.png"
media="screen and (max-device-width: 320)">
</head>
<body class=" ">
<div class="main-wrap" id="main-wrap">
<div class="container">
<div id="no-download"></div>
<div class="banner"></div>
<div class="main">
<div class="slide-box">
<div class="swiper-wrapper clearfix">
<div class="yohobuy" tag="0">
<div class="swiper-yohobuy bg"></div>
<div class="ewm-area">
<img src="http://cdn.yoho.cn/yohocn/160315/images/ewm-yohobuy.png"/>
<div class="ewm-info"></div>
</div>
<span id="download" class="download-btn">点击下载 · Yoho!Buy有货</span>
</div>
</div>
</div>
<div class="slide-pagination clearfix">
</div>
</div>
<div class="footer">
CopyRight © 2007-2017 YOHO!新力传媒
</div>
<div class="mask">
<div class="wx-img1"></div>
<div class="wx-img2"></div>
<div class="wx-img3"></div>
</div>
</div>
</div>
<script>var STATIC_RESOURCE_PATH = 'http://cdn.yoho.cn/m-yohobuy-node/assets';</script>
<script src="http://cdn.yoho.cn/m-yohobuy-node/5.3.20/libs.js"></script>
<!--<script src="http://cdn.yoho.cn/m-yohobuy-node/5.3.20/activity.app-downloads.js"></script>-->
<script type="text/javascript">
webpackJsonp([89], {
0: function (e, n, o) {
(function (e) {
"use strict";
function n(e) {
return e && e.__esModule ? e : {
default: e
}
}
var t = o(3)
, i = n(t);
o(252),
o(6);
var a, s = 'yohobuy://yohobuy.com/goapp?openby:yohobuy={"action":"go.home","params":{"gender":"1","channel":"2"}}', r = navigator.userAgent.toLowerCase(), d = r.indexOf("os") > -1 || r.indexOf("iphone") > -1 || r.indexOf("mac") > -1 || r.indexOf("ipad") > -1, l = s;
setTimeout(function () {
var e = +new Date;
window.setTimeout(function () {
a && document.body.removeChild(a),
+new Date - e > 500 && (s = d ? "http://itunes.apple.com/us/app/id490655927?ls=1&mt=8" : "http://yoho-apps.qiniudn.com/YohoBuy_YOHO.apk",
location.href = s)
}, 1e3),
d ? window.location.href = l : (a = document.createElement("iframe"),
a.src = l,
a.style.display = "none",
document.body.appendChild(a))
}, 500);
var u = {
boys: 1,
girls: 2,
kids: 3,
lifestyle: 4
};
e("#download").click(function () {
var n, o = window.cookie("_Channel");
n = d ? "http://itunes.apple.com/us/app/id490655927?ls=1&mt=8" : "http://yoho-apps.qiniudn.com/YohoBuy_YOHO.apk",
e.get("//m.yohobuy.com/activitylog.json?download2", function () {
}),
"undefined" != typeof _yas && _yas.sendCustomInfo && _yas.sendCustomInfo({
op: "YB_DOWNLOAD_C",
param: (0,
i.default)({
C_ID: u[o],
TO_URL: encodeURIComponent(n)
})
}, !0),
location.href = n
})
}
).call(n, o(1))
},
3: function (e, n, o) {
e.exports = {
default: o(10),
__esModule: !0
}
},
4: function (e, n) {
var o = e.exports = {
version: "2.4.0"
};
"number" == typeof __e && (__e = o)
},
6: function (e, n, o) {
"use strict";
function t(e) {
return e && e.__esModule ? e : {
default: e
}
}
function i(e) {
var n, o = document.cookie;
return o && (o = o.split(";"),
o.forEach(function (o) {
if (o.indexOf(e) > -1)
return void (n = decodeURIComponent(g.trim(o.replace(e + "=", ""))))
})),
n
}
function a(e, n, o) {
var t, i, a, s, r = "";
"undefined" != typeof n && (o = o || {},
null === n && (n = "",
o.expires = -1),
o.expires && ("number" == typeof o.expires || o.expires.toUTCString) && ("number" == typeof o.expires ? (s = new Date,
s.setTime(s.getTime() + 24 * o.expires * 60 * 60 * 1e3)) : s = o.expires,
r = "; expires=" + s.toUTCString()),
t = o.path ? "; path=" + o.path : "",
i = o.domain ? "; domain=" + o.domain : "",
a = o.secure ? "; secure" : "",
document.cookie = [e, "=", encodeURIComponent(n), r, t, i, a].join(""))
}
function s() {
var e = !!navigator.cookieEnabled;
return "undefined" != typeof navigator.cookieEnabled || e || (document.cookie = "testcookie",
e = document.cookie.indexOf("testcookie") !== -1),
e
}
function r() {
var e, n = i("_UID");
return "undefined" == typeof n ? 0 : (e = n.split("::"),
"undefined" == typeof e || e.length < 4 ? 0 : e)
}
function d() {
var e = r();
return 0 === e ? 0 : e[1]
}
function l() {
var e = i("_g");
return "undefined" == typeof e ? "" : JSON.parse(e).k
}
function u() {
var e;
0 !== C.length && (C.addClass("bottom"),
"static" === C.css("position") && C.css("position", ""),
e = Math.min(g(window).height(), window.screen.availHeight),
g("body").height() >= e - parseInt(C.css("height"), 0) && C.removeClass("bottom"),
C.show())
}
function c(e) {
var n = g(e).outerHeight();
e && C.css("margin-bottom", n + "px")
}
function p() {
var e, n, o = [], t = window.location.search.slice(1).split("&");
for (n = 0; n < t.length; n++)
e = t[n].split("="),
o.push(e[0]),
o[e[0]] = e[1];
return o
}
function h(e) {
return e.replace(/(\d{3})\d{4}(\d{4})/, "$1****$2")
}
function f(e) {
var n = "http://union.yoho.cn/union/downapp.html"
, o = new Date;
setTimeout(function () {
var t = e || p().union_type || i("unionTypeYas") || !1;
new Date - o < 2e3 && (t && (n += "?union_type=" + t),
window._yas && window._yas.sendCustomInfo && window._yas.sendCustomInfo({
op: "YB_DOWNLOAD_C",
param: (0,
y.default)({
C_ID: O[i("_Channel")] || 1,
TO_URL: n
})
}, !0),
window.location = n)
}, 500)
}
function m(e) {
if (!window._yas || !window._yas.sendCustomInfo)
return !1;
if (!e.REC_POSE || !e.PRD_ID)
return !0;
var n = O[i("_Channel")] || 1
, o = e.isAppOp;
e = g.extend({
REC_ID: v,
PRD_NUM: 0,
C_ID: n,
ACTION_ID: 0,
PAGE_NUM: 1
}, e),
delete e.isAppOp,
window._yas.sendCustomInfo({
op: "YB_CHOOSE_FOR_YOU_Y",
appop: o ? "YB_CHOOSE_FOR_YOU" : "",
param: (0,
y.default)(e)
}, !0)
}
var w = o(3)
, y = t(w)
, g = o(1)
, C = g("#yoho-footer")
, _ = g(".yoho-page")
, b = g(".yoho-header")
, v = (new Date).getTime() + "_H5_YOHOBUY_" + Math.floor(1e6 * Math.random() + 1e6) + "_" + Math.floor(1e6 * Math.random() + 1e6)
, O = {
boys: 1,
girls: 2,
kids: 3,
lifestyle: 4
};
o(9),
g.extend({
queryString: p
}),
function () {
var e = C.children(".op-row")
, n = g(".back-to-top")
, o = g(".float-top")
, t = r();
setTimeout(function () {
u()
}, 500),
0 === t ? e.prepend('<a href="/signin.html?refer=' + location.href + '">登录</a><span class="sep-line">|</span><a href="/reg.html">注册</a>') : e.prepend('<span>Hi,</span><a class="user-name" href="/home?tmp=' + Math.random() + '">' + t[0] + '</a><a href="/passport/signout/index">退出</a>'),
n.length > 0 && n.on("touchend touchcancel", function (e) {
return g(window).scrollTop(0),
e.preventDefault(),
!1
}),
o.length > 0 && o.on("click", function (e) {
return g(window).scrollTop(0),
e.preventDefault(),
!1
}),
C.removeClass("hide"),
p().union_type && a("unionTypeYas", p().union_type, {
path: "/"
})
}(),
b.on("touchstart", "a", function () {
b.find("a").removeClass("highlight"),
g(this).addClass("highlight")
}).on("touchend touchcancel", "a", function () {
g(this).removeClass("highlight")
}),
_.on("touchstart", ".tap-hightlight", function () {
g(this).siblings(".tap-hightlight").removeClass("highlight"),
g(this).addClass("highlight")
}).on("touchend touchcancel", ".tap-hightlight", function () {
g(this).removeClass("highlight")
}),
g(".nav-home").on("touchstart", function () {
g(".homebuttom").toggleClass("hide")
}),
function () {
var e, n, o = 0, t = "webkit moz ms o".split(" "), i = window.requestAnimationFrame, a = window.cancelAnimationFrame;
for (n = 0; n < t.length && (!i || !a); n++)
e = t[n],
i = i || window[e + "RequestAnimationFrame"],
a = a || window[e + "CancelAnimationFrame"] || window[e + "CancelRequestAnimationFrame"];
i && a || (i = function (e) {
var n = (new Date).getTime()
, t = Math.max(0, 16 - (n - o))
, i = window.setTimeout(function () {
e(n + t)
}, t);
return o = n + t,
i
}
,
a = function (e) {
window.clearTimeout(e)
}
),
window.requestAnimationFrame = i,
window.cancelAnimationFrame = a
}(),
11 === C.find(".user-name").text().length && C.find(".user-name").html(h(C.find(".user-name").text())),
function () {
var e = i("_Channel")
, n = g("#yoho-header, .homebuttom")
, o = g(".footer-tab .tab-item.current");
if (/^\/home/.test(location.pathname))
n.removeClass("girls", "life-style", "kids").addClass("boys");
else
switch (e) {
case "boys":
n.hasClass("boys") || n.addClass("boys");
break;
case "girls":
n.hasClass("girls") || n.addClass("girls");
break;
case "lifestyle":
n.hasClass("life-style") || n.addClass("life-style");
break;
case "kids":
n.hasClass("kids") || n.addClass("kids");
break;
default:
n.hasClass("boys") || n.addClass("boys")
}
switch (e) {
case "boys":
o && o.addClass("boys");
break;
case "girls":
o && o.addClass("girls");
break;
case "lifestyle":
o && o.addClass("life-style");
break;
case "kids":
o && o.addClass("kids");
break;
default:
o && o.addClass("boys")
}
}(),
window.cookie = i,
window.setCookie = a,
window.isCookiesEnabled = s,
window.getUser = r,
window.getUid = d,
window.getShoppingKey = l,
window.rePosFooter = u,
window.reMarginFooter = c,
window.queryString = p(),
window.givePoint = m,
window._ChannelVary = O,
window.downLoadApp = f
},
8: function (e, n, o) {
var t = o(11)
, i = location && location.search && location.search.slice(1);
e.exports = t(i)
},
9: function (e, n, o) {
"use strict";
var t = o(8)
, i = function () {
return document.getElementById("main-wrap").dataset.apppath || 'yohobuy://yohobuy.com/goapp?openby:yohobuy={"action":"go.home","params":{"gender":"1","channel":"2"}}'
};
if (t.openapp) {
var a = navigator.userAgent.toLowerCase()
, s = a.indexOf("os") > -1 || a.indexOf("iphone") > -1 || a.indexOf("mac") > -1 || a.indexOf("ipad") > -1
, r = i()
, d = void 0;
s ? window.location.href = r : (d = document.createElement("iframe"),
d.src = r,
d.style.display = "none",
document.body.appendChild(d))
}
},
10: function (e, n, o) {
var t = o(4)
, i = t.JSON || (t.JSON = {
stringify: JSON.stringify
});
e.exports = function (e) {
return i.stringify.apply(i, arguments)
}
},
11: function (e, n) {
e.exports = function (e) {
var n, o, t, i = {};
if (e = e || "")
for (n = e.split("&"),
t = 0; t < n.length; t++)
o = n[t].split("="),
i[o[0]] = o[1];
return i
}
},
252: function (e, n) {
}
});
</script>
<script>
(function (w, d, s, j, f) {
var a = d.createElement(s);
var m = d.getElementsByTagName(s)[0];
w.YohoAcquisitionObject = f;
w[f] = function () {
w[f].p = arguments;
};
a.async = 1;
a.src = j;
m.parentNode.insertBefore(a, m);
}(window, document, 'script', (document.location.protocol === 'https:' ? 'https:' : 'http:') + '//cdn.yoho.cn/yas-jssdk/2.2.1/yas.js', '_yas'));
var _hmt = _hmt || [];
(function () {
function getUid() {
var uid,
name = '_UID',
cookies = (document.cookie && document.cookie.split(';')) || [];
cookies.forEach(function (c) {
if (c.indexOf(name) > -1) {
uid = decodeURIComponent(c.replace(name + '=', '').trim());
return;
}
});
if (!uid) return 0;
uid = uid.split('::');
if (!uid || uid.length < 4) {
return 0;
}
return uid[1];
}
function queryString() {
var vars = {},
hash,
i;
var hashes = window.location.search.slice(1).split('&');
for (i = 0; i < hashes.length; i++) {
hash = hashes[i].split('=');
vars[hash[0]] = hash[1];
}
return vars;
}
var uid = getUid() || queryString().uid;
uid = uid === 0 ? '' : uid;
window._ozuid = uid; // 暴露ozuid
if (window._yas) {
window._yas(1 * new Date(), '2.2.1', 'yohobuy_m', uid, '', '');
}
// 非登录状态,加载百度统计
if (!uid) {
setTimeout(function () {
(function () {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
(function () {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?e5b83a487a4458aa5abca43f5779b764";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
}, 1000);
}
}());
</script>
</body>
</html>
... ...