Authored by ping

update

... ... @@ -13,6 +13,61 @@
<title>YO'HOOD 2016</title>
<link rel="stylesheet" href="css/yohood_base.css">
<link rel="stylesheet" href="css/yohood_index.css">
<script>
window.location.href = 'http://activity.m.yohobuy.com/yohood?openby:yohobuy={"action":"go.h5","params":{"param":{"share_id":"151","title":"YOHOOD 2016"},"share":"/operations/api/v5/webshare/getShare","shareparam":{"share_id":"151"},"title":"YOHOOD 2016","url":"http://service.yoho.cn/activity/yohood/index.html"}}';
</script>
<script>
//写cookies
function setCookie(name, value) {
var Days = 50;
var expireTime = Days * 24 * 60 * 60 * 1000;
var exp = new Date();
exp.setTime(exp.getTime() + expireTime);
document.cookie = name + "=" + escape(value) + ";expires=" + exp.toGMTString();
}
//读取cookies
function getCookie(name) {
var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)");
if (arr = document.cookie.match(reg))
return unescape(arr[2]);
else
return null;
}
//删除cookie
function delCookie(name) {
var exp = new Date();
exp.setTime(exp.getTime() - 1);
var cval = getCookie(name);
if (cval != null) {
document.cookie = name + "=" + cval + ";expires=" + exp.toGMTString();
}
}
var loc = document.location;
if(loc.href.indexOf('os_version') > 0 || loc.href.indexOf('app_version') > 0) {
setCookie('is_app','1');
}
</script>
<script>
//以375宽度屏幕为标准,20px为基础font-size,用于计算rem
(function (doc, win) {
var docEl = doc.documentElement;
var resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize';
var recalc = function () {
var clientWidth = docEl.clientWidth;
if (!clientWidth) return;
if (clientWidth > 540) {
clientWidth = 540;
}
docEl.style.fontSize = (clientWidth / 375 * 20).toFixed(1) + 'px';
};
recalc();
if (!doc.addEventListener) return;
win.addEventListener(resizeEvt, recalc, false);
})(document, window);
</script>
<script type="text/javascript" charset="utf-8" src="//res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="js/fastclick.js"></script>
... ... @@ -96,7 +151,7 @@
if(navigator.userAgent.match(/android/i)) {
yas_device = 'android';
}
if(location.href.match(/os_version=/i)) {
if(location.href.match(/os_version=/i) || getCookie('is_app') == '1') {
yas_key = 'yohood_' + yas_device;
}
(function(w,d,s,j,f){w['YohoAcquisitionObject'] = f;w[f] = function(){w[f].p = arguments;};
... ...
<!DOCTYPE html>
<html>
<head lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="X-UA-Compatible" content="chrome=1,IE=edge"/>
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="default" name="apple-mobile-web-app-status-bar-style">
<meta name="keywords"
content="男生,女生,街头,潮流,时尚,搭配,造型,模特,yohood">
<meta name="description" content="页面内容介绍">
<meta name="viewport"
content="width=device-width,user-scalable=no,initial-scale=1,minimum-scale=1,maximum-scale=1"/>
<title>YO'HOOD 2016</title>
<link rel="stylesheet" href="css/yohood_base.css">
<link rel="stylesheet" href="css/yohood_index.css">
<script>
window.location.href = 'http://activity.m.yohobuy.com/yohood?openby:yohobuy={"action":"go.h5","params":{"param":{"share_id":"151","title":"YOHOOD 2016"},"share":"/operations/api/v5/webshare/getShare","shareparam":{"share_id":"151"},"title":"YOHOOD 2016","url":"http://service.yoho.cn/activity/yohood/index.html"}}';
</script>
<script>
//写cookies
function setCookie(name, value) {
var Days = 50;
var expireTime = Days * 24 * 60 * 60 * 1000;
var exp = new Date();
exp.setTime(exp.getTime() + expireTime);
document.cookie = name + "=" + escape(value) + ";expires=" + exp.toGMTString();
}
//读取cookies
function getCookie(name) {
var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)");
if (arr = document.cookie.match(reg))
return unescape(arr[2]);
else
return null;
}
//删除cookie
function delCookie(name) {
var exp = new Date();
exp.setTime(exp.getTime() - 1);
var cval = getCookie(name);
if (cval != null) {
document.cookie = name + "=" + cval + ";expires=" + exp.toGMTString();
}
}
var loc = document.location;
if(loc.href.indexOf('os_version') > 0 || loc.href.indexOf('app_version') > 0) {
setCookie('is_app','1');
}
</script>
<script>
//以375宽度屏幕为标准,20px为基础font-size,用于计算rem
(function (doc, win) {
var docEl = doc.documentElement;
var resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize';
var recalc = function () {
var clientWidth = docEl.clientWidth;
if (!clientWidth) return;
if (clientWidth > 540) {
clientWidth = 540;
}
docEl.style.fontSize = (clientWidth / 375 * 20).toFixed(1) + 'px';
};
recalc();
if (!doc.addEventListener) return;
win.addEventListener(resizeEvt, recalc, false);
})(document, window);
</script>
<script type="text/javascript" charset="utf-8" src="//res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="js/fastclick.js"></script>
<script type="text/javascript" src="js/yohood_footer.js"></script>
<script>
window.addEventListener('load',function(){
FastClick.attach(document.body);
},false);
var page = 1;
</script>
</head>
<body>
<!--微信分享start-->
<input id="shareLink" type="hidden" value="http://service.yoho.cn/activity/yohood/index.html">
<input id="shareDesc" type="hidden" value="YO'HOOD2016汇聚150+潮流品牌、演出、市集、艺术、美食。玩转全球潮流新品嘉年华。">
<input id="shareImg" type="hidden" value="http://service.yoho.cn/activity/yohood/images/share/logo.jpg">
<input id="shareTitle" type="hidden" value="又双叒叕来了!YO'HOOD 2016携超豪华阵容Coming Soon!">
<div id="wx_pic" style="width:0; height:0; overflow:hidden">
<img src="http://service.yoho.cn/activity/yohood/images/share/logo.jpg">
</div>
<!--主页面-->
<div class="yohood_wrapper">
<div class="yohood_main">
<ul class="yohood_main_ul">
<li>
<img src="images/index/head.jpg">
</li>
<li>
<img src="images/index/part_1.jpg">
</li>
<li>
<img src="images/index/part_2.jpg">
</li>
<li id="part_3">
<img src="images/index/part_3.jpg">
<a href="http://j.map.baidu.com/i2q0C" target="_blank"></a>
</li>
<li>
<img src="images/index/part_4.jpg">
</li>
<li id="part_5">
<img src="images/index/part_5.jpg">
<a id="btn_down_yohobuy" href="javascript:void(0)"></a>
<a id="btn_down_yoho" href="javascript:void(0)"></a>
<a id="btn_down_mars" href="javascript:void(0)"></a>
</li>
<!--即将开售,敬请期待-->
<li id="part_6_1" style="display: block;">
<img src="images/index/part_6_1.jpg">
</li>
<!--去抢票-->
<li id="part_6_2" style="display: none">
<a id="btn_goto_buy" href="javascript:void(0)">
<img src="images/index/part_6_2.jpg">
</a>
</li>
</ul>
</div>
<div class="live-app-download-msg">
<div class="wx-img1">
<img src="images/share/wx-img1.png">
</div>
<div class="wx-img2">
<img src="images/share/wx-img2.png">
</div>
<div class="wx-img3">
<img src="images/share/wx-img3.png">
</div>
</div>
</div>
</body>
<script>
var yas_h = document.location.hostname;
var yas_key = 'yohood_m';
var yas_device = 'ios';
if(navigator.userAgent.match(/android/i)) {
yas_device = 'android';
}
if(location.href.match(/os_version=/i) || getCookie('is_app') == '1') {
yas_key = 'yohood_' + yas_device;
}
(function(w,d,s,j,f){w['YohoAcquisitionObject'] = f;w[f] = function(){w[f].p = arguments;};
var a=d.createElement(s);
var m=d.getElementsByTagName(s)[0];
a.async=1;a.src=j;
m.parentNode.insertBefore(a,m);
})(window,document,'script','//cdn.yoho.cn/yas-jssdk/1.0.16/yas.js','_yas');
_yas(1*new Date(),'1.0.16',yas_key,'','');
</script>
<script type="text/javascript" src="js/yas_data.js"></script>
<script type="text/javascript" src="js/wxshare.js"></script>
</html>
\ No newline at end of file
... ...
<!DOCTYPE html>
<html>
<head lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="X-UA-Compatible" content="chrome=1,IE=edge"/>
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="default" name="apple-mobile-web-app-status-bar-style">
<meta name="keywords"
content="男生,女生,街头,潮流,时尚,搭配,造型,模特,yohood">
<meta name="description" content="页面内容介绍">
<meta name="viewport"
content="width=device-width,user-scalable=no,initial-scale=1,minimum-scale=1,maximum-scale=1"/>
<title>YO'HOOD 2016</title>
<link rel="stylesheet" href="css/yohood_base.css">
<link rel="stylesheet" href="css/yohood_index.css">
<script type="text/javascript" charset="utf-8" src="//res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="js/fastclick.js"></script>
<script type="text/javascript" src="js/yohood_footer.js"></script>
<script>
window.addEventListener('load',function(){
FastClick.attach(document.body);
},false);
var page = 1;
</script>
</head>
<body>
<!--微信分享start-->
<input id="shareLink" type="hidden" value="http://service.yoho.cn/activity/yohood/index.html">
<input id="shareDesc" type="hidden" value="YO'HOOD2016汇聚150+潮流品牌、演出、市集、艺术、美食。玩转全球潮流新品嘉年华。">
<input id="shareImg" type="hidden" value="http://service.yoho.cn/activity/yohood/images/share/logo.jpg">
<input id="shareTitle" type="hidden" value="又双叒叕来了!YO'HOOD 2016携超豪华阵容Coming Soon!">
<div id="wx_pic" style="width:0; height:0; overflow:hidden">
<img src="http://service.yoho.cn/activity/yohood/images/share/logo.jpg">
</div>
<!--主页面-->
<div class="yohood_wrapper">
<div class="yohood_main">
<ul class="yohood_main_ul">
<li>
<img src="images/index/head.jpg">
</li>
<li>
<img src="images/index/part_1.jpg">
</li>
<li>
<img src="images/index/part_2.jpg">
</li>
<li id="part_3">
<img src="images/index/part_3.jpg">
<a href="http://j.map.baidu.com/i2q0C" target="_blank"></a>
</li>
<li>
<img src="images/index/part_4.jpg">
</li>
<li id="part_5">
<img src="images/index/part_5.jpg">
<a id="btn_down_yohobuy" href="javascript:void(0)"></a>
<a id="btn_down_yoho" href="javascript:void(0)"></a>
<a id="btn_down_mars" href="javascript:void(0)"></a>
</li>
<!--即将开售,敬请期待-->
<li id="part_6_1" style="display: block;">
<img src="images/index/part_6_1.jpg">
</li>
<!--去抢票-->
<li id="part_6_2" style="display: none">
<a id="btn_goto_buy" href="javascript:void(0)">
<img src="images/index/part_6_2.jpg">
</a>
</li>
</ul>
</div>
<div class="live-app-download-msg">
<div class="wx-img1">
<img src="images/share/wx-img1.png">
</div>
<div class="wx-img2">
<img src="images/share/wx-img2.png">
</div>
<div class="wx-img3">
<img src="images/share/wx-img3.png">
</div>
</div>
</div>
</body>
<script>
var yas_h = document.location.hostname;
var yas_key = 'yohood_m';
var yas_device = 'ios';
if(navigator.userAgent.match(/android/i)) {
yas_device = 'android';
}
if(location.href.match(/os_version=/i)) {
yas_key = 'yohood_' + yas_device;
}
(function(w,d,s,j,f){w['YohoAcquisitionObject'] = f;w[f] = function(){w[f].p = arguments;};
var a=d.createElement(s);
var m=d.getElementsByTagName(s)[0];
a.async=1;a.src=j;
m.parentNode.insertBefore(a,m);
})(window,document,'script','//cdn.yoho.cn/yas-jssdk/1.0.16/yas.js','_yas');
_yas(1*new Date(),'1.0.16',yas_key,'','');
</script>
<script type="text/javascript" src="js/yas_data.js"></script>
<script type="text/javascript" src="js/wxshare.js"></script>
</html>
\ No newline at end of file
... ...