diff --git a/.project b/.project deleted file mode 100644 index f2ee466..0000000 --- a/.project +++ /dev/null @@ -1,11 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<projectDescription> - <name>yohood</name> - <comment></comment> - <projects> - </projects> - <buildSpec> - </buildSpec> - <natures> - </natures> -</projectDescription> diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index 99f26c0..0000000 --- a/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -encoding/<project>=UTF-8 diff --git a/demo/apply/enter.html b/demo/apply/enter.html new file mode 100644 index 0000000..17151ba --- /dev/null +++ b/demo/apply/enter.html @@ -0,0 +1,129 @@ +<!doctype html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>Home</title> + <link rel="stylesheet" href="../../res/css/index.css"/> +</head> +<body> +<div class="yoho-nav clearfix"> + <ul class="clearfix"> + <li> + <span>YOHO!</span> + <a href="http://www.yoho.cn" target="_blank">集团官网</a> + </li> + <li> + <span>YOHO!有货</span> + <a href="http://www.yohobuy.com" target="_blank">潮流购物</a> + </li> + <li> + <span>YOHO!BOYS</span> + <a href="http://www.yohoboys.com">男生潮流</a> + </li> + <li> + <span>YOHO!GIRLS</span> + <a href="http://www.yohogirls.com" target="_blank">女生潮流</a> + </li> + <li> + <span>YOHO!SHOW</span> + <a href="http://www.yohoshow.com" target="_blank">物趣分享</a> + </li> + <li class="current"> + <span>YOHOOD</span> + <a href="javascript:;" target="_blank">潮流嘉年华</a> + </li> + </ul> + <a class="contact-btn" href="javascript:;">contact</a> +</div> + +<div class="header" id="w-submit"> + <div class="yoho-banner-w"></div> + <div class="nav"> + <ul class="clearfix"> + <li class="current"> + <a href="javascript:;"> + <em>HOME</em> + <span>首页</span> + <i></i> + </a> + </li> + <li> + <a href="javascript:;"> + <em>ACTIVITY</em> + <span>活动详情</span> + <i></i> + </a> + </li> + <li> + <a href="javascript:;">COUNSEL</a> + <span>最新资讯</span> + <i></i> + </li> + <li> + <a href="javascript:;">BRAND</a> + <span>参展品牌</span> + <i></i> + </li> + <li> + <a href="javascript:;">VIDEO</a> + <span>热点视频</span> + <i></i> + </li> + <li> + <a href="javascript:;">RECOMMEND</a> + <span>限量推荐</span> + <i></i> + </li> + <li> + <a href="javascript:;">SCENE</a> + <span>现场活动</span> + <i></i> + </li> + <li> + <a href="javascript:;">SHOW</a> + <span>潮流分享</span> + <i></i> + </li> + </ul> + </div> +</div> +<div class="apply-content"> + <ul class="apply-enter"> + <li class="apply-left"> + <div class="background"><a href=""></a></div> + <div class="apply-operate"> + <span>在线登记</span> + <span>参展商手册下载</span> + </div> + </li> + <li class="apply-center"> + <div class="background"><a href=""></a></div> + <div class="apply-operate"> + <span>在线登记</span> + <span>新闻稿下载</span> + </div> + </li> + <li class="apply-right"> + <div class="background"><a href=""></a></div> + <div class="apply-operate"> + <span>在线登记</span> + </div> + </li> + </ul> +</div> +<div class="return-top"> + <a href="javascript:void(0);" id="toTop" class="ifont" style="display: inline;"> + <span class="iconfont"></span> + TOP + </a> +</div> +</body> +<!--<script type="text/javascript" src="../../res/js/lib/seajs.js"></script>--> +<script type="text/javascript" src="http://172.16.6.200:8000/js/lib/seajs.js"></script> +<script type="text/javascript"> + seajs.use(['jquery','channel'],function($,channel){ + channel.common(); + channel.index(); + }) +</script> +</html> \ No newline at end of file diff --git a/demo/apply/exhibitor-down.html b/demo/apply/exhibitor-down.html new file mode 100644 index 0000000..ee4688b --- /dev/null +++ b/demo/apply/exhibitor-down.html @@ -0,0 +1,152 @@ +<!doctype html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>Home</title> + <link rel="stylesheet" href="../../res/css/index.css"/> +</head> +<body> +<div class="yoho-nav clearfix"> + <ul class="clearfix"> + <li> + <span>YOHO!</span> + <a href="http://www.yoho.cn" target="_blank">集团官网</a> + </li> + <li> + <span>YOHO!有货</span> + <a href="http://www.yohobuy.com" target="_blank">潮流购物</a> + </li> + <li> + <span>YOHO!BOYS</span> + <a href="http://www.yohoboys.com">男生潮流</a> + </li> + <li> + <span>YOHO!GIRLS</span> + <a href="http://www.yohogirls.com" target="_blank">女生潮流</a> + </li> + <li> + <span>YOHO!SHOW</span> + <a href="http://www.yohoshow.com" target="_blank">物趣分享</a> + </li> + <li class="current"> + <span>YOHOOD</span> + <a href="javascript:;" target="_blank">潮流嘉年华</a> + </li> + </ul> + <a class="contact-btn" href="javascript:;">contact</a> +</div> + +<div class="header" id="w-submit"> + <div class="yoho-banner-w"></div> + <div class="nav"> + <ul class="clearfix"> + <li class="current"> + <a href="javascript:;"> + <em>HOME</em> + <span>首页</span> + <i></i> + </a> + </li> + <li> + <a href="javascript:;"> + <em>ACTIVITY</em> + <span>活动详情</span> + <i></i> + </a> + </li> + <li> + <a href="javascript:;">COUNSEL</a> + <span>最新资讯</span> + <i></i> + </li> + <li> + <a href="javascript:;">BRAND</a> + <span>参展品牌</span> + <i></i> + </li> + <li> + <a href="javascript:;">VIDEO</a> + <span>热点视频</span> + <i></i> + </li> + <li> + <a href="javascript:;">RECOMMEND</a> + <span>限量推荐</span> + <i></i> + </li> + <li> + <a href="javascript:;">SCENE</a> + <span>现场活动</span> + <i></i> + </li> + <li> + <a href="javascript:;">SHOW</a> + <span>潮流分享</span> + <i></i> + </li> + </ul> + </div> + <div class="yoho-header-w"> + <span class="yoho-header-title"> + 参展商登记 + </span> + </div> +</div> +<div class="submit-content"> + <div class="page-header"> + <a href="#">在线登记</a> + <a href="#" class="end active">参展商手册下载</a> + </div> + <div class="pull-left"> + <div class="content-sub"> + <ul> + <li><span>赞助商:</span><p>Cherry.Wu</p></li> + <li><span>邮箱:</span><p>Cherry.Wu@yoho.cn</p></li> + <li><span>电话:</span><p>+86 18810361488</p></li> + </ul> + </div> + </div> + <div class="pull-right"> + <div class="exhibitor-down"> + <ul> + <li> + <img src="http://172.16.6.200:8000/images/yohood/down-1.jpg" alt=""/> + <span>参展商手册名称</span> + <b class="exhibitor-btn">下载</b> + </li> + <li> + <img src="http://172.16.6.200:8000/images/yohood/down-1.jpg" alt=""/> + <span>参展商手册名称</span> + <b class="exhibitor-btn">下载</b> + </li> + <li> + <img src="http://172.16.6.200:8000/images/yohood/down-1.jpg" alt=""/> + <span>参展商手册名称</span> + <b class="exhibitor-btn">下载</b> + </li> + </ul> + </div> + </div> +</div> +<div class="return-top"> + <a href="javascript:void(0);" id="toTop" class="ifont" style="display: inline;"> + <span class="iconfont"></span> + TOP + </a> +</div> + +<div class="dialog-w"> + <div class="dia-content"> + <span></span> + </div> +</div> +</body> +<!--<script type="text/javascript" src="../../res/js/lib/seajs.js"></script>--> +<script type="text/javascript" src="http://172.16.6.200:8000/js/lib/seajs.js"></script> +<script type="text/javascript"> + seajs.use(['jquery','channel'],function($,channel){ + channel.common(); + channel.index(); + }) +</script> +</html> \ No newline at end of file diff --git a/demo/apply/exhibitor.html b/demo/apply/exhibitor.html new file mode 100644 index 0000000..f848ece --- /dev/null +++ b/demo/apply/exhibitor.html @@ -0,0 +1,234 @@ +<!doctype html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>Home</title> + <link rel="stylesheet" href="../../res/css/index.css"/> +</head> +<body> +<div class="yoho-nav clearfix"> + <ul class="clearfix"> + <li> + <span>YOHO!</span> + <a href="http://www.yoho.cn" target="_blank">集团官网</a> + </li> + <li> + <span>YOHO!有货</span> + <a href="http://www.yohobuy.com" target="_blank">潮流购物</a> + </li> + <li> + <span>YOHO!BOYS</span> + <a href="http://www.yohoboys.com">男生潮流</a> + </li> + <li> + <span>YOHO!GIRLS</span> + <a href="http://www.yohogirls.com" target="_blank">女生潮流</a> + </li> + <li> + <span>YOHO!SHOW</span> + <a href="http://www.yohoshow.com" target="_blank">物趣分享</a> + </li> + <li class="current"> + <span>YOHOOD</span> + <a href="javascript:;" target="_blank">潮流嘉年华</a> + </li> + </ul> + <a class="contact-btn" href="javascript:;">contact</a> +</div> + +<div class="header" id="w-submit"> + <div class="yoho-banner-w"></div> + <div class="nav"> + <ul class="clearfix"> + <li class="current"> + <a href="javascript:;"> + <em>HOME</em> + <span>首页</span> + <i></i> + </a> + </li> + <li> + <a href="javascript:;"> + <em>ACTIVITY</em> + <span>活动详情</span> + <i></i> + </a> + </li> + <li> + <a href="javascript:;">COUNSEL</a> + <span>最新资讯</span> + <i></i> + </li> + <li> + <a href="javascript:;">BRAND</a> + <span>参展品牌</span> + <i></i> + </li> + <li> + <a href="javascript:;">VIDEO</a> + <span>热点视频</span> + <i></i> + </li> + <li> + <a href="javascript:;">RECOMMEND</a> + <span>限量推荐</span> + <i></i> + </li> + <li> + <a href="javascript:;">SCENE</a> + <span>现场活动</span> + <i></i> + </li> + <li> + <a href="javascript:;">SHOW</a> + <span>潮流分享</span> + <i></i> + </li> + </ul> + </div> + <div class="yoho-header-w"> + <span class="yoho-header-title"> + 参展商登记 + </span> + </div> +</div> +<div class="submit-content"> + <div class="page-header"> + <a href="#" class="active">在线登记</a> + <a href="#" class="end">参展商手册下载</a> + </div> + <div class="pull-left"> + <div class="content-sub"> + <ul> + <li><span>赞助商:</span><p>Cherry.Wu</p></li> + <li><span>邮箱:</span><p>Cherry.Wu@yoho.cn</p></li> + <li><span>电话:</span><p>+86 18810361488</p></li> + </ul> + </div> + </div> + <div class="pull-right"> + <h2 class="content-header">填写报名信息 <span>Switch to English</span></h2> + <ul> + <li> + <div class="form-leading"><b>*</b><span>品牌名称:</span></div> + <div class="form-control"><input type="text" name="name"/></div> + </li> + <li> + <div class="form-leading"><b>*</b><span>是否入住有货:</span></div> + <div class="form-control"> + <input type="radio" name="yoho" id="yoho-yes"/> + <label for="yoho-yes">是</label> + + <input type="radio" name="yoho" id="yoho-no"/> + <label for="yoho-no">否</label> + </div> + </li> + <li> + <div class="form-leading"><b>*</b><span>品牌注册情况:</span></div> + <div class="form-control"> + <input type="radio" name="is-apply" /> + <label>已申请</label> + + <input type="radio" name="is-apply" /> + <label>已注册</label> + + <input type="radio" name="is-apply" /> + <label>未注册</label> + </div> + </li> + <li> + <div class="form-leading"><span>公司名称:</span></div> + <div class="form-control"><input type="text" name="name"/></div> + </li> + <li> + <div class="form-leading"><b>*</b><span>联系人:</span></div> + <div class="form-control"><input type="text" name="name"/></div> + </li> + <li> + <div class="form-leading"><b>*</b><span>电话:</span></div> + <div class="form-control"><input type="text" name="name"/></div> + </li> + <li> + <div class="form-leading"><span>邮箱:</span></div> + <div class="form-control"><input type="text" name="name"/></div> + </li> + <li> + <div class="form-leading"><b>*</b><span>公司与品牌关系:</span></div> + <div class="form-control"> + <input type="radio" name="relation" /> + <label>品牌商</label> + + <input type="radio" name="relation" /> + <label>代理商</label> + + <input type="radio" name="relation" /> + <label>经销商</label> + + <input type="radio" name="relation" /> + <label>其他</label> + </div> + </li> + <li> + <div class="form-leading"><b>*</b><span>商品所在地:</span></div> + <div class="form-control"><input type="text" name="name"/></div> + </li> + <li> + <div class="form-leading"><b>*</b><span>是否具有3C凭证:</span></div> + <div class="form-control"> + <input type="radio" name="3c" /> + <label>是</label> + + <input type="radio" name="3c" /> + <label>否</label> + </div> + </li> + <li> + <div class="form-leading"><span>品牌官网:</span></div> + <div class="form-control"><input type="text" name="name"/></div> + </li> + <li class="upload-list"> + <div class="form-leading"><span>品牌资料上传:</span></div> + <div class="form-control"> + <input type="file" name="name"/> + <span class="upload-tips">ppt/ptf,大小不超过10M</span> + <div class="has-upload"> + <span>品牌资料.pdf <b>X</b></span> + </div> + <div class="has-upload"> + <span>品牌资料.pdf <b>X</b></span> + </div> + </div> + </li> + <li> + <div class="form-leading"><span>验证码:</span></div> + <div class="form-control"> + <input type="text" name="name" class="pic-code"/> + <span class="pic-code-text">图形验证码</span> + </div> + </li> + </ul> + <input type="submit" class="submit-w-btn" value="提交" /> + </div> +</div> +<div class="return-top"> + <a href="javascript:void(0);" id="toTop" class="ifont" style="display: inline;"> + <span class="iconfont"></span> + TOP + </a> +</div> + +<div class="dialog-w"> + <div class="dia-content"> + <span></span> + </div> +</div> +</body> +<!--<script type="text/javascript" src="../../res/js/lib/seajs.js"></script>--> +<script type="text/javascript" src="http://172.16.6.200:8000/js/lib/seajs.js"></script> +<script type="text/javascript"> + seajs.use(['jquery','channel'],function($,channel){ + channel.common(); + channel.index(); + }) +</script> +</html> \ No newline at end of file diff --git a/demo/apply/index.html b/demo/apply/index.html new file mode 100644 index 0000000..455da45 --- /dev/null +++ b/demo/apply/index.html @@ -0,0 +1,202 @@ +<!doctype html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>Home</title> + <link rel="stylesheet" href="../../res/css/index.css"/> +</head> +<body> +<div class="yoho-nav clearfix"> + <ul class="clearfix"> + <li> + <span>YOHO!</span> + <a href="http://www.yoho.cn" target="_blank">集团官网</a> + </li> + <li> + <span>YOHO!有货</span> + <a href="http://www.yohobuy.com" target="_blank">潮流购物</a> + </li> + <li> + <span>YOHO!BOYS</span> + <a href="http://www.yohoboys.com">男生潮流</a> + </li> + <li> + <span>YOHO!GIRLS</span> + <a href="http://www.yohogirls.com" target="_blank">女生潮流</a> + </li> + <li> + <span>YOHO!SHOW</span> + <a href="http://www.yohoshow.com" target="_blank">物趣分享</a> + </li> + <li class="current"> + <span>YOHOOD</span> + <a href="javascript:;" target="_blank">潮流嘉年华</a> + </li> + </ul> + <a class="contact-btn" href="javascript:;">contact</a> +</div> + +<div class="header" id="w-submit"> + <div class="yoho-banner-w"></div> + <div class="nav"> + <ul class="clearfix"> + <li class="current"> + <a href="javascript:;"> + <em>HOME</em> + <span>首页</span> + <i></i> + </a> + </li> + <li> + <a href="javascript:;"> + <em>ACTIVITY</em> + <span>活动详情</span> + <i></i> + </a> + </li> + <li> + <a href="javascript:;">COUNSEL</a> + <span>最新资讯</span> + <i></i> + </li> + <li> + <a href="javascript:;">BRAND</a> + <span>参展品牌</span> + <i></i> + </li> + <li> + <a href="javascript:;">VIDEO</a> + <span>热点视频</span> + <i></i> + </li> + <li> + <a href="javascript:;">RECOMMEND</a> + <span>限量推荐</span> + <i></i> + </li> + <li> + <a href="javascript:;">SCENE</a> + <span>现场活动</span> + <i></i> + </li> + <li> + <a href="javascript:;">SHOW</a> + <span>潮流分享</span> + <i></i> + </li> + </ul> + </div> +</div> +<div class="yoho-header-w"> + <span class="yoho-header-title"> + 赞助商登记 + </span> +</div> +<div class="submit-content"> + <div class="pull-left"> + <div class="content-sub"> + <ul> + <li><span>赞助商:</span><p>Cherry.Wu</p></li> + <li><span>邮箱:</span><p>Cherry.Wu@yoho.cn</p></li> + <li><span>电话:</span><p>+86 18810361488</p></li> + </ul> + </div> + </div> + <div class="pull-right"> + <h2 class="content-header">填写报名信息 <span>Switch to English</span></h2> + + <form action="" id="index-form" method="post"> + + <ul> + <li> + <div class="form-leading"><b>*</b><span>品牌名称:</span></div> + <div class="form-control"><input type="text" class="required" name="indexName" id="indexName"/></div> + </li> + <li> + <div class="form-leading"><b>*</b><span>是否入住有货:</span></div> + <div class="form-control"> + <input type="radio" name="yoho" id="yoho-yes"/> + <label for="yoho-yes">是</label> + + <input type="radio" name="yoho" id="yoho-no"/> + <label for="yoho-no">否</label> + </div> + </li> + <li> + <div class="form-leading"><b>*</b><span>产品类型:</span></div> + <div class="form-control"><input type="text" name="name"/></div> + </li> + <li> + <div class="form-leading">所属国家:</span></div> + <div class="form-control"><input type="text" name="name"/></div> + </li> + <li> + <div class="form-leading">公司名称:</span></div> + <div class="form-control"><input type="text" name="name"/></div> + </li> + <li> + <div class="form-leading">公司地址:</span></div> + <div class="form-control"><input type="text" name="name"/></div> + </li> + <li> + <div class="form-leading"><b>*</b><span>联系人:</span></div> + <div class="form-control"><input type="text" name="name"/></div> + </li> + <li> + <div class="form-leading"><b>*</b><span>电话:</span></div> + <div class="form-control"><input type="text" name="name"/></div> + </li> + <li> + <div class="form-leading"><span>邮箱:</span></div> + <div class="form-control"><input type="text" name="name"/></div> + </li> + <li> + <div class="form-leading"><span>品牌官网:</span></div> + <div class="form-control"><input type="text" name="name"/></div> + </li> + <li class="upload-list"> + <div class="form-leading"><span>品牌资料上传:</span></div> + <div class="form-control"> + <input type="file" name="name"/> + <span class="upload-tips">ppt/ptf,大小不超过10M</span> + <div class="has-upload"> + <span>品牌资料.pdf <b>X</b></span> + </div> + <div class="has-upload"> + <span>品牌资料.pdf <b>X</b></span> + </div> + </div> + </li> + <li> + <div class="form-leading"><span>验证码:</span></div> + <div class="form-control"> + <input type="text" name="name" class="pic-code"/> + <span class="pic-code-text">图形验证码</span> + </div> + </li> + </ul> + + <input type="submit" class="submit-w-btn" value="提交"> + + </form> + + <!--<span class="submit-w-btn">提交</span>--> + + </div> +</div> +<div class="return-top"> + <a href="javascript:void(0);" id="toTop" class="ifont" style="display: inline;"> + <span class="iconfont"></span> + TOP + </a> +</div> +</body> +<!--<script type="text/javascript" src="../../res/js/lib/seajs.js"></script>--> +<script type="text/javascript" src="http://172.16.6.200:8000/js/lib/seajs.js"></script> +<script type="text/javascript"> + seajs.use(['jquery','channel'],function($,channel){ + channel.common(); + channel.index(); + }) +</script> +</html> \ No newline at end of file diff --git a/demo/apply/media-down.html b/demo/apply/media-down.html new file mode 100644 index 0000000..95a94aa --- /dev/null +++ b/demo/apply/media-down.html @@ -0,0 +1,150 @@ +<!doctype html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>Home</title> + <link rel="stylesheet" href="../../res/css/index.css"/> +</head> +<body> +<div class="yoho-nav clearfix"> + <ul class="clearfix"> + <li> + <span>YOHO!</span> + <a href="http://www.yoho.cn" target="_blank">集团官网</a> + </li> + <li> + <span>YOHO!有货</span> + <a href="http://www.yohobuy.com" target="_blank">潮流购物</a> + </li> + <li> + <span>YOHO!BOYS</span> + <a href="http://www.yohoboys.com">男生潮流</a> + </li> + <li> + <span>YOHO!GIRLS</span> + <a href="http://www.yohogirls.com" target="_blank">女生潮流</a> + </li> + <li> + <span>YOHO!SHOW</span> + <a href="http://www.yohoshow.com" target="_blank">物趣分享</a> + </li> + <li class="current"> + <span>YOHOOD</span> + <a href="javascript:;" target="_blank">潮流嘉年华</a> + </li> + </ul> + <a class="contact-btn" href="javascript:;">contact</a> +</div> + +<div class="header" id="w-submit"> + <div class="yoho-banner-w"></div> + <div class="nav"> + <ul class="clearfix"> + <li class="current"> + <a href="javascript:;"> + <em>HOME</em> + <span>首页</span> + <i></i> + </a> + </li> + <li> + <a href="javascript:;"> + <em>ACTIVITY</em> + <span>活动详情</span> + <i></i> + </a> + </li> + <li> + <a href="javascript:;">COUNSEL</a> + <span>最新资讯</span> + <i></i> + </li> + <li> + <a href="javascript:;">BRAND</a> + <span>参展品牌</span> + <i></i> + </li> + <li> + <a href="javascript:;">VIDEO</a> + <span>热点视频</span> + <i></i> + </li> + <li> + <a href="javascript:;">RECOMMEND</a> + <span>限量推荐</span> + <i></i> + </li> + <li> + <a href="javascript:;">SCENE</a> + <span>现场活动</span> + <i></i> + </li> + <li> + <a href="javascript:;">SHOW</a> + <span>潮流分享</span> + <i></i> + </li> + </ul> + </div> + <div class="yoho-header-w"> + <span class="yoho-header-title"> + 媒体登记 + </span> + </div> +</div> +<div class="submit-content"> + <div class="page-header"> + <a href="#">在线登记</a> + <a href="#" class="end active">新闻稿下载</a> + </div> + <div class="pull-left"> + <div class="content-sub"> + <ul> + <li><span>赞助商:</span><p>Cherry.Wu</p></li> + <li><span>邮箱:</span><p>Cherry.Wu@yoho.cn</p></li> + <li><span>电话:</span><p>+86 18810361488</p></li> + </ul> + </div> + </div> + <div class="pull-right"> + <div class="media-down"> + <ul> + <li> + <h2>YO'HOOD 2016潮流盛典</h2> + <div> + <span>腾讯娱乐</span> + <span class="media-date">2015.12.3</span> + </div> + + <span class="down-btn">下载</span> + </li> + + <li> + <h2>YO'HOOD 2016潮流盛典</h2> + <div> + <span>腾讯娱乐</span> + <span>2015.12.3</span> + </div> + + <span class="down-btn">下载</span> + </li> + </ul> + </div> + </div> +</div> +<div class="return-top"> + <a href="javascript:void(0);" id="toTop" class="ifont" style="display: inline;"> + <span class="iconfont"></span> + TOP + </a> +</div> +</body> +<!--<script type="text/javascript" src="../../res/js/lib/seajs.js"></script>--> +<script type="text/javascript" src="http://172.16.6.200:8000/js/lib/seajs.js"></script> +<script type="text/javascript"> + seajs.use(['jquery','channel'],function($,channel){ + channel.common(); + channel.index(); + }) +</script> +</html> \ No newline at end of file diff --git a/demo/apply/media.html b/demo/apply/media.html new file mode 100644 index 0000000..bee8918 --- /dev/null +++ b/demo/apply/media.html @@ -0,0 +1,188 @@ +<!doctype html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>Home</title> + <link rel="stylesheet" href="../../res/css/index.css"/> +</head> +<body> +<div class="yoho-nav clearfix"> + <ul class="clearfix"> + <li> + <span>YOHO!</span> + <a href="http://www.yoho.cn" target="_blank">集团官网</a> + </li> + <li> + <span>YOHO!有货</span> + <a href="http://www.yohobuy.com" target="_blank">潮流购物</a> + </li> + <li> + <span>YOHO!BOYS</span> + <a href="http://www.yohoboys.com">男生潮流</a> + </li> + <li> + <span>YOHO!GIRLS</span> + <a href="http://www.yohogirls.com" target="_blank">女生潮流</a> + </li> + <li> + <span>YOHO!SHOW</span> + <a href="http://www.yohoshow.com" target="_blank">物趣分享</a> + </li> + <li class="current"> + <span>YOHOOD</span> + <a href="javascript:;" target="_blank">潮流嘉年华</a> + </li> + </ul> + <a class="contact-btn" href="javascript:;">contact</a> +</div> + +<div class="header" id="w-submit"> + <div class="yoho-banner-w"></div> + <div class="nav"> + <ul class="clearfix"> + <li class="current"> + <a href="javascript:;"> + <em>HOME</em> + <span>首页</span> + <i></i> + </a> + </li> + <li> + <a href="javascript:;"> + <em>ACTIVITY</em> + <span>活动详情</span> + <i></i> + </a> + </li> + <li> + <a href="javascript:;">COUNSEL</a> + <span>最新资讯</span> + <i></i> + </li> + <li> + <a href="javascript:;">BRAND</a> + <span>参展品牌</span> + <i></i> + </li> + <li> + <a href="javascript:;">VIDEO</a> + <span>热点视频</span> + <i></i> + </li> + <li> + <a href="javascript:;">RECOMMEND</a> + <span>限量推荐</span> + <i></i> + </li> + <li> + <a href="javascript:;">SCENE</a> + <span>现场活动</span> + <i></i> + </li> + <li> + <a href="javascript:;">SHOW</a> + <span>潮流分享</span> + <i></i> + </li> + </ul> + </div> + <div class="yoho-header-w"> + <span class="yoho-header-title"> + 媒体登记 + </span> + </div> +</div> +<div class="submit-content"> + <div class="page-header"> + <a href="#" class="active">在线登记</a> + <a href="#" class="end">新闻稿下载</a> + </div> + <div class="pull-left"> + <div class="content-sub"> + <ul> + <li><span>赞助商:</span><p>Cherry.Wu</p></li> + <li><span>邮箱:</span><p>Cherry.Wu@yoho.cn</p></li> + <li><span>电话:</span><p>+86 18810361488</p></li> + </ul> + </div> + </div> + <div class="pull-right"> + <h2 class="content-header">填写报名信息 <span>Switch to English</span></h2> + <ul> + <li> + <div class="form-leading"><span>姓名:</span></div> + <div class="form-control"><input type="text" name="name"/></div> + </li> + <li> + <div class="form-leading"><span>职位:</span></div> + <div class="form-control"><input type="text" name="name"/></div> + </li> + <li> + <div class="form-leading">性别:</span></div> + <div class="form-control"><input type="text" name="name"/></div> + </li> + <li> + <div class="form-leading">媒体名/公司名:</span></div> + <div class="form-control"><input type="text" name="name"/></div> + </li> + <li class="h-auto"> + <div class="form-leading">介绍:</span></div> + <div class="form-control"><textarea name="name"></textarea></div> + </li> + <li> + <div class="form-leading"><span>官网地址:</span></div> + <div class="form-control"><input type="text" name="name"/></div> + </li> + <li> + <div class="form-leading"><span>所在城市:</span></div> + <div class="form-control"><input type="text" name="name"/></div> + </li> + <li> + <div class="form-leading"><span>邮箱:</span></div> + <div class="form-control"><input type="text" name="name"/></div> + </li> + <li> + <div class="form-leading"><span>手机:</span></div> + <div class="form-control"><input type="text" name="name"/></div> + </li> + <li> + <div class="form-leading"><span>座机:</span></div> + <div class="form-control"><input type="text" name="name"/></div> + </li> + <li> + <div class="form-leading"><span>固定地址:</span></div> + <div class="form-control"><input type="text" name="name"/></div> + </li> + <li> + <div class="form-leading"><span>邮编:</span></div> + <div class="form-control"><input type="text" name="name"/></div> + </li> + + <li> + <div class="form-leading"><span>验证码:</span></div> + <div class="form-control"> + <input type="text" name="name" class="pic-code"/> + <span class="pic-code-text">图形验证码</span> + </div> + </li> + </ul> + + <span class="submit-w-btn">提交</span> + </div> +</div> +<div class="return-top"> + <a href="javascript:void(0);" id="toTop" class="ifont" style="display: inline;"> + <span class="iconfont"></span> + TOP + </a> +</div> +</body> +<!--<script type="text/javascript" src="../../res/js/lib/seajs.js"></script>--> +<script type="text/javascript" src="http://172.16.6.200:8000/js/lib/seajs.js"></script> +<script type="text/javascript"> + seajs.use(['jquery','channel'],function($,channel){ + channel.common(); + channel.index(); + }) +</script> +</html> \ No newline at end of file diff --git a/demo/yohood3.0/.DS_Store b/demo/yohood3.0/.DS_Store new file mode 100644 index 0000000..5008ddf Binary files /dev/null and b/demo/yohood3.0/.DS_Store differ diff --git a/demo/yohood3.0/activity.html b/demo/yohood3.0/activity.html new file mode 100644 index 0000000..d58a0bb --- /dev/null +++ b/demo/yohood3.0/activity.html @@ -0,0 +1,369 @@ +<!doctype html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>Activity</title> + <link rel="stylesheet" href="../../res/css/index.css"/> +</head> +<body> + <div class="yoho-nav clearfix"> + <ul class="clearfix"> + <li> + <span>YOHO!</span> + <a href="http://www.yoho.cn" target="_blank">集团官网</a> + </li> + <li> + <span>YOHO!有货</span> + <a href="http://www.yohobuy.com" target="_blank">潮流购物</a> + </li> + <li> + <span>YOHO!BOYS</span> + <a href="http://www.yohoboys.com">男生潮流</a> + </li> + <li> + <span>YOHO!GIRLS</span> + <a href="http://www.yohogirls.com" target="_blank">女生潮流</a> + </li> + <li> + <span>YOHO!SHOW</span> + <a href="http://www.yohoshow.com" target="_blank">物趣分享</a> + </li> + <li class="current"> + <span>YOHOOD</span> + <a href="javascript:;" target="_blank">潮流嘉年华</a> + </li> + </ul> + <a class="contact-btn" href="javascript:;">contact</a> + </div> + <div class="header"> + <h1 class="logo"></h1> + <div class="nav"> + <ul class="clearfix"> + <li> + <a href="javascript:;">HOME</a> + <span>首页</span> + </li> + <li class="current"> + <a href="javascript:;">ACTIVITY</a> + <span>活动详情</span> + </li> + <li> + <a href="javascript:;">COUNSEL</a> + <span>最新资讯</span> + </li> + <li> + <a href="javascript:;">BRAND</a> + <span>参展品牌</span> + </li> + <li> + <a href="javascript:;">VIDEO</a> + <span>热点视频</span> + </li> + <li> + <a href="javascript:;">RECOMMEND</a> + <span>限量推荐</span> + </li> + <li> + <a href="javascript:;">SCENE</a> + <span>现场活动</span> + </li> + <li> + <a href="javascript:;">SHOW</a> + <span>潮流分享</span> + </li> + </ul> + </div> + </div> + <div class="bd"> + <div class="activity-tab content-tab"> + <ul class="clearfix"> + <li class="current"><a href="javascript:;">活动内容</a></li> + <li><a href="javascript:;">往期视频</a></li> + <li><a href="javascript:;">赞助商</a></li> + </ul> + </div> + <div class="activity-main"> + <div class="activity-content content-main"> + <div class="section"><img src="http://img02.res.yoho.cn/blogimg/2014/09/05/10/021658277c2d2ce200b26b91b717ecbd1d.jpg" alt=""></div> + <div class="section"><p>内地最具潮流影响力的传媒集团 YOHO!倾力打造的年度潮流盛事 YO’HOOD 在2014年秋天再度火热来袭,将于9月20、21日登陆上海世贸商城。 </p></div> + <div class="section"> + <p>YO’HOOD 源于 YOHO!NEIGHBORHOOD,意为 YOHO!打造的年轻潮流社区。</p> + <p>在这里,YOHO!召集所有年轻潮流爱好者,感受原创文化力量。</p> + </div> + <div class="section"> + <h4>活动流程:</h4> + <p>线上售票 8月20日- 9月19日</p> + <p>现场活动 9月20日- 9月21日</p> + <p>线上销售 9月20日-10月20日</p> + </div> + <div class="section"> + <h4>活动地点:</h4> + <p>上海市长宁区兴义路99号上海世贸商城</p> + <p>现场活动 9月20日- 9月21日</p> + <p>交通路线:公交车48、925、936、911、57、709、748、827、88、121、127、855路。地铁2号线(娄山关路站)、3号线(延安西路站)、10号线(伊犁路站)。</p> + </div> + </div> + <div class="activity-content content-main"> + <div class="video-wrap"> + <div class="main-layout clearfix"> + <div class="layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/01a9b77ff892507e57a4e334634598bad0.gif" alt=""> + <i class="play-icon"></i> + </a> + <a class="item-tag" href="javascript:;">视频</a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test</a> + </h2> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + <div class="layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img02.res.yoho.cn/blogimg/2014/10/23/17/020aba6cb71b6620e4e8dd50658a1daf03.jpg" alt=""> + </a> + <a class="item-tag" href="javascript:;">视频</a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test</a> + </h2> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + <div class="layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/015a858eda76bac64d84a0dbcea87dbd3a.gif" alt=""> + </a> + <a class="item-tag" href="javascript:;">视频</a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test</a> + </h2> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + <div class="layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img02.res.yoho.cn/blogimg/2014/10/17/14/02e26b4e08c06766b619b3bf40e31cfc14.jpg" alt=""> + </a> + <a class="item-tag" href="javascript:;">视频</a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test</a> + </h2> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + </div> + </div> + <div id="pageContent" style="text-align: center;" class="pagination"> + <div class="pagination-inner" id="img_page" model="default" rel=""> + <a class="current" p="1">1</a> + <a href="http://www.yohood.cn/default/index/page/2" class="link2" p="2">2</a> + <a href="http://www.yohood.cn/default/index/page/3" class="link2" p="3">3</a> + <a href="http://www.yohood.cn/default/index/page/4" class="link2" p="4">4</a> + <a href="http://www.yohood.cn/default/index/page/5" class="link2" p="5">5</a> + <a href="http://www.yohood.cn/default/index/page/6" class="link2" p="6">6</a> + <a href="http://www.yohood.cn/default/index/page/2" class="link2" p="2">>></a> + </div> + </div> + </div> + <div class="activity-content content-main"> + <div class="activity-cooperation"> + <div class="section"> + <h2>特邀合作伙伴</h2> + <ul class="cooperation-list clearfix"> + <li><a href="javascript:;" target="_blank"> + <div class="img-box"> + <img src="../../res/images/yohood/cooperation/xhc.png" alt=""> + </div> + </a></li> + </ul> + </div> + <div class="section"> + <h2>特邀合作媒体</h2> + <ul class="cooperation-list clearfix"> + <li><a href="javascript:;" target="_blank"> + <div class="img-box"> + <img src="../../res/images/yohood/cooperation/xhc.png" alt=""> + </div> + </a></li> + </ul> + </div> + <div class="section"> + <h2>赞助品牌</h2> + <ul class="cooperation-list clearfix"> + <li><a href="javascript:;" target="_blank"> + <div class="img-box"> + <img src="../../res/images/yohood/cooperation/xhc.png" alt=""> + </div> + </a></li> + <li><a href="javascript:;" target="_blank"> + <div class="img-box"> + <img src="../../res/images/yohood/cooperation/xhc.png" alt=""> + </div> + </a></li> + <li><a href="javascript:;" target="_blank"> + <div class="img-box"> + <img src="../../res/images/yohood/cooperation/xhc.png" alt=""> + </div> + </a></li> + <li><a href="javascript:;" target="_blank"> + <div class="img-box"> + <img src="../../res/images/yohood/cooperation/xhc.png" alt=""> + </div> + </a></li> + <li><a href="javascript:;" target="_blank"> + <div class="img-box"> + <img src="../../res/images/yohood/cooperation/xhc.png" alt=""> + </div> + </a></li> + <li><a href="javascript:;" target="_blank"> + <div class="img-box"> + <img src="../../res/images/yohood/cooperation/xhc.png" alt=""> + </div> + </a></li> + </ul> + </div> + <div class="section"> + <h2>合作媒体</h2> + <ul class="cooperation-list clearfix"> + <li><a href="javascript:;" target="_blank"> + <div class="img-box"> + <img src="../../res/images/yohood/cooperation/xhc.png" alt=""> + </div> + </a></li> + </ul> + </div> + </div> + </div> + </div> + </div> + <div class="ft"> + <div class="limited-goods"> + <h2>限量商品</h2> + <div class="limited-slide-box"> + <div class="slide-wrap clearfix"> + <div class="box"> + <ul class="goods-list clearfix"> + <li><a href="javascript:;"> + <div class="img-box"> + <img src="http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90" alt=""> + <span class="red">TOP 1</span> + </div> + <p class="goods-name">MACROPUS 暗夜系列双肩背包</p> + <p class="price">¥339.00</p> + </a></li> + <li><a href="javascript:;"> + <div class="img-box"> + <img src="http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90" alt=""> + <span class="red">TOP 2</span> + </div> + <p class="goods-name">MACROPUS 暗夜系列双肩背包</p> + <p class="price">¥339.00</p> + </a></li> + <li><a href="javascript:;"> + <div class="img-box"> + <img src="http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90" alt=""> + <span class="red">TOP 3</span> + </div> + <p class="goods-name">MACROPUS 暗夜系列双肩背包</p> + <p class="price">¥339.00</p> + </a></li> + <li><a href="javascript:;"> + <div class="img-box"> + <img src="http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90" alt=""> + <span>TOP 4</span> + </div> + <p class="goods-name">MACROPUS 暗夜系列双肩背包</p> + <p class="price">¥339.00</p> + </a></li> + <li><a href="javascript:;"> + <div class="img-box"> + <img src="http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90" alt=""> + <span>TOP 5</span> + </div> + <p class="goods-name">MACROPUS 暗夜系列双肩背包</p> + <p class="price">¥339.00</p> + </a></li> + </ul> + </div> + <div class="box"> + <ul class="goods-list clearfix"> + <li><a href="javascript:;"> + <div class="img-box"> + <img src="http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90" alt=""> + <span class="red">TOP 1</span> + </div> + <p class="goods-name">MACROPUS 暗夜系列双肩背包</p> + <p class="price">¥339.00</p> + </a></li> + <li><a href="javascript:;"> + <div class="img-box"> + <img src="http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90" alt=""> + <span class="red">TOP 2</span> + </div> + <p class="goods-name">MACROPUS 暗夜系列双肩背包</p> + <p class="price">¥339.00</p> + </a></li> + <li><a href="javascript:;"> + <div class="img-box"> + <img src="http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90" alt=""> + <span class="red">TOP 3</span> + </div> + <p class="goods-name">MACROPUS 暗夜系列双肩背包</p> + <p class="price">¥339.00</p> + </a></li> + <li><a href="javascript:;"> + <div class="img-box"> + <img src="http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90" alt=""> + <span>TOP 4</span> + </div> + <p class="goods-name">MACROPUS 暗夜系列双肩背包</p> + <p class="price">¥339.00</p> + </a></li> + <li><a href="javascript:;"> + <div class="img-box"> + <img src="http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90" alt=""> + <span>TOP 5</span> + </div> + <p class="goods-name">MACROPUS 暗夜系列双肩背包</p> + <p class="price">¥339.00</p> + </a></li> + </ul> + </div> + </div> + </div> + <div class="limited-slide-control"> + <a class="limited-slide-prev iconfont" href="javascript:void(0);"></a> + <a class="limited-slide-next iconfont" href="javascript:void(0);"></a> + </div> + </div> + </div> + <div class="return-top"> + <a href="javascript:void(0);" id="toTop" class="ifont" style="display: inline;"> + <span class="iconfont"></span> + TOP + </a> + </div> +</body> +<script type="text/javascript" src="../../res/js/lib/seajs.js"></script> +<script type="text/javascript"> + seajs.use(['jquery','channel'],function($,channel){ + channel.common(); + }) +</script> +</html> \ No newline at end of file diff --git a/demo/yohood3.0/brand-detail.html b/demo/yohood3.0/brand-detail.html new file mode 100644 index 0000000..4f04150 --- /dev/null +++ b/demo/yohood3.0/brand-detail.html @@ -0,0 +1,145 @@ +<!doctype html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>Home</title> + <link rel="stylesheet" href="http://res.yohood.test.yoho.cn/css/style.css"/> +</head> +<body> + <div class="wrapper"> + <div class="container"> + <div class="header"> + <a href="/"><img src="http://res.yohood.test.yoho.cn/images/yohood/logo.png" alt=""/></a> + </div> + <!-- navigator start --> + <div class="navigator"> + <ul class="clearfix"> + <li><a href="">首页</a></li> + <li><a href="">活动介绍</a></li> + <li><a href="">资讯</a></li> + <li><a href="">品牌</a></li> + <li><a href="">限量推荐</a></li> + <li><a href="">现场活动</a></li> + <li><a href="">SHOW</a></li> + <li><a href="">入场券</a></li> + </ul> + <a href="" class="goToYohobuy" title="有货"></a> + <span class="navigatorBar"></span> + </div> + <!-- content start --> + <div class="content-wrap clearfix"> + <div class="brand-detail"> + <div class="brand-detail-top clearfix"> + <div class="brand-detail-image"> + <img src="../../res/images/yohood/brand-img.png" alt=""/> + </div> + <div class="brand-info"> + <div class="brand-info-logo clearfix"> + <a href="" class="brand-logo"><img src="../../res/images/yohood/brand.png" alt=""/></a> + <h2>SSUR</h2> + <div class="brand-detail-share"> + </div> + </div> + <h3>ABOUT SSUR</h3> + <div class="brand-intro"> + SSUR是美国纽约的街头品牌,由艺术家Russell(原名Ruslan Karablin)所创办,SSUR就是其名字反过来写。Ruslan Karablin出生于俄罗斯,很小的时候便随家人移民美国,所以在SSUR的品牌中除了风格大胆外还夹杂着许多俄罗斯元素。他的灵感来自于皇室的艺术,Keith Haring和Stussy,Karablin致力于给服装提供更深层次的概念和含义,近年以恶搞风格为品牌设计特色而一炮走红。 + </div> + </div> + </div> + <div class="brand-goods-list"> + <ul class="clearfix"> + <li> + <a target="_blank" href="" title="Caviar Cartel Caviar Script Spade Snapback"> + <img src="../../res/images/yohood/goodsimg.jpg" width="150" alt=""> + <p>Caviar Cartel Caviar ...</p> + </a> + </li> + <li> + <a target="_blank" href="" title="Caviar Cartel Caviar Script Spade Snapback"> + <img src="../../res/images/yohood/goodsimg.jpg" width="150" alt=""> + <p>Caviar Cartel Caviar ...</p> + </a> + </li> + <li> + <a target="_blank" href="" title="Caviar Cartel Caviar Script Spade Snapback"> + <img src="../../res/images/yohood/goodsimg.jpg" width="150" alt=""> + <p>Caviar Cartel Caviar ...</p> + </a> + </li> + <li> + <a target="_blank" href="" title="Caviar Cartel Caviar Script Spade Snapback"> + <img src="../../res/images/yohood/goodsimg.jpg" width="150" alt=""> + <p>Caviar Cartel Caviar ...</p> + </a> + </li> + <li> + <a target="_blank" href="" title="Caviar Cartel Caviar Script Spade Snapback"> + <img src="../../res/images/yohood/goodsimg.jpg" width="150" alt=""> + <p>Caviar Cartel Caviar ...</p> + </a> + </li> + <li> + <a target="_blank" href="" title="Caviar Cartel Caviar Script Spade Snapback"> + <img src="../../res/images/yohood/goodsimg.jpg" width="150" alt=""> + <p>Caviar Cartel Caviar ...</p> + </a> + </li> + <li> + <a target="_blank" href="" title="Caviar Cartel Caviar Script Spade Snapback"> + <img src="../../res/images/yohood/goodsimg.jpg" width="150" alt=""> + <p>Caviar Cartel Caviar ...</p> + </a> + </li> + <li> + <a target="_blank" href="" title="Caviar Cartel Caviar Script Spade Snapback"> + <img src="../../res/images/yohood/goodsimg.jpg" width="150" alt=""> + <p>Caviar Cartel Caviar ...</p> + </a> + </li> + <li> + <a target="_blank" href="" title="Caviar Cartel Caviar Script Spade Snapback"> + <img src="../../res/images/yohood/goodsimg.jpg" width="150" alt=""> + <p>Caviar Cartel Caviar ...</p> + </a> + </li> + <li> + <a target="_blank" href="" title="Caviar Cartel Caviar Script Spade Snapback"> + <img src="../../res/images/yohood/goodsimg.jpg" width="150" alt=""> + <p>Caviar Cartel Caviar ...</p> + </a> + </li> + </ul> + </div> + </div> + + <div class="pageSize"> + <ul class="clearfix activity-index-list detail-pageSize"> + <li> + <span class="detail-prev">上一篇</span> + <div class="activity-img-item"> + <a target="" href="/news/detail/id/145"> + <img alt="" src="http://img03.res.yoho.cn/blogimg/2014/05/16/17/01ec1859d2a420148829811f5f291ab5c2.jpg?imageMogr2/thumbnail/!0138x0075r/crop/0138x0075/strip/quality/80" style="width: 138px;height: 75px;"> + </a> + </div> + <h3><a target="" href="/news/detail/id/145">2014 YO'HOOD COMING ...</a></h3> + <p>2014年9月19日~9月21日 上海世贸商城 内地...</p> + <span><em>14:52</em> 2014/05/16</span> + </li> + <li> + <span class="detail-prev">下一篇</span> + <div class="activity-img-item"> + <a target="" href="/news/detail/id/141"> + <img alt="" src="http://img04.res.yoho.cn/blogimg/2013/07/22/17/02d033e6709bf498c4e44a9b6320cadbd0.jpg?imageMogr2/thumbnail/!0138x0075r/crop/0138x0075/strip/quality/80" style="width: 138px;height: 75px;"> + </a> + </div> + <h3><a target="" href="/news/detail/id/141">R.M.C x HoodieBuddie...</a></h3> + <p>这次R.M.C x HoodieBuddie的合作款Tee,将...</p> + <span><em>17:55</em> 2013/07/22</span> + </li> + </ul> + </div> + </div> + </div> + </div> +</body> +</html> \ No newline at end of file diff --git a/demo/yohood3.0/brand-list.html b/demo/yohood3.0/brand-list.html new file mode 100644 index 0000000..8ea665b --- /dev/null +++ b/demo/yohood3.0/brand-list.html @@ -0,0 +1,129 @@ +<!doctype html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>Home</title> + <link rel="stylesheet" href="http://res.yohood.test.yoho.cn/css/style.css"/> +</head> +<body> + <div class="wrapper"> + <div class="container"> + <div class="header"> + <a href="/"><img src="http://res.yohood.test.yoho.cn/images/yohood/logo.png" alt=""/></a> + </div> + <!-- navigator start --> + <div class="navigator"> + <ul class="clearfix"> + <li><a href="">首页</a></li> + <li><a href="">活动介绍</a></li> + <li><a href="">资讯</a></li> + <li><a href="">品牌</a></li> + <li><a href="">限量推荐</a></li> + <li><a href="">现场活动</a></li> + <li><a href="">SHOW</a></li> + <li><a href="">入场券</a></li> + </ul> + <a href="" class="goToYohobuy" title="有货"></a> + <span class="navigatorBar"></span> + </div> + <!-- content start --> + <div class="content-wrap clearfix"> + <div class="brand-list"> + <ul class="clearfix"> + <li> + <a href="#"> + <img src="http://res.yohood.test.yoho.cn/images/yohood/brand.png" alt=""/> + <p>CLOT</p> + </a> + </li> + <li> + <a href="#"> + <img src="http://res.yohood.test.yoho.cn/images/yohood/brand.png" alt=""/> + <p>CLOT</p> + </a> + </li> + <li> + <a href="#"> + <img src="http://res.yohood.test.yoho.cn/images/yohood/brand.png" alt=""/> + <p>CLOT</p> + </a> + </li> + <li> + <a href="#"> + <img src="http://res.yohood.test.yoho.cn/images/yohood/brand.png" alt=""/> + <p>CLOT</p> + </a> + </li> + <li> + <a href="#"> + <img src="http://res.yohood.test.yoho.cn/images/yohood/brand.png" alt=""/> + <p>CLOT</p> + </a> + </li> + <li> + <a href="#"> + <img src="http://res.yohood.test.yoho.cn/images/yohood/brand.png" alt=""/> + <p>CLOT</p> + </a> + </li> + <li> + <a href="#"> + <img src="http://res.yohood.test.yoho.cn/images/yohood/brand.png" alt=""/> + <p>CLOT</p> + </a> + </li> + <li> + <a href="#"> + <img src="http://res.yohood.test.yoho.cn/images/yohood/brand.png" alt=""/> + <p>CLOT</p> + </a> + </li> + <li> + <a href="#"> + <img src="http://res.yohood.test.yoho.cn/images/yohood/brand.png" alt=""/> + <p>CLOT</p> + </a> + </li> + <li> + <a href="#"> + <img src="http://res.yohood.test.yoho.cn/images/yohood/brand.png" alt=""/> + <p>CLOT</p> + </a> + </li> + <li> + <a href="#"> + <img src="http://res.yohood.test.yoho.cn/images/yohood/brand.png" alt=""/> + <p>CLOT</p> + </a> + </li> + <li> + <a href="#"> + <img src="http://res.yohood.test.yoho.cn/images/yohood/brand.png" alt=""/> + <p>CLOT</p> + </a> + </li> + <li> + <a href="#"> + <img src="http://res.yohood.test.yoho.cn/images/yohood/brand.png" alt=""/> + <p>CLOT</p> + </a> + </li> + <li> + <a href="#"> + <img src="http://res.yohood.test.yoho.cn/images/yohood/brand.png" alt=""/> + <p>CLOT</p> + </a> + </li> + <li> + <a href="#"> + <img src="http://res.yohood.test.yoho.cn/images/yohood/brand.png" alt=""/> + <p>CLOT</p> + </a> + </li> + </ul> + </div> + </div> + </div> + </div> +</body> +</html> \ No newline at end of file diff --git a/demo/yohood3.0/brand.html b/demo/yohood3.0/brand.html new file mode 100644 index 0000000..ae20517 --- /dev/null +++ b/demo/yohood3.0/brand.html @@ -0,0 +1,510 @@ +<!doctype html> +<html lang="en"> + +<head> + <meta charset="UTF-8"> + <title>Brands</title> + <link rel="stylesheet" href="../../res/css/index.css" /> +</head> + +<body> + <!-- 主站导航 start --> + <div class="yoho-nav clearfix"> + <ul class="clearfix"> + <li> + <span>YOHO!</span> + <a href="http://www.yoho.cn" target="_blank">集团官网</a> + </li> + <li> + <span>YOHO!有货</span> + <a href="http://www.yohobuy.com" target="_blank">潮流购物</a> + </li> + <li> + <span>YOHO!BOYS</span> + <a href="http://www.yohoboys.com">男生潮流</a> + </li> + <li> + <span>YOHO!GIRLS</span> + <a href="http://www.yohogirls.com" target="_blank">女生潮流</a> + </li> + <li> + <span>YOHO!SHOW</span> + <a href="http://www.yohoshow.com" target="_blank">物趣分享</a> + </li> + <li class="current"> + <span>YOHOOD</span> + <a href="javascript:;" target="_blank">潮流嘉年华</a> + </li> + </ul> + <a class="contact-btn" href="javascript:;">contact</a> + </div> + <!-- 主站导航 end -->c + <!-- 页眉 start --> + <div class="header"> + <!-- 页首 logo start --> + <h1 class="logo"> + <img src="../../res/images/yohood/logo3.0.png"> + </h1> + <!-- 页首 logo end --> + <!-- yohood 导航 start --> + <div class="nav"> + <ul class="clearfix"> + <!-- 单个菜单标签 start --> + <li> + <a href="javascript:;"> + <em>HOME</em> + <span>首页</span> + <i></i> + </a> + </li> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> + <li> + <a href="javascript:;"> + <em>ACTIVITY</em> + <span>活动资讯</span> + <i></i> + </a> + <!-- 二级菜单 start --> + <div class="second-menu"> + <a href="javascript:;"> + <em>品牌咨询</em> + <i></i> + </a> + <a href="javascript:;"> + <em>活动介绍</em> + <i></i> + </a> + <a href="javascript:;"> + <em>活动介绍</em> + <i></i> + </a> + <a href="javascript:;"> + <em>亮点活动</em> + <i></i> + </a> + <a href="javascript:;"> + <em>限量商品</em> + <i></i> + </a> + </div> + <!-- 二级菜单 end --> + </li> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> + <li class="current"> + <a href="javascript:;"> + <em>BRAND</em> + <span>参展品牌</span> + <i></i> + </a> + </li> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> + <li> + <a href="javascript:;"> + <em>VIDEO</em> + <span>热点视频</span> + <i></i> + </a> + </li> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> + <li> + <a href="javascript:;"> + <em>REGISTRATION</em> + <span>在线登记</span> + <i></i> + </a> + <!-- 二级菜单 start --> + <div class="second-menu"> + <a href="javascript:;"> + <em>参展商登记</em> + <i></i> + </a> + <a href="javascript:;"> + <em>媒体登记</em> + <i></i> + </a> + <a href="javascript:;"> + <em>赞助商登记</em> + <i></i> + </a> + </div> + <!-- 二级菜单 end --> + </li> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> + <li> + <a href="javascript:;"> + <em>SHOW</em> + <span>潮流分享</span> + <i></i> + </a> + </li> + <!-- 单个菜单标签 end --> + </ul> + </div> + <!-- yohood 导航 end --> + </div> + <!-- 页眉 end --> + <div class="bd"> + <!-- 页面主体头部轮播广告栏 start --> + <div class="slide-main clearfix"> + <div class="slide-box-warp"> + <div class="slide-box"> + <div class="slide-wrap clearfix"> + <!-- 单个banner start --> + <div class="box"> + <a href="javascript:;"><img src="../../res/images/yohood/banner.png" alt="" /></a> + </div> + <!-- 单个banner end --> + </div> + </div> + <div class="slide-navigator"> + <div class="dib clearfix"> + <a href="javascript:;" class="on"></a> + <a href="javascript:;"></a> + <a href="javascript:;"></a> + </div> + </div> + <div class="slide-control"> + <a class="slide-prev iconfont" href="javascript:void(0);"></a> + <a class="slide-next iconfont" href="javascript:void(0);"></a> + </div> + </div> + </div> + <!-- 页面主体头部轮播广告栏 end --> + <!-- 参展品牌页面内容主体 start --> + <div class="brand-main"> + <div class="search-wrap"> + <input type="text" placeholder="搜索品牌..."> + <a href="javascript:;" class="search-btn iconfont"></a> + </div> + <div class="brand-content"> + <ul class="brand-list cooperation-list clearfix"> + <li> + <a href="javascript:;" target="_blank"> + <div class="img-box"> + <img class="grey-brand-logo" src="../../res/images/yohood/brand-logo.png" alt=""> + </div> + <p>004</p> + </a> + <div class="brand-introduction"> + <h2>About DUSTY</h2> + <div class="brand-info clearfix"> + <div class="pic"> + <img src="../../res/images/yohood/brand-logo.png" alt=""> + </div> + <div class="text"> + <p>早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前早在25年前</p> + </div> + <div> + <a href="javascript:;">进入品牌店铺</a> + </div> + </div> + <div class="related-post brand-related-post"> + <h3>相关资讯</h3> + <div class="post-list main-layout clearfix"> + <!-- 单个资讯碎片 start --> + <div class="layout-item clearfix"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/01a9b77ff892507e57a4e334634598bad0.gif" alt=""> + <i class="play-icon"></i> + </a> + </div> + <div class="content"> + <h2 class="volupia"><a href="/news/detail/id/169">test test test test test test test test test test test</a></h2> + <p class="time">NovemBer 11,2016</p> + </div> + </div> + <!-- 单个资讯碎片 end --> + <!-- 单个资讯碎片 start --> + <div class="layout-item clearfix"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/01a9b77ff892507e57a4e334634598bad0.gif" alt=""> + <i class="play-icon"></i> + </a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test test test test</a> + </h2> + <p class="time">NovemBer 11,2016</p> + </div> + </div> + <!-- 单个资讯碎片 end --> + <!-- 单个资讯碎片 start --> + <div class="layout-item clearfix"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/01a9b77ff892507e57a4e334634598bad0.gif" alt=""> + <i class="play-icon"></i> + </a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test test test test</a> + </h2> + <p class="time">NovemBer 11,2016</p> + </div> + </div> + <!-- 单个资讯碎片 end --> + </div> + </div> + <span class="close-tag iconfont"></span> + </div> + </li> + <li> + <a href="javascript:;" target="_blank"> + <div class="img-box"> + <img class="grey-brand-logo" src="../../res/images/yohood/brand-logo.png" alt=""> + </div> + <p>004</p> + </a> + </li> + <li> + <a href="javascript:;" target="_blank"> + <div class="img-box"> + <img class="grey-brand-logo" src="../../res/images/yohood/brand-logo.png" alt=""> + </div> + <p>004</p> + </a> + </li> + <li> + <a href="javascript:;" target="_blank"> + <div class="img-box"> + <img class="grey-brand-logo" src="../../res/images/yohood/brand-logo.png" alt=""> + </div> + <p>004</p> + </a> + </li> + <li> + <a href="javascript:;" target="_blank"> + <div class="img-box"> + <img class="grey-brand-logo" src="../../res/images/yohood/brand-logo.png" alt=""> + </div> + <p>004</p> + </a> + </li> + <li> + <a href="javascript:;" target="_blank"> + <div class="img-box"> + <img class="grey-brand-logo" src="../../res/images/yohood/brand-logo.png" alt=""> + </div> + <p>004</p> + </a> + </li> + <li> + <a href="javascript:;" target="_blank"> + <div class="img-box"> + <img class="grey-brand-logo" src="../../res/images/yohood/brand-logo.png" alt=""> + </div> + <p>004</p> + </a> + </li> + <li> + <a href="javascript:;" target="_blank"> + <div class="img-box"> + <img class="grey-brand-logo" src="../../res/images/yohood/brand-logo.png" alt=""> + </div> + <p>004</p> + </a> + </li> + <li> + <a href="javascript:;" target="_blank"> + <div class="img-box"> + <img class="grey-brand-logo" src="../../res/images/yohood/brand-logo.png" alt=""> + </div> + <p>004</p> + </a> + </li> + </ul> + <div class="no-search"> + <p>未搜索到“jucy judy”的相关品牌</p> + <a href="javascript:;"> + <查看全部品牌</a> + </div> + </div> + </div> + <!-- 参展品牌页面内容主体 end --> + <!-- 合作商等信息滑动条 start --> + <div class="cooperation clearfix"> + <div class="cooperation-slide-warp"> + <div class="cooperation-slide-box"> + <div class="slide-wrap clearfix"> + <!-- 单个滑动块 start--> + <div class="box clearfix"> + <h2>主办方</h2> + <hr> + <ul class="clearfix"> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/letv.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + </ul> + </div> + <!-- 单个滑动块 end--> + <!-- 单个滑动块 start--> + <div class="box clearfix big-size"> + <h2>合作媒体</h2> + <hr> + <ul class="clearfix"> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/letv.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + </ul> + </div> + <!-- 单个滑动块 end--> + <!-- 单个滑动块 start--> + <div class="box clearfix"> + <h2>赞助品牌</h2> + <hr> + <ul class="clearfix"> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/letv.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + </ul> + </div> + <!-- 单个滑动块 end--> + <!-- 单个滑动块 start--> + <div class="box clearfix"> + <h2>餐饮支持</h2> + <hr> + <ul class="clearfix"> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/letv.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + </ul> + </div> + <!-- 单个滑动块 end--> + </div> + </div> + <div class="cooperation-slide-control"> + <a class="cooperation-slide-prev iconfont" href="javascript:void(0);"></a> + <a class="cooperation-slide-next iconfont" href="javascript:void(0);"></a> + </div> + </div> + </div> + <!-- 合作商等信息滑动条 end --> + </div> + <!-- 页脚 start --> + <div class="ft"> + <hr> + <p class="copyright"> + CopyRight © 2007-2016 南京新与力文化传播有限公司苏ICP备09011225号-11 + </p> + </div> + <!-- 页脚 end --> + <!-- 返回顶部按钮 start --> + <div class="return-top"> + <a href="javascript:void(0);" id="toTop" class="ifont" style="display: inline;"> + <span class="iconfont"></span> + </a> + </div> + <!-- 返回顶部按钮 end --> + <div class="overlay"></div> +</body> +<script type="text/javascript" src="../../res/js/lib/seajs.js"></script> +<script type="text/javascript"> +seajs.use(['jquery', 'channel'], function($, channel) { + channel.common(); + channel.brand(); +}); +</script> + +</html> diff --git a/demo/yohood3.0/contactus.html b/demo/yohood3.0/contactus.html new file mode 100644 index 0000000..c1919e1 --- /dev/null +++ b/demo/yohood3.0/contactus.html @@ -0,0 +1,260 @@ +<!doctype html> +<html lang="en"> + +<head> + <meta charset="UTF-8"> + <title>contact us</title> + <link rel="stylesheet" href="../../res/css/index.css" /> +</head> + +<body> + <!-- 主站导航 start --> + <div class="yoho-nav clearfix"> + <ul class="clearfix"> + <li> + <span>YOHO!</span> + <a href="http://www.yoho.cn" target="_blank">集团官网</a> + </li> + <li> + <span>YOHO!有货</span> + <a href="http://www.yohobuy.com" target="_blank">潮流购物</a> + </li> + <li> + <span>YOHO!BOYS</span> + <a href="http://www.yohoboys.com">男生潮流</a> + </li> + <li> + <span>YOHO!GIRLS</span> + <a href="http://www.yohogirls.com" target="_blank">女生潮流</a> + </li> + <li> + <span>YOHO!SHOW</span> + <a href="http://www.yohoshow.com" target="_blank">物趣分享</a> + </li> + <li class="current"> + <span>YOHOOD</span> + <a href="javascript:;" target="_blank">潮流嘉年华</a> + </li> + </ul> + <a class="contact-btn" href="javascript:;">contact</a> + </div> + <!-- 主站导航 end -->c + <!-- 页眉 start --> + <div class="header"> + <!-- 页首 logo start --> + <h1 class="logo"> + <img src="../../res/images/yohood/logo3.0.png"> + </h1> + <!-- 页首 logo end --> + <!-- yohood 导航 start --> + <div class="nav"> + <ul class="clearfix"> + <!-- 单个菜单标签 start --> + <li class="current"> + <a href="javascript:;"> + <em>HOME</em> + <span>首页</span> + <i></i> + </a> + </li> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> + <li> + <a href="javascript:;"> + <em>ACTIVITY</em> + <span>活动资讯</span> + <i></i> + </a> + <!-- 二级菜单 start --> + <div class="second-menu"> + <a href="javascript:;"> + <em>品牌咨询</em> + <i></i> + </a> + <a href="javascript:;"> + <em>活动介绍</em> + <i></i> + </a> + <a href="javascript:;"> + <em>活动介绍</em> + <i></i> + </a> + <a href="javascript:;"> + <em>亮点活动</em> + <i></i> + </a> + <a href="javascript:;"> + <em>限量商品</em> + <i></i> + </a> + </div> + <!-- 二级菜单 end --> + </li> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> + <li> + <a href="javascript:;"> + <em>BRAND</em> + <span>参展品牌</span> + <i></i> + </a> + </li> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> + <li> + <a href="javascript:;"> + <em>VIDEO</em> + <span>热点视频</span> + <i></i> + </a> + </li> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> + <li> + <a href="javascript:;"> + <em>REGISTRATION</em> + <span>在线登记</span> + <i></i> + </a> + <!-- 二级菜单 start --> + <div class="second-menu"> + <a href="javascript:;"> + <em>参展商登记</em> + <i></i> + </a> + <a href="javascript:;"> + <em>媒体登记</em> + <i></i> + </a> + <a href="javascript:;"> + <em>赞助商登记</em> + <i></i> + </a> + </div> + <!-- 二级菜单 end --> + </li> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> + <li> + <a href="javascript:;"> + <em>SHOW</em> + <span>潮流分享</span> + <i></i> + </a> + </li> + <!-- 单个菜单标签 end --> + </ul> + </div> + <!-- yohood 导航 end --> + </div> + <!-- 页眉 end --> + <!-- 页面主题 start --> + <div class="bd"> + <div class="contact-us-wrap clearfix"> + <!-- 联系我们 start --> + <div class="info-list contact-us-info"> + <h1 class="info-title contact-us-title">联系我们</h1> + <div class="info-section contact-us-section"> + <h2>客户服务:</h2> + <p>电话:4008899646(工作日9:00-22:30)</p> + <p>EMAIL:service@yoho.cn</p> + </div> + <div class="info-section contact-us-section"> + <h2>广告服务:</h2> + <p>北京:(+86)10 56412657</p> + <p>上海:(+86)21 51698833*8005</p> + <p>广州:(+86)83831060</p> + <p>EMAIL:advertising@yoho.cn</p> + </div> + <div class="info-section contact-us-section"> + <h2>市场合作:</h2> + <p>北京:(+86)10 56312548</p> + <p>上海:(+86)21 51698833*8013</p> + <p>EMAIL:marketing@yoho.cn</p> + </div> + <div class="info-section contact-us-section"> + <h2>网站合作:</h2> + <p>EMAIL:community@yoho.cn</p> + </div> + <div class="info-section contact-us-section"> + <h2>有货品牌合作:</h2> + <p>上海:(+86)21 51698833*8007</p> + <p>广州:(+86)20 83831060</p> + <p>EMAIL:brands@yoho.cn</p> + </div> + <div class="info-section contact-us-section"> + <h2>有货市场推广:</h2> + <p>EMAIL:haizheng.zhao@yoho.cn</p> + </div> + <div class="info-section contact-us-section"> + <h2>南京新与力文化传播有限公司:</h2> + <p>地址:南京市建邺区嘉陵江东街18号国家广告产业园5栋17,18楼</p> + <p>邮编:210017</p> + <p>电话:(+86)25 87781000</p> + <p>传真:(+86)25 87781155</p> + </div> + <div class="info-section contact-us-section"> + <h2>南京新与力文化传播有限公司北京分公司:</h2> + <p>地址:北京市朝阳区朝阳门外大街16号中国人寿大厦901室</p> + <p>邮编:100020</p> + <p>电话:(+86)10 56312400</p> + </div> + <div class="info-section contact-us-section"> + <h2>南京新与力文化传播有限公司上海分公司:</h2> + <p>地址:上海市徐汇区富民路291号悟锦世纪大厦801室</p> + <p>邮编:200040</p> + <p>电话:(+86)21 51698833</p> + </div> + <div class="info-section contact-us-section"> + <h2>南京新与力文化传播有限公司广州分公司:</h2> + <p>地址:广州市天河区林和西路157号保利中汇大厦A座602室</p> + <p>邮编:510610</p> + <p>电话:(+86)20 83777600</p> + </div> + </div> + <!-- 联系我们 end --> + <!-- 公众号信息 start --> + <div class="info-list public-number-info"> + <h1 class="info-title public-number-title">在这可以找到我们</h1> + <div class="info-section public-number-section"> + <h2>新浪微博</h2> + <p>@YOHO有货</p> + </div> + <div class="info-section public-number-section"> + <h2>微信公众平台</h2> + <p>"yohobuy4008899646"</p> + </div> + <div class="info-section public-number-section"> + <h2>或者扫描下面的二维码</h2> + <img src="http://cmsimg01.qiniudn.com/contentimg/2015/05/04/10/014aba20f78c3417e86b1b83b894a13f53.jpg" src="http://cmsimg01.qiniudn.com/contentimg/2015/05/04/10/014aba20f78c3417e86b1b83b894a13f53.jpg" alt="微信公众号二维码"> + </div> + </div> + <!-- 公众号信息 end --> + </div> + </div> + <!-- 页面主题 end --> + <!-- 页脚 start --> + <div class="ft"> + <hr> + <p class="copyright"> + CopyRight © 2007-2016 南京新与力文化传播有限公司苏ICP备09011225号-11 + </p> + </div> + <!-- 页脚 end --> + <!-- 返回顶部按钮 start --> + <div class="return-top"> + <a href="javascript:void(0);" id="toTop" class="ifont" style="display: inline;"> + <span class="iconfont"></span> + </a> + </div> + <!-- 返回顶部按钮 end --> +</body> +<script type="text/javascript" src="../../res/js/lib/seajs.js"></script> +<script type="text/javascript"> +seajs.use(['jquery', 'channel'], function($, channel) { + channel.common(); + channel.index(); +}) +</script> + +</html> diff --git a/demo/yohood3.0/detail.html b/demo/yohood3.0/detail.html new file mode 100644 index 0000000..d138338 --- /dev/null +++ b/demo/yohood3.0/detail.html @@ -0,0 +1,493 @@ +<!doctype html> +<html lang="en"> + +<head> + <meta charset="UTF-8"> + <title>detail</title> + <link rel="stylesheet" href="../../res/css/index.css" /> +</head> + +<body> + <!-- 主站导航 start --> + <div class="yoho-nav clearfix"> + <ul class="clearfix"> + <li> + <span>YOHO!</span> + <a href="http://www.yoho.cn" target="_blank">集团官网</a> + </li> + <li> + <span>YOHO!有货</span> + <a href="http://www.yohobuy.com" target="_blank">潮流购物</a> + </li> + <li> + <span>YOHO!BOYS</span> + <a href="http://www.yohoboys.com">男生潮流</a> + </li> + <li> + <span>YOHO!GIRLS</span> + <a href="http://www.yohogirls.com" target="_blank">女生潮流</a> + </li> + <li> + <span>YOHO!SHOW</span> + <a href="http://www.yohoshow.com" target="_blank">物趣分享</a> + </li> + <li class="current"> + <span>YOHOOD</span> + <a href="javascript:;" target="_blank">潮流嘉年华</a> + </li> + </ul> + <a class="contact-btn" href="javascript:;">contact</a> + </div> + <!-- 主站导航 end --> + <!-- 页眉 start --> + <div class="header"> + <!-- 页首 logo start --> + <h1 class="logo"> + <img src="../../res/images/yohood/logo3.0.png"> + </h1> + <!-- 页首 logo end --> + <!-- yohood 导航 start --> + <div class="nav"> + <ul class="clearfix"> + <!-- 单个菜单标签 start --> + <li> + <a href="javascript:;"> + <em>HOME</em> + <span>首页</span> + <i></i> + </a> + </li> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> + <li> + <a href="javascript:;"> + <em>ACTIVITY</em> + <span>活动资讯</span> + <i></i> + </a> + <!-- 二级菜单 start --> + <div class="second-menu"> + <a href="javascript:;"> + <em>品牌咨询</em> + <i></i> + </a> + <a href="javascript:;"> + <em>活动介绍</em> + <i></i> + </a> + <a href="javascript:;"> + <em>活动介绍</em> + <i></i> + </a> + <a href="javascript:;"> + <em>亮点活动</em> + <i></i> + </a> + <a href="javascript:;"> + <em>限量商品</em> + <i></i> + </a> + </div> + <!-- 二级菜单 end --> + </li> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> + <li> + <a href="javascript:;"> + <em>BRAND</em> + <span>参展品牌</span> + <i></i> + </a> + </li> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> + <li class="current"> + <a href="javascript:;"> + <em>VIDEO</em> + <span>热点视频</span> + <i></i> + </a> + </li> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> + <li> + <a href="javascript:;"> + <em>REGISTRATION</em> + <span>在线登记</span> + <i></i> + </a> + <!-- 二级菜单 start --> + <div class="second-menu"> + <a href="javascript:;"> + <em>参展商登记</em> + <i></i> + </a> + <a href="javascript:;"> + <em>媒体登记</em> + <i></i> + </a> + <a href="javascript:;"> + <em>赞助商登记</em> + <i></i> + </a> + </div> + <!-- 二级菜单 end --> + </li> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> + <li> + <a href="javascript:;"> + <em>SHOW</em> + <span>潮流分享</span> + <i></i> + </a> + </li> + <!-- 单个菜单标签 end --> + </ul> + </div> + <!-- yohood 导航 end --> + </div> + <!-- 页眉 end --> + <!-- 页面主体 start --> + <div class="bd"> + <div class="detail-wrap clearfix"> + <!-- 资讯详情标题 start --> + <div class="detail-title"> + <h2>MACxYO'HOOD 独家揭秘大秀后台</h2> + <div class="item-info"> + <a class="fluid-tag item-tag brand-info" href="javascript:;">品牌资讯</a> + <span class="item-time">November 11, 2016</span> + </div> + </div> + <!-- 资讯详情标题 end --> + <!-- 资讯内容 start --> + <div class="detail-body"> + <!-- 详情内容顶部视频 start --> + <!-- <div class="detail-video"> + <img src="http://cmsimg02.qiniudn.com/contentimg/2015/05/04/10/020bac31a0b3486691e0db157f4575f165.jpg" alt=""> + <span class="play-icon"></span> + </div> --> + <!-- 详情内容顶部视频 end --> + <!-- 详情内容顶部图片 start --> + <div class="detail-slide"> + <!-- 详情图片大图 start --> + <div class="detail-slide-body"> + <!-- 图片 start --> + <ul class="detail-slide-piclist clearfix"> + <!-- 单张图片 start --> + <li class="box"><img alt="" data-original="http://cmsimg01.qiniudn.com/contentimg/2015/05/04/10/014aba20f78c3417e86b1b83b894a13f53.jpg" src="http://cmsimg01.qiniudn.com/contentimg/2015/05/04/10/014aba20f78c3417e86b1b83b894a13f53.jpg"></li> + <!-- 单张图片 end --> + <li class="box"><img alt="" data-original="http://cmsimg02.qiniudn.com/contentimg/2015/05/04/10/020bac31a0b3486691e0db157f4575f165.jpg" src="http://cmsimg02.qiniudn.com/contentimg/2015/05/04/10/020bac31a0b3486691e0db157f4575f165.jpg"></li> + <li class="box"><img alt="" data-original="http://cmsimg02.qiniudn.com/contentimg/2015/05/04/10/01defac08591925a8c53ca384da9bfc2c6.jpg" src="http://cmsimg01.qiniudn.com/contentimg/2015/05/04/10/01defac08591925a8c53ca384da9bfc2c6.jpg"></li> + <li class="box"><img alt="" data-original="http://cmsimg02.qiniudn.com/contentimg/2015/05/04/10/02a620fa3b46be018a1626ef52c9d13944.jpg" src="http://cmsimg02.qiniudn.com/contentimg/2015/05/04/10/02a620fa3b46be018a1626ef52c9d13944.jpg"></li> + <li class="box"><img alt="" data-original="http://cmsimg01.qiniudn.com/contentimg/2015/05/04/10/014aba20f78c3417e86b1b83b894a13f53.jpg" src="http://cmsimg01.qiniudn.com/contentimg/2015/05/04/10/014aba20f78c3417e86b1b83b894a13f53.jpg"></li> + <li class="box"><img alt="" data-original="http://cmsimg02.qiniudn.com/contentimg/2015/05/04/10/020bac31a0b3486691e0db157f4575f165.jpg" src="http://cmsimg02.qiniudn.com/contentimg/2015/05/04/10/020bac31a0b3486691e0db157f4575f165.jpg"></li> + <li class="box"><img alt="" data-original="http://cmsimg01.qiniudn.com/contentimg/2015/05/04/10/01defac08591925a8c53ca384da9bfc2c6.jpg" src="http://cmsimg01.qiniudn.com/contentimg/2015/05/04/10/01defac08591925a8c53ca384da9bfc2c6.jpg"></li> + <li class="box"><img alt="" data-original="http://cmsimg02.qiniudn.com/contentimg/2015/05/04/10/02a620fa3b46be018a1626ef52c9d13944.jpg" src="http://cmsimg02.qiniudn.com/contentimg/2015/05/04/10/02a620fa3b46be018a1626ef52c9d13944.jpg"></li> + </ul> + <!-- 图片 start --> + <!-- 图片大控制按钮 start --> + <div class="slide-shadow"> + <a href="javascript:;" class="slide-shadow-prev"></a> + <a href="javascript:;" class="slide-shadow-next"></a> + </div> + <div class="detail-slide-big-ctrl"> + <a href="javascript:;" class="slide-big-ctrl-prev iconfont"></a> + <a href="javascript:;" class="slide-big-ctrl-next iconfont"></a> + </div> + <!-- 图片大控制按钮 end --> + </div> + <!-- 详情图片大图 end --> + <!-- 详情图片缩略图 start --> + <div class="detail-slide-ctrl"> + <ul class="detail-slide-ctrl-tabs clearfix"> + <li class="box"><a href="javascript:;"><span class="cover"></span><img class="lazy" data-original="http://cmsimg01.qiniudn.com/contentimg/2015/05/04/10/014aba20f78c3417e86b1b83b894a13f53.jpg" alt="" src="http://cmsimg01.qiniudn.com/contentimg/2015/05/04/10/014aba20f78c3417e86b1b83b894a13f53.jpg"></a></li> + <li class="box"><a href="javascript:;"><span class="cover"></span><img class="lazy" data-original="http://cmsimg02.qiniudn.com/contentimg/2015/05/04/10/020bac31a0b3486691e0db157f4575f165.jpg" alt="" src="http://cmsimg02.qiniudn.com/contentimg/2015/05/04/10/020bac31a0b3486691e0db157f4575f165.jpg"></a></li> + <li class="box"><a href="javascript:;"><span class="cover"></span><img class="lazy" data-original="http://cmsimg01.qiniudn.com/contentimg/2015/05/04/10/01defac08591925a8c53ca384da9bfc2c6.jpg" alt="" src="http://cmsimg01.qiniudn.com/contentimg/2015/05/04/10/01defac08591925a8c53ca384da9bfc2c6.jpg"></a></li> + <li class="box"><a href="javascript:;"><span class="cover"></span><img class="lazy" data-original="http://cmsimg02.qiniudn.com/contentimg/2015/05/04/10/02a620fa3b46be018a1626ef52c9d13944.jpg" alt="" src="http://cmsimg02.qiniudn.com/contentimg/2015/05/04/10/02a620fa3b46be018a1626ef52c9d13944.jpg"></a></li> + <li class="box"><a href="javascript:;"><span class="cover"></span><img class="lazy" data-original="http://cmsimg01.qiniudn.com/contentimg/2015/05/04/10/014aba20f78c3417e86b1b83b894a13f53.jpg" alt="" src="http://cmsimg01.qiniudn.com/contentimg/2015/05/04/10/014aba20f78c3417e86b1b83b894a13f53.jpg"></a></li> + <li class="box"><a href="javascript:;"><span class="cover"></span><img class="lazy" data-original="http://cmsimg02.qiniudn.com/contentimg/2015/05/04/10/020bac31a0b3486691e0db157f4575f165.jpg" alt="" src="http://cmsimg02.qiniudn.com/contentimg/2015/05/04/10/020bac31a0b3486691e0db157f4575f165.jpg"></a></li> + <li class="box"><a href="javascript:;"><span class="cover"></span><img class="lazy" data-original="http://cmsimg02.qiniudn.com/contentimg/2015/05/04/10/020bac31a0b3486691e0db157f4575f165.jpg" alt="" src="http://cmsimg02.qiniudn.com/contentimg/2015/05/04/10/020bac31a0b3486691e0db157f4575f165.jpg"></a></li> + <li class="box"><a href="javascript:;"><span class="cover"></span><img class="lazy" data-original="http://cmsimg01.qiniudn.com/contentimg/2015/05/04/10/01defac08591925a8c53ca384da9bfc2c6.jpg" alt="" src="http://cmsimg01.qiniudn.com/contentimg/2015/05/04/10/01defac08591925a8c53ca384da9bfc2c6.jpg"></a></li> + </ul> + <a href="javascript:;" class="detail-slide-ctrl-prev iconfont"></a> + <a href="javascript:;" class="detail-slide-ctrl-next iconfont"></a> + </div> + <!-- 详情图片缩略图 end --> + </div> + <!-- 详情内容顶部图片 end --> + <!-- 详情内容文章 start --> + <div class="text-body"> + <p>不知大家还是否记得前不久YOHO!BOYS为各位推送的P.A.M春夏系列宣传画册,近日,此番包括长短袖图案 T-Shirt、连帽卫衣、Duplo 长裤与带有 3D 口袋的短裤等多款轻松塑造夏日型格的实穿单品已正式发布啦!延续了一贯擅于将街头元素与不按常理出牌迷幻美学结合的风格,P.A.M今季运用创新的面料结合巧思的细节与醒目夸张的印花诠释了「标签暨艺术」的设计理念,与此同时也多多少少展现了美少男们骨子里的“小骚气”。该系列已可经由someday-store购得。Hey,boys!准备好高调一夏了吗?</p> + <p>不知大家还是否记得前不久YOHO!BOYS为各位推送的P.A.M春夏系列宣传画册,近日,此番包括长短袖图案 T-Shirt、连帽卫衣、Duplo 长裤与带有 3D 口袋的短裤等多款轻松塑造夏日型格的实穿单品已正式发布啦!延续了一贯擅于将街头元素与不按常理出牌迷幻美学结合的风格,P.A.M今季运用创新的面料结合巧思的细节与醒目夸张的印花诠释了「标签暨艺术」的设计理念,与此同时也多多少少展现了美少男们骨子里的“小骚气”。该系列已可经由someday-store购得。Hey,boys!准备好高调一夏了吗?</p> + </div> + <!-- 详情内容文章 end --> + <!-- 相关推荐 start --> + <div class="related-post detail-related-post"> + <h3>相关推荐</h3> + <hr> + <!-- 相关推荐资讯 start --> + <div class="post-list main-layout clearfix"> + <!-- 单个资讯碎片 start --> + <div class="layout-item clearfix"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/01a9b77ff892507e57a4e334634598bad0.gif" alt=""> + <i class="play-icon"></i> + </a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test test test test</a> + </h2> + <p class="time">NovemBer 11,2016</p> + </div> + </div> + <!-- 单个资讯碎片 end --> + <!-- 单个资讯碎片 start --> + <div class="layout-item clearfix"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/01a9b77ff892507e57a4e334634598bad0.gif" alt=""> + <i class="play-icon"></i> + </a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test test test test test test test test</a> + </h2> + <p class="time">NovemBer 11,2016</p> + </div> + </div> + <!-- 单个资讯碎片 end --> + <!-- 单个资讯碎片 start --> + <div class="layout-item clearfix"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/01a9b77ff892507e57a4e334634598bad0.gif" alt=""> + <i class="play-icon"></i> + </a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test test test test</a> + </h2> + <p class="time">NovemBer 11,2016</p> + </div> + </div> + <!-- 单个资讯碎片 end --> + </div> + <!-- 相关推荐资讯碎片 end --> + </div> + <!-- 相关推荐 end --> + </div> + <!-- 资讯内容 end --> + <!-- 资讯侧边栏 start --> + <div class="detail-side"> + <!-- 右侧固定广告位 start --> + <div class="detail-ad"> + <ul> + <li> + <a href="javascript:;"><img src="http://img01.yohoboys.com/ezineimg/2015/05/05/09/015390c327b8c67dca48be4dc024f04bb1.jpg?imageMogr2/thumbnail/!0340x0426r/crop/0340x0426" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="http://img01.yohoboys.com/ezineimg/2015/05/05/09/015390c327b8c67dca48be4dc024f04bb1.jpg?imageMogr2/thumbnail/!0340x0426r/crop/0340x0426" alt=""></a> + </li> + </ul> + </div> + <!-- 右侧固定广告位 end --> + <!-- 右侧最新资讯/视频 start --> + <div class="side-related-post"> + <div class="side-related-tab clearfix"> + <a class="current" href="javascript:;">最新资讯</a> + <span>/</span> + <a href="javascript:;">最新视频</a> + </div> + <!-- 最新信息碎片 start --> + <div class="side-related-wrap"> + <!-- 最新资讯 start --> + <div class="side-related-list main-layout current"> + <!-- 单个资讯碎片 start --> + <div class="layout-item clearfix"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/01a9b77ff892507e57a4e334634598bad0.gif" alt=""> + </a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test</a> + </h2> + </div> + <hr> + </div> + <!-- 单个资讯碎片 end --> + <!-- 单个资讯碎片 start --> + <div class="layout-item clearfix"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/01a9b77ff892507e57a4e334634598bad0.gif" alt=""> + </a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test</a> + </h2> + </div> + <hr> + </div> + <!-- 单个资讯碎片 end --> + <!-- 单个资讯碎片 start --> + <div class="layout-item clearfix"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img02.res.yoho.cn/blogimg/2014/10/21/15/02c51ce4d3b1f8cc8c0be2f9ccdbfce6ca.jpg" alt=""> + </a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test</a> + </h2> + </div> + <hr> + </div> + <!-- 单个资讯碎片 end --> + </div> + <!-- 最新资讯 end --> + <!-- 最新视频 start --> + <div class="side-related-list main-layout"> + <!-- 单个视频碎片 start --> + <div class="layout-item clearfix"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img02.res.yoho.cn/blogimg/2014/10/21/15/02c51ce4d3b1f8cc8c0be2f9ccdbfce6ca.jpg" alt=""> + <i class="play-icon"></i> + </a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test</a> + </h2> + </div> + <hr> + </div> + <!-- 单个视频碎片 end --> + <!-- 单个视频碎片 start --> + <div class="layout-item clearfix"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img02.res.yoho.cn/blogimg/2014/10/21/15/02c51ce4d3b1f8cc8c0be2f9ccdbfce6ca.jpg" alt=""> + <i class="play-icon"></i> + </a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test</a> + </h2> + </div> + <hr> + </div> + <!-- 单个视频碎片 end --> + <!-- 单个视频碎片 start --> + <div class="layout-item clearfix"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img02.res.yoho.cn/blogimg/2014/10/21/15/02c51ce4d3b1f8cc8c0be2f9ccdbfce6ca.jpg" alt=""> + <i class="play-icon"></i> + </a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test</a> + </h2> + </div> + <hr> + </div> + <!-- 单个视频碎片 end --> + </div> + <!-- 最新视频 end --> + </div> + <!-- 最新信息碎片 end --> + </div> + <!-- 右侧最新资讯/视频 end --> + </div> + <!-- 资讯侧边栏 end --> + </div> + </div> + <!-- 页面主体 start --> + <!-- 页脚 start --> + <div class="ft"> + <hr> + <p class="copyright"> + CopyRight © 2007-2016 南京新与力文化传播有限公司苏ICP备09011225号-11 + </p> + </div> + <!-- 页脚 end --> + <!-- 分享按钮 start --> + <div class="share" data-link="http://newgirls.test.yoho.cn/channel/detail/index/id/2315" cover-url="http://cmsimg01.qiniudn.com/contentimg/2015/05/12/13/0147a071d80901d152ce04dc4341905d26.jpg"> + <h4>share</h4> + <ul> + <li class="yohoo-share-button-sina"> + <a href="javascript:;"><img src="../../res/images/yohood/share-sina-btn.png" alt="Share to sina"></a> + </li> + <li class="yohoo-share-button-wx"> + <a href="javascript:;"> + <img src="../../res/images/yohood/share-wx-btn.png" alt="Share to weixin"> + </a> + <div class="wx-qrcode-dialog"> + <div class="wx-popup-hd"> + <span>分享到微信朋友圈</span> + </div> + <div class="wx-popup-bd"> + <img src=""> + </div> + <div class="wx-popup-ft">点击底部的“发现”,使用 + <br>“扫一扫”即可分享。</div> + </div> + </li> + <li class="yohoo-share-button-qq"> + <a href="javascript:;"> + <img src="../../res/images/yohood/share-qq-btn.png" alt="Share to qZone"> + </a> + </li> + <li class="yohoo-share-button-facebook"> + <a href="javascript:;"> + <img src="../../res/images/yohood/share-fb-btn.png" alt="Share to facebook"> + </a> + </li> + </ul> + </div> + <!-- 分享按钮 end --> + <!-- 返回顶部按钮 start --> + <div class="return-top"> + <a href="javascript:void(0);" id="toTop" class="ifont" style="display: inline;"> + <span class="iconfont"></span> + </a> + </div> + <!-- 返回顶部按钮 end --> + <!-- 点击图片显示大图 start --> + <div class="detial-img-zoom"> + <div class="img-zoom "> + <img src=""> + <a href="javascript:;" class="close-btn"></a> + <a href="javascript:;" class="img-zoom-ctrl-prev iconfont"></a> + <a href="javascript:;" class="img-zoom-ctrl-next iconfont"></a> + </div> + <div class="overlay"></div> + </div> + <!-- 点击图片显示大图 end --> +</body> +<script type="text/javascript" src="../../res/js/lib/seajs.js"></script> +<script type="text/javascript"> +seajs.use(['jquery', 'channel'], function($, channel) { + channel.common(); + // channel.detail(); +}) +seajs.use(['jquery', 'yohood'], function($, yohood) { + // channel.common(); + yohood.detail(); +}) + +</script> + +</html> diff --git a/demo/yohood3.0/exhibition.html b/demo/yohood3.0/exhibition.html new file mode 100644 index 0000000..898cd20 --- /dev/null +++ b/demo/yohood3.0/exhibition.html @@ -0,0 +1,283 @@ +<!doctype html> +<html> +<head> + <meta charset="UTF-8"/> + <link rel="stylesheet" href="http://res.yohood.test.yoho.cn/css/style.css"/> + +</head> +<body> + +<div class="wrapper"> + + <div class="container"> + + <div class="header"> + <a href="/"><img src="http://res.yohood.test.yoho.cn/images/yohood/logo.png" alt=""/></a> + </div> + <div class="navigator"> + <ul class="clearfix"> + <li><a href="">首页</a></li> + <li><a href="">活动介绍</a></li> + <li><a href="">资讯</a></li> + <li><a href="">品牌</a></li> + <li><a href="">限量推荐</a></li> + <li><a href="">现场活动</a></li> + <li><a href="">SHOW</a></li> + <li><a href="">入场券</a></li> + </ul> + <a href="" class="goToYohobuy" title="有货"></a> + <span class="navigatorBar"></span> + </div> + <div class="slide-box-exhibition"> + <div class="slide-wrap-exhibition"> + <div class="box"><img src="http://res.yohood.test.yoho.cn/images/yohood/exhibition_small/slide.png" alt=""/></div> + <div class="box"><img src="http://res.yohood.test.yoho.cn/images/yohood/exhibition_small/slide.png" alt=""/></div> + <div class="box"><img src="http://res.yohood.test.yoho.cn/images/yohood/exhibition_small/slide.png" alt=""/></div> + </div> + <div class="slide-navigator"> + <div class="dib clearfix"> + <a href="" class="on"></a> + <a href=""></a> + <a href=""></a> + </div> + </div> + </div> + <div class="slide-control"> + <a class="slide-prev-exhibition" href="javascript:void(0);"></a> + <a class="slide-next-exhibition" href="javascript:void(0);"></a> + </div> + + <div class="exhibition-vedio"> + <object class="content-web-flash" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> + <param value="http://res.yoho.cn/res/yohood/swf/YohoodPlayer.swf?url=http://video.res.yohoshow.com/1280bearbrick_web.mp4" name="movie"><param value="high" name="quality"><param value="#ffffff" name="bgcolor"><param name="allowFullScreen" value="true"> + <param value="always" name="allowScriptAccess"><param value="transparent" name="wmode"><embed align="middle" style="width:700px;height:394px;" allowscriptaccess="always" loop="false" quality="high" src="http://res.yoho.cn/res/yohood/swf/YohoodPlayer.swf?url=http://video.res.yohoshow.com/1280bearbrick_web.mp4" width="0" height="0"> + </object> + </div> + <div class="exhibition-containt"> + +<div class='exhibition-row-containt'><div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_1.png'/><div class='exhibition-text'>Uglydoll<div class='innertext'>(David Horvath)</div></div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_2.png'/><div class='exhibition-text'>Xu Zhen</div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_3.png'/><div class='exhibition-text'>FUJIKO·F·FUJIO PRO</div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_4.png'/><div class='exhibition-text'>FUMIYA FUJII</div></div> +</div> +<div class='exhibition-row-containt'><div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_5.png'/><div class='exhibition-text'>MUVEIL<div class='innertext'>(Michiko Nakayama)</div></div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_6.png'/><div class='exhibition-text'>OriginalFake<div class='innertext'>(KAWS)</div></div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_7.png'/><div class='exhibition-text'>T9G<div class='innertext'>(TAKUJI)</div></div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_8.png'/><div class='exhibition-text'>Sebastian Masuda</div></div> +</div> +<div class='exhibition-row-containt'><div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_9.png'/><div class='exhibition-text'>PAUL&JOE<div class='innertext'>(Sophie ALBOU)</div></div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_10.png'/><div class='exhibition-text'>A BATHING APE(R)(NIGO(R))</div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_11.png'/><div class='exhibition-text'>Andre SARAIVA</div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_12.png'/><div class='exhibition-text'>ANREALAGE<div class='innertext'>(Kunihiko Morinaga)</div></div></div> +</div> +<div class='exhibition-row-containt'><div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_13.png'/><div class='exhibition-text'>BEAMS<div class='innertext'>(YO SHITARA)</div></div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_14.png'/><div class='exhibition-text'>Been Trill</div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_15.png'/><div class='exhibition-text'>Charles M.Schulz’s Studio<div class='innertext'>(Paige Braddock)</div></div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_16.png'/><div class='exhibition-text'>CHEN MAN</div></div> +</div> +<div class='exhibition-row-containt'><div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_17.png'/><div class='exhibition-text'>Colette</div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_18.png'/><div class='exhibition-text'>CONRAD LEACH</div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_19.png'/><div class='exhibition-text'>D[di]</div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_20.png'/><div class='exhibition-text'>DEVILROBOTS</div></div> +</div> +<div class='exhibition-row-containt'><div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_21.png'/><div class='exhibition-text'>Dr.Romanelli</div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_22.png'/><div class='exhibition-text'>Ed Banger records<div class='innertext'>(Pedro”Busy P”Winter)</div></div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_23.png'/><div class='exhibition-text'>EDISON CHEN</div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_24.png'/><div class='exhibition-text'>ELEY KISHIIMOTO <div class='innertext'>(MARK ELEY&WAKAKO KISHIMOTO)</div></div></div> +</div> +<div class='exhibition-row-containt'><div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_25.png'/><div class='exhibition-text'>FILIP PAGOWSKI</div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_26.png'/><div class='exhibition-text'>fragmentdesign <div class='innertext'>(hiroshi fujiwara)</div></div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_27.png'/><div class='exhibition-text'>fragmentdesign <div class='innertext'>(hiroshi fujiwara)</div></div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_28.png'/><div class='exhibition-text'>FROGMAN</div></div> +</div> +<div class='exhibition-row-containt'><div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_29.png'/><div class='exhibition-text'>Genevieve Gauckler</div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_30.png'/><div class='exhibition-text'>GReeeeN</div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_31.png'/><div class='exhibition-text'>HAJIME SORAYAMA</div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_32.png'/><div class='exhibition-text'>HEADQUARTER <div class='innertext'>(RICARDO CAMPA)</div></div></div> +</div> +<div class='exhibition-row-containt'><div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_33.png'/><div class='exhibition-text'>HIRONOBU TSUJIGUCHI</div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_34.png'/><div class='exhibition-text'>HIROSHI TAMAKI</div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_35.png'/><div class='exhibition-text'>House Industries</div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_36.png'/><div class='exhibition-text'>HYSTERIC GLAMOUR<div class='innertext'>(NOBUHIKO KITAMURA)</div></div></div> +</div> +<div class='exhibition-row-containt'><div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_37.png'/><div class='exhibition-text'>JAM HOME MADE</div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_38.png'/><div class='exhibition-text'>James Jarvis</div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_39.png'/><div class='exhibition-text'>K-CO & GO</div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_40.png'/><div class='exhibition-text'>KARIMOKU<div class='innertext'>(HIROSHI KATO)</div></div></div> +</div> +<div class='exhibition-row-containt'><div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_41.png'/><div class='exhibition-text'>katsuyuki motohiro</div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_42.png'/><div class='exhibition-text'>Kevin Poon</div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_43.png'/><div class='exhibition-text'>Kim Songhe</div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_44.png'/><div class='exhibition-text'>Kuntzel + Deygas</div></div> +</div> +<div class='exhibition-row-containt'><div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_45.png'/><div class='exhibition-text'>Levi’s(R)</div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_46.png'/><div class='exhibition-text'>Libertine<div class='innertext'>(Johnson Hartig)</div></div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_47.png'/><div class='exhibition-text'>Lucasfilm Ltd.</div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_48.png'/><div class='exhibition-text'>maico akiba</div></div> +</div> +<div class='exhibition-row-containt'><div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_49.png'/><div class='exhibition-text'>MATT BLACK</div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_50.png'/><div class='exhibition-text'>Max Toy Company<div class='innertext'>(Mark Nagata)</div></div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_51.png'/><div class='exhibition-text'>MEDICOM TOY CORPORATION</div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_52.png'/><div class='exhibition-text'>Mika Ninagawa</div></div> +</div> +<div class='exhibition-row-containt'><div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_53.png'/><div class='exhibition-text'>mintdesigns <div class='innertext'>(Hokuto KatsuiNao Yagi)</div></div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_54.png'/><div class='exhibition-text'>MOGRAPHIXX<div class='innertext'> (HIROMITSU AKIBA)</div></div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_55.png'/><div class='exhibition-text'>NEIGHBORHOOD <div class='innertext'>(Shinsuke takizawa)</div></div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_56.png'/><div class='exhibition-text'>NEXUSVII <div class='innertext'>(TOMOHIRO KONNO)</div></div></div> +</div> +<div class='exhibition-row-containt'><div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_57.png'/><div class='exhibition-text'>Nick Knight</div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_58.png'/><div class='exhibition-text'>NIKE<div class='innertext'>(Mark Parker)</div></div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_59.png'/><div class='exhibition-text'>P.M.Ken</div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_60.png'/><div class='exhibition-text'>play set products<div class='innertext'>(Shiro Nakano)</div></div></div> +</div> +<div class='exhibition-row-containt'><div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_61.png'/><div class='exhibition-text'>PUSHEAD</div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_62.png'/><div class='exhibition-text'>Rolito</div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_63.png'/><div class='exhibition-text'>Ryuichi Sakamoto</div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_64.png'/><div class='exhibition-text'>SANDAIMEUOTAKEHAMADASHIGEO</div></div> +</div> +<div class='exhibition-row-containt'><div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_65.png'/><div class='exhibition-text'>SANRIO(YUKO YAMAGUCHI)</div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_66.png'/><div class='exhibition-text'>SASQUATCHfabrix.<div class='innertext'>(Wonder Worker Guerrilla Band.)</div></div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_67.png'/><div class='exhibition-text'>Satoshi Fumihara</div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_68.png'/><div class='exhibition-text'>SENSE<div class='innertext'>(SATOSHI MORIYA)</div></div></div> +</div> +<div class='exhibition-row-containt'><div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_69.png'/><div class='exhibition-text'>Snarkitecture</div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_70.png'/><div class='exhibition-text'>SSUR<div class='innertext'>(RUSLAN V KARABLIN)</div></div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_71.png'/><div class='exhibition-text'>STASH</div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_72.png'/><div class='exhibition-text'>STUSSY</div></div> +</div> +<div class='exhibition-row-containt'><div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_73.png'/><div class='exhibition-text'>TMT <div class='innertext'>(KENTAABE, TAKANORI NAGANO)</div></div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_74.png'/><div class='exhibition-text'>The Walt Disney Company (Japan)Ltd.Disney Consumer Products</div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_75.png'/><div class='exhibition-text'>TOKIDOKI<div class='innertext'>(Simone Legno)</div></div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_76.png'/><div class='exhibition-text'>TOY TOKYO</div></div> +</div> +<div class='exhibition-row-containt'><div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_77.png'/><div class='exhibition-text'>UNKLE<div class='innertext'>(JAMES LAVELLE)</div></div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_78.png'/><div class='exhibition-text'>Vlone</div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_79.png'/><div class='exhibition-text'>Wonderwall<div class='innertext'>(Masamichi Katayama)</div></div></div> +<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_80.png'/><div class='exhibition-text'>YOSHIDA & CO.,LTD.</div></div> +</div> +<div class='exhibition-row-containt'><div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_81.png'/><div class='exhibition-text'>Zeebra</div></div> +</div> + + + </div> + + </div> +</div> + + <!--这段代码为demo自用JS不需要合并到PHP文件,start(以下代码不需要合并)--> +<!--<textarea id="codecontent" style="width:1000px;height:600px;"></textarea> +<button onclick="build()">生成代码</button>--> +<!--这段代码为demo自用JS不需要合并到PHP文件,end(以上代码不需要合并)--> +</body> + <script type='text/javascript' src="http://res.yohood.test.yoho.cn/js/lib/seajs.js"></script> + <script type='text/javascript'> + seajs.use("channel",function(channel){ + channel.exhibition(); + }); + </script> + + + + <!--以下代码为demo自用JS不需要合并到PHP文件--> + <script type="text/javascript"> + var imgText=[ + "Uglydoll<div class='innertext'>(David Horvath)</div>", + "Xu Zhen", + "FUJIKO·F·FUJIO PRO", + "FUMIYA FUJII", + "MUVEIL<div class='innertext'>(Michiko Nakayama)</div>", + "OriginalFake<div class='innertext'>(KAWS)</div>", + "T9G<div class='innertext'>(TAKUJI)</div>", + "Sebastian Masuda", + "PAUL&JOE<div class='innertext'>(Sophie ALBOU)</div>", + "A BATHING APE(R)<div class='innertext'>(NIGO(R))</div>", + "Andre SARAIVA", + "ANREALAGE<div class='innertext'>(Kunihiko Morinaga)</div>", + "BEAMS<div class='innertext'>(YO SHITARA)</div>", + "Been Trill", + "Charles M.Schulz’s Studio<div class='innertext'>(Paige Braddock)</div>", + "CHEN MAN", + "Colette", + "CONRAD LEACH", + "D[di]", + "DEVILROBOTS", + "Dr.Romanelli", + "Ed Banger records<div class='innertext'>(Pedro”Busy P”Winter)</div>", + "EDISON CHEN", + "ELEY KISHIIMOTO <div class='innertext'>(MARK ELEY&WAKAKO KISHIMOTO)</div>", + "FILIP PAGOWSKI", + "fragmentdesign <div class='innertext'>(hiroshi fujiwara)</div>", + "fragmentdesign <div class='innertext'>(hiroshi fujiwara)</div>", + "FROGMAN", + "Genevieve Gauckler", + "GReeeeN", + "HAJIME SORAYAMA", + "HEADQUARTER <div class='innertext'>(RICARDO CAMPA)</div>", + "HIRONOBU TSUJIGUCHI", + "HIROSHI TAMAKI", + "House Industries", + "HYSTERIC GLAMOUR<div class='innertext'>(NOBUHIKO KITAMURA)</div>", + "JAM HOME MADE", + "James Jarvis", + "K-CO & GO", + "KARIMOKU<div class='innertext'>(HIROSHI KATO)</div>", + "katsuyuki motohiro", + "Kevin Poon", + "Kim Songhe", + "Kuntzel + Deygas", + "Levi’s(R)", + "Libertine<div class='innertext'>(Johnson Hartig)</div>", + "Lucasfilm Ltd.", + "maico akiba", + "MATT BLACK", + "Max Toy Company<div class='innertext'>(Mark Nagata)</div>", + "MEDICOM TOY CORPORATION", + "Mika Ninagawa", + "mintdesigns <div class='innertext'>(Hokuto KatsuiNao Yagi)</div>", + "MOGRAPHIXX<div class='innertext'> (HIROMITSU AKIBA)</div>", + "NEIGHBORHOOD <div class='innertext'>(Shinsuke takizawa)</div>", + "NEXUSVII <div class='innertext'>(TOMOHIRO KONNO)</div>", + "Nick Knight", + "NIKE<div class='innertext'>(Mark Parker)</div>", + "P.M.Ken", + "play set products<div class='innertext'>(Shiro Nakano)</div>", + "PUSHEAD", + "Rolito", + "Ryuichi Sakamoto", + "SANDAIMEUOTAKEHAMADASHIGEO", + "SANRIO(YUKO YAMAGUCHI)", + "SASQUATCHfabrix.<div class='innertext'>(Wonder Worker Guerrilla Band.)</div>", + "Satoshi Fumihara", + "SENSE<div class='innertext'>(SATOSHI MORIYA)</div>", + "Snarkitecture", + "SSUR<div class='innertext'>(RUSLAN V KARABLIN)</div>", + "STASH", + "STUSSY", + "TMT <div class='innertext'>(KENTAABE, TAKANORI NAGANO)</div>", + "The Walt Disney Company (Japan)Ltd.Disney Consumer Products", + "TOKIDOKI<div class='innertext'>(Simone Legno)</div>", + "TOY TOKYO", + "UNKLE<div class='innertext'>(JAMES LAVELLE)</div>", + "Vlone", + "Wonderwall<div class='innertext'>(Masamichi Katayama)</div>", + "YOSHIDA & CO.,LTD.", + "Zeebra" + ]; + function build(){ + var codecontent=document.getElementById("codecontent"); + var rowCode="<div class='exhibition-row-containt'>"; + var tmpCode=""; + for(var i=1;i<82;i++) + { + rowCode+="<div class='exhibition-img-containt'><img class='exhibition-img' src='http://res.yohood.test.yoho.cn/images/yohood/exhibition/exhibition_"+i+".png'/><div class='exhibition-text'>"+imgText[i-1]+"</div></div>\r\n"; + if(i%4==0) + { + tmpCode+=rowCode+"</div>\r\n"; + rowCode="<div class='exhibition-row-containt'>"; + } + } + tmpCode+=rowCode+"</div>\r\n"; + codecontent.value=tmpCode; + } + </script> +</html> \ No newline at end of file diff --git a/demo/yohood3.0/index.html b/demo/yohood3.0/index.html new file mode 100644 index 0000000..00e6e89 --- /dev/null +++ b/demo/yohood3.0/index.html @@ -0,0 +1,569 @@ +<!doctype html> +<html lang="en"> + +<head> + <meta charset="UTF-8"> + <title>Home</title> + <link rel="stylesheet" href="../../res/css/index.css" /> +</head> + +<body> + <!-- 主站导航 start --> + <div class="yoho-nav clearfix"> + <ul class="clearfix"> + <li> + <span>YOHO!</span> + <a href="http://www.yoho.cn" target="_blank">集团官网</a> + </li> + <li> + <span>YOHO!有货</span> + <a href="http://www.yohobuy.com" target="_blank">潮流购物</a> + </li> + <li> + <span>YOHO!BOYS</span> + <a href="http://www.yohoboys.com">男生潮流</a> + </li> + <li> + <span>YOHO!GIRLS</span> + <a href="http://www.yohogirls.com" target="_blank">女生潮流</a> + </li> + <li> + <span>YOHO!SHOW</span> + <a href="http://www.yohoshow.com" target="_blank">物趣分享</a> + </li> + <li class="current"> + <span>YOHOOD</span> + <a href="javascript:;" target="_blank">潮流嘉年华</a> + </li> + </ul> + <a class="contact-btn" href="javascript:;">contact</a> + </div> + <!-- 主站导航 end -->c + <!-- 页眉 start --> + <div class="header"> + <!-- 页首 logo start --> + <h1 class="logo"> + <img src="../../res/images/yohood/logo3.0.png"> + </h1> + <!-- 页首 logo end --> + <!-- yohood 导航 start --> + <div class="nav"> + <ul class="clearfix"> + <!-- 单个菜单标签 start --> + <li class="current"> + <a href="javascript:;"> + <em>HOME</em> + <span>首页</span> + <i></i> + </a> + </li> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> + <li> + <a href="javascript:;"> + <em>ACTIVITY</em> + <span>活动资讯</span> + <i></i> + </a> + <!-- 二级菜单 start --> + <div class="second-menu"> + + <a href="javascript:;"> + <em>品牌咨询</em> + <i></i> + </a> + <a href="javascript:;"> + <em>活动介绍</em> + <i></i> + </a> + <a href="javascript:;"> + <em>活动介绍</em> + <i></i> + </a> + <a href="javascript:;"> + <em>亮点活动</em> + <i></i> + </a> + <a href="javascript:;"> + <em>限量商品</em> + <i></i> + </a> + </div> + <!-- 二级菜单 end --> + </li> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> + <li> + <a href="javascript:;"> + <em>BRAND</em> + <span>参展品牌</span> + <i></i> + </a> + </li> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> + <li> + <a href="javascript:;"> + <em>VIDEO</em> + <span>热点视频</span> + <i></i> + </a> + </li> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> + <li> + <a href="javascript:;"> + <em>REGISTRATION</em> + <span>在线登记</span> + <i></i> + </a> + <!-- 二级菜单 start --> + <div class="second-menu"> + <a href="javascript:;"> + <em>参展商登记</em> + <i></i> + </a> + <a href="javascript:;"> + <em>媒体登记</em> + <i></i> + </a> + <a href="javascript:;"> + <em>赞助商登记</em> + <i></i> + </a> + </div> + <!-- 二级菜单 end --> + </li> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> + <li> + <a href="javascript:;"> + <em>SHOW</em> + <span>潮流分享</span> + <i></i> + </a> + </li> + <!-- 单个菜单标签 end --> + </ul> + </div> + <!-- yohood 导航 end --> + </div> + <!-- 页眉 end --> + <!-- 页面主体 start --> + <div class="bd"> + <!-- 页面主体头部轮播广告栏 start --> + <div class="slide-main clearfix"> + <div class="slide-box-warp"> + <div class="slide-box"> + <div class="slide-wrap clearfix"> + <!-- 单个banner start --> + <div class="box"> + <a href="javascript:;"><img src="../../res/images/yohood/banner.png" alt="" /></a> + </div> + <!-- 单个banner end --> + + </div> + </div> + <div class="slide-navigator"> + <div class="dib clearfix"> + <a href="javascript:;" class="on"></a> + <a href="javascript:;"></a> + <a href="javascript:;"></a> + </div> + </div> + <div class="slide-control"> + <a class="slide-prev iconfont" href="javascript:void(0);"></a> + <a class="slide-next iconfont" href="javascript:void(0);"></a> + </div> + </div> + </div> + <!-- 页面主体头部轮播广告栏 end --> + <!-- 页面资讯内容 start --> + <div class="content-wrap clearfix"> + <div class="fluid-list"> + <!-- 资讯碎片瀑布流 start --> + <div id="index_content" class="fluid-list-inner main-layout clearfix"> + <!-- 单个资讯碎片 start --> + <div class="fluid-item layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="../../res/images/yohood/center-1-1.png" alt=""> + </a> + </div> + <div class="item-info"> + <a class="fluid-tag item-tag brand-info" href="javascript:;">品牌资讯</a> + <span class="item-time">November 11, 2016</span> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test test test test test test test test test test test test test </a> + </h2> + <p class="text-content">content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content </p> + </div> + </div> + <!-- 单个资讯碎片 end --> + <!-- 单个资讯碎片 start --> + <div class="fluid-item layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="../../res/images/yohood/center-1-2.png" alt=""> + </a> + <span class="play-icon"></span> + </div> + <div class="item-info"> + <a class="fluid-tag item-tag activity-intro" href="javascript:;">活动介绍</a> + <span class="item-time">November 11, 2016</span> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test test test test test test test test </a> + </h2> + <p class="text-content">content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content </p> + </div> + </div> + <!-- 单个资讯碎片 end --> + <!-- 单个资讯碎片 start --> + <div class="fluid-item layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="../../res/images/yohood/center-1-3.png" alt=""> + </a> + </div> + <div class="item-info"> + <a class="fluid-tag item-tag spotlight-activity" href="javascript:;">亮点活动</a> + <span class="item-time">November 11, 2016</span> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test test test test test test test test test test test test</a> + </h2> + <p class="text-content">content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content </p> + </div> + </div> + <!-- 单个资讯碎片 end --> + <!-- 单个资讯碎片 start --> + <div class="fluid-item layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="../../res/images/yohood/center-2-1.png" alt=""> + </a> + </div> + <div class="item-info"> + <a class="fluid-tag item-tag limited-edition" href="javascript:;">限量商品</a> + <span class="item-time">November 11, 2016</span> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test test test test test test test test </a> + </h2> + <p class="text-content">content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content </p> + </div> + </div> + <!-- 单个资讯碎片 end --> + <!-- 单个资讯碎片 start --> + <div class="fluid-item layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="../../res/images/yohood/center-2-2.png" alt=""> + </a> + </div> + <div class="item-info"> + <a class="fluid-tag item-tag brand-info" href="javascript:;">品牌资讯</a> + <span class="item-time">November 11, 2016</span> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test test test test test test test test </a> + </h2> + <p class="text-content">content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content </p> + </div> + </div> + <!-- 单个资讯碎片 end --> + <!-- 单个资讯碎片 start --> + <div class="fluid-item layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="../../res/images/yohood/center-2-3.png" alt=""> + </a> + </div> + <div class="item-info"> + <a class="fluid-tag item-tag activity-intro" href="javascript:;">活动介绍</a> + <span class="item-time">November 11, 2016</span> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test test test test test test test test </a> + </h2> + <p class="text-content">content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content </p> + </div> + </div> + <!-- 单个资讯碎片 end --> + <!-- 单个资讯碎片 start --> + <div class="fluid-item layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="../../res/images/yohood/center-3-1.png" alt=""> + </a> + </div> + <div class="item-info"> + <a class="fluid-tag item-tag spotlight-activity" href="javascript:;">亮点活动</a> + <span class="item-time">November 11, 2016</span> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test test test test test test test test </a> + </h2> + <p class="text-content">content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content </p> + </div> + </div> + <!-- 单个资讯碎片 end --> + <!-- 单个资讯碎片 start --> + <div class="fluid-item layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="../../res/images/yohood/center-3-2.png" alt=""> + </a> + </div> + <div class="item-info"> + <a class="fluid-tag item-tag limited-edition" href="javascript:;">限量商品</a> + <span class="item-time">November 11, 2016</span> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test test test test test test test test </a> + </h2> + <p class="text-content">content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content </p> + </div> + </div> + <!-- 单个资讯碎片 end --> + <!-- 单个资讯碎片 start --> + <div class="fluid-item layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="../../res/images/yohood/center-3-3.png" alt=""> + </a> + </div> + <div class="item-info"> + <a class="fluid-tag item-tag brand-info" href="javascript:;">品牌资讯</a> + <span class="item-time">November 11, 2016</span> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test test test test test test test test </a> + </h2> + <p class="text-content">content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content </p> + </div> + </div> + <!-- 单个资讯碎片 end --> + </div> + <!-- 资讯碎片瀑布流 end --> + <!-- 分页 start --> + <div id="pageContent" style="text-align: center;" class="pagination"> + <div class="pagination-inner" id="img_page" model="default" rel=""> + <a class="current" p="1">1</a> + <a href="http://www.yohood.cn/default/index/page/2" class="link2" p="2">2</a> + <a href="http://www.yohood.cn/default/index/page/3" class="link2" p="3">3</a> + <a href="http://www.yohood.cn/default/index/page/4" class="link2 page-fold" p="4">····</a> + <a href="http://www.yohood.cn/default/index/page/5" class="link2" p="5">5</a> + <a href="http://www.yohood.cn/default/index/page/6" class="link2" p="6">6</a> + <a href="http://www.yohood.cn/default/index/page/2" class="link2" p="2">NEXT ></a> + </div> + </div> + <!-- 分页 end --> + </div> + </div> + <!-- 页面资讯内容 end --> + <!-- 合作商等信息滑动条 start --> + <div class="cooperation clearfix"> + <div class="cooperation-slide-warp"> + <div class="cooperation-slide-box"> + <div class="slide-wrap clearfix"> + <!-- 单个滑动块 start--> + <div class="box clearfix"> + <h2>主办方</h2> + <hr> + <ul class="clearfix"> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/letv.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + </ul> + </div> + <!-- 单个滑动块 end--> + <!-- 单个滑动块 start--> + <div class="box clearfix big-size"> + <h2>合作媒体</h2> + <hr> + <ul class="clearfix"> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/letv.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + </ul> + </div> + <!-- 单个滑动块 end--> + <!-- 单个滑动块 start--> + <div class="box clearfix"> + <h2>赞助品牌</h2> + <hr> + <ul class="clearfix"> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/letv.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + </ul> + </div> + <!-- 单个滑动块 end--> + <!-- 单个滑动块 start--> + <div class="box clearfix"> + <h2>餐饮支持</h2> + <hr> + <ul class="clearfix"> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/letv.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + <li> + <a href="javascript:;"><img src="../../res/images/yohood/cooperation/tudou.png" alt=""></a> + </li> + </ul> + </div> + <!-- 单个滑动块 end--> + </div> + </div> + <div class="cooperation-slide-control"> + <a class="cooperation-slide-prev iconfont" href="javascript:void(0);"></a> + <a class="cooperation-slide-next iconfont" href="javascript:void(0);"></a> + </div> + </div> + </div> + <!-- 合作商等信息滑动条 end --> + </div> + <!-- 页面主体 end --> + <!-- 资讯内容右侧固定banner start --> + <div id="right_banner_warp" class="right-banner-warp" num="2"> + <div class="right-banner fluid-item layout-item tiled"> + <div class="image-box"> + <a href="http://www.baidu.com" target="_blank"> + <img disopen="1" src="../../res/images/yohood/center-3-1.png"> + </a> + </div> + <div class="image-box"> + <a href="http://www.sina.com" target="_blank"> + <img disopen="1" src="../../res/images/yohood/center-3-1.png"> + </a> + </div> + </div> + </div> + <!-- 资讯内容右侧固定banner end --> + <!-- 页脚 start --> + <div class="ft"> + <hr> + <p class="copyright"> + CopyRight © 2007-2016 南京新与力文化传播有限公司苏ICP备09011225号-11 + </p> + </div> + <!-- 页脚 end --> + <!-- 返回顶部按钮 start --> + <div class="return-top"> + <a href="javascript:void(0);" id="toTop" class="ifont" style="display: inline;"> + <span class="iconfont"></span> + </a> + </div> + <!-- 返回顶部按钮 end --> +</body> +<script type="text/javascript" src="../../res/js/lib/seajs.js"></script> +<script type="text/javascript"> +seajs.use(['jquery', 'channel'], function($, channel) { + channel.common(); + channel.index(); +}) +</script> + +</html> diff --git a/demo/yohood3.0/introduction.html b/demo/yohood3.0/introduction.html new file mode 100644 index 0000000..4c22665 --- /dev/null +++ b/demo/yohood3.0/introduction.html @@ -0,0 +1,93 @@ +<!doctype html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>Home</title> + <link rel="stylesheet" href="http://res.yohood.test.yoho.cn/css/style.css"/> +</head> +<body> + <div class="wrapper"> + <div class="container"> + <div class="header"> + <a href="/"><img src="http://res.yohood.test.yoho.cn/images/yohood/logo.png" alt=""/></a> + </div> + <!-- navigator start --> + <div class="navigator"> + <ul class="clearfix"> + <li><a href="">首页</a></li> + <li><a href="">活动介绍</a></li> + <li><a href="">资讯</a></li> + <li><a href="">品牌</a></li> + <li><a href="">限量推荐</a></li> + <li><a href="">现场活动</a></li> + <li><a href="">SHOW</a></li> + <li><a href="">入场券</a></li> + </ul> + <a href="" class="goToYohobuy" title="有货"></a> + <span class="navigatorBar"></span> + </div> + <!-- content start --> + <div class="content-wrap clearfix"> + <div class="introduction"> + + </div> + <div class="activity-ask"> + <h2>Q&A</h2> + </div> + <div class="activity-qa"> + <h3><span>Q</span>1.什么叫预售?</h3> + <p class="activity-borderline"><span>A</span>活动当天品牌将在现场展示尚未上市的2013秋冬季商品,消费者可通过有货进行下单支付,产品将在秋冬上市后发货到消费者手中。</p> + <h3><span>Q</span>2.我不是YOHOBUY的会员,可以购票吗?</h3> + <p class="activity-borderline"><span>A</span>活动针对所有消费者开放,但线上购票需要先登录YOHOBUY,请通过简单流程完成注册。</p> + <h3><span>Q</span>3.我可以在现场用现金购物吗?</h3> + <p class="activity-borderline"><span>A</span>现场商品均为秋冬商品预售,通过有货在线购物,不接受现金支付。</p> + <h3><span>Q</span>4.现场是否可以购买并且拿到货品?</h3> + <p class="activity-borderline"><span>A</span>现场商品均为秋冬商品预售,货品会在上市后送到消费者手中。</p> + <h3><span>Q</span>5.一个账户可以购买多张同一天的单日票吗?</h3> + <p class="activity-borderline"><span>A</span>单日票和账户绑定,一个账户仅限购该日票一张。</p> + <h3><span>Q</span>6.我想参加两天的活动,如何购票?</h3> + <p class="activity-borderline"><span>A</span>请分别购买两天的活动门票,两天的门票会绑定到同一有货账户,进行商品预购。</p> + <h3><span>Q</span>7.预购商品什么时候可以收到货品?</h3> + <p class="activity-borderline"><span>A</span>商品会在秋冬上市,具体上市时间会在商品信息中标明。订单发货时间以同一订单内最晚到货商品时间为准。</p> + <h3><span>Q</span>8.如何可以早一些拿到商品?</h3> + <p class="activity-borderline"><span>A</span>可以在下单时进行拆单,分开支付。</p> + <h3><span>Q</span>9.已支付的订单是否可以退换货?</h3> + <p class="activity-borderline"><span>A</span>预购商品非质量问题不予退换,如有质量问题可进行退货,不接受换货。</p> + <h3><span>Q</span>10.如何进行支付?</h3> + <p class="activity-borderline"><span>A</span>请参见有货支付规则。</p> + <h3><span>Q</span>11.现场是否可以通过手机支付?</h3> + <p class="activity-borderline"><span>A</span>可通过下载有货手机客户端,在现场进行货品查看</p> + <h3><span>Q</span>12.有什么品牌会参加?</h3> + <p class="activity-borderline"><span>A</span>具体参展品牌请查询活动参展品牌页面。</p> + <h3><span>Q</span>13.在活动之后我是否还可以进行商品购买?</h3> + <p class="activity-borderline"><span>A</span>两天活动之后,会有7天线上活动,可进行商品购买。但商品数量有限,建议消费者提早购买下单。</p> + <h3><span>Q</span>14.现场活动具体时间安排是怎么样的?</h3> + <p class="activity-borderline"><span>A</span>请留意活动安排新闻发布。</p> + <h3><span>Q</span>15.购买了二维码遗失了怎么办?</h3> + <p class="activity-borderline"><span>A</span>二维码会保存在您的有货账户下,可在现场通过服务台咨询找回。</p> + <h3><span>Q</span>16.购买多件商品是否会有折扣,是否包邮?</h3> + <p class="activity-borderline"><span>A</span>预购商品不提供折扣,不提供包邮</p> + <h3><span>Q</span>17.预购商品是否可以和非预售商品合并订单?</h3> + <p class="activity-borderline"><span>A</span>不可合并订单。</p> + <h3><span>Q</span>18.门票是否可以进行退换?</h3> + <p class="activity-borderline"><span>A</span>门票已经售出不可退换,但由于活动不可抗拒原因造成消费者当天无法入场,可进行门票退换,具体操作可咨询客服。</p> + <h3><span>Q</span>19.会场是否有试衣间?</h3> + <p class="activity-borderline"><span>A</span>部分品牌提供试衣间,您可在现场试衣。</p> + <h3><span>Q</span>20.现场除了商品预购还有什么活动?</h3> + <p class="activity-borderline"><span>A</span>现场除了商品预购,还会有品牌新品发布会、潮流时尚Fashion Show、VIP潮流派对、潮流文化论坛和CLOT-Frank 151 MOOKBOOK现场签书会。详情请留意YO’HOOD官网。</p> + <h3><span>Q</span>21.我可以近距离接触品牌主理人吗?</h3> + <p class="activity-borderline"><span>A</span>品牌主理人都会亲临现场,详情请留意YO’HOOD官网。</p> + <h3><span>Q</span>22.如何获得现场签书?</h3> + <p class="activity-borderline"><span>A</span>现场完成CLOT-Frank 151 MOOKBOOK书本购买,即可参加现场签书会,和明星主理人面对面,名额有限,先到先得。详情请留意YO’HOOD官网。</p> + <h3><span>Q</span>23.是否可以进行现场售票?</h3> + <p class="activity-borderline"><span>A</span>现场出售当日票,并在现场进行有货账户绑定。为了更快速入场,建议在YOHOBUY提前完成购票。</p> + <h3><span>Q</span>24.品牌展出方式是怎样的?</h3> + <p class="activity-borderline"><span>A</span>现场品牌均有自己的独立展位。</p> + <h3><span>Q</span>25.现场是否会有限定、联名产品?</h3> + <p class="activity-borderline"><span>A</span>此次活动,许多顶尖潮牌推出活动独家限定商品,以及YO’HOOD联名产品,详情请留意YO’HOOD官网。</p> + </div> + </div> + </div> + </div> +</body> +</html> \ No newline at end of file diff --git a/demo/yohood3.0/list.html b/demo/yohood3.0/list.html new file mode 100644 index 0000000..1b0ec4c --- /dev/null +++ b/demo/yohood3.0/list.html @@ -0,0 +1,99 @@ +<!doctype html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>Home</title> + <link rel="stylesheet" href="http://res.yohood.test.yoho.cn/css/style.css"/> +</head> +<body> + <div class="wrapper"> + <div class="container"> + <div class="header"> + <a href="/"><img src="http://res.yohood.test.yoho.cn/images/yohood/logo.png" alt=""/></a> + </div> + <!-- navigator start --> + <div class="navigator"> + <ul class="clearfix"> + <li><a href="">首页</a></li> + <li><a href="">活动介绍</a></li> + <li><a href="">资讯</a></li> + <li><a href="">品牌</a></li> + <li><a href="">限量推荐</a></li> + <li><a href="">现场活动</a></li> + <li><a href="">SHOW</a></li> + <li><a href="">入场券</a></li> + </ul> + <a href="" class="goToYohobuy" title="有货"></a> + <span class="navigatorBar"></span> + </div> + <!-- content start --> + <div class="content-wrap clearfix"> + <div class="list-tag clearfix"> + <a class="current" href="#">ALL(87)</a> + <a href="#">明星</a> + <a href="#">品牌</a> + </div> + <div class="clearfix fluid-list-inner"> + <div class="fluid-item"> + <div class="image-box"> + <a href="#"> + <img src="http://res.yohood.test.yoho.cn/images/yohood/photo_02.png" alt=""/> + <a href="" class="fluid-tag">brand</a> + </a> + </div> + <div class="content"> + <h2 class="volupia"><a href="#">LeBron James</a></h2> + <h3><a href="#">不爱猿人更爱咖喱</a></h3> + <p class="time">2014.07.13</p> + <p>自从Nigo离开自己一手创立的A Bathing Ape后,A Bathing Ape的设计美感早和...</p> + </div> + </div> + <div class="fluid-item"> + <div class="image-box"> + <a href="#"> + <img src="http://res.yohood.test.yoho.cn/images/yohood/photo_01.png" alt=""/> + <a href="" class="fluid-tag">brand</a> + </a> + </div> + <div class="content"> + <h2 class="volupia"><a href="#">LeBron James</a></h2> + <h3><a href="#">不爱猿人更爱咖喱</a></h3> + <p class="time">2014.07.13</p> + <p>自从Nigo离开自己一手创立的A Bathing Ape后,A Bathing Ape的设计美感早和...</p> + </div> + </div> + <div class="fluid-item"> + <div class="image-box image-video"> + <a href="#"> + <img src="http://res.yohood.test.yoho.cn/images/yohood/video_01.png" alt=""/> + <span class="icon-video"></span> + <a href="" class="fluid-tag">video</a> + </a> + </div> + <div class="content"> + <h2 class="volupia"><a href="#">LeBron James</a></h2> + <h3><a href="#">不爱猿人更爱咖喱</a></h3> + <p class="time">2014.07.13</p> + <p>自从Nigo离开自己一手创立的A Bathing Ape后,A Bathing Ape的设计美感早和...</p> + </div> + </div> + <div class="fluid-item"> + <div class="image-box"> + <a href="#"> + <img src="http://res.yohood.test.yoho.cn/images/yohood/photo_01.png" alt=""/> + <a href="" class="fluid-tag">brand</a> + </a> + </div> + <div class="content"> + <h2 class="volupia"><a href="#">LeBron James</a></h2> + <h3><a href="#">不爱猿人更爱咖喱</a></h3> + <p class="time">2014.07.13</p> + <p>自从Nigo离开自己一手创立的A Bathing Ape后,A Bathing Ape的设计美感早和...</p> + </div> + </div> + </div> + </div> + </div> + </div> +</body> +</html> \ No newline at end of file diff --git a/demo/yohood3.0/mobile/activity.html b/demo/yohood3.0/mobile/activity.html new file mode 100644 index 0000000..4a55c77 --- /dev/null +++ b/demo/yohood3.0/mobile/activity.html @@ -0,0 +1,212 @@ +<!doctype html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>activity</title> + <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0 user-scalable=no" /> + <meta content="yes" name="apple-mobile-web-app-capable" /> + <meta content="yes" name="apple-touch-fullscreen" /> + <meta content="telephone=no" name="format-detection" /> + <meta content="black" name="apple-mobile-web-app-status-bar-style" /> + <link rel="stylesheet" href="../../../res/css/mobile.css"/> +</head> +<body> + <div class="mobile-wrap"> + <div class="hd"> + <div class="header-download clearfix"> + <div class="tip-pic"></div> + <div class="tip-info"> + <h2>YOHO!有货</h2> + <p>随手随心,潮流购物利器大公开</p> + <a class="yohoboy-download-app">OPEN</a> + </div> + <span class="tip-close"></span> + </div> + <h1 class="logo iconfont"><a class="back-btn iconfont" href="javascript:;"></a></h1> + </div> + <div class="bd"> + <div class="activity-tab content-tab"> + <ul class="clearfix"> + <li class="current"><a href="javascript:;">活动内容</a></li> + <li><a href="javascript:;">往期视频</a></li> + <li><a href="javascript:;">赞助商</a></li> + </ul> + </div> + <div class="activity-main"> + <div class="activity-content content-main current"> + <div class="section"><img src="http://img02.res.yoho.cn/blogimg/2014/09/05/10/021658277c2d2ce200b26b91b717ecbd1d.jpg" alt=""></div> + <div class="section"><p>内地最具潮流影响力的传媒集团 YOHO!倾力打造的年度潮流盛事 YO’HOOD 在2014年秋天再度火热来袭,将于9月20、21日登陆上海世贸商城。 </p></div> + <div class="section"> + <p>YO’HOOD 源于 YOHO!NEIGHBORHOOD,意为 YOHO!打造的年轻潮流社区。</p> + <p>在这里,YOHO!召集所有年轻潮流爱好者,感受原创文化力量。</p> + </div> + <div class="section"> + <h4>活动流程:</h4> + <p>线上售票 8月20日- 9月19日</p> + <p>现场活动 9月20日- 9月21日</p> + <p>线上销售 9月20日-10月20日</p> + </div> + <div class="section"> + <h4>活动地点:</h4> + <p>上海市长宁区兴义路99号上海世贸商城</p> + <p>现场活动 9月20日- 9月21日</p> + <p>交通路线:公交车48、925、936、911、57、709、748、827、88、121、127、855路。地铁2号线(娄山关路站)、3号线(延安西路站)、10号线(伊犁路站)。</p> + </div> + <div class="section"> + <img src="http://img02.res.yoho.cn/blogimg/2014/08/07/20/0267c6b5a5bcb583eb149cc19b82811ea5.gif" alt=""> + </div> + </div> + <div class="activity-content content-main"> + <div class="video-wrap"> + <div class="main-layout clearfix"> + <div class="layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/01a9b77ff892507e57a4e334634598bad0.gif" alt=""> + <i class="play-icon"></i> + </a> + <a class="item-tag" href="javascript:;">视频</a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test</a> + </h2> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + <div class="layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img02.res.yoho.cn/blogimg/2014/10/23/17/020aba6cb71b6620e4e8dd50658a1daf03.jpg" alt=""> + </a> + <a class="item-tag" href="javascript:;">视频</a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test</a> + </h2> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + <div class="layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/015a858eda76bac64d84a0dbcea87dbd3a.gif" alt=""> + </a> + <a class="item-tag" href="javascript:;">视频</a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test</a> + </h2> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + <div class="layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img02.res.yoho.cn/blogimg/2014/10/17/14/02e26b4e08c06766b619b3bf40e31cfc14.jpg" alt=""> + </a> + <a class="item-tag" href="javascript:;">视频</a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test</a> + </h2> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + </div> + </div> + <div id="pageContent" style="text-align: center;" class="pagination"> + <div class="pagination-inner clearfix" id="img_page" model="default" rel=""> + <a href="javascript:;"><span class="iconfont"></span> PREV</a> + <a href="javascript:;">NEXT <span class="iconfont"></span></a> + </div> + </div> + </div> + <div class="activity-content content-main"> + <div class="activity-cooperation"> + <div class="section"> + <h2>特邀合作伙伴</h2> + <ul class="cooperation-list clearfix"> + <li><a href="javascript:;" target="_blank"> + <div class="img-box"> + <img src="../../../res/images/yohood/cooperation/xhc.png" alt=""> + </div> + </a></li> + </ul> + </div> + <div class="section"> + <h2>特邀合作媒体</h2> + <ul class="cooperation-list clearfix"> + <li><a href="javascript:;" target="_blank"> + <div class="img-box"> + <img src="../../../res/images/yohood/cooperation/xhc.png" alt=""> + </div> + </a></li> + </ul> + </div> + <div class="section"> + <h2>赞助品牌</h2> + <ul class="cooperation-list clearfix"> + <li><a href="javascript:;" target="_blank"> + <div class="img-box"> + <img src="../../../res/images/yohood/cooperation/xhc.png" alt=""> + </div> + </a></li> + <li><a href="javascript:;" target="_blank"> + <div class="img-box"> + <img src="../../../res/images/yohood/cooperation/xhc.png" alt=""> + </div> + </a></li> + <li><a href="javascript:;" target="_blank"> + <div class="img-box"> + <img src="../../../res/images/yohood/cooperation/xhc.png" alt=""> + </div> + </a></li> + <li><a href="javascript:;" target="_blank"> + <div class="img-box"> + <img src="../../../res/images/yohood/cooperation/xhc.png" alt=""> + </div> + </a></li> + <li><a href="javascript:;" target="_blank"> + <div class="img-box"> + <img src="../../../res/images/yohood/cooperation/xhc.png" alt=""> + </div> + </a></li> + <li><a href="javascript:;" target="_blank"> + <div class="img-box"> + <img src="../../../res/images/yohood/cooperation/xhc.png" alt=""> + </div> + </a></li> + </ul> + </div> + <div class="section"> + <h2>合作媒体</h2> + <ul class="cooperation-list clearfix"> + <li><a href="javascript:;" target="_blank"> + <div class="img-box"> + <img src="../../../res/images/yohood/cooperation/xhc.png" alt=""> + </div> + </a></li> + </ul> + </div> + </div> + </div> + </div> + </div> + </div> +</body> +<script type="text/javascript" src="../../../res/js/lib/seajs.js"></script> +<script type="text/javascript"> + seajs.use(['zepto', 'mobile'],function($, mobile){ + //mobile.common(); + mobile.activity(); + }) +</script> +</html> \ No newline at end of file diff --git a/demo/yohood3.0/mobile/brand-detail.html b/demo/yohood3.0/mobile/brand-detail.html new file mode 100644 index 0000000..923f0a6 --- /dev/null +++ b/demo/yohood3.0/mobile/brand-detail.html @@ -0,0 +1,67 @@ +<!doctype html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>brand-detail</title> + <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0 user-scalable=no" /> + <meta content="yes" name="apple-mobile-web-app-capable" /> + <meta content="yes" name="apple-touch-fullscreen" /> + <meta content="telephone=no" name="format-detection" /> + <meta content="black" name="apple-mobile-web-app-status-bar-style" /> + <link rel="stylesheet" href="../../../res/css/mobile.css"/> +</head> +<body> + <div class="mobile-wrap"> + <div class="hd"> + <div class="header-download clearfix"> + <div class="tip-pic"></div> + <div class="tip-info"> + <h2>YOHO!有货</h2> + <p>随手随心,潮流购物利器大公开</p> + <a class="yohoboy-download-app">OPEN</a> + </div> + <span class="tip-close"></span> + </div> + <h1 class="logo iconfont"><a class="back-btn iconfont" href="javascript:;"></a></h1> + </div> + <div class="bd"> + <div class="detail-title brand-title"> + <h2 class="title">About 004</h2> + </div> + <div class="detail-article"> + <img src="http://img02.res.yoho.cn/blogimg/2014/10/16/16/02ad6eefcb3554eb47f5a936487d25cb21.jpg" alt=""> + <p>作为Playground唯一特装展位的THETHING,利用砂砾岩石打造出土耳其卡帕多西亚般的风化地貌,配合充满异域风情的原始帐篷和细节陈列,成为整个YOHOOD展区最独特的存在。</p> + <a class="enter-store" href="javascript:;">进入品牌店铺</a> + </div> + <div class="related-post"> + <h2>相关推荐</h2> + <ul> + <li> + <a class="clearfix" href="javascript:;"> + <div class="image-box"> + <img src="http://img03.res.yoho.cn/blogimg/2014/10/17/11/0117c3d2c5348b9322ab9bbcbfecda3305.jpg?imageMogr2/thumbnail/!0138x0075r/crop/0138x0075/strip/quality/80" alt=""> + </div> + <div class="content">作为Playground唯一特装展位的THETHING,利用砂砾岩石打造出土耳其卡帕多西亚般的风化地貌</div> + </a> + </li> + <li> + <a class="clearfix" href="javascript:;"> + <div class="image-box"> + <img src="http://img03.res.yoho.cn/blogimg/2014/10/17/11/0117c3d2c5348b9322ab9bbcbfecda3305.jpg?imageMogr2/thumbnail/!0138x0075r/crop/0138x0075/strip/quality/80" alt=""> + </div> + <div class="content">作为Playground唯一特装展位的THETHING,利用砂砾岩石打造出土耳其卡帕多西亚般的风化地貌</div> + </a> + </li> + </ul> + </div> + </div> + </div> +</body> +<script type="text/javascript" src="../../../res/js/lib/seajs.js"></script> +<script type="text/javascript"> + seajs.use(['zepto', 'mobile'],function($, mobile){ + //mobile.common(); + mobile.detail(); + }) +</script> +</html> \ No newline at end of file diff --git a/demo/yohood3.0/mobile/brand.html b/demo/yohood3.0/mobile/brand.html new file mode 100644 index 0000000..28689fc --- /dev/null +++ b/demo/yohood3.0/mobile/brand.html @@ -0,0 +1,124 @@ +<!doctype html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>brand</title> + <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0 user-scalable=no" /> + <meta content="yes" name="apple-mobile-web-app-capable" /> + <meta content="yes" name="apple-touch-fullscreen" /> + <meta content="telephone=no" name="format-detection" /> + <meta content="black" name="apple-mobile-web-app-status-bar-style" /> + <link rel="stylesheet" href="../../../res/css/mobile.css"/> +</head> +<body> + <div class="mobile-wrap"> + <div class="hd"> + <div class="header-download-wrap"> + <div class="header-download clearfix"> + <div class="tip-pic"></div> + <div class="tip-info"> + <h2>YOHO!有货</h2> + <p>随手随心,潮流购物利器大公开</p> + <a class="yohoboy-download-app">OPEN</a> + </div> + <span class="tip-close"></span> + </div> + </div> + <h1 class="logo iconfont"><a class="back-btn iconfont" href="javascript:;"></a></h1> + </div> + <div class="bd"> + <div class="search-wrap"> + <input type="text"> + <a href="javascript:;" class="search-btn"><span class="iconfont"></span><em>搜索</em></a> + </div> + <div class="slide-main"> + <div class="slide-box"> + <div class="slide-wrap clearfix"> + <div class="box"><a href="javascript:;"><img src="http://img03.res.yoho.cn/blogimg/2014/09/23/13/0179e17640e29e62b52439902484a8fa50.gif?imageMogr2/thumbnail/!0968x0468r/crop/0968x0468/strip/quality/80" alt=""/></a></div> + <div class="box"><a href="javascript:;"><img src="http://img03.res.yoho.cn/blogimg/2014/09/23/13/01f0a56c52203da48881a64b336b41091b.jpg?imageMogr2/thumbnail/!0968x0468r/crop/0968x0468/strip/quality/80" alt=""/></a></div> + <div class="box"><a href="javascript:;"><img src="http://img04.res.yoho.cn/blogimg/2014/11/17/11/025aadd704383ed18365f15a5e1cde9e5d.jpg?imageMogr2/thumbnail/!0968x0468r/crop/0968x0468/strip/quality/80" alt=""/></a></div> + </div> + </div> + <div class="slide-navigator"> + <div class="dib clearfix"> + </div> + </div> + </div> + <div class="brand-main"> + <div class="brand-content"> + <ul class="brand-list cooperation-list clearfix"> + <li> + <a href="javascript:;" target="_blank"> + <div class="img-box"> + <img src="../../../res/images/yohood/cooperation/brand-img.png" alt=""> + </div> + <p>004</p> + </a> + </li> + <li><a href="javascript:;" target="_blank"> + <div class="img-box"> + <img src="../../../res/images/yohood/cooperation/brand-img.png" alt=""> + </div> + <p>004</p> + </a></li> + <li><a href="javascript:;" target="_blank"> + <div class="img-box"> + <img src="../../../res/images/yohood/cooperation/brand-img.png" alt=""> + </div> + <p>004</p> + </a></li> + <li><a href="javascript:;" target="_blank"> + <div class="img-box"> + <img src="../../../res/images/yohood/cooperation/brand-img.png" alt=""> + </div> + <p>004</p> + </a></li> + <li><a href="javascript:;" target="_blank"> + <div class="img-box"> + <img src="../../../res/images/yohood/cooperation/brand-img.png" alt=""> + </div> + <p>004</p> + </a></li> + <li><a href="javascript:;" target="_blank"> + <div class="img-box"> + <img src="../../../res/images/yohood/cooperation/brand-img.png" alt=""> + </div> + <p>004</p> + </a></li> + <li><a href="javascript:;" target="_blank"> + <div class="img-box"> + <img src="../../../res/images/yohood/cooperation/brand-img.png" alt=""> + </div> + <p>004</p> + </a></li> + <li><a href="javascript:;" target="_blank"> + <div class="img-box"> + <img src="../../../res/images/yohood/cooperation/brand-img.png" alt=""> + </div> + <p>004</p> + </a></li> + <li><a href="javascript:;" target="_blank"> + <div class="img-box"> + <img src="../../../res/images/yohood/cooperation/brand-img.png" alt=""> + </div> + <p>004</p> + </a></li> + </ul> + <div class="no-search"> + <p>未搜索到“jucy judy”的相关品牌</p> + <a href="javascript:;"><查看全部品牌</a> + </div> + </div> + </div> + </div> + <div class="overlay"></div> + </div> +</body> +<script type="text/javascript" src="../../../res/js/lib/seajs.js"></script> +<script type="text/javascript"> + seajs.use(['zepto', 'mobile'],function($, mobile){ + mobile.common(); + mobile.brand(); + }) +</script> +</html> \ No newline at end of file diff --git a/demo/yohood3.0/mobile/contactus.html b/demo/yohood3.0/mobile/contactus.html new file mode 100644 index 0000000..9f8e858 --- /dev/null +++ b/demo/yohood3.0/mobile/contactus.html @@ -0,0 +1,73 @@ +<!doctype html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>contact</title> + <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0 user-scalable=no" /> + <meta content="yes" name="apple-mobile-web-app-capable" /> + <meta content="yes" name="apple-touch-fullscreen" /> + <meta content="telephone=no" name="format-detection" /> + <meta content="black" name="apple-mobile-web-app-status-bar-style" /> + <link rel="stylesheet" href="../../../res/css/mobile.css"/> +</head> +<body> + <div class="mobile-wrap"> + <div class="hd"> + <div class="header-download clearfix"> + <div class="tip-pic"></div> + <div class="tip-info"> + <h2>YOHO!有货</h2> + <p>随手随心,潮流购物利器大公开</p> + <a class="yohoboy-download-app">OPEN</a> + </div> + <span class="tip-close"></span> + </div> + <h1 class="logo iconfont"><a class="back-btn iconfont" href="javascript:;"></a></h1> + </div> + <div class="bd"> + <div class="contact-us-section"> + <h2>客户服务</h2> + <p>Email:wen@yoho.cn</p> + </div> + <div class="contact-us-section"> + <p>-</p> + <h2>广告服务</h2> + <p>北京:010-85253558-814</p> + <p>上海:021-51001909-8005</p> + <p>广州:020-83831060/83777600-811</p> + <p>Email:niki.li@yoho.cn</p> + </div> + <div class="contact-us-section"> + <p>-</p> + <h2>市场合作</h2> + <p>上海:021-51001909-8013</p> + <p>Email:marketing@yoho.cn</p> + </div> + <div class="contact-us-section"> + <p>-</p> + <h2>网站合作:</h2> + <p>Email:community@yoho.cn</p> + </div> + <div class="contact-us-section"> + <p>-</p> + <h2>有货品牌合作</h2> + <p>上海:021-51001909-8007</p> + <p>广州:020-83831060/83777600</p> + <p>Email:yhpp@yoho.cn</p> + </div> + <div class="contact-us-section"> + <p>-</p> + <h2>有货市场推广</h2> + <p>Email:haizheng.zhao@yoho.cn</p> + </div> + </div> + </div> +</body> +<script type="text/javascript" src="../../../res/js/lib/seajs.js"></script> +<script type="text/javascript"> + seajs.use(['zepto', 'mobile'],function($, mobile){ + //mobile.common(); + mobile.scene(); + }) +</script> +</html> \ No newline at end of file diff --git a/demo/yohood3.0/mobile/detail.html b/demo/yohood3.0/mobile/detail.html new file mode 100644 index 0000000..be6ea87 --- /dev/null +++ b/demo/yohood3.0/mobile/detail.html @@ -0,0 +1,92 @@ +<!doctype html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>detail</title> + <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0 user-scalable=no" /> + <meta content="yes" name="apple-mobile-web-app-capable" /> + <meta content="yes" name="apple-touch-fullscreen" /> + <meta content="telephone=no" name="format-detection" /> + <meta content="black" name="apple-mobile-web-app-status-bar-style" /> + <link rel="stylesheet" href="../../../res/css/mobile.css"/> +</head> +<body> + <div class="mobile-wrap"> + <div class="hd"> + <div class="header-download clearfix"> + <div class="tip-pic"></div> + <div class="tip-info"> + <h2>YOHO!有货</h2> + <p>随手随心,潮流购物利器大公开</p> + <a class="yohoboy-download-app">OPEN</a> + </div> + <span class="tip-close"></span> + </div> + <h1 class="logo iconfont"><a class="back-btn iconfont" href="javascript:;"></a></h1> + </div> + <div class="bd"> + <div class="detail-title"> + <h2 class="title">Skin Art Series INN 2015新品</h2> + <h3 class="subtitle">2月13日 12:34</h3> + </div> + <div class="slide-main"> + <div class="slide-box"> + <div class="slide-wrap clearfix"> + <div class="box"><a href="javascript:;"><img src="http://img03.res.yoho.cn/blogimg/2014/09/23/13/0179e17640e29e62b52439902484a8fa50.gif?imageMogr2/thumbnail/!0968x0468r/crop/0968x0468/strip/quality/80" alt=""/></a></div> + <div class="box"><a href="javascript:;"><img src="http://img03.res.yoho.cn/blogimg/2014/09/23/13/01f0a56c52203da48881a64b336b41091b.jpg?imageMogr2/thumbnail/!0968x0468r/crop/0968x0468/strip/quality/80" alt=""/></a></div> + <div class="box"><a href="javascript:;"><img src="http://img04.res.yoho.cn/blogimg/2014/11/17/11/025aadd704383ed18365f15a5e1cde9e5d.jpg?imageMogr2/thumbnail/!0968x0468r/crop/0968x0468/strip/quality/80" alt=""/></a></div> + </div> + </div> + <div class="slide-navigator"> + <div class="dib clearfix"> + <a href="javascript:;" class="on"></a> + <a href="javascript:;"></a> + <a href="javascript:;"></a> + </div> + </div> + </div> + <div class="detail-article"> + <img src="http://img02.res.yoho.cn/blogimg/2014/10/16/16/02ad6eefcb3554eb47f5a936487d25cb21.jpg" alt=""> + <p>作为Playground唯一特装展位的THETHING,利用砂砾岩石打造出土耳其卡帕多西亚般的风化地貌,配合充满异域风情的原始帐篷和细节陈列,成为整个YOHOOD展区最独特的存在。</p> + <img src="http://img02.res.yoho.cn/blogimg/2014/10/16/16/021003d3906adb43934e0efe21d16a2a05.jpg" alt=""> + <p>THETHING 成立于2005年,专注与服装和生活用品的开发,GRAPHIC是设计的核心。目前在上海和北京有多家自营概念店,国内外已经有合作伙伴销售 “THETHING”品牌的服饰和生活类产品。“THETHING”解释为“这东西”。没有所谓具体的含义,THETHING的设计灵感都体现在每一件设 计产品中。</p> + </div> + <div class="related-post"> + <h2>相关推荐</h2> + <ul> + <li> + <a class="clearfix" href="javascript:;"> + <div class="image-box"> + <img src="http://img03.res.yoho.cn/blogimg/2014/10/17/11/0117c3d2c5348b9322ab9bbcbfecda3305.jpg?imageMogr2/thumbnail/!0138x0075r/crop/0138x0075/strip/quality/80" alt=""> + </div> + <div class="content">作为Playground唯一特装展位的THETHING,利用砂砾岩石打造出土耳其卡帕多西亚般的风化地貌</div> + </a> + </li> + <li> + <a class="clearfix" href="javascript:;"> + <div class="image-box"> + <img src="http://img03.res.yoho.cn/blogimg/2014/10/17/11/0117c3d2c5348b9322ab9bbcbfecda3305.jpg?imageMogr2/thumbnail/!0138x0075r/crop/0138x0075/strip/quality/80" alt=""> + </div> + <div class="content">作为Playground唯一特装展位的THETHING,利用砂砾岩石打造出土耳其卡帕多西亚般的风化地貌</div> + </a> + </li> + </ul> + </div> + </div> + <div id="share" class="share" cover="http://img02.yohoboys.com/contentimg/2015/05/26/11/02d6be27760c486c52322d814fbea91edd.gif?imageMogr2/thumbnail/580x370" data-link="http://www.yohoboys.com/channel/detail/index/id/4729/time/1432617903"> + <ul class="clearfix"> + <li class="yohoo-share-button-sina"><a href="javascript:;"></a></li> + <li class="yohoo-share-button-qq"><a href="javascript:;"></a></li> + <li class="yohoo-share-button-facebook"><a href="javascript:;"></a></li> + </ul> + </div> + </div> +</body> +<script type="text/javascript" src="../../../res/js/lib/seajs.js"></script> +<script type="text/javascript"> + seajs.use(['zepto', 'mobile'],function($, mobile){ + //mobile.common(); + mobile.detail(); + }) +</script> +</html> \ No newline at end of file diff --git a/demo/yohood3.0/mobile/index.html b/demo/yohood3.0/mobile/index.html new file mode 100644 index 0000000..386df7d --- /dev/null +++ b/demo/yohood3.0/mobile/index.html @@ -0,0 +1,123 @@ +<!doctype html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>home</title> + <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0 user-scalable=no" /> + <meta content="yes" name="apple-mobile-web-app-capable" /> + <meta content="yes" name="apple-touch-fullscreen" /> + <meta content="telephone=no" name="format-detection" /> + <meta content="black" name="apple-mobile-web-app-status-bar-style" /> + <link rel="stylesheet" href="../../../res/css/mobile.css"/> +</head> +<body> + <div class="mobile-wrap"> + <div class="hd"> + <div class="header-download-wrap"> + <div class="header-download clearfix"> + <div class="tip-pic"></div> + <div class="tip-info"> + <h2>YOHO!有货</h2> + <p>随手随心,潮流购物利器大公开</p> + <a class="yohoboy-download-app">OPEN</a> + </div> + <span class="tip-close"></span> + </div> + </div> + <h1 class="logo home-logo iconfont"></h1> + </div> + <div class="bd"> + <div class="slide-main"> + <div class="slide-box"> + <div class="slide-wrap clearfix"> + <div class="box"><a href="javascript:;"><img src="http://img03.res.yoho.cn/blogimg/2014/09/23/13/0179e17640e29e62b52439902484a8fa50.gif?imageMogr2/thumbnail/!0968x0468r/crop/0968x0468/strip/quality/80" alt=""/></a></div> + <div class="box"><a href="javascript:;"><img src="http://img03.res.yoho.cn/blogimg/2014/09/23/13/01f0a56c52203da48881a64b336b41091b.jpg?imageMogr2/thumbnail/!0968x0468r/crop/0968x0468/strip/quality/80" alt=""/></a></div> + <div class="box"><a href="javascript:;"><img src="http://img04.res.yoho.cn/blogimg/2014/11/17/11/025aadd704383ed18365f15a5e1cde9e5d.jpg?imageMogr2/thumbnail/!0968x0468r/crop/0968x0468/strip/quality/80" alt=""/></a></div> + </div> + </div> + <div class="slide-navigator"> + <div class="dib clearfix"> + <a href="javascript:;" class="on"></a> + <a href="javascript:;"></a> + <a href="javascript:;"></a> + </div> + </div> + </div> + <div class="channel-list"> + <ul class="clearfix"> + <li> + <a href="javascript:;"> + <div class="channel-pic activity iconfont"></div> + <h2 class="channel-name">ACTIVITY</h2> + <p class="channel-name-cn">活动详情</p> + </a> + </li> + <li> + <a href="javascript:;"> + <div class="channel-pic counsel iconfont"></div> + <h2 class="channel-name">COUNSEL</h2> + <p class="channel-name-cn">最新资讯</p> + </a> + </li> + <li> + <a href="javascript:;"> + <div class="channel-pic brand iconfont"></div> + <h2 class="channel-name">BRAND</h2> + <p class="channel-name-cn">参展品牌</p> + </a> + </li> + <li> + <a href="javascript:;"> + <div class="channel-pic video iconfont"></div> + <h2 class="channel-name">VIDEO</h2> + <p class="channel-name-cn">热点视频</p> + </a> + </li> + <li> + <a href="javascript:;"> + <div class="channel-pic recmmend"></div> + <h2 class="channel-name">RECMMEND</h2> + <p class="channel-name-cn">限量推荐</p> + </a> + </li> + <li> + <a href="javascript:;"> + <div class="channel-pic live iconfont"></div> + <h2 class="channel-name">LIVE</h2> + <p class="channel-name-cn">现场活动</p> + </a> + </li> + <li> + <a href="javascript:;"> + <div class="channel-pic show"></div> + <h2 class="channel-name">SHOW</h2> + <p class="channel-name-cn">潮流分享</p> + </a> + </li> + <li> + <a href="javascript:;"> + <div class="channel-pic ticket iconfont"></div> + <h2 class="channel-name">TICKET</h2> + <p class="channel-name-cn">购票通道</p> + </a> + </li> + <li> + <a href="javascript:;"> + <div class="channel-pic contact iconfont"></div> + <h2 class="channel-name">CONTACT</h2> + <p class="channel-name-cn">联系我们</p> + </a> + </li> + </ul> + </div> + </div> + </div> +</body> +<script type="text/javascript" src="../../../res/js/lib/seajs.js"></script> +<script type="text/javascript"> + seajs.use(['zepto', 'mobile'],function($, mobile){ + mobile.common(); + mobile.index(); + }) +</script> +</html> \ No newline at end of file diff --git a/demo/yohood3.0/mobile/news.html b/demo/yohood3.0/mobile/news.html new file mode 100644 index 0000000..e39bdda --- /dev/null +++ b/demo/yohood3.0/mobile/news.html @@ -0,0 +1,192 @@ +<!doctype html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>news</title> + <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0 user-scalable=no" /> + <meta content="yes" name="apple-mobile-web-app-capable" /> + <meta content="yes" name="apple-touch-fullscreen" /> + <meta content="telephone=no" name="format-detection" /> + <meta content="black" name="apple-mobile-web-app-status-bar-style" /> + <link rel="stylesheet" href="../../../res/css/mobile.css"/> +</head> +<body> + <div class="mobile-wrap"> + <div class="hd"> + <div class="header-download clearfix"> + <div class="tip-pic"></div> + <div class="tip-info"> + <h2>YOHO!有货</h2> + <p>随手随心,潮流购物利器大公开</p> + <a class="yohoboy-download-app">OPEN</a> + </div> + <span class="tip-close"></span> + </div> + <h1 class="logo iconfont"><a class="back-btn iconfont" href="javascript:;"></a></h1> + </div> + <div class="bd"> + <div class="news-select"> + <select> + <option value ="全部资讯">全部资讯(166)</option> + <option value ="saab">Saab</option> + <option value="opel">Opel</option> + <option value="audi">Audi</option> + </select> + </div> + <div class="news-main content-main current"> + <div class="news-content"> + <div class="main-layout clearfix"> + <div class="layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/01a9b77ff892507e57a4e334634598bad0.gif" alt=""> + <i class="play-icon"></i> + </a> + <a class="item-tag" href="javascript:;">视频</a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test</a> + </h2> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + <div class="layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img02.res.yoho.cn/blogimg/2014/10/23/17/020aba6cb71b6620e4e8dd50658a1daf03.jpg" alt=""> + </a> + <a class="item-tag" href="javascript:;">视频</a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test</a> + </h2> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + <div class="layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/015a858eda76bac64d84a0dbcea87dbd3a.gif" alt=""> + </a> + <a class="item-tag" href="javascript:;">视频</a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test</a> + </h2> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + <div class="layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img02.res.yoho.cn/blogimg/2014/10/17/14/02e26b4e08c06766b619b3bf40e31cfc14.jpg" alt=""> + </a> + <a class="item-tag" href="javascript:;">视频</a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test</a> + </h2> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + </div> + </div> + <div id="pageContent" style="text-align: center;" class="pagination"> + <div class="pagination-inner clearfix" id="img_page" model="default" rel=""> + <a href="javascript:;"><span class="iconfont"></span> PREV</a> + <a href="javascript:;">NEXT <span class="iconfont"></span></a> + </div> + </div> + </div> + <div class="news-main content-main"> + <div class="news-content"> + <div class="main-layout clearfix"> + <div class="layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/01a9b77ff892507e57a4e334634598bad0.gif" alt=""> + <i class="play-icon"></i> + </a> + <a class="item-tag" href="javascript:;">独家合作</a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test</a> + </h2> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + <div class="layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img02.res.yoho.cn/blogimg/2014/10/23/17/020aba6cb71b6620e4e8dd50658a1daf03.jpg" alt=""> + </a> + <a class="item-tag" href="javascript:;">视频</a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test</a> + </h2> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + <div class="layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/015a858eda76bac64d84a0dbcea87dbd3a.gif" alt=""> + </a> + <a class="item-tag" href="javascript:;">视频</a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test</a> + </h2> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + <div class="layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img02.res.yoho.cn/blogimg/2014/10/17/14/02e26b4e08c06766b619b3bf40e31cfc14.jpg" alt=""> + </a> + <a class="item-tag" href="javascript:;">视频</a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test</a> + </h2> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + </div> + </div> + <div id="pageContent" style="text-align: center;" class="pagination"> + <div class="pagination-inner clearfix" id="img_page" model="default" rel=""> + <a href="javascript:;"><span class="iconfont"></span> PREV</a> + <a href="javascript:;">NEXT <span class="iconfont"></span></a> + </div> + </div> + </div> + </div> + </div> +</body> +<script type="text/javascript" src="../../../res/js/lib/seajs.js"></script> +<script type="text/javascript"> + seajs.use(['zepto', 'mobile'],function($, mobile){ + //mobile.common(); + mobile.news(); + }) +</script> +</html> \ No newline at end of file diff --git a/demo/yohood3.0/mobile/scene.html b/demo/yohood3.0/mobile/scene.html new file mode 100644 index 0000000..cbba8b8 --- /dev/null +++ b/demo/yohood3.0/mobile/scene.html @@ -0,0 +1,186 @@ +<!doctype html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>scene</title> + <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0 user-scalable=no" /> + <meta content="yes" name="apple-mobile-web-app-capable" /> + <meta content="yes" name="apple-touch-fullscreen" /> + <meta content="telephone=no" name="format-detection" /> + <meta content="black" name="apple-mobile-web-app-status-bar-style" /> + <link rel="stylesheet" href="../../../res/css/mobile.css"/> +</head> +<body> + <div class="mobile-wrap"> + <div class="hd"> + <div class="header-download clearfix"> + <div class="tip-pic"></div> + <div class="tip-info"> + <h2>YOHO!有货</h2> + <p>随手随心,潮流购物利器大公开</p> + <a class="yohoboy-download-app">OPEN</a> + </div> + <span class="tip-close"></span> + </div> + <h1 class="logo iconfont"><a class="back-btn iconfont" href="javascript:;"></a></h1> + </div> + <div class="bd scene-bd"> + <div class="scene-tab"> + <ul class="clearfix"> + <li class="disable"><a href="javascript:;">09-20</a></li> + <li><a href="javascript:;">09-20</a></li> + <li><a href="javascript:;">09-20</a></li> + <li><a href="javascript:;">09-20</a></li> + <li><a href="javascript:;">09-20</a></li> + </ul> + </div> + <div class="scene-content"> + <div class="main-layout current clearfix"> + <div class="layout-section current"> + <div class="scene-title"> + <h4 class="scene-intro">开场Fashion Show舞台开场Fashion Show舞台开场Fashion Show舞台</h4> + <div class="scene-time">11:00——11:15</div> + <i class="scene-icon"></i> + </div> + <div class="layout-item clearfix"> + <div class="image-box"> + <a href="javascript:;"> + <img data-original="http://img01.res.yoho.cn/blogimg/2014/10/22/17/01a9b77ff892507e57a4e334634598bad0.gif" src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/01a9b77ff892507e57a4e334634598bad0.gif" alt=""> + </a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test</a> + </h2> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + <div class="layout-item clearfix"> + <div class="image-box"> + <a href="javascript:;"> + <img data-original="http://img02.res.yoho.cn/blogimg/2014/10/23/17/020aba6cb71b6620e4e8dd50658a1daf03.jpg" src="http://img02.res.yoho.cn/blogimg/2014/10/23/17/020aba6cb71b6620e4e8dd50658a1daf03.jpg" alt=""> + </a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test</a> + </h2> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + </div> + <div class="layout-section"> + <div class="scene-title"> + <h4 class="scene-intro"><span></span>听说SHOW买单</h4> + <div class="scene-time">11:00——11:15</div> + <i class="scene-icon"></i> + </div> + <div class="layout-item clearfix"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/015a858eda76bac64d84a0dbcea87dbd3a.gif" alt=""> + </a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test</a> + </h2> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + <div class="layout-item clearfix"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img02.res.yoho.cn/blogimg/2014/10/17/14/02e26b4e08c06766b619b3bf40e31cfc14.jpg" alt=""> + </a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test</a> + </h2> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + <div class="layout-item clearfix"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/01a9b77ff892507e57a4e334634598bad0.gif" alt=""> + </a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test</a> + </h2> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + </div> + </div> + <div class="main-layout clearfix"> + <div class="layout-section"> + <div class="scene-title"> + <h4 class="scene-intro"><span></span>听说SHOW买单</h4> + <div class="scene-time">11:00——11:15</div> + <i class="scene-icon"></i> + </div> + <div class="layout-item clearfix"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/015a858eda76bac64d84a0dbcea87dbd3a.gif" alt=""> + </a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test</a> + </h2> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + <div class="layout-item clearfix"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img02.res.yoho.cn/blogimg/2014/10/17/14/02e26b4e08c06766b619b3bf40e31cfc14.jpg" alt=""> + </a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test</a> + </h2> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + <div class="layout-item clearfix"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/01a9b77ff892507e57a4e334634598bad0.gif" alt=""> + </a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test</a> + </h2> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + </div> + </div> + </div> + </div> + </div> +</body> +<script type="text/javascript" src="../../../res/js/lib/seajs.js"></script> +<script type="text/javascript"> + seajs.use(['zepto', 'mobile'],function($, mobile){ + //mobile.common(); + mobile.scene(); + }) +</script> +</html> \ No newline at end of file diff --git a/demo/yohood3.0/mobile/shanghai.html b/demo/yohood3.0/mobile/shanghai.html new file mode 100644 index 0000000..589af7e --- /dev/null +++ b/demo/yohood3.0/mobile/shanghai.html @@ -0,0 +1,51 @@ +<!doctype html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>show</title> + <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0 user-scalable=no" /> + <meta content="yes" name="apple-mobile-web-app-capable" /> + <meta content="yes" name="apple-touch-fullscreen" /> + <meta content="telephone=no" name="format-detection" /> + <meta content="black" name="apple-mobile-web-app-status-bar-style" /> + <link rel="stylesheet" href="../../../res/css/mobile.css"/> +</head> +<body> + <div class="mobile-wrap"> + <div class="hd"> + <div class="header-download clearfix"> + <div class="tip-pic"></div> + <div class="tip-info"> + <h2>YOHO!有货</h2> + <p>随手随心,潮流购物利器大公开</p> + <a class="yohoboy-download-app">OPEN</a> + </div> + <span class="tip-close"></span> + </div> + <h1 class="logo iconfont"><a class="back-btn iconfont" href="javascript:;"></a></h1> + </div> + <div class="sh-hd"></div> + <div class="sh-bd"> + <div class="section1"></div> + <div class="section2"></div> + <div class="section3"></div> + <div class="section4"></div> + <div class="section5"></div> + <div class="section6"></div> + <div class="section7"></div> + <div class="section8"></div> + <div class="section9"></div> + <div class="section10"></div> + <div class="section11"></div> + <div class="section12"></div> + </div> + </div> +</body> +<script type="text/javascript" src="../../../res/js/lib/seajs.js"></script> +<script type="text/javascript"> + seajs.use(['zepto', 'mobile'],function($, mobile){ + console.log($("*[name='viewport']")); + $("*[name='viewport']").attr('content','width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0'); + }) +</script> +</html> \ No newline at end of file diff --git a/demo/yohood3.0/mobile/show.html b/demo/yohood3.0/mobile/show.html new file mode 100644 index 0000000..0417a7a --- /dev/null +++ b/demo/yohood3.0/mobile/show.html @@ -0,0 +1,141 @@ +<!doctype html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>show</title> + <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0 user-scalable=no" /> + <meta content="yes" name="apple-mobile-web-app-capable" /> + <meta content="yes" name="apple-touch-fullscreen" /> + <meta content="telephone=no" name="format-detection" /> + <meta content="black" name="apple-mobile-web-app-status-bar-style" /> + <link rel="stylesheet" href="../../../res/css/mobile.css"/> +</head> +<body> + <div class="mobile-wrap"> + <div class="hd"> + <div class="header-download clearfix"> + <div class="tip-pic"></div> + <div class="tip-info"> + <h2>YOHO!有货</h2> + <p>随手随心,潮流购物利器大公开</p> + <a class="yohoboy-download-app">OPEN</a> + </div> + <span class="tip-close"></span> + </div> + <h1 class="logo iconfont"><a class="back-btn iconfont" href="javascript:;"></a></h1> + </div> + <div class="bd"> + <h2 class="main-title show-title">#YO'HOOD SHOW#</h2> + <div class="show-wrap clearfix"> + <div class="main-layout clearfix"> + <div class="layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img data-original="http://img01.res.yoho.cn/blogimg/2014/10/22/17/01a9b77ff892507e57a4e334634598bad0.gif" src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/01a9b77ff892507e57a4e334634598bad0.gif" alt=""> + </a> + <a class="pic-tip" href="javascript:;" style="top:20%;left:20%;">banana</a> + <a class="pic-tip" href="javascript:;" style="top:30%;left:30%;">111111111111111</a> + </div> + <div class="content"> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + <div class="layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img data-original="http://img02.res.yoho.cn/blogimg/2014/10/23/17/020aba6cb71b6620e4e8dd50658a1daf03.jpg" src="http://img02.res.yoho.cn/blogimg/2014/10/23/17/020aba6cb71b6620e4e8dd50658a1daf03.jpg" alt=""> + </a> + <a class="pic-tip" href="javascript:;">122</a> + <a class="pic-tip" href="javascript:;">33</a> + </div> + <div class="content"> + <p>contentcontentco ntentconten tcontentc ontentc ontentcontentcontent</p> + <p class="time">2014.07.25</p> + </div> + </div> + <div class="layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/015a858eda76bac64d84a0dbcea87dbd3a.gif" alt=""> + </a> + </div> + <div class="content"> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + <div class="layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img02.res.yoho.cn/blogimg/2014/10/17/14/02e26b4e08c06766b619b3bf40e31cfc14.jpg" alt=""> + </a> + </div> + <div class="content"> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + <div class="layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/01a9b77ff892507e57a4e334634598bad0.gif" alt=""> + </a> + </div> + <div class="content"> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + <div class="layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img02.res.yoho.cn/blogimg/2014/10/23/17/020aba6cb71b6620e4e8dd50658a1daf03.jpg" alt=""> + </a> + </div> + <div class="content"> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + <div class="layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/015a858eda76bac64d84a0dbcea87dbd3a.gif" alt=""> + </a> + </div> + <div class="content"> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + <div class="layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img02.res.yoho.cn/blogimg/2014/10/17/14/02e26b4e08c06766b619b3bf40e31cfc14.jpg" alt=""> + </a> + </div> + <div class="content"> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + </div> + <div id="pageContent" style="text-align: center;" class="pagination"> + <div class="pagination-inner clearfix" id="img_page" model="default" rel=""> + <a href="javascript:;"><span class="iconfont"></span> PREV</a> + <a href="javascript:;">NEXT <span class="iconfont"></span></a> + </div> + </div> + </div> + </div> + </div> +</body> +<script type="text/javascript" src="../../../res/js/lib/seajs.js"></script> +<script type="text/javascript"> + seajs.use(['zepto', 'mobile'],function($, mobile){ + //mobile.common(); + mobile.brand(); + }) +</script> +</html> \ No newline at end of file diff --git a/demo/yohood3.0/mobile/video.html b/demo/yohood3.0/mobile/video.html new file mode 100644 index 0000000..ba3832d --- /dev/null +++ b/demo/yohood3.0/mobile/video.html @@ -0,0 +1,112 @@ +<!doctype html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>video</title> + <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0 user-scalable=no" /> + <meta content="yes" name="apple-mobile-web-app-capable" /> + <meta content="yes" name="apple-touch-fullscreen" /> + <meta content="telephone=no" name="format-detection" /> + <meta content="black" name="apple-mobile-web-app-status-bar-style" /> + <link rel="stylesheet" href="../../../res/css/mobile.css"/> +</head> +<body> + <div class="mobile-wrap"> + <div class="hd"> + <div class="header-download clearfix"> + <div class="tip-pic"></div> + <div class="tip-info"> + <h2>YOHO!有货</h2> + <p>随手随心,潮流购物利器大公开</p> + <a class="yohoboy-download-app">OPEN</a> + </div> + <span class="tip-close"></span> + </div> + <h1 class="logo iconfont"><a class="back-btn iconfont" href="javascript:;"></a></h1> + </div> + <div class="bd"> + <h2 class="main-title">热门视频</h2> + <div class="video-main content-main"> + <div class="video-wrap"> + <div class="main-layout clearfix"> + <div class="layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/01a9b77ff892507e57a4e334634598bad0.gif" alt=""> + <i class="play-icon"></i> + </a> + <a class="item-tag" href="javascript:;">视频</a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test</a> + </h2> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + <div class="layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img02.res.yoho.cn/blogimg/2014/10/23/17/020aba6cb71b6620e4e8dd50658a1daf03.jpg" alt=""> + </a> + <a class="item-tag" href="javascript:;">视频</a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test</a> + </h2> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + <div class="layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/015a858eda76bac64d84a0dbcea87dbd3a.gif" alt=""> + </a> + <a class="item-tag" href="javascript:;">视频</a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test</a> + </h2> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + <div class="layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img02.res.yoho.cn/blogimg/2014/10/17/14/02e26b4e08c06766b619b3bf40e31cfc14.jpg" alt=""> + </a> + <a class="item-tag" href="javascript:;">视频</a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test</a> + </h2> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + </div> + </div> + <div id="pageContent" style="text-align: center;" class="pagination"> + <div class="pagination-inner clearfix" id="img_page" model="default" rel=""> + <a href="javascript:;"><span class="iconfont"></span> PREV</a> + <a href="javascript:;">NEXT <span class="iconfont"></span></a> + </div> + </div> + </div> + </div> + </div> +</body> +<script type="text/javascript" src="../../../res/js/lib/seajs.js"></script> +<script type="text/javascript"> + seajs.use(['zepto', 'mobile'],function($, mobile){ + //mobile.common(); + mobile.brand(); + }) +</script> +</html> \ No newline at end of file diff --git a/demo/yohood3.0/new.html b/demo/yohood3.0/new.html new file mode 100644 index 0000000..5313d84 --- /dev/null +++ b/demo/yohood3.0/new.html @@ -0,0 +1,91 @@ +<!doctype html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>Home</title> + <link rel="stylesheet" href="http://res.yohood.test.yoho.cn/css/style.css"/> +</head> +<body> + <div class="wrapper"> + <div class="container"> + <div class="header"> + <a href="/"><img src="http://res.yohood.test.yoho.cn/images/yohood/logo.png" alt=""/></a> + </div> + <!-- navigator start --> + <div class="navigator"> + <ul class="clearfix"> + <li><a href="">首页</a></li> + <li><a href="">活动介绍</a></li> + <li><a href="">资讯</a></li> + <li><a href="">品牌</a></li> + <li><a href="">限量推荐</a></li> + <li><a href="">现场活动</a></li> + <li><a href="">SHOW</a></li> + <li><a href="">入场券</a></li> + </ul> + <a href="" class="goToYohobuy" title="有货"></a> + <span class="navigatorBar"></span> + </div> + <!-- content start --> + <div class="content-wrap clearfix"> + <div class="position"> + <a href="#">< <span>返回列表</span></a> + </div> + <div class="detail-body"> + <h1>adidas CC Ride & Nike Flyknit Trainer </h1> + <p class="time">2014.9.21 16:25</p> + <div class="detail-content"> + <img src="http://res.yohood.test.yoho.cn/images/yohood/video.png" alt=""/> + <p>迷彩花纹的渔夫帽真的很是百搭,同时迎合了男生短裤的颜色搭配简单的字母T,一种野外战士的英朗味道。而造型看起来也不至于乏味单调。</p> + <p>炎夏,纵观街头潮人,大多是墨镜加棒球帽的标配,稍微有点儿格调的可能就是巴拿马帽加墨镜,如何搭出新意成为潮人们的一大难题,而众多单品中,可能很多人都忽略了有悠久历史的渔夫帽,一款棉质,可以随意折叠,携带方便又可以很有范儿的帽子。话说stussy家每到夏日都会推出好多款渔夫帽且很受明星博主们的追捧,</p> + <p>炎夏,纵观街头潮人,大多是墨镜加棒球帽的标配,稍微有点儿格调的可能就是巴拿马帽加墨镜,如何搭出新意成为潮人们的一大难题,而众多单品中,可能很多人都忽略了有悠久历史的渔夫帽,一款棉质,可以随意折叠,携带方便又可以很有范儿的帽子。话说stussy家每到夏日都会推出好多款渔夫帽且很受明星博主们的追捧,</p> + </div> + </div> + <div class="activity-share"> + <h2>分享到:</h2> + <!-- Baidu Button BEGIN --> + <div id="bdshare" class="bdshare_t bds_tools get-codes-bdshare"> + <a class="bds_qzone" title="分享到QQ空间" href="#"></a> + <a class="bds_tsina" title="分享到新浪微博" href="#"></a> + <a class="bds_tqq" title="分享到腾讯微博" href="#"></a> + <a class="bds_renren" title="分享到人人网" href="#"></a> + <a class="bds_douban" title="分享到豆瓣网" href="#"></a> + </div> + <script type="text/javascript" id="bdshare_js" data="type=tools&uid=0" src="http://bdimg.share.baidu.com/static/js/bds_s_v2.js?cdnversion=390394"></script> + + <script type="text/javascript"> + document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000) + </script> + <!-- Baidu Button END --> + <script src="http://bdimg.share.baidu.com/static/js/logger.js?cdnversion=390394"></script></div> + <div class="pageSize"> + <ul class="clearfix activity-index-list detail-pageSize"> + <li> + <span class="detail-prev">上一篇</span> + <div class="activity-img-item"> + <a target="" href="/news/detail/id/145"> + <img alt="" src="http://img03.res.yoho.cn/blogimg/2014/05/16/17/01ec1859d2a420148829811f5f291ab5c2.jpg?imageMogr2/thumbnail/!0138x0075r/crop/0138x0075/strip/quality/80" style="width: 138px;height: 75px;"> + </a> + </div> + <h3><a target="" href="/news/detail/id/145">2014 YO'HOOD COMING ...</a></h3> + <p>2014年9月19日~9月21日 上海世贸商城 内地...</p> + <span><em>14:52</em> 2014/05/16</span> + </li> + <li> + <span class="detail-prev">下一篇</span> + <div class="activity-img-item"> + <a target="" href="/news/detail/id/141"> + <img alt="" src="http://img04.res.yoho.cn/blogimg/2013/07/22/17/02d033e6709bf498c4e44a9b6320cadbd0.jpg?imageMogr2/thumbnail/!0138x0075r/crop/0138x0075/strip/quality/80" style="width: 138px;height: 75px;"> + </a> + </div> + <h3><a target="" href="/news/detail/id/141">R.M.C x HoodieBuddie...</a></h3> + <p>这次R.M.C x HoodieBuddie的合作款Tee,将...</p> + <span><em>17:55</em> 2013/07/22</span> + </li> + </ul> + </div> + </div> + </div> + </div> +</body> +</html> \ No newline at end of file diff --git a/demo/yohood3.0/news.html b/demo/yohood3.0/news.html new file mode 100644 index 0000000..e9ae23d --- /dev/null +++ b/demo/yohood3.0/news.html @@ -0,0 +1,381 @@ +<!doctype html> +<html lang="en"> + +<head> + <meta charset="UTF-8"> + <title>News</title> + <link rel="stylesheet" href="../../res/css/index.css" /> +</head> + +<body> + <!-- 主站导航 start --> + <div class="yoho-nav clearfix"> + <ul class="clearfix"> + <li> + <span>YOHO!</span> + <a href="http://www.yoho.cn" target="_blank">集团官网</a> + </li> + <li> + <span>YOHO!有货</span> + <a href="http://www.yohobuy.com" target="_blank">潮流购物</a> + </li> + <li> + <span>YOHO!BOYS</span> + <a href="http://www.yohoboys.com">男生潮流</a> + </li> + <li> + <span>YOHO!GIRLS</span> + <a href="http://www.yohogirls.com" target="_blank">女生潮流</a> + </li> + <li> + <span>YOHO!SHOW</span> + <a href="http://www.yohoshow.com" target="_blank">物趣分享</a> + </li> + <li class="current"> + <span>YOHOOD</span> + <a href="javascript:;" target="_blank">潮流嘉年华</a> + </li> + </ul> + <a class="contact-btn" href="javascript:;">contact</a> + </div> + <!-- 主站导航 end -->c + <!-- 页眉 start --> + <div class="header"> + <!-- 页首 logo start --> + <h1 class="logo"> + <img src="../../res/images/yohood/logo3.0.png"> + </h1> + <!-- 页首 logo end --> + <!-- yohood 导航 start --> + <div class="nav"> + <ul class="clearfix"> + <!-- 单个菜单标签 start --> + <li> + <a href="javascript:;"> + <em>HOME</em> + <span>首页</span> + <i></i> + </a> + </li> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> + <li class="current"> + <a href="javascript:;"> + <em>ACTIVITY</em> + <span>活动资讯</span> + <i></i> + </a> + <!-- 二级菜单 start --> + <div class="second-menu"> + <a href="javascript:;"> + <em>品牌咨询</em> + <i></i> + </a> + <a href="javascript:;"> + <em>活动介绍</em> + <i></i> + </a> + <a href="javascript:;"> + <em>活动介绍</em> + <i></i> + </a> + <a href="javascript:;"> + <em>亮点活动</em> + <i></i> + </a> + <a href="javascript:;"> + <em>限量商品</em> + <i></i> + </a> + </div> + <!-- 二级菜单 end --> + </li> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> + <li> + <a href="javascript:;"> + <em>BRAND</em> + <span>参展品牌</span> + <i></i> + </a> + </li> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> + <li> + <a href="javascript:;"> + <em>VIDEO</em> + <span>热点视频</span> + <i></i> + </a> + </li> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> + <li> + <a href="javascript:;"> + <em>REGISTRATION</em> + <span>在线登记</span> + <i></i> + </a> + <!-- 二级菜单 start --> + <div class="second-menu"> + <a href="javascript:;"> + <em>参展商登记</em> + <i></i> + </a> + <a href="javascript:;"> + <em>媒体登记</em> + <i></i> + </a> + <a href="javascript:;"> + <em>赞助商登记</em> + <i></i> + </a> + </div> + <!-- 二级菜单 end --> + </li> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> + <li> + <a href="javascript:;"> + <em>SHOW</em> + <span>潮流分享</span> + <i></i> + </a> + </li> + <!-- 单个菜单标签 end --> + </ul> + </div> + <!-- yohood 导航 end --> + </div> + <!-- 页眉 end --> + <div class="bd"> + <div class="news-wrap"> + <div class="content-tab news-tab"> + <ul class="clearfix"> + <li class="current"><a href="javascript:;">全部资讯</a></li> + <li><a href="javascript:;">品牌资讯</a></li> + <li><a href="javascript:;">活动介绍</a></li> + <li><a href="javascript:;">亮点活动</a></li> + <li><a href="javascript:;">限量商品</a></li> + </ul> + </div> + <div class="news-main"> + <!-- 单个资讯类别 start --> + <div class="news-content content-main"> + <div class="main-layout fluid-list-inner clearfix"> + <!-- 单个资讯碎片 start --> + <div class="fluid-item layout-item tiled"> + <div class="image-box"> + <a href=javascript:;> + <img src="../../res/images/yohood/center-1-1.png" alt=""> + </a> + </div> + <div class="item-info"> + <a class="fluid-tag item-tag brand-info" href="javascritp:;">品牌资讯</a> + <span class="item-time">November 11, 2016</span> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test test test test test test test test test test test test test </a> + </h2> + <p class="text-content">content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content </p> + </div> + </div> + <!-- 单个资讯碎片 end --> + <!-- 单个资讯碎片 start --> + <div class="fluid-item layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="../../res/images/yohood/center-1-2.png" alt=""> + </a> + <span class="play-icon"></span> + </div> + <div class="item-info"> + <a class="fluid-tag item-tag activity-intro" href="javascript:;">活动介绍</a> + <span class="item-time">November 11, 2016</span> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test test test test test test test test </a> + </h2> + <p class="text-content">content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content </p> + </div> + </div> + <!-- 单个资讯碎片 end --> + <!-- 单个资讯碎片 start --> + <div class="fluid-item layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="../../res/images/yohood/center-1-3.png" alt=""> + </a> + </div> + <div class="item-info"> + <a class="fluid-tag item-tag spotlight-activity" href="javascript:;">亮点活动</a> + <span class="item-time">November 11, 2016</span> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test test test test test test test test test test test test</a> + </h2> + <p class="text-content">content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content </p> + </div> + </div> + <!-- 单个资讯碎片 end --> + <!-- 单个资讯碎片 start --> + <div class="fluid-item layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="../../res/images/yohood/center-2-1.png" alt=""> + </a> + </div> + <div class="item-info"> + <a class="fluid-tag item-tag limited-edition" href="javascript:;">限量商品</a> + <span class="item-time">November 11, 2016</span> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test test test test test test test test </a> + </h2> + <p class="text-content">content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content </p> + </div> + </div> + <!-- 单个资讯碎片 end --> + <!-- 单个资讯碎片 start --> + <div class="fluid-item layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="../../res/images/yohood/center-2-2.png" alt=""> + </a> + </div> + <div class="item-info"> + <a class="fluid-tag item-tag brand-info" href="javascript:;">品牌资讯</a> + <span class="item-time">November 11, 2016</span> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test test test test test test test test </a> + </h2> + <p class="text-content">content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content </p> + </div> + </div> + <!-- 单个资讯碎片 end --> + <!-- 单个资讯碎片 start --> + <div class="fluid-item layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="../../res/images/yohood/center-2-3.png" alt=""> + </a> + </div> + <div class="item-info"> + <a class="fluid-tag item-tag activity-intro" href="javascript:;">活动介绍</a> + <span class="item-time">November 11, 2016</span> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test test test test test test test test </a> + </h2> + <p class="text-content">content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content </p> + </div> + </div> + <!-- 单个资讯碎片 end --> + <!-- 单个资讯碎片 start --> + <div class="fluid-item layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="../../res/images/yohood/center-3-1.png" alt=""> + </a> + </div> + <div class="item-info"> + <a class="fluid-tag item-tag spotlight-activity" href="javascript:;">亮点活动</a> + <span class="item-time">November 11, 2016</span> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test test test test test test test test </a> + </h2> + <p class="text-content">content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content </p> + </div> + </div> + <!-- 单个资讯碎片 end --> + <!-- 单个资讯碎片 start --> + <div class="fluid-item layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="../../res/images/yohood/center-3-2.png" alt=""> + </a> + </div> + <div class="item-info"> + <a class="fluid-tag item-tag limited-edition" href="javascript:;">限量商品</a> + <span class="item-time">November 11, 2016</span> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test test test test test test test test </a> + </h2> + <p class="text-content">content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content </p> + </div> + </div> + <!-- 单个资讯碎片 end --> + <!-- 单个资讯碎片 start --> + <div class="fluid-item layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="../../res/images/yohood/center-3-3.png" alt=""> + </a> + </div> + <div class="item-info"> + <a class="fluid-tag item-tag brand-info" href="javascript:;">品牌资讯</a> + <span class="item-time">November 11, 2016</span> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test test test test test test test test </a> + </h2> + <p class="text-content">content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content </p> + </div> + </div> + <!-- 单个资讯碎片 end --> + </div> + <!-- 分页 start --> + <div id="pageContent" style="text-align: center;" class="pagination"> + <div class="pagination-inner" id="img_page" model="default" rel=""> + <a class="current" p="1">1</a> + <a href="http://www.yohood.cn/default/index/page/2" class="link2" p="2">2</a> + <a href="http://www.yohood.cn/default/index/page/3" class="link2" p="3">3</a> + <a href="http://www.yohood.cn/default/index/page/4" class="link2 page-fold" p="4">····</a> + <a href="http://www.yohood.cn/default/index/page/5" class="link2" p="5">5</a> + <a href="http://www.yohood.cn/default/index/page/6" class="link2" p="6">6</a> + <a href="http://www.yohood.cn/default/index/page/2" class="link2" p="2">NEXT ></a> + </div> + </div> + <!-- 分页 end --> + </div> + <!-- 单个资讯类别 end --> + </div> + </div> + </div> + <!-- 页脚 start --> + <div class="ft"> + <hr> + <p class="copyright"> + CopyRight © 2007-2016 南京新与力文化传播有限公司苏ICP备09011225号-11 + </p> + </div> + <!-- 页脚 end --> + <!-- 返回顶部按钮 start --> + <div class="return-top"> + <a href="javascript:void(0);" id="toTop" class="ifont" style="display: inline;"> + <span class="iconfont"></span> + </a> + </div> + <!-- 返回顶部按钮 end --> +</body> +<script type="text/javascript" src="../../res/js/lib/seajs.js"></script> +<script type="text/javascript"> +seajs.use(['jquery', 'channel'], function($, channel) { + channel.common(); + channel.news(); +}) +</script> + +</html> diff --git a/demo/yohood3.0/recommend.html b/demo/yohood3.0/recommend.html new file mode 100644 index 0000000..86aac30 --- /dev/null +++ b/demo/yohood3.0/recommend.html @@ -0,0 +1,61 @@ +<!doctype html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>Home</title> + <link rel="stylesheet" href="http://res.yohood.test.yoho.cn/css/style.css"/> +</head> +<body> + <div class="wrapper"> + <div class="container"> + <div class="header"> + <a href="/"><img src="http://res.yohood.test.yoho.cn/images/yohood/logo.png" alt=""/></a> + </div> + <!-- navigator start --> + <div class="navigator"> + <ul class="clearfix"> + <li><a href="">首页</a></li> + <li><a href="">活动介绍</a></li> + <li><a href="">资讯</a></li> + <li><a href="">品牌</a></li> + <li><a href="">限量推荐</a></li> + <li><a href="">现场活动</a></li> + <li><a href="">SHOW</a></li> + <li><a href="">入场券</a></li> + </ul> + <a href="" class="goToYohobuy" title="有货"></a> + <span class="navigatorBar"></span> + </div> + <!-- content start --> + <div class="content-wrap clearfix"> + <div class="recommend-item"> + <div class="goods-pic"> + <img src="http://res.yohood.test.yoho.cn/images/yohood/goodsimg.jpg" width="170" alt=""/> + </div> + <div class="goods-info"> + <div class="goods-title"> + <h2>R.M.C x HoodieBuddie Tee全球限量500</h2> + <p class="goods-price clearfix"><span>RMB 50.00</span><a href="#" class="goods-buy"></a></p> + <a href="#" class="goods-brand-logo"><img src="http://res.yohood.test.yoho.cn/images/yohood/clot.png" alt=""/></a> + </div> + <p>志在将青春、朝气、前卫、自我等生活态度和时尚主张注入潮流文化之中的Begins,令当下每一位有自我意识、追求潮流、有乐观生活态度的年轻人都能在这儿得到认同感和归属感!由“begins to unlock the secret ”为出发,BIBI将自己的新专辑名称巧妙地融入到这件Hoodie的设计中,左右袖口橡胶材质的五角星装饰令整件衣服散发出独一无二的潮流韵味,带有begins特有的原创风格,是一件非常具有诚意的作品!此次Begins周笔畅也将现身YO'HOO...</p> + </div> + </div> + <div class="recommend-item"> + <div class="goods-pic"> + <img src="http://res.yohood.test.yoho.cn/images/yohood/goodsimg.jpg" width="170" alt=""/> + </div> + <div class="goods-info"> + <div class="goods-title"> + <h2>R.M.C x HoodieBuddie Tee全球限量500</h2> + <p class="goods-price clearfix"><span>RMB 50.00</span><a href="#" class="goods-buy"></a></p> + <a href="#" class="goods-brand-logo"><img src="http://res.yohood.test.yoho.cn/images/yohood/clot.png" alt=""/></a> + </div> + <p>志在将青春、朝气、前卫、自我等生活态度和时尚主张注入潮流文化之中的Begins,令当下每一位有自我意识、追求潮流、有乐观生活态度的年轻人都能在这儿得到认同感和归属感!由“begins to unlock the secret ”为出发,BIBI将自己的新专辑名称巧妙地融入到这件Hoodie的设计中,左右袖口橡胶材质的五角星装饰令整件衣服散发出独一无二的潮流韵味,带有begins特有的原创风格,是一件非常具有诚意的作品!此次Begins周笔畅也将现身YO'HOO...</p> + </div> + </div> + </div> + </div> + </div> +</body> +</html> \ No newline at end of file diff --git a/demo/yohood3.0/recommend_new.html b/demo/yohood3.0/recommend_new.html new file mode 100644 index 0000000..922468b --- /dev/null +++ b/demo/yohood3.0/recommend_new.html @@ -0,0 +1,199 @@ +<!doctype html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>Recommend</title> + <link rel="stylesheet" href="http://res.yohood.test.yoho.cn/css/style.css"/> +</head> +<body> + <div class="wrapper"> + <div class="container"> + <div class="header"> + <a href="/"><img src="http://res.yohood.test.yoho.cn/images/yohood/logo.png" alt=""/></a> + </div> + <!-- navigator start --> + <div class="navigator"> + <ul class="clearfix"> + <li><a href="">首页</a></li> + <li><a href="">活动介绍</a></li> + <li><a href="">资讯</a></li> + <li><a href="">品牌</a></li> + <li><a href="">限量推荐</a></li> + <li><a href="">现场活动</a></li> + <li><a href="">SHOW</a></li> + <li><a href="">入场券</a></li> + </ul> + <a href="" class="goToYohobuy" title="有货"></a> + <span class="navigatorBar"></span> + </div> + <!-- content start --> + <div class="content-wrap clearfix"> + <div class="recommend-top"> + <div class="recommend-title"> + <h2><img src="http://res.yohood.test.yoho.cn/images/yohood/recommend-title.png"/></h2> + <p>YO HOOD独家企划——联名产品首度公开</p> + </div> + <div class="recommend-info">由YO'HOOD发起,集合一众来自美国、日本、香港等地的顶尖潮流品牌推出的独家联名产品,在今次发布的独家产品中不乏已是两度与YO'HOOD协作的 +品牌,如CLOT, HBA, UNDEFEATED, MEDICOM TOY,HEAD PORTER等,也有许多如Herschel Supply,JOYRICH,Stussy,THE HUNDREDS, VANQUISH, +Subcrew等等的新面孔。YO'HOOD Exclusive与一众潮牌将继续采用各自品牌最标志性的设计元素,推出包括卫衣、T恤、帽子、背包在内的一系列单品,其中一定有你不可错过的新季潮物!</div> + </div> + <div class="recommend-box"> + <div class="goods-pic"> + <img src="http://res.yohood.test.yoho.cn/images/yohood/clot_new.png"/> + </div> + <div class="goods-info"> + <h4>1.CLOT</h4> + <p class="info">CLOT 继2013年与YO'HOOD 合作推出的限量款卫衣之后,本年度为大家带来新一轮的限量合作款Card Holder,产品选用优质的皮革打造,具有良好的手感, +而CLOT经典logo元素与YO'HOOD的加持让本款单品赋予更多的潮流意义。</p> + <p class="price">印花卡包 RMB 99</p> + </div> + </div> + <div class="recommend-box"> + <div class="goods-pic"> + <img src="http://res.yohood.test.yoho.cn/images/yohood/hba.png"/> + </div> + <div class="goods-info"> + <h4>2.HBA</h4> + <p class="info">来自美国纽约的高街品牌 Hood By Air 近年来炙手可热, 而此番与国内顶尖潮流平台合作推出的HBA x YO'HOOD限量款卫衣将于2014年度YO'HOOD潮流展 +上正式推出,产品保留经典的设计风格,大面积的色块元素与字母印花相信喜欢HBA的朋友一定非常熟悉,经典的连帽卫衣款式也是必备的潮流单品,喜欢的朋友 +不可错过。</p> + <p class="price">连帽卫衣 RMB 1749</p> + </div> + </div> + <div class="recommend-box"> + <div class="goods-pic"> + <img src="http://res.yohood.test.yoho.cn/images/yohood/head.png"/> + </div> + <div class="goods-info"> + <h4>3.HEAD PORTER</h4> + <p class="info">2014年度 HEAD PORTER x YO'HOOD限定款联名钱包, 极具潮流感的迷彩系列单品,精致的外形与迷彩元素的结合,多隔层功能设计保证款式的实用性,制作面 +料选用特质的混纺材料,兼备超强耐磨与防水功能,整体细节的把控体现了品牌一贯的态度,潮流包品绝对值得入手。</p> + <p class="price">迷彩钱包 RMB 599</p> + </div> + </div> + <div class="recommend-box"> + <div class="goods-pic"> + <img src="http://res.yohood.test.yoho.cn/images/yohood/herschel.png"/> + </div> + <div class="goods-info"> + <h4>4.Herschel Supply</h4> + <p class="info">加拿大制包品牌Herschel Supply Co. 与YO'HOOD合作推出最新款双肩背包. 该款背包款式延续Herschel Supply 一贯的经典造型,与众不同的是设计采用了极具 +个性的豹纹面料,红色提手点缀及拼接细节让产品有更多层次的变化,浓烈的街头气息展露无遗,至潮单品不容错过!</p> + <p class="price">双肩背包 RMB 899</p> + </div> + </div> + <div class="recommend-box"> + <div class="goods-pic"> + <img src="http://res.yohood.test.yoho.cn/images/yohood/joyrich.png"/> + </div> + <div class="goods-info"> + <h4>5.JOYRICH</h4> + <p class="info">融合复古与前卫元素的好莱坞时尚潮牌JOYRICH此番秋冬也带来最新YO'HOOD合作产品,此款设计为经典复刻版棒球夹克,正面夸张的logo标示体现品牌一直 +以来大胆的作风,黑白的主色调以及红色的点缀细节,展现出极具街头辨识度的风格,喜欢美式风格的朋友值得入手。</p> + <p class="price">棒球夹克 RMB 999</p> + </div> + </div> + <div class="recommend-box"> + <div class="goods-pic"> + <img src="http://res.yohood.test.yoho.cn/images/yohood/stussy.png"/> + </div> + <div class="goods-info"> + <h4>6.Stussy</h4> + <p class="info">元祖级街头潮牌Stussy此番与YO'HOOD推出最新联名单品Dragon crew Tee ,设计融合了传统的中国元素,标志性的Stussy涂鸦签名与龙的图案结合形成一种新 +的文化碰撞和艺术风格。经典的黑白两色选择也非常适合街头的日常搭配,值得推荐。</p> + <p class="price">印花TEE RMB 299</p> + </div> + </div> + <div class="recommend-box"> + <div class="goods-pic"> + <img src="http://res.yohood.test.yoho.cn/images/yohood/hundreds.png"/> + </div> + <div class="goods-info"> + <h4>7.THE HUNDREDS</h4> + <p class="info">源于南加州西海岸的美式街头潮流品牌 THE HUNDREDS此季同YO'HOOD合作带来全新联名产品,该系类设计虽没有经典的炸弹先生附体,但却体现出品牌最hip- +pop的本质,星条旗和数字等元素的完美结合打造出当下街头最热的Hi-Street风格,同时品牌logo数字印花的融入也极具诚意,值得关注。</p> + <p class="price">圆领卫衣 RMB 449</p> + </div> + </div> + <div class="recommend-box"> + <div class="goods-pic"> + <img src="http://res.yohood.test.yoho.cn/images/yohood/undefeated.png"/> + </div> + <div class="goods-info"> + <h4>8.UNDEFEATED</h4> + <p class="info">洛杉矶潮流品牌 UNDEFEATED x YO'HOOD 的联名系列,该款棒球衫运用其经典的logo元素,硬朗醒目的几何字体透露着浓厚的美式街头运动感,而最具代表性的 +还是了中文字”耍赖”的加入让设计又透露一丝不羁的个性,两种文字的结合让此次联名更具潮流意义。</p> + <p class="price">棒球夹克 RMB 999</p> + </div> + </div> + <div class="recommend-box"> + <div class="goods-pic"> + <img src="http://res.yohood.test.yoho.cn/images/yohood/vanquish.png"/> + </div> + <div class="goods-info"> + <h4>9.VANQUISH</h4> + <p class="info">由石川凉主理的日本街头时装品牌 VANQUISH 也带来最新联名系列Tee, 设计迎合更多年轻人的喜好,简洁舒适的款式,采用品牌经典的logo元素,却别具创新的镜像 +对称表现手法,这和中国传统“倒福”的概念不谋而合,袖口精致的YO'HOOD刺绣logo也增添了更多的细节。</p> + <p class="price">字母TEE RMB 299</p> + </div> + </div> + <div class="recommend-box"> + <div class="goods-pic"> + <img src="http://res.yohood.test.yoho.cn/images/yohood/subcrew.png"/> + </div> + <div class="goods-info"> + <h4>10.Subcrew</h4> + <p class="info">港产潮牌Subcrew与YO'HOOD跨界合作带来本次联名系列Hoodie, 本季设计以校园风为主题,将品牌“Subcrew”以谐音“十八骷髏“转变成极具个性的logo元素, +袖口的骷髅细节也透露品牌的街头态度,港牌代表之作不可错过。</p> + <p class="price">连帽卫衣 RMB 499</p> + </div> + </div> + <div class="recommend-box"> + <div class="goods-pic"> + <img src="http://res.yohood.test.yoho.cn/images/yohood/aa.png"/> + </div> + <div class="goods-info"> + <h4>11.American Apparel</h4> + <p class="info">American Apparel与伦敦设计师Kesh合作的玩味街头风系列本次为YO'HOOD带来全新独家限量款Zip Hoodie, 设计采用本系列一贯的黑眼图案,满版重复排列的印花极 +具个性,实属街头吸睛必备单品!</p> + <p class="price">拉链连帽卫衣 新品未定价</p> + </div> + </div> + <div class="recommend-box"> + <div class="goods-pic"> + <img src="http://res.yohood.test.yoho.cn/images/yohood/dpk.png"/> + </div> + <div class="goods-info"> + <h4>12.DPK</h4> + <p class="info">由潮流界的Fashion Icon 仓石一树主理打造的全新品牌DPK 於2014秋冬曝光首季產品,品牌将联合YOHO! 打造的世全球潮流新品嘉年华YO'HOOD正式推出,同时也带来 +此番联名系列条纹衬衫,以box logo 等印花元素运用到衬衫上独具特色,而左右袖不对称的设计也让人眼前一亮。</p> + </div> + </div> + <div class="recommend-box"> + <div class="goods-pic"> + <img src="http://res.yohood.test.yoho.cn/images/yohood/medicom.png"/> + </div> + <div class="goods-info"> + <h4>13.MEDICOM TOY</h4> + <p class="info">继上一年与MEDICOM TOY合作推出了限定版本BE@RBRICK后,今年再接再厉推出SERIES 28 特别版白色BE@RBRICK。CLOT 与 BE@RBRICK 合作的SERIES 28系列以黑色 BE@R +BRICK配合极为稀少的红色 BE@RBRICK为卖点,发售之后便引发一众爱好 BE@RBRICK 的潮流人士抢购,随机发售的红色BE@RBRICK更是令人需要在购买时试试运气才能有机会 +获得,如今YO'HOOD 推出的同款白色限量版本 BE@RBRICK,你不用试试运气,只要来到 YO'HOOD现场 就能拥有!</p> + <p class="price">拉链连帽卫衣 新品未定价</p> + </div> + </div> + <div class="recommend-box"> + <div class="goods-pic"> + <img src="http://res.yohood.test.yoho.cn/images/yohood/hallfame.png"/> + </div> + <div class="goods-info"> + <h4>14.HALL OF FAME</h4> + <p class="info">创立于 2007 年的加州街头品牌 HALL OF FAME,也是全球顶尖棒球帽品牌,凭借其现代化的设计思路和高质素的产品质量,迅速积攒了一大批忠实拥趸。本次与YO'HOOD推 +出的合作款产品当然是以最拿手的棒球帽最为主打,结合了绝对经典的美式元素,相信是潮流人士下一季的败物首选。</p> + <p class="price">LOGO棒球帽 新品未定价</p> + </div> + </div> + </div> + </div> + </div> +</body> +</html> \ No newline at end of file diff --git a/demo/yohood3.0/scene.html b/demo/yohood3.0/scene.html new file mode 100644 index 0000000..c553337 --- /dev/null +++ b/demo/yohood3.0/scene.html @@ -0,0 +1,64 @@ +<!doctype html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>Home</title> + <link rel="stylesheet" href="http://res.yohood.test.yoho.cn/css/style.css"/> +</head> +<body> + <div class="wrapper"> + <div class="container"> + <div class="header"> + <a href="/"><img src="http://res.yohood.test.yoho.cn/images/yohood/logo.png" alt=""/></a> + </div> + <!-- navigator start --> + <div class="navigator"> + <ul class="clearfix"> + <li><a href="">首页</a></li> + <li><a href="">活动介绍</a></li> + <li><a href="">资讯</a></li> + <li><a href="">品牌</a></li> + <li><a href="">限量推荐</a></li> + <li><a href="">现场活动</a></li> + <li><a href="">SHOW</a></li> + <li><a href="">入场券</a></li> + </ul> + <a href="" class="goToYohobuy" title="有货"></a> + <span class="navigatorBar"></span> + </div> + <!-- content start --> + <div class="content-wrap clearfix"> + <div class="scene-wrap"> + <div class="scene-nav"> + <a href="#" class="current">9/20</a> + <a href="#">9/21</a> + </div> + <div class="scene-item over"> + <div class="times"> + <span>10:00</span> + <strong>已结束</strong> + </div> + <h2><i></i><a href="">2014 YO'HOOD</a></h2> + <h3>主舞台区</h3> + <div class="img-box"> + <img src="http://res.yohood.test.yoho.cn/images/yohood/scene.png" alt=""/> + <p>志在将青春、朝气、前卫、自我等生活态度和时尚主张注入潮流文化之中的Begins,令当下每一位有自我意识、追求潮流、有乐观生活态度的年轻人都能在这儿得到认同感和归属感!</p> + </div> + </div> + <div class="scene-item"> + <div class="times"> + <span>10:00</span> + </div> + <h2><i></i><a href="">2014 YO'HOOD</a></h2> + <h3>主舞台区</h3> + <div class="img-box"> + <img src="http://res.yohood.test.yoho.cn/images/yohood/scene.png" alt=""/> + <p>志在将青春、朝气、前卫、自我等生活态度和时尚主张注入潮流文化之中的Begins,令当下每一位有自我意识、追求潮流、有乐观生活态度的年轻人都能在这儿得到认同感和归属感!</p> + </div> + </div> + </div> + </div> + </div> + </div> +</body> +</html> \ No newline at end of file diff --git a/demo/yohood3.0/shanghai.html b/demo/yohood3.0/shanghai.html new file mode 100644 index 0000000..05f8d2b --- /dev/null +++ b/demo/yohood3.0/shanghai.html @@ -0,0 +1,25 @@ +<!doctype html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>Activity</title> + <link rel="stylesheet" href="../../res/css/index.css"/> +</head> +<body> + <div class="sh-hd"></div> + <div class="sh-bd"> + <div class="section1"></div> + <div class="section2"></div> + <div class="section3"></div> + <div class="section4"></div> + <div class="section5"></div> + <div class="section6"></div> + <div class="section7"></div> + <div class="section8"></div> + <div class="section9"></div> + <div class="section10"></div> + <div class="section11"></div> + <div class="section12"></div> + </div> +</body> +</html> \ No newline at end of file diff --git a/demo/yohood3.0/show.html b/demo/yohood3.0/show.html new file mode 100644 index 0000000..db3a2ad --- /dev/null +++ b/demo/yohood3.0/show.html @@ -0,0 +1,291 @@ +<!doctype html> +<html lang="en"> + +<head> + <meta charset="UTF-8"> + <title>show</title> + <link rel="stylesheet" href="../../res/css/index.css" /> +</head> + +<body> + <!-- 主站导航 start --> + <div class="yoho-nav clearfix"> + <ul class="clearfix"> + <li> + <span>YOHO!</span> + <a href="http://www.yoho.cn" target="_blank">集团官网</a> + </li> + <li> + <span>YOHO!有货</span> + <a href="http://www.yohobuy.com" target="_blank">潮流购物</a> + </li> + <li> + <span>YOHO!BOYS</span> + <a href="http://www.yohoboys.com">男生潮流</a> + </li> + <li> + <span>YOHO!GIRLS</span> + <a href="http://www.yohogirls.com" target="_blank">女生潮流</a> + </li> + <li> + <span>YOHO!SHOW</span> + <a href="http://www.yohoshow.com" target="_blank">物趣分享</a> + </li> + <li class="current"> + <span>YOHOOD</span> + <a href="javascript:;" target="_blank">潮流嘉年华</a> + </li> + </ul> + <a class="contact-btn" href="javascript:;">contact</a> + </div> + <!-- 主站导航 end -->c + <!-- 页眉 start --> + <div class="header"> + <!-- 页首 logo start --> + <h1 class="logo"> + <img src="../../res/images/yohood/logo3.0.png"> + </h1> + <!-- 页首 logo end --> + <!-- yohood 导航 start --> + <div class="nav"> + <ul class="clearfix"> + <!-- 单个菜单标签 start --> + <li> + <a href="javascript:;"> + <em>HOME</em> + <span>首页</span> + <i></i> + </a> + </li> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> + <li> + <a href="javascript:;"> + <em>ACTIVITY</em> + <span>活动资讯</span> + <i></i> + </a> + <!-- 二级菜单 start --> + <div class="second-menu"> + <a href="javascript:;"> + <em>品牌咨询</em> + <i></i> + </a> + <a href="javascript:;"> + <em>活动介绍</em> + <i></i> + </a> + <a href="javascript:;"> + <em>活动介绍</em> + <i></i> + </a> + <a href="javascript:;"> + <em>亮点活动</em> + <i></i> + </a> + <a href="javascript:;"> + <em>限量商品</em> + <i></i> + </a> + </div> + <!-- 二级菜单 end --> + </li> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> + <li> + <a href="javascript:;"> + <em>BRAND</em> + <span>参展品牌</span> + <i></i> + </a> + </li> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> + <li> + <a href="javascript:;"> + <em>VIDEO</em> + <span>热点视频</span> + <i></i> + </a> + </li> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> + <li> + <a href="javascript:;"> + <em>REGISTRATION</em> + <span>在线登记</span> + <i></i> + </a> + <!-- 二级菜单 start --> + <div class="second-menu"> + <a href="javascript:;"> + <em>参展商登记</em> + <i></i> + </a> + <a href="javascript:;"> + <em>媒体登记</em> + <i></i> + </a> + <a href="javascript:;"> + <em>赞助商登记</em> + <i></i> + </a> + </div> + <!-- 二级菜单 end --> + </li> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> + <li class="current"> + <a href="javascript:;"> + <em>SHOW</em> + <span>潮流分享</span> + <i></i> + </a> + </li> + <!-- 单个菜单标签 end --> + </ul> + </div> + <!-- yohood 导航 end --> + </div> + <!-- 页眉 end --> + <!-- 页面主体 start --> + <div class="bd"> + <h2 class="show-title">#YO'HOOD SHOW#</h2> + <div class="show-wrap clearfix"> + <div class="main-layout clearfix"> + <!-- 单个分享碎片 start --> + <div class="layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img data-original="http://img01.res.yoho.cn/blogimg/2014/10/22/17/01a9b77ff892507e57a4e334634598bad0.gif" src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/01a9b77ff892507e57a4e334634598bad0.gif" alt=""> + </a> + <a class="pic-tip" href="javascript:;">banana</a> + <a class="pic-tip" href="javascript:;">111111111111111</a> + </div> + <div class="content"> + <p>test test test test test test test test test test</p> + <p class="time">NovemBer 11,2016</p> + </div> + </div> + <!-- 单个分享碎片 end --> + <div class="layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img data-original="http://img02.res.yoho.cn/blogimg/2014/10/23/17/020aba6cb71b6620e4e8dd50658a1daf03.jpg" src="http://img02.res.yoho.cn/blogimg/2014/10/23/17/020aba6cb71b6620e4e8dd50658a1daf03.jpg" alt=""> + </a> + <a class="pic-tip" href="javascript:;">122</a> + <a class="pic-tip" href="javascript:;">33</a> + </div> + <div class="content"> + <p>contentcontentco ntentconten tcontentc ontentc</p> + <p class="time">NovemBer 11,2016</p> + </div> + </div> + <div class="layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/015a858eda76bac64d84a0dbcea87dbd3a.gif" alt=""> + </a> + </div> + <div class="content"> + <p>content</p> + <p class="time">NovemBer 11,2016</p> + </div> + </div> + <div class="layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img02.res.yoho.cn/blogimg/2014/10/17/14/02e26b4e08c06766b619b3bf40e31cfc14.jpg" alt=""> + </a> + </div> + <div class="content"> + <p>content</p> + <p class="time">NovemBer 11,2016</p> + </div> + </div> + <div class="layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/01a9b77ff892507e57a4e334634598bad0.gif" alt=""> + </a> + </div> + <div class="content"> + <p>content</p> + <p class="time">NovemBer 11,2016</p> + </div> + </div> + <div class="layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img02.res.yoho.cn/blogimg/2014/10/23/17/020aba6cb71b6620e4e8dd50658a1daf03.jpg" alt=""> + </a> + </div> + <div class="content"> + <p>content</p> + <p class="time">NovemBer 11,2016</p> + </div> + </div> + <div class="layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/015a858eda76bac64d84a0dbcea87dbd3a.gif" alt=""> + </a> + </div> + <div class="content"> + <p>content</p> + <p class="time">NovemBer 11,2016</p> + </div> + </div> + <div class="layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img02.res.yoho.cn/blogimg/2014/10/17/14/02e26b4e08c06766b619b3bf40e31cfc14.jpg" alt=""> + </a> + </div> + <div class="content"> + <p>content</p> + <p class="time">NovemBer 11,2016</p> + </div> + </div> + </div> + <!-- 分页 start --> + <div id="pageContent" style="text-align: center;" class="pagination"> + <div class="pagination-inner" id="img_page" model="default" rel=""> + <a class="current" p="1">1</a> + <a href="http://www.yohood.cn/default/index/page/2" class="link2" p="2">2</a> + <a href="http://www.yohood.cn/default/index/page/3" class="link2" p="3">3</a> + <a href="http://www.yohood.cn/default/index/page/4" class="link2 page-fold" p="4">····</a> + <a href="http://www.yohood.cn/default/index/page/5" class="link2" p="5">5</a> + <a href="http://www.yohood.cn/default/index/page/6" class="link2" p="6">6</a> + <a href="http://www.yohood.cn/default/index/page/2" class="link2" p="2">NEXT ></a> + </div> + </div> + <!-- 分页 end --> + </div> + </div> + <!-- 页面主体 end --> + <!-- 页脚 start --> + <div class="ft"> + <hr> + <p class="copyright"> + CopyRight © 2007-2016 南京新与力文化传播有限公司苏ICP备09011225号-11 + </p> + </div> + <!-- 页脚 end --> + <!-- 返回顶部按钮 start --> + <div class="return-top"> + <a href="javascript:void(0);" id="toTop" class="ifont" style="display: inline;"> + <span class="iconfont"></span> + </a> + </div> + <!-- 返回顶部按钮 end --> +</body> +<script type="text/javascript" src="../../res/js/lib/seajs.js"></script> +<script type="text/javascript"> +seajs.use(['jquery', 'channel'], function($, channel) { + channel.common(); + channel.show(); +}) +</script> + +</html> diff --git a/demo/yohood3.0/site-activity.html b/demo/yohood3.0/site-activity.html new file mode 100644 index 0000000..794f23f --- /dev/null +++ b/demo/yohood3.0/site-activity.html @@ -0,0 +1,296 @@ +<!doctype html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>现场活动</title> + <link rel="stylesheet" href="../../res/css/index.css"/> +</head> +<body> + <div class="yoho-nav clearfix"> + <ul class="clearfix"> + <li> + <span>YOHO!</span> + <a href="http://www.yoho.cn" target="_blank">集团官网</a> + </li> + <li> + <span>YOHO!有货</span> + <a href="http://www.yohobuy.com" target="_blank">潮流购物</a> + </li> + <li> + <span>YOHO!BOYS</span> + <a href="http://www.yohoboys.com">男生潮流</a> + </li> + <li> + <span>YOHO!GIRLS</span> + <a href="http://www.yohogirls.com" target="_blank">女生潮流</a> + </li> + <li> + <span>YOHO!SHOW</span> + <a href="http://www.yohoshow.com" target="_blank">物趣分享</a> + </li> + <li class="current"> + <span>YOHOOD</span> + <a href="javascript:;" target="_blank">潮流嘉年华</a> + </li> + </ul> + <a class="contact-btn" href="javascript:;">contact</a> + </div> + <div class="header"> + <h1 class="logo"></h1> + <div class="nav"> + <ul class="clearfix"> + <li> + <a href="javascript:;">HOME</a> + <span>首页</span> + </li> + <li> + <a href="javascript:;">ACTIVITY</a> + <span>活动详情</span> + </li> + <li> + <a href="javascript:;">COUNSEL</a> + <span>最新资讯</span> + </li> + <li> + <a href="javascript:;">BRAND</a> + <span>参展品牌</span> + </li> + <li> + <a href="javascript:;">VIDEO</a> + <span>热点视频</span> + </li> + <li> + <a href="javascript:;">RECOMMEND</a> + <span>限量推荐</span> + </li> + <li class="current"> + <a href="javascript:;">SCENE</a> + <span>现场活动</span> + </li> + <li> + <a href="javascript:;">SHOW</a> + <span>潮流分享</span> + </li> + </ul> + </div> + </div> + <div class="bd clearfix"> + <div class="site-activity-content"> + <h2 class="site-activity-date">2015-09-19</h2> + <div class="main-layout clearfix"> + <div class="layout-section"> + <div class="site-activity-title"> + <h4 class="site-activity-intro"><span></span>开场Fashion Show舞台</h4> + <div class="site-activity-time">11:00——11:15</div> + <i class="site-activity-icon"></i> + </div> + <div class="layout-item clearfix"> + <div class="image-box"> + <a href="javascript:;"> + <img data-original="http://img01.res.yoho.cn/blogimg/2014/10/22/17/01a9b77ff892507e57a4e334634598bad0.gif" src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/01a9b77ff892507e57a4e334634598bad0.gif" alt=""> + </a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test</a> + </h2> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + <div class="layout-item clearfix"> + <div class="image-box"> + <a href="javascript:;"> + <img data-original="http://img02.res.yoho.cn/blogimg/2014/10/23/17/020aba6cb71b6620e4e8dd50658a1daf03.jpg" src="http://img02.res.yoho.cn/blogimg/2014/10/23/17/020aba6cb71b6620e4e8dd50658a1daf03.jpg" alt=""> + </a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test</a> + </h2> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + </div> + <div class="layout-section clearfix"> + <div class="site-activity-title"> + <h4 class="site-activity-intro"><span></span>听说SHOW买单</h4> + <div class="site-activity-time">11:00——11:15</div> + <i class="site-activity-icon"></i> + </div> + <div class="layout-item clearfix"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/015a858eda76bac64d84a0dbcea87dbd3a.gif" alt=""> + </a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test</a> + </h2> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + <div class="layout-item clearfix"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img02.res.yoho.cn/blogimg/2014/10/17/14/02e26b4e08c06766b619b3bf40e31cfc14.jpg" alt=""> + </a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test</a> + </h2> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + <div class="layout-item clearfix"> + <div class="image-box"> + <a href="javascript:;"> + <img src="http://img01.res.yoho.cn/blogimg/2014/10/22/17/01a9b77ff892507e57a4e334634598bad0.gif" alt=""> + </a> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test</a> + </h2> + <p>content</p> + <p class="time">2014.07.25</p> + </div> + </div> + </div> + </div> + </div> + <div class="site-activity-tab"> + <ul> + <li class="disable"><a href="javascript:;">2015-09-20</a></li> + <li><a href="javascript:;">2015-09-20</a></li> + <li class="current"><a href="javascript:;">2015-09-20</a></li> + </ul> + <h4>往期</h4> + <ul> + <li><a href="javascript:;">2015-09-20</a></li> + <li><a href="javascript:;">2015-09-20</a></li> + <li><a href="javascript:;">2015-09-20</a></li> + </ul> + </div> + </div> + <div class="ft"> + <div class="limited-goods"> + <h2>限量商品</h2> + <div class="limited-slide-box"> + <div class="slide-wrap clearfix"> + <div class="box"> + <ul class="goods-list clearfix"> + <li><a href="javascript:;"> + <div class="img-box"> + <img src="http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90" alt=""> + <span class="red">TOP 1</span> + </div> + <p class="goods-name">MACROPUS 暗夜系列双肩背包</p> + <p class="price">¥339.00</p> + </a></li> + <li><a href="javascript:;"> + <div class="img-box"> + <img src="http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90" alt=""> + <span class="red">TOP 2</span> + </div> + <p class="goods-name">MACROPUS 暗夜系列双肩背包</p> + <p class="price">¥339.00</p> + </a></li> + <li><a href="javascript:;"> + <div class="img-box"> + <img src="http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90" alt=""> + <span class="red">TOP 3</span> + </div> + <p class="goods-name">MACROPUS 暗夜系列双肩背包</p> + <p class="price">¥339.00</p> + </a></li> + <li><a href="javascript:;"> + <div class="img-box"> + <img src="http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90" alt=""> + <span>TOP 4</span> + </div> + <p class="goods-name">MACROPUS 暗夜系列双肩背包</p> + <p class="price">¥339.00</p> + </a></li> + <li><a href="javascript:;"> + <div class="img-box"> + <img src="http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90" alt=""> + <span>TOP 5</span> + </div> + <p class="goods-name">MACROPUS 暗夜系列双肩背包</p> + <p class="price">¥339.00</p> + </a></li> + </ul> + </div> + <div class="box"> + <ul class="goods-list clearfix"> + <li><a href="javascript:;"> + <div class="img-box"> + <img src="http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90" alt=""> + <span class="red">TOP 1</span> + </div> + <p class="goods-name">MACROPUS 暗夜系列双肩背包</p> + <p class="price">¥339.00</p> + </a></li> + <li><a href="javascript:;"> + <div class="img-box"> + <img src="http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90" alt=""> + <span class="red">TOP 2</span> + </div> + <p class="goods-name">MACROPUS 暗夜系列双肩背包</p> + <p class="price">¥339.00</p> + </a></li> + <li><a href="javascript:;"> + <div class="img-box"> + <img src="http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90" alt=""> + <span class="red">TOP 3</span> + </div> + <p class="goods-name">MACROPUS 暗夜系列双肩背包</p> + <p class="price">¥339.00</p> + </a></li> + <li><a href="javascript:;"> + <div class="img-box"> + <img src="http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90" alt=""> + <span>TOP 4</span> + </div> + <p class="goods-name">MACROPUS 暗夜系列双肩背包</p> + <p class="price">¥339.00</p> + </a></li> + <li><a href="javascript:;"> + <div class="img-box"> + <img src="http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90" alt=""> + <span>TOP 5</span> + </div> + <p class="goods-name">MACROPUS 暗夜系列双肩背包</p> + <p class="price">¥339.00</p> + </a></li> + </ul> + </div> + </div> + </div> + <div class="limited-slide-control"> + <a class="limited-slide-prev iconfont" href="javascript:void(0);"></a> + <a class="limited-slide-next iconfont" href="javascript:void(0);"></a> + </div> + </div> + </div> + <div class="return-top"> + <a href="javascript:void(0);" id="toTop" class="ifont" style="display: inline;"> + <span class="iconfont"></span> + TOP + </a> + </div> +</body> +<script type="text/javascript" src="../../res/js/lib/seajs.js"></script> +<script type="text/javascript"> + seajs.use(['jquery','channel'],function($,channel){ + channel.common(); + channel.siteActivity(); + }) +</script> +</html> \ No newline at end of file diff --git a/demo/yohood3.0/special-topic.html b/demo/yohood3.0/special-topic.html new file mode 100644 index 0000000..91ac1be --- /dev/null +++ b/demo/yohood3.0/special-topic.html @@ -0,0 +1,283 @@ +<!doctype html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>Yohood专题</title> + <link rel="stylesheet" href="../../res/css/index.css"/> +</head> +<body> +<div class="yoho-nav clearfix"> + <ul class="clearfix"> + <li> + <span>YOHO!</span> + <a href="http://www.yoho.cn" target="_blank">集团官网</a> + </li> + <li> + <span>YOHO!有货</span> + <a href="http://www.yohobuy.com" target="_blank">潮流购物</a> + </li> + <li> + <span>YOHO!BOYS</span> + <a href="http://www.yohoboys.com">男生潮流</a> + </li> + <li> + <span>YOHO!GIRLS</span> + <a href="http://www.yohogirls.com" target="_blank">女生潮流</a> + </li> + <li> + <span>YOHO!SHOW</span> + <a href="http://www.yohoshow.com" target="_blank">物趣分享</a> + </li> + <li class="current"> + <span>YOHOOD</span> + <a href="javascript:;" target="_blank">潮流嘉年华</a> + </li> + </ul> + <a class="contact-btn" href="javascript:;">contact</a> +</div> +<div class="header"> + <h1 class="logo"></h1> + <div class="nav"> + <ul class="clearfix"> + <li> + <a href="/default/index"> + <em>HOME</em> + <span>首页</span> + <i></i> + </a> + </li> + <li> + <a href="/activity/index"> + <em>ACTIVITY</em> + <span>活动详情</span> + <i></i> + </a> + </li> + <li> + <a href="/news/index"> + <em>COUNSEL</em> + <span>最新资讯</span> + <i></i> + </a> + </li> + <li> + <a href="/brand/index"> + <em>BRAND</em> + <span>参展品牌</span> + <i></i> + </a> + </li> + <li> + <a href="/video/index"> + <em>VIDEO</em> + <span>热点视频</span> + <i></i> + </a> + </li> + <li> + <a href="/product/recommend"> + <em>RECOMMEND</em> + <span>限量推荐</span> + <i></i> + </a> + </li> + <li> + <a href="/activity/plan"> + <em>SCENE</em> + <span>现场活动</span> + <i></i> + </a> + </li> + <li> + <a href="/show/index"> + <em>SHOW</em> + <span>潮流分享</span> + <i></i> + </a> + </li> + </ul> + </div> +</div>> +<div class="special-bd"> + <div style="height:103px; background:url(../../res/images/yohood/special/ex_boy_01.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:102px; background:url(../../res/images/yohood/special/ex_boy_02.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:117px; background:url(../../res/images/yohood/special/ex_boy_03.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:134px; background:url(../../res/images/yohood/special/ex_boy_04.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:143px; background:url(../../res/images/yohood/special/ex_boy_05.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:167px; background:url(../../res/images/yohood/special/ex_boy_06.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:116px; background:url(../../res/images/yohood/special/ex_boy_07.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:240px; background:url(../../res/images/yohood/special/ex_boy_08.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:255px; background:url(../../res/images/yohood/special/ex_boy_09.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:128px; background:url(../../res/images/yohood/special/ex_boy_10.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:351px; background:url(../../res/images/yohood/special/ex_boy_11.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:110px; background:url(../../res/images/yohood/special/ex_boy_12.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:312px; background:url(../../res/images/yohood/special/ex_boy_13.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:94px; background:url(../../res/images/yohood/special/ex_boy_14.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:485px; background:url(../../res/images/yohood/special/ex_boy_15.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:406px; background:url(../../res/images/yohood/special/ex_boy_16.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:429px; background:url(../../res/images/yohood/special/ex_boy_17.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:497px; background:url(../../res/images/yohood/special/ex_boy_18.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:479px; background:url(../../res/images/yohood/special/ex_boy_19.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:449px; background:url(../../res/images/yohood/special/ex_boy_20.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:502px; background:url(../../res/images/yohood/special/ex_boy_21.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:513px; background:url(../../res/images/yohood/special/ex_boy_22.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:430px; background:url(../../res/images/yohood/special/ex_boy_23.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:486px; background:url(../../res/images/yohood/special/ex_boy_24.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:224px; background:url(../../res/images/yohood/special/ex_boy_25.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:315px; background:url(../../res/images/yohood/special/ex_boy_26.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:255px; background:url(../../res/images/yohood/special/ex_boy_27.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:450px; background:url(../../res/images/yohood/special/ex_boy_28.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:207px; background:url(../../res/images/yohood/special/ex_boy_29.jpg) no-repeat center center; width:100%; margin:0 auto;"> + </div> + <div style="height:377px; background:url(../../res/images/yohood/special/ex_boy_30.jpg) no-repeat center center; width:100%; margin:0 auto;"> + <div style="width:1000px; margin:0 auto; overflow:hidden;"> + <img border="0" height="377" src="../../res/images/yohood/special/blank.png" usemap="#Map" width="1000"><map id="Map" name="Map"><area coords="2,15,495,339" href="http://www.yohobuy.com/special_9663_0828NEWHOMEBOY.html" shape="rect" target="_blank"> <area coords="549,21,995,126" href="http://sale.yohobuy.com/?specialsale_id=5&gender=1,3&order=s_t_desc" shape="rect" target="_blank"> <area coords="543,158,997,345" href="http://www.yohobuy.com/special_9667_0828NEWMAPBOY.html" shape="rect" target="_blank"></map></div> + </div> + <div style="height:243px; background:url(../../res/images/yohood/special/ex_boy_31.jpg) no-repeat center center; width:100%; margin:0 auto;"> + <div style="width:1000px; margin:0 auto; overflow:hidden;"> + <a href="http://www.yohobuy.com/" target="_blank"><img height="243" src="../../res/images/yohood/special/blank.png" width="1000"></a></div> + </div> +</div> +<div class="ft"> + <div class="limited-goods"> + <h2>限量商品</h2> + <div class="limited-slide-box"> + <div class="slide-wrap clearfix"> + <div class="box"> + <ul class="goods-list clearfix"> + <li><a href="javascript:;"> + <div class="img-box"> + <img src="http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90" alt=""> + <span class="red">TOP 1</span> + </div> + <p class="goods-name">MACROPUS 暗夜系列双肩背包</p> + <p class="price">¥339.00</p> + </a></li> + <li><a href="javascript:;"> + <div class="img-box"> + <img src="http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90" alt=""> + <span class="red">TOP 2</span> + </div> + <p class="goods-name">MACROPUS 暗夜系列双肩背包</p> + <p class="price">¥339.00</p> + </a></li> + <li><a href="javascript:;"> + <div class="img-box"> + <img src="http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90" alt=""> + <span class="red">TOP 3</span> + </div> + <p class="goods-name">MACROPUS 暗夜系列双肩背包</p> + <p class="price">¥339.00</p> + </a></li> + <li><a href="javascript:;"> + <div class="img-box"> + <img src="http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90" alt=""> + <span>TOP 4</span> + </div> + <p class="goods-name">MACROPUS 暗夜系列双肩背包</p> + <p class="price">¥339.00</p> + </a></li> + <li><a href="javascript:;"> + <div class="img-box"> + <img src="http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90" alt=""> + <span>TOP 5</span> + </div> + <p class="goods-name">MACROPUS 暗夜系列双肩背包</p> + <p class="price">¥339.00</p> + </a></li> + </ul> + </div> + <div class="box"> + <ul class="goods-list clearfix"> + <li><a href="javascript:;"> + <div class="img-box"> + <img src="http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90" alt=""> + <span class="red">TOP 1</span> + </div> + <p class="goods-name">MACROPUS 暗夜系列双肩背包</p> + <p class="price">¥339.00</p> + </a></li> + <li><a href="javascript:;"> + <div class="img-box"> + <img src="http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90" alt=""> + <span class="red">TOP 2</span> + </div> + <p class="goods-name">MACROPUS 暗夜系列双肩背包</p> + <p class="price">¥339.00</p> + </a></li> + <li><a href="javascript:;"> + <div class="img-box"> + <img src="http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90" alt=""> + <span class="red">TOP 3</span> + </div> + <p class="goods-name">MACROPUS 暗夜系列双肩背包</p> + <p class="price">¥339.00</p> + </a></li> + <li><a href="javascript:;"> + <div class="img-box"> + <img src="http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90" alt=""> + <span>TOP 4</span> + </div> + <p class="goods-name">MACROPUS 暗夜系列双肩背包</p> + <p class="price">¥339.00</p> + </a></li> + <li><a href="javascript:;"> + <div class="img-box"> + <img src="http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90" alt=""> + <span>TOP 5</span> + </div> + <p class="goods-name">MACROPUS 暗夜系列双肩背包</p> + <p class="price">¥339.00</p> + </a></li> + </ul> + </div> + </div> + </div> + <div class="limited-slide-control"> + <a class="limited-slide-prev iconfont" href="javascript:void(0);"></a> + <a class="limited-slide-next iconfont" href="javascript:void(0);"></a> + </div> + </div> +</div> +<div class="return-top"> + <a href="javascript:void(0);" id="toTop" class="ifont" style="display: inline;"> + <span class="iconfont"></span> + TOP + </a> +</div> +</body> +<script type="text/javascript" src="../../res/js/lib/seajs.js"></script> +<script type="text/javascript"> + seajs.use(['jquery','channel'],function($,channel){ + channel.common(); + }) +</script> +</html> \ No newline at end of file diff --git a/demo/yohood3.0/ticket.html b/demo/yohood3.0/ticket.html new file mode 100644 index 0000000..036c4b8 --- /dev/null +++ b/demo/yohood3.0/ticket.html @@ -0,0 +1,53 @@ +<!doctype html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>Home</title> + <link rel="stylesheet" href="http://res.yohood.test.yoho.cn/css/style.css"/> +</head> +<body> + <div class="wrapper"> + <div class="container"> + <div class="header"> + <a href="/"><img src="http://res.yohood.test.yoho.cn/images/yohood/logo.png" alt=""/></a> + </div> + <!-- navigator start --> + <div class="navigator"> + <ul class="clearfix"> + <li><a href="">首页</a></li> + <li><a href="">活动介绍</a></li> + <li><a href="">资讯</a></li> + <li><a href="">品牌</a></li> + <li><a href="">限量推荐</a></li> + <li><a href="">现场活动</a></li> + <li><a href="">SHOW</a></li> + <li><a href="">入场券</a></li> + </ul> + <a href="" class="goToYohobuy" title="有货"></a> + <span class="navigatorBar"></span> + </div> + <!-- content start --> + <div class="content-wrap clearfix"> + <div class="ticket"> + <div class="buy-ticket"> + <img src="http://res.yohood.test.yoho.cn/images/yohood/ticket.png" alt=""/> + <h2>YOHOOD上海站活动入场券</h2> + <p>日期:2014.9.20 / 9.21</p> + <p>时间:10:00 - 18:00</p> + <p class="ticket-price">现价:<em class="red">¥</em><span class="red">50.00</span></p> + <a href="#" class="buy-ticket-btn">立即购买</a> + </div> + <div class="buy-ticket-intro"> + <h2>购票须知</h2> + <p>1.门票(含电子打印的二维码门票)一经售出,概不退还。</p> + <p>2.一人一票,凭门票在入场验票区换取购物PASS卡。</p> + <p>3.所购门票为单日票,仅限当天使用,没账户限购一张。</p> + <p>4.请保持二维码干净完整,以确保能够顺利入场。</p> + <p>5.为考虑活动质量,维护参观秩序,主办单位将在参观人流高峰期间实行分时段、限量参观的方式,请大家予以配合和谅解。</p> + </div> + </div> + </div> + </div> + </div> +</body> +</html> \ No newline at end of file diff --git a/demo/yohood3.0/video.html b/demo/yohood3.0/video.html new file mode 100644 index 0000000..0e87c8a --- /dev/null +++ b/demo/yohood3.0/video.html @@ -0,0 +1,378 @@ +<!doctype html> +<html lang="en"> + +<head> + <meta charset="UTF-8"> + <title>video</title> + <link rel="stylesheet" href="../../res/css/index.css" /> +</head> + +<body> + <!-- 主站导航 start --> + <div class="yoho-nav clearfix"> + <ul class="clearfix"> + <li> + <span>YOHO!</span> + <a href="http://www.yoho.cn" target="_blank">集团官网</a> + </li> + <li> + <span>YOHO!有货</span> + <a href="http://www.yohobuy.com" target="_blank">潮流购物</a> + </li> + <li> + <span>YOHO!BOYS</span> + <a href="http://www.yohoboys.com">男生潮流</a> + </li> + <li> + <span>YOHO!GIRLS</span> + <a href="http://www.yohogirls.com" target="_blank">女生潮流</a> + </li> + <li> + <span>YOHO!SHOW</span> + <a href="http://www.yohoshow.com" target="_blank">物趣分享</a> + </li> + <li class="current"> + <span>YOHOOD</span> + <a href="javascript:;" target="_blank">潮流嘉年华</a> + </li> + </ul> + <a class="contact-btn" href="javascript:;">contact</a> + </div> + <!-- 主站导航 end --> + <!-- 页眉 start --> + <div class="header"> + <!-- 页首 logo start --> + <h1 class="logo"> + <img src="../../res/images/yohood/logo3.0.png"> + </h1> + <!-- 页首 logo end --> + <!-- yohood 导航 start --> + <div class="nav"> + <ul class="clearfix"> + <!-- 单个菜单标签 start --> + <li> + <a href="javascript:;"> + <em>HOME</em> + <span>首页</span> + <i></i> + </a> + </li> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> + <li> + <a href="javascript:;"> + <em>ACTIVITY</em> + <span>活动资讯</span> + <i></i> + </a> + <!-- 二级菜单 start --> + <div class="second-menu"> + <a href="javascript:;"> + <em>品牌咨询</em> + <i></i> + </a> + <a href="javascript:;"> + <em>活动介绍</em> + <i></i> + </a> + <a href="javascript:;"> + <em>活动介绍</em> + <i></i> + </a> + <a href="javascript:;"> + <em>亮点活动</em> + <i></i> + </a> + <a href="javascript:;"> + <em>限量商品</em> + <i></i> + </a> + </div> + <!-- 二级菜单 end --> + </li> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> + <li> + <a href="javascript:;"> + <em>BRAND</em> + <span>参展品牌</span> + <i></i> + </a> + </li> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> + <li class="current"> + <a href="javascript:;"> + <em>VIDEO</em> + <span>热点视频</span> + <i></i> + </a> + </li> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> + <li> + <a href="javascript:;"> + <em>REGISTRATION</em> + <span>在线登记</span> + <i></i> + </a> + <!-- 二级菜单 start --> + <div class="second-menu"> + <a href="javascript:;"> + <em>参展商登记</em> + <i></i> + </a> + <a href="javascript:;"> + <em>媒体登记</em> + <i></i> + </a> + <a href="javascript:;"> + <em>赞助商登记</em> + <i></i> + </a> + </div> + <!-- 二级菜单 end --> + </li> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> + <li> + <a href="javascript:;"> + <em>SHOW</em> + <span>潮流分享</span> + <i></i> + </a> + </li> + <!-- 单个菜单标签 end --> + </ul> + </div> + <!-- yohood 导航 end --> + </div> + <!-- 页眉 end --> + <!-- 页面主体 start --> + <div class="bd"> + <!-- 视频页面主体 end --> + <div class="video-wrap video-list clearfix"> + <div class="main-layout clearfix"> + <!-- 单个视频碎片 start --> + <div class="fluid-item layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="../../res/images/yohood/center-1-1.png" alt=""> + </a> + <span class="play-icon"></span> + </div> + <div class="item-info"> + <a class="fluid-tag item-tag brand-info" href="javascript:;">品牌资讯</a> + <span class="item-time">November 11, 2016</span> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test test test test test test test test test test test test test </a> + </h2> + <p class="text-content">content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content </p> + </div> + </div> + <!-- 单个视频碎片 end --> + <!-- 单个视频碎片 start --> + <div class="fluid-item layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="../../res/images/yohood/center-1-2.png" alt=""> + </a> + <span class="play-icon"></span> + </div> + <div class="item-info"> + <a class="fluid-tag item-tag activity-intro" href="javascript:;">活动介绍</a> + <span class="item-time">November 11, 2016</span> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test test test test test test test test </a> + </h2> + <p class="text-content">content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content </p> + </div> + </div> + <!-- 单个视频碎片 end --> + <!-- 单个视频碎片 start --> + <div class="fluid-item layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="../../res/images/yohood/center-1-3.png" alt=""> + </a> + <span class="play-icon"></span> + </div> + <div class="item-info"> + <a class="fluid-tag item-tag spotlight-activity" href="javascript:;">亮点活动</a> + <span class="item-time">November 11, 2016</span> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test test test test test test test test test test test test</a> + </h2> + <p class="text-content">content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content </p> + </div> + </div> + <!-- 单个视频碎片 end --> + <!-- 单个视频碎片 start --> + <div class="fluid-item layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="../../res/images/yohood/center-2-1.png" alt=""> + </a> + <span class="play-icon"></span> + </div> + <div class="item-info"> + <a class="fluid-tag item-tag limited-edition" href="javascript:;">限量商品</a> + <span class="item-time">November 11, 2016</span> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test test test test test test test test </a> + </h2> + <p class="text-content">content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content </p> + </div> + </div> + <!-- 单个视频碎片 end --> + <!-- 单个视频碎片 start --> + <div class="fluid-item layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="../../res/images/yohood/center-2-2.png" alt=""> + </a> + <span class="play-icon"></span> + </div> + <div class="item-info"> + <a class="fluid-tag item-tag brand-info" href="javascript:;">品牌资讯</a> + <span class="item-time">November 11, 2016</span> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test test test test test test test test </a> + </h2> + <p class="text-content">content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content </p> + </div> + </div> + <!-- 单个视频碎片 end --> + <!-- 单个视频碎片 start --> + <div class="fluid-item layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="../../res/images/yohood/center-2-3.png" alt=""> + </a> + <span class="play-icon"></span> + </div> + <div class="item-info"> + <a class="fluid-tag item-tag activity-intro" href="javascript:;">活动介绍</a> + <span class="item-time">November 11, 2016</span> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test test test test test test test test </a> + </h2> + <p class="text-content">content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content </p> + </div> + </div> + <!-- 单个视频碎片 end --> + <!-- 单个视频碎片 start --> + <div class="fluid-item layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="../../res/images/yohood/center-3-1.png" alt=""> + </a> + <span class="play-icon"></span> + </div> + <div class="item-info"> + <a class="fluid-tag item-tag spotlight-activity" href="javascript:;">亮点活动</a> + <span class="item-time">November 11, 2016</span> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test test test test test test test test </a> + </h2> + <p class="text-content">content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content </p> + </div> + </div> + <!-- 单个视频碎片 end --> + <!-- 单个视频碎片 start --> + <div class="fluid-item layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="../../res/images/yohood/center-3-2.png" alt=""> + </a> + <span class="play-icon"></span> + </div> + <div class="item-info"> + <a class="fluid-tag item-tag limited-edition" href="javascript:;">限量商品</a> + <span class="item-time">November 11, 2016</span> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test test test test test test test test </a> + </h2> + <p class="text-content">content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content </p> + </div> + </div> + <!-- 单个视频碎片 end --> + <!-- 单个视频碎片 start --> + <div class="fluid-item layout-item tiled"> + <div class="image-box"> + <a href="javascript:;"> + <img src="../../res/images/yohood/center-3-3.png" alt=""> + </a> + <span class="play-icon"></span> + </div> + <div class="item-info"> + <a class="fluid-tag item-tag brand-info" href="javascript:;">品牌资讯</a> + <span class="item-time">November 11, 2016</span> + </div> + <div class="content"> + <h2 class="volupia"> + <a href="/news/detail/id/169">test test test test test test test test </a> + </h2> + <p class="text-content">content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content </p> + </div> + </div> + <!-- 单个视频碎片 end --> + </div> + <!-- 分页 start --> + <div id="pageContent" style="text-align: center;" class="pagination"> + <div class="pagination-inner" id="img_page" model="default" rel=""> + <a class="current" p="1">1</a> + <a href="http://www.yohood.cn/default/index/page/2" class="link2" p="2">2</a> + <a href="http://www.yohood.cn/default/index/page/3" class="link2" p="3">3</a> + <a href="http://www.yohood.cn/default/index/page/4" class="link2 page-fold" p="4">····</a> + <a href="http://www.yohood.cn/default/index/page/5" class="link2" p="5">5</a> + <a href="http://www.yohood.cn/default/index/page/6" class="link2" p="6">6</a> + <a href="http://www.yohood.cn/default/index/page/2" class="link2" p="2">NEXT ></a> + </div> + </div> + <!-- 分页 end --> + </div> + <!-- 视频页面主体 end --> + </div> + <!-- 页面主体 end --> + <!-- 页脚 start --> + <div class="ft"> + <hr> + <p class="copyright"> + CopyRight © 2007-2016 南京新与力文化传播有限公司苏ICP备09011225号-11 + </p> + </div> + <!-- 页脚 end --> + <!-- 返回顶部按钮 start --> + <div class="return-top"> + <a href="javascript:void(0);" id="toTop" class="ifont" style="display: inline;"> + <span class="iconfont"></span> + </a> + </div> + <!-- 返回顶部按钮 end --> +</body> +<script type="text/javascript" src="../../res/js/lib/seajs.js"></script> +<script type="text/javascript"> +seajs.use(['jquery', 'channel'], function($, channel) { + channel.common(); + channel.index(); +}) +</script> + +</html> diff --git a/res/css/index.css b/res/css/index.css index 8878ebb..870abaf 100644 --- a/res/css/index.css +++ b/res/css/index.css @@ -1,2 +1,2 @@ -html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,code,del,dfn,em,img,q,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,i{margin:0;padding:0;border:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline}body{line-height:1.5}table{border-collapse:collapse;border-spacing:0}caption,th,td,b,strong{text-align:left;font-weight:normal}table,td,th{vertical-align:middle}blockquote:before,blockquote:after,q:before,q:after{content:""}blockquote,q{quotes:"" ""}a img{border:none}em,cite{font-style:normal}body{background:#fff;font:12px/1.5 "arial","helvetica","微软雅黑";color:#000;width:100%;padding:0;margin:0}html{width:100%;height:100%;padding:0;margin:0}h1,h2,h3,h4,h5,h6{font-weight:normal;color:#111}a{text-decoration:none;cursor:pointer}a:focus{outline:none}dl,dt,dd,ul,li{list-style:none}.clearfix:before,.clearfix:after{content:"";display:table}.clearfix:after{clear:both}.clearfix{zoom:1;*zoom:1}*{-webkit-tap-highlight-color:transparent;-moz-tap-highlight-color:transparent;tap-highlight-color:transparent}@font-face{font-family:'iconfont';src:url("../fonts/iconfont.eot");src:url("../fonts/iconfont.eot?#iefix") format("embedded-opentype"),url("../fonts/iconfont.woff") format("woff"),url("../fonts/iconfont.ttf") format("truetype"),url("../fonts/iconfont.svg#iconfont") format("svg")}.iconfont{font-family:"iconfont" !important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-webkit-text-stroke-width:0.2px;-moz-osx-font-smoothing:grayscale}.yoho-nav{width:100%;height:34px;line-height:34px;background:#f4f4f4;border-bottom:1px solid #d8d8d8}.yoho-nav ul{float:left;padding-left:10px}.yoho-nav ul li{float:left;position:relative;width:100px;cursor:pointer}.yoho-nav ul li span{display:block;width:100%;height:100%;line-height:37px;text-align:center}.yoho-nav ul li a{width:100%;height:100%;text-align:center;color:#000000;line-height:37px;display:none}.yoho-nav ul li a:focus{outline:none}.yoho-nav ul li.current{height:35px;line-height:35px;border-right:1px solid #d8d8d8;border-left:1px solid #d8d8d8;background:#fff}.yoho-nav ul li:hover span{display:none}.yoho-nav ul li:hover a{display:block}.yoho-nav .contact-btn{float:right;margin:0 15px;color:#aaaaaa}.header{width:100%;padding:14px 0 0 0}.logo{margin:0 0 21px 0;height:88px;background:url("../images/yohood/logo.png") no-repeat center center}@keyframes rainbow{90%{border-radius:50%;width:144px;height:144px;margin:-50px 0 0 -16px}100%{border-radius:0;width:122px;height:44px;top:0;left:0;margin:0}}@-webkit-keyframes rainbow{90%{border-radius:50%;width:144px;height:144px;margin:-50px 0 0 -16px}100%{border-radius:0;width:126px;height:44px;top:0;left:0;margin:0}}@-moz-keyframes rainbow{90%{border-radius:50%;width:144px;height:144px;margin:-50px 0 0 -16px}100%{border-radius:0;width:126px;height:44px;top:0;left:0;margin:0}}@-ms-keyframes rainbow{90%{border-radius:50%;width:144px;height:144px;margin:-50px 0 0 -16px}100%{border-radius:0;width:126px;height:44px;top:0;left:0;margin:0}}@keyframes rainbow{90%{border-radius:50%;width:144px;height:144px;margin:-50px 0 0 -16px}100%{border-radius:0;width:126px;height:44px;top:0;left:0;margin:0}}.nav{border-top:2px solid #000;border-bottom:2px solid #000;overflow:hidden}.nav ul{width:980px;margin:0 auto}.nav ul li{position:relative;float:left;line-height:44px;height:44px;width:122px}.nav ul li em{position:relative;z-index:10;width:122px;display:none;font-size:14px;color:#fff;font-weight:normal;font-style:normal}.nav ul li em:focus{outline:none}.nav ul li span{display:block;text-align:center;font-size:14px;color:#000}.nav ul li i{display:none;position:absolute;top:50%;left:50%;width:44px;height:44px;margin-left:-22px;margin-top:-22px;border-radius:50%;background:#000;z-index:9}.nav ul li.animate span,.nav ul li.current span{display:none}.nav ul li.current em{display:block;background:#000;text-align:center}.nav ul li.current i{display:none}.nav ul li.animate em{display:block;text-align:center;margin:0 auto}.nav ul li.animate i{display:block;animation:.5s rainbow forwards;-webkit-animation:.5s rainbow forwards;-moz-animation:.5s rainbow forwards;-ms-animation:.5s rainbow forwards;width:122px\9;margin-left:0\9;left:0\9;width:122px\0;margin-left:0\0;left:0\0;border-radius:0\0}.slide-main{position:relative}.slide-box{position:relative;margin:16px 0 0 0;overflow:hidden}.slide-box .slide-wrap{height:468px;overflow:hidden;position:relative}.slide-box .slide-wrap .box{float:left;width:100%;position:relative}.slide-box .slide-wrap .box img{display:block;width:100%}.slide-navigator{position:absolute;left:0;right:0;bottom:-32px;text-align:center}.slide-navigator .dib{display:inline-block;*display:inline !important;zoom:1}.slide-navigator .dib a{float:left;width:11px;height:11px;margin:0 10px 0 0;background-image:url("../images/yohood/greydot-2x.png");background-image:url("../images/yohood/greydot.png") \9;background-size:100% 100%}.slide-navigator .dib a:focus{outline:none}.slide-navigator .dib .on{background-image:url("../images/yohood/blackdot-2x.png");background-image:url("../images/yohood/blackdot.png") \9;background-size:100% 100%}.slide-control a{position:absolute;top:50%;margin:-28px 0 0 0;font-size:48px;color:#000}.slide-control a:focus{outline:none}.slide-control .slide-prev{left:-70px}.slide-control .slide-next{right:-70px}.content-tab{margin:30px 0 0 0;text-align:center}.content-tab ul{display:inline-block;*display:inline !important;*zoom:1}.content-tab ul li{float:left;margin-left:18px}.content-tab ul li a{display:block;padding:0 10px;line-height:30px;color:#000;border:1px solid #000;border-radius:2px;font-size:14px}.content-tab ul li a:focus{outline:none}.content-tab ul:first-child{margin-left:0}.content-tab ul li.current a{background:#000;color:#fff}.main-layout{width:1008px}.main-layout .layout-item{float:left;width:308px;margin:0 28px 26px 0}.main-layout .layout-item .image-box{position:relative;overflow:hidden}.main-layout .layout-item .image-box a img{display:block;margin:0 auto;max-width:100%}.main-layout .layout-item .image-box a:focus{outline:none}.main-layout .layout-item .image-box .item-tag{position:absolute;display:block;width:auto;height:auto;bottom:0;left:0;padding:0 11px;background:#000;line-height:26px;font-size:14px;color:#fff}.main-layout .layout-item .image-box .play-icon{position:absolute;width:50px;height:43px;background:url("../images/yohood/play.png");background-size:100% 100%;left:50%;top:50%;margin:-22px 0 0 -25px}.main-layout .layout-item .image-box .play-icon.small{background:url("../images/yohood/play-small.png")}.main-layout .layout-item .content h2{margin:15px 0 0 0}.main-layout .layout-item .content h2 a{line-height:24px;font-size:20px;font-weight:bold;color:#000}.main-layout .layout-item .content h2 a:focus{outline:none}.main-layout .layout-item .content a{color:#000}.main-layout .layout-item .content p{margin:8px 0 0 0;font-size:14px;color:#000;line-height:20px;word-wrap:break-word}.main-layout .layout-item .content .time{margin:0;color:#b2b2b2;font-size:12px;background:#fff}.pagination{margin:30px 0 0;text-align:center}.pagination .pagination-inner{display:inline-block;*display:inline !important;zoom:1}.pagination .pagination-inner a{float:left;width:36px;height:30px;line-height:30px;font-size:14px;color:#999997}.pagination .pagination-inner a:focus{outline:none}.pagination .pagination-inner .current{background:#000;color:#fff;border-radius:2px}.cooperation-list{width:1005px;margin:12px 0 0 0}.cooperation-list li{float:left;margin:0 27px 27px 0}.cooperation-list li a{display:block}.cooperation-list li a:focus{outline:none}.cooperation-list li .img-box{width:172px;height:116px;overflow:hidden;border:1px solid #e0e0e0;display:table-cell;vertical-align:middle;text-align:center}.cooperation-list li .img-box:hover{border:1px solid #000}.cooperation-list li p{margin:16px 0 0 0;line-height:16px;text-align:center;color:#000}.cooperation-list li.current .img-box{border:1px solid #000}.limited-goods{position:relative;padding:30px 0 50px 0;background:#333333}.limited-goods h2{font-size:24px;color:#8b8b8b;font-weight:bold;text-align:center;background:url("../images/yohood/limited-line.png") no-repeat center center}.limited-slide-box{position:relative;width:944px;margin:28px auto 0;overflow:hidden}.limited-slide-box .slide-wrap{position:relative;overflow:hidden}.limited-slide-box .box{width:944px;position:relative;float:left}.goods-list{float:left;width:992px;background:#333333}.goods-list li{float:left;width:150px;margin:0 48px 0 0}.goods-list li .img-box{position:relative;height:200px;text-align:center;overflow:hidden}.goods-list li .img-box img{width:100%}.goods-list li .img-box span{position:absolute;left:0;bottom:0;width:55px;height:25px;line-height:25px;background:#000;color:#fff;font-size:14px;text-align:center}.goods-list li .img-box span.red{background:#ef3d00}.goods-list li .goods-name{margin:5px 0 0 0;line-height:18px;font-size:14px;color:#ccc}.goods-list li .price{margin:6px 0 0 0;line-height:18px;color:#ccc;font-size:12px}.goods-list li .price .original-price{color:#999;text-decoration:line-through;margin-right:4px}.limited-slide-control{position:absolute;height:200px;left:0;right:0;top:94px}.limited-slide-control a{position:absolute;top:50%;left:50%;font-size:30px;color:#ebebeb;margin-top:-22px}.limited-slide-control a:focus{outline:none}.limited-slide-control .limited-slide-prev{margin-left:-510px}.limited-slide-control .limited-slide-next{margin-left:480px}.limited-slide-control .disable{color:#4a4a4a;cursor:default}.return-top{position:fixed;bottom:440px;left:50%;margin-left:600px}.return-top a{color:#000}.return-top span{display:block}.img-zoom{display:none;position:fixed;z-index:102;left:50%;top:50%}.img-zoom img{display:block}.img-zoom.show{display:block}.overlay{display:none;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.5);background:#000 \9;filter:alpha(opacity=50) \9;width:100% \9;height:100% \9;z-index:101}.overlay.show{display:block}.share{position:absolute;z-index:99;left:50%;top:367px;margin-left:-596px}.share h4{font-size:14px;margin-bottom:5px}.share li{position:relative;width:34px;height:34px;margin-bottom:13px}.share li img{display:block;width:100%}.share .wx-qrcode-dialog{display:none;position:absolute;background:url("../images/yohood/share-wx-bg.png");width:223px;height:220px;left:50px;top:-88px;padding:12px 0 0 0;text-align:center}.share .wx-qrcode-dialog .wx-popup-hd{margin-bottom:5px;font-size:16px}.share .wx-qrcode-dialog .wx-popup-bd{width:125px;height:125px;margin:0 auto}.share .wx-qrcode-dialog .wx-popup-bd img{display:block;width:100%}.share .wx-qrcode-dialog .wx-popup-ft{font-size:14px}.ft{width:100%}.bd{width:980px;margin:0 auto}.wrapper{width:980px;margin:0 auto}.slide-main{position:relative}.slide-control a{position:absolute;top:50%;margin:-28px 0 0 0;font-size:48px;color:#000}.slide-control .slide-prev{left:-70px}.slide-control .slide-next{right:-70px}.content-wrap{margin:50px 0 30px}.cooperation{position:relative;margin:43px 0;height:118px;border:1px solid #000}.cooperation-slide-box{position:relative;width:800px;margin:0 auto;height:90px;padding:28px 0 0 0;overflow:hidden}.cooperation-slide-box .slide-wrap{position:relative;overflow:hidden}.cooperation-slide-box .slide-wrap .box{position:relative;float:left;width:800px}.cooperation .partner{float:left;margin:0 50px 0 0}.cooperation .media{float:left;height:68px;padding:0 0 0 50px;border-left:1px solid #000}.cooperation h2{font-size:14px;line-height:20px}.cooperation ul li{float:left;height:60px;width:132px}.cooperation ul li a{width:132px;height:60px;display:table-cell;vertical-align:middle;text-align:center}.cooperation .partner ul li,.cooperation .media ul li{width:115px}.cooperation .partner ul li a,.cooperation .media ul li a{width:115px}.cooperation-slide-control a{position:absolute;top:50%;margin-top:-16px;color:#000;font-size:26px}.cooperation-slide-control .cooperation-slide-prev{left:20px}.cooperation-slide-control .cooperation-slide-next{right:20px}.cooperation-slide-control .disable{color:#d9d9d9;cursor:default}.activity-main{margin:30px 0 50px 0}.activity-content{display:none}.activity-content:first-child{display:block}.activity-content.current{display:block}.activity-content .section{width:820px;text-align:center;margin:0 auto 20px}.activity-content .section p{text-align:left;font-size:14px;line-height:18px;color:#000}.activity-content .section h4{text-align:left;font-weight:bold}.video-wrap .layout-item{height:362px;margin:0 28px 0 0}.video-wrap .layout-item .image-box{height:198px;overflow:hidden}.video-wrap .layout-item .image-box img{width:100%;height:100%}.activity-cooperation .section{text-align:left;margin:0 0 12px 0}.activity-cooperation .section h2{color:#000;line-height:20px;font-size:18px;font-weight:bold}.contant-tab{margin:30px 0 0 0;text-align:center}.contant-tab ul{display:inline-block}.contant-tab ul li{float:left;margin-left:18px}.contant-tab ul li a{display:block;padding:0 10px;line-height:30px;color:#000;border:2px solid #7e7e7e;border-radius:2px;font-size:14px}.contant-tab ul:first-child{margin-left:0}.contant-tab ul li.current a{background:#000;color:#fff}.news-tab ul li{margin-left:8px}.news-main{margin:30px 0 50px 0}.brand-main{margin:50px 0}.search-wrap{position:relative;width:306px;height:36px;margin:0 auto;padding:0;line-height:36px}.search-wrap input{width:260px;height:36px;line-height:36px\9;padding:0 36px 0 10px;margin:0;border:none;background:url("../images/yohood/search-bg.png");outline:none}.search-wrap .search-btn{position:absolute;top:0px;right:10px;color:#000;font-weight:bold}.search-wrap .search-btn:focus{outline:none}.brand-content{margin:38px 0 0 0}.brand-content .no-search{display:none;margin:100px 0 120px 0;text-align:center;line-height:22px;font-size:16px}.brand-content .no-search a{font-size:16px;color:#000}.brand-content .no-search a:hover{text-decoration:underline}.brand-list li{float:left}.brand-introduction{display:none;position:fixed;width:644px;max-height:560px;top:50%;left:50%;margin:-288px 0 0 -352px;padding:16px 30px 0;z-index:102;background:#fff}.brand-introduction h2{font-size:18px;color:#000;line-height:20px}.brand-introduction .brand-info{margin:20px 0 0 0;padding-bottom:20px;border-bottom:1px solid #e0e0e0}.brand-introduction .brand-info .pic{float:left;width:200px;height:200px;overflow:hidden;margin-top:6px}.brand-introduction .brand-info .pic img{width:100%}.brand-introduction .brand-info .text{float:left;margin:0 0 0 29px}.brand-introduction .brand-info .text p{width:414px;max-height:192px;overflow-x:hidden;overflow-y:auto;margin:0;line-height:24px;font-size:14px}.brand-introduction .brand-info .text a{display:block;width:94px;height:33px;margin-top:15px;padding-left:34px;line-height:35px;border:1px solid #000;border-radius:4px;background:#fff;color:#000;background:url("../images/yohood/enter-store.png") no-repeat 10px center}.brand-introduction .brand-close-btn{position:absolute;color:#b2b2b2;top:10px;right:10px}.related-post h3{margin-top:20px;line-height:22px;font-size:18px}.related-post .post-list{margin-top:17px;width:666px}.related-post .post-list .layout-item{float:left;width:200px;margin-right:22px}.related-post .post-list .layout-item .image-box{height:128px;overflow:hidden}.related-post .post-list .layout-item .image-box a{display:table-cell;width:200px;height:128px;vertical-align:middle}.related-post .post-list .layout-item .image-box a img{margin:0 auto}.related-post .post-list .layout-item .content h2{margin:8px 0 0 0;line-height:20px}.related-post .post-list .layout-item .content h2 a{font-size:14px;font-weight:normal}.video-list{margin:28px 0 50px}.site-activity-date{margin:38px 0 0 0;width:120px;line-height:38px;font-size:22px;color:#000;border-bottom:4px solid #000;text-align:center}.site-activity-content{float:left;width:738px}.site-activity-content .main-layout{width:auto;border-left:2px solid #e0e0e0;margin-left:96px;padding-bottom:50px}.site-activity-content .main-layout .layout-section{width:auto;position:relative;padding-top:84px}.site-activity-content .main-layout .layout-section .site-activity-intro{position:absolute;top:28px;left:18px;background:#000;border-radius:2px;padding:0 15px;color:#fff;line-height:28px}.site-activity-content .main-layout .layout-section .site-activity-intro span{position:absolute;left:-6px;top:0;width:6px;height:17px;background:url("../images/yohood/site-activity-intro-icon.png") no-repeat}.site-activity-content .main-layout .layout-section .site-activity-time{position:absolute;color:#000;left:-98px;top:35px}.site-activity-content .main-layout .layout-section .site-activity-icon{position:absolute;width:10px;height:10px;top:40px;left:-6px;background:url("../images/yohood/site-activity-icon.png") no-repeat}.site-activity-content .layout-item{float:none;width:630px;margin:0 0 0 18px}.site-activity-content .layout-item .image-box{float:left;width:310px;height:174px;overflow:hidden}.site-activity-content .layout-item .image-box a{display:table-cell;width:310px;height:174px;text-align:center;vertical-align:middle}.site-activity-content .layout-item .content{float:left;margin-left:28px;width:290px}.site-activity-content .layout-item .content a{cursor:default}.site-activity-tab.fix{position:fixed;top:0;left:50%;width:134px;margin:10px 0 0 356px}.site-activity-tab{float:right;margin-top:79px}.site-activity-tab h4{line-height:42px;padding-top:14px;border-top:1px dashed #979797;font-size:14px;text-align:center}.site-activity-tab li{width:130px;margin-bottom:18px;line-height:42px;background:#fff;text-align:center;font-size:14px;border:2px solid #7e7e7e;border-radius:2px}.site-activity-tab li a{display:block;color:#000}.site-activity-tab .current{border-radius:0;background:#000;border-color:#000}.site-activity-tab .current a{color:#fff}.site-activity-tab .disable{border-color:#ccc}.site-activity-tab .disable a{color:#ccc;cursor:default}.show-title{line-height:98px;font-size:32px;color:#0099bb;text-align:center}.show-wrap{padding-bottom:50px}.show-wrap .layout-item{height:396px}.show-wrap .layout-item .image-box{height:308px;overflow:visible}.show-wrap .layout-item .image-box img{width:100%;height:100%}.img-zoom .close-btn{position:absolute;top:6px;right:-58px;width:27px;height:27px;background-image:url("../images/yohood/close-btn.png");background-size:100% 100%}.pic-tip{display:block;position:absolute;left:80px;top:80px;background:rgba(255,255,255,0.9);color:#009abe;text-decoration:none;height:18px;line-height:18px;padding:0 5px;border-radius:11px;font-family:'Helvetica';font-weight:bold;box-shadow:1px 2px 2px rgba(0,0,0,0.5);background:#fff\9;filter:alpha(opacity=90);white-space:nowrap;z-index:1;cursor:default}.pic-tip:hover{display:block}.pic-tip:after{display:none\9;position:absolute;content:"";background-image:url("../images/yohood/vedio-btn.png");background-repeat:no-repeat;background-position:0 -55px;background-size:30px 310px;width:7px;height:5px;top:13px;left:-2px}.detail-title{margin:48px 0 28px;width:644px;font-size:28px}.detail-title h2,.detail-title h3{line-height:40px;font-weight:bold}.detail-title .time{font-size:12px;color:#b2b2b2;line-height:24px}.detail-body{float:left;width:644px}.detail-body img{max-width:100%}.detail-slide{margin-bottom:20px}.detail-slide-body{position:relative;width:100%;height:415px;overflow:hidden}.detail-slide-body .detail-slide-piclist{height:415px;overflow:hidden;position:relative}.detail-slide-body .detail-slide-piclist .box{float:left;width:644px;height:415px;line-height:415px;position:relative;background:#000;text-align:center}.detail-slide-body .detail-slide-piclist .box img{max-width:100%;vertical-align:middle}.slide-shadow a{position:absolute;width:322px;top:0;bottom:0}.slide-shadow a:focus{outline:none}.slide-shadow .slide-shadow-prev{left:0}.slide-shadow .slide-shadow-next{right:0}.detail-slide-big-ctrl a{display:none;position:absolute;font-size:40px;top:50%;color:#fff;margin-top:-30px;z-index:20}.detail-slide-big-ctrl a:focus{outline:none}.detail-slide-big-ctrl .slide-big-ctrl-prev{left:5px}.detail-slide-big-ctrl .slide-big-ctrl-next{right:5px}.detail-slide-ctrl{padding:15px 0 0 0;width:100%;height:65px;overflow:hidden;position:relative}.detail-slide-ctrl .detail-slide-ctrl-prev,.detail-slide-ctrl .detail-slide-ctrl-next{display:none;position:absolute;top:15px;width:30px;height:65px;line-height:65px;background:rgba(230,230,230,0.9);font-size:18px;text-align:center;color:#000;background:#fff\9;filter:alpha(opacity=90)}.detail-slide-ctrl .detail-slide-ctrl-prev{left:0}.detail-slide-ctrl .detail-slide-ctrl-next{right:0}.detail-slide-ctrl-tabs{position:relative;left:0;top:0}.detail-slide-ctrl-tabs li{position:relative;float:left;padding:0 0 0 9px}.detail-slide-ctrl-tabs li img{display:block;width:100px;height:65px}.detail-slide-ctrl-tabs li:first-child{padding:0}.detail-slide-ctrl-tabs li:first-child.current .border,.detail-slide-ctrl-tabs li:first-child.swiper-slide-active .border{left:0px}.detail-slide-ctrl-tabs li.current .border,.detail-slide-ctrl-tabs li.swiper-slide-active .border{position:absolute;left:7px;right:0px;top:0px;bottom:0px;border:2px solid #000}.detail-slide-ctrl-tabs li.current .arrow,.detail-slide-ctrl-tabs li.swiper-slide-active .arrow{position:absolute;top:-9px;left:50%;margin:0 0 0 -9px;width:0;height:0;border-left:9px solid transparent;border-right:9px solid transparent;border-bottom:9px solid black}.text-body{margin:0 0 25px 0;font-size:14px;line-height:28px;color:#000}.text-body p{margin:0 0 25px}.text-body a{color:#000;text-decoration:underline}.detail-related-post h3{font-weight:bold}.detail-side{width:280px;float:right;padding-bottom:62px}.detail-ad{margin-bottom:28px}.detail-ad li{margin-bottom:15px}.detail-ad li img{display:block}.app-download{width:278px;height:158px;border:1px solid #000}.app-download .qr{float:left;margin:22px 0 0 18px;width:114px;height:114px}.app-download .qr img{display:block;width:100%}.app-download .download-text{float:left;margin:20px 0 38px 12px;width:108px}.app-download .download-text img{display:block;width:50px}.app-download .download-text p{font-size:12px;color:#666}.app-download .download-text .yoho-name{font-size:18px;color:#000;font-weight:bold}.side-related-post.fix{position:fixed;top:0px;left:50%;width:280px;margin-left:210px}.side-related-tab{border-bottom:1px solid #000}.side-related-tab a{float:left;width:140px;text-align:center;font-size:18px;line-height:38px;color:#000;font-weight:bold}.side-related-tab a.current{border-bottom:2px solid #000}.side-related-list{display:none}.side-related-list.current{display:block}.side-related-list .layout-item{float:none;margin:20px 0 0 0}.side-related-list .layout-item .image-box{float:left;width:82px;height:53px;overflow:hidden}.side-related-list .layout-item .image-box img{display:block;width:100%;height:100%}.side-related-list .layout-item .image-box .play-icon{width:20px;height:20px;margin:-10px 0 0 -10px}.side-related-list .layout-item .content{float:left;margin-left:16px;width:182px}.side-related-list .layout-item .content h2{margin:0}.side-related-list .layout-item .content h2 a{font-size:14px;font-weight:normal;line-height:20px}.contact-us{padding:20px 0 30px}.contact-us-section{text-align:center;font-size:16px;line-height:28px}.sh-hd{height:500px;background:url("../images/yohood/sh/img01.jpg") no-repeat center center}.sh-bd{background:#1f1d1e}.sh-bd div{height:300px}.sh-bd .section1{background:url("../images/yohood/sh/img02.jpg") no-repeat center center}.sh-bd .section2{background:url("../images/yohood/sh/img03.jpg") no-repeat center center}.sh-bd .section3{background:url("../images/yohood/sh/img04.jpg") no-repeat center center}.sh-bd .section4{background:url("../images/yohood/sh/img05.jpg") no-repeat center center}.sh-bd .section5{background:url("../images/yohood/sh/img06.jpg") no-repeat center center}.sh-bd .section6{background:url("../images/yohood/sh/img07.jpg") no-repeat center center}.sh-bd .section7{background:url("../images/yohood/sh/img08.jpg") no-repeat center center}.sh-bd .section8{background:url("../images/yohood/sh/img09.jpg") no-repeat center center}.sh-bd .section9{background:url("../images/yohood/sh/img10.jpg") no-repeat center center}.sh-bd .section10{background:url("../images/yohood/sh/img11.jpg") no-repeat center center}.sh-bd .section11{background:url("../images/yohood/sh/img12.jpg") no-repeat center center}.sh-bd .section12{background:url("../images/yohood/sh/img13.jpg") no-repeat top center} +html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,code,del,dfn,em,img,q,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,i{margin:0;padding:0;border:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline}body{line-height:1.5}table{border-collapse:collapse;border-spacing:0}caption,th,td,b,strong{text-align:left;font-weight:normal}table,td,th{vertical-align:middle}blockquote:before,blockquote:after,q:before,q:after{content:""}blockquote,q{quotes:"" ""}a img{border:none}em,cite{font-style:normal}body{background:#fff;font:12px/1.5 "Noto Sans CJK SC", "Source Han Sans CN","Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;color:#000;width:100%;padding:0;margin:0}html{width:100%;height:100%;padding:0;margin:0}h1,h2,h3,h4,h5,h6{font-weight:normal;color:#111}a{text-decoration:none;cursor:pointer}a:focus{outline:none}dl,dt,dd,ul,li{list-style:none}.clearfix:before,.clearfix:after{content:"";display:table}.clearfix:after{clear:both}.clearfix{zoom:1;*zoom:1}*{-webkit-tap-highlight-color:transparent;-moz-tap-highlight-color:transparent;tap-highlight-color:transparent}@font-face{font-family:'iconfont';src:url("../fonts/iconfont.eot");src:url("../fonts/iconfont.eot?#iefix") format("embedded-opentype"),url("../fonts/iconfont.woff") format("woff"),url("../fonts/iconfont.ttf") format("truetype"),url("../fonts/iconfont.svg#iconfont") format("svg")}.iconfont{font-family:"iconfont" !important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-webkit-text-stroke-width:0.2px;-moz-osx-font-smoothing:grayscale}@font-face{font-family:'iconfont-new';src:url("../fonts/new/iconfont.eot");src:url("../fonts/new/iconfont.eot?#iefix") format("embedded-opentype"),url("../fonts/new/iconfont.woff") format("woff"),url("../fonts/new/iconfont.ttf") format("truetype"),url("../fonts/new/iconfont.svg#iconfont") format("svg")}.iconfont-new{font-family:"iconfont-new";font-size:16px;font-style:normal}body{font-family:"Noto Sans CJK SC", "Source Han Sans CN", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif}.yoho-nav{width:100%;min-width:1180px;height:34px;line-height:34px;background:#f4f4f4;border-bottom:1px solid #d8d8d8}.yoho-nav ul{float:left;padding-left:10px}.yoho-nav ul li{float:left;position:relative;width:100px;cursor:pointer}.yoho-nav ul li span{display:block;width:100%;height:100%;line-height:37px;text-align:center}.yoho-nav ul li a{width:100%;height:100%;text-align:center;color:#000000;line-height:37px;display:none}.yoho-nav ul li a:focus{outline:none}.yoho-nav ul li.current{height:35px;line-height:35px;border-right:1px solid #d8d8d8;border-left:1px solid #d8d8d8;background:#fff}.yoho-nav ul li:hover span{display:none}.yoho-nav ul li:hover a{display:block}.yoho-nav .contact-btn{float:right;margin:0 10px;color:#000}.header{width:100%;min-width:1180px}.logo img{width:100%;margin:-2px 0 -5px}@keyframes rainbow{90%{border-radius:10%/50%;width:196.66667px;height:38px}100%{border-radius:0;width:196.66667px;height:38px;top:0;left:0;margin:0}}@-webkit-keyframes rainbow{90%{border-radius:10%/50%;width:196.66667px;height:38px}100%{border-radius:0;width:196.66667px;height:38px;top:0;left:0;margin:0}}@-moz-keyframes rainbow{90%{border-radius:10%/50%;width:196.66667px;height:38px}100%{border-radius:0;width:196.66667px;height:38px;top:0;left:0;margin:0}}@-ms-keyframes rainbow{90%{border-radius:10%/50%;width:196.66667px;height:38px}100%{border-radius:0;width:196.66667px;height:38px;top:0;left:0;margin:0}}@keyframes rainbow{90%{border-radius:10%/50%;width:196.66667px;height:38px}100%{border-radius:0;width:196.66667px;height:38px;top:0;left:0;margin:0}}@keyframes rainbow-seconed-menu{90%{border-radius:10%/50%;width:194.66667px;height:47px}100%{border-radius:0;width:194.66667px;height:47px;top:0;left:0;margin:0}}@-webkit-keyframes rainbow-seconed-menu{90%{border-radius:10%/50%;width:194.66667px;height:47px}100%{border-radius:0;width:194.66667px;height:47px;top:0;left:0;margin:0}}@-moz-keyframes rainbow-seconed-menu{90%{border-radius:10%/50%;width:194.66667px;height:47px}100%{border-radius:0;width:194.66667px;height:47px;top:0;left:0;margin:0}}@-ms-keyframes rainbow-seconed-menu{90%{border-radius:10%/50%;width:194.66667px;height:47px}100%{border-radius:0;width:194.66667px;height:47px;top:0;left:0;margin:0}}@keyframes rainbow-seconed-menu{90%{border-radius:10%/50%;width:194.66667px;height:47px}100%{border-radius:0;width:194.66667px;height:47px;top:0;left:0;margin:0}}.nav{border-top:1px solid #000;border-bottom:1px solid #000}.nav ul{width:1180px;margin:0 auto}.nav ul li{position:relative;float:left;line-height:38px;height:38px;width:196.66667px}.nav ul li a{display:block;position:relative;color:#000;background:#fff;width:196.66667px;height:38px;line-height:38px}.nav ul li em{display:inline-block;position:relative;z-index:10;width:100%;display:none;font-size:16px;font-weight:normal;font-style:normal}.nav ul li em:focus{outline:none}.nav ul li span{display:block;width:100%;text-align:center;font-size:16px;color:#000}.nav ul li i{display:none;position:absolute;top:19px;left:98.33333px;width:38px;height:38px;margin-left:-19px;margin-top:-19px;border-radius:50%;background:#000;z-index:9}.nav ul li .second-menu-hr{width:196.66667px;height:0;border:0;border-top:1px solid #000;margin:0}.nav ul li .second-menu{display:none;position:relative;background-color:#fff;z-index:8;border:1px solid #e0e0e0}.nav ul li .second-menu hr{height:0px;width:150px;border:0;margin:0 auto;border-top:1px solid #e0e0e0;background:#fff}.nav ul li .second-menu a{width:194.66667px;height:47px}.nav ul li .second-menu em{width:194.66667px;height:47px;line-height:47px}.nav ul li .second-menu i{display:none;position:absolute;top:-47px / 2;left:-47px / 2;width:38px;height:47px;margin-left:-47px / 2;margin-top:-47px / 2;border-radius:50%;background:#000;z-index:9}.nav ul li.current a{background:#000;color:#fff}.nav ul li.current em{display:block;height:38px;line-height:38px;text-align:center}.nav ul li.current span{display:none}.nav ul li.current i{display:none}.nav ul li.current .second-menu{display:none}.nav ul li.current .second-menu em{width:194.66667px;height:47px;line-height:47px}.nav ul li.current:hover em{color:#fff}.nav ul li.current:hover .second-menu a{background-color:#fff}.nav ul li.current:hover .second-menu a:hover em{color:#fff}.nav ul li.current:hover .second-menu em{color:#000;width:194.66667px;height:47px;line-height:47px}.nav ul li:hover a{color:#000}.nav ul li:hover em{display:block;text-align:center;margin:0 auto}.nav ul li:hover span{display:none}.nav ul li:hover .second-menu{display:block;background:#fff}.nav ul li:hover .second-menu em{color:#000;background-color:#fff}.nav ul .second-menu a:hover em{color:#fff;background:#000}.nav ul .second-menu a:hover i{display:block;animation:0 rainbow-seconed-menu forwards;-webkit-animation:0 rainbow-seconed-menu forwards;-moz-animation:0 rainbow-seconed-menu forwards;-ms-animation:0 rainbow-seconed-menu forwards;width:122px\9;margin-left:0\9;left:0\9;width:122px\0;margin-left:0\0;left:0\0;border-radius:0\0}.nav ul li a:hover em{color:#fff}.nav ul li a:hover i{display:block;animation:.5s rainbow forwards;-webkit-animation:.5s rainbow forwards;-moz-animation:.5s rainbow forwards;-ms-animation:.5s rainbow forwards;width:122px\9;margin-left:0\9;left:0\9;width:122px\0;margin-left:0\0;left:0\0;border-radius:0\0}.slide-main{position:relative;width:100%;height:500px;overflow:hidden;min-width:1180px}.slide-main .slide-box-warp{float:left;display:inline-block;width:1180px;height:500px;margin:0 auto;position:relative}.slide-main .left-overlay,.slide-main .right-overlay{float:left;position:relative;display:inline-block;height:100%;width:calc((100% - 1180px) / 2);background:rgba(255,255,255,0.5);z-index:7}.slide-box{position:relative;margin:0}.slide-box .slide-wrap{position:relative}.slide-box .slide-wrap .box{float:left;height:500px;position:relative}.slide-box .slide-wrap .box img{display:block;width:100%;max-width:100%;vertical-align:middle}.slide-navigator{position:absolute;left:0;right:0;bottom:10px;text-align:center}.slide-navigator .dib{padding:5px;border-radius:10px;background-color:rgba(0,0,0,0.2);display:inline-block;*display:inline !important;zoom:1}.slide-navigator .dib a{float:left;width:11px;height:11px;margin:0 10px 0 0;background-image:url("../images/yohood/greydot-2x.png");background-image:url("../images/yohood/greydot.png") \9;background-size:100% 100%}.slide-navigator .dib a:focus{outline:none}.slide-navigator .dib .on{background-image:url("../images/yohood/blackdot-2x.png");background-image:url("../images/yohood/blackdot.png") \9;background-size:100% 100%}.slide-navigator .dib a:first-child{margin-left:10px}.slide-control a{position:absolute;top:50%;margin:-26px 0 0 0;font-size:40px;color:#FFF}.slide-control a:focus{outline:none}.slide-control .slide-prev{left:60px}.slide-control .slide-next{right:60px}.content-tab{margin:30px 0 0 0;text-align:center}.content-tab ul{display:inline-block;*display:inline !important;*zoom:1}.content-tab ul li{float:left;margin-left:18px}.content-tab ul li a{display:block;padding:0 10px;line-height:30px;color:#000;border:1px solid #000;border-radius:2px;font-size:14px}.content-tab ul li a:focus{outline:none}.content-tab ul:first-child{margin-left:0}.content-tab ul li.current a{background:#000;color:#fff}.main-layout{margin:0 auto}.main-layout .layout-item{float:left;overflow:hidden;width:342px;height:420px;margin:0 25px 26px}.main-layout .layout-item .image-box{position:relative;overflow:hidden;width:342px;height:218px}.main-layout .layout-item .image-box a img{display:block;margin:0 auto;max-width:100%}.main-layout .layout-item .image-box a:focus{outline:none}.main-layout .layout-item .image-box .play-icon{position:absolute;width:50px;height:43px;background:url("../images/yohood/play.png");background-size:100% 100%;left:50%;top:50%;margin:-22px 0 0 -25px}.main-layout .layout-item .image-box .play-icon.small{background:url("../images/yohood/play-small.png")}.main-layout .layout-item .item-info{height:18px;line-height:18px;margin:26px 0 0}.main-layout .layout-item .item-info .item-tag{display:inline-block;width:64px;height:18px;background:#000;line-height:18px;color:#fff;text-align:center}.main-layout .layout-item .item-info .brand-info{background:#1a72ff}.main-layout .layout-item .item-info .activity-intro{background-color:#ffc000}.main-layout .layout-item .item-info .spotlight-activity{background-color:#ff365c}.main-layout .layout-item .item-info .limited-edition{background-color:#21dbcc}.main-layout .layout-item .item-info .item-time{float:right;margin:0 2px 0;color:#b2b2b2;font-size:12px;font-weight:100;background:#fff;font-style:italic}.main-layout .layout-item .content{margin:25px 0 0 0}.main-layout .layout-item .content h2 a{line-height:24px;font-size:20px;font-weight:bold;color:#000}.main-layout .layout-item .content h2 a:focus{outline:none}.main-layout .layout-item .content p{color:#616161;margin:24px 0 0 0;font-size:13px;line-height:20px}.main-layout .layout-item .content a{color:#616161;display:inline-block}.pagination{margin:30px 0 0;text-align:center}.pagination .pagination-inner{display:inline-block;*display:inline !important;zoom:1}.pagination .pagination-inner a{float:left;margin:0 5px 0;width:28px;height:28px;line-height:28px;font-size:14px;color:#000;border:1px solid #000}.pagination .pagination-inner a:focus{outline:none}.pagination .pagination-inner .page-fold{border:0}.pagination .pagination-inner .current{background:#000;color:#fff;border-radius:2px}.pagination .pagination-inner .prev,.pagination .pagination-inner .next{width:85px}.cooperation-list{width:1180px;margin:0}.cooperation-list li{float:left;margin:0 45px 27px 0}.cooperation-list li a{display:block}.cooperation-list li a:focus{outline:none}.cooperation-list li .img-box{width:200px;height:120px;overflow:hidden;display:table-cell;vertical-align:middle;text-align:center}.cooperation-list li p{margin:16px 0 0 0;line-height:16px;text-align:center;color:#000}.cooperation-list li:nth-child(5n){margin-right:0}.return-top{width:42px;height:42px;position:fixed;bottom:50px;left:50%;margin-left:568px}.return-top a{color:#000}.return-top span{display:block;border:1px solid #000;font-size:27px;text-align:center}.img-zoom{display:none;position:fixed;z-index:102;left:50%;top:50%}.img-zoom img{display:block}.img-zoom.show{display:block}.overlay{display:none;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.7);background:#000 \9;filter:alpha(opacity=50) \9;width:100% \9;height:100% \9;z-index:101}.overlay.show{display:block}.share{position:absolute;z-index:99;left:50%;top:432px;margin-left:-616px}.share h4{font-size:14px;margin-bottom:5px}.share li{position:relative;width:34px;height:34px;margin-bottom:13px}.share li img{display:block;width:100%}.share .wx-qrcode-dialog{display:none;position:absolute;background:url("../images/yohood/share-wx-bg.png");width:223px;height:220px;left:50px;top:-88px;padding:12px 0 0 0;text-align:center}.share .wx-qrcode-dialog .wx-popup-hd{margin-bottom:5px;font-size:16px}.share .wx-qrcode-dialog .wx-popup-bd{width:125px;height:125px;margin:0 auto}.share .wx-qrcode-dialog .wx-popup-bd img{display:block;width:100%}.share .wx-qrcode-dialog .wx-popup-ft{font-size:14px}.ft{width:100%;min-width:1180px}.ft hr{margin:-1px auto;width:1180px;border:0;border-top:1px solid #e0e0e0}.ft .copyright{margin:0 auto;line-height:70px;color:#444;width:1180px;text-align:center}.bd{margin:0 auto;min-width:1180px}.wrapper{width:980px;margin:0 auto}.content-wrap{width:1180px;margin:50px auto 30px}.cooperation{margin:50px 0 0;height:240px;background:#f5f5f5}.cooperation .cooperation-slide-warp{position:relative;width:1180px;margin:0 auto}.cooperation .cooperation-slide-warp .cooperation-slide-box{position:relative;width:1180px;overflow:hidden;height:240px}.cooperation .cooperation-slide-warp .cooperation-slide-control a{position:absolute;top:50%;margin-top:-16px;color:#000;font-size:26px}.cooperation .cooperation-slide-warp .cooperation-slide-control .cooperation-slide-prev{left:-40px}.cooperation .cooperation-slide-warp .cooperation-slide-control .cooperation-slide-next{right:-40px}.cooperation .cooperation-slide-warp .cooperation-slide-control .disable{color:#d9d9d9;cursor:default}.cooperation-slide-box .slide-wrap{position:relative;overflow:hidden}.cooperation-slide-box .slide-wrap .box{background-color:#f5f5f5;position:relative;float:left;padding:50px 40px 0 0;width:550px;height:240px}.cooperation-slide-box .slide-wrap .box h2{font-size:14px;line-height:20px}.cooperation-slide-box .slide-wrap .box hr{border:0;border-top:1px solid #e0e0e0}.cooperation-slide-box .slide-wrap .box ul li{float:left;width:120px;height:55px;margin:10px 14px 0 0}.cooperation-slide-box .slide-wrap .box ul li a{width:120px;height:55px;display:table-cell;vertical-align:middle;text-align:center}.cooperation-slide-box .slide-wrap .box ul li a img{max-width:100%;max-height:100%}.cooperation-slide-box .slide-wrap .big-size{width:1140px}.right-banner-warp{display:none}.right-banner.layout-item .image-box{height:420px;margin-bottom:26px}.activity-main{margin:30px 0 50px 0}.activity-content{display:none}.activity-content:first-child{display:block}.activity-content.current{display:block}.activity-content .section{width:820px;text-align:center;margin:0 auto 20px}.activity-content .section p{text-align:left;font-size:14px;line-height:18px;color:#000}.activity-content .section h4{text-align:left;font-weight:bold}.activity-cooperation .section{text-align:left;margin:0 0 12px 0}.activity-cooperation .section h2{color:#000;line-height:20px;font-size:18px;font-weight:bold}.contant-tab{margin:30px 0 0 0;text-align:center}.contant-tab ul{display:inline-block}.contant-tab ul li{float:left;margin-left:18px}.contant-tab ul li a{display:block;padding:0 10px;line-height:30px;color:#000;border:2px solid #7e7e7e;border-radius:2px;font-size:14px}.contant-tab ul:first-child{margin-left:0}.contant-tab ul li.current a{background:#000;color:#fff}.news-wrap{width:1180px;margin:0 auto}.news-tab ul li{width:140px;height:40px;margin-left:0}.news-tab ul li a{height:40px;line-height:40px;border-radius:0;border-right:0}.news-tab ul li:last-child a{border-right:1px solid #000}.news-main{margin:30px 0 50px 0}.brand-main{width:1180px;margin:50px auto}.search-wrap{position:relative;width:306px;height:36px;margin:0 auto;padding:0;line-height:36px}.search-wrap input{width:260px;height:36px;line-height:36px\9;padding:0 36px 0 10px;margin:0;border:none;background:url("../images/yohood/search-bg.png");outline:none}.search-wrap .search-btn{position:absolute;top:0px;right:10px;color:#000;font-weight:bold}.search-wrap .search-btn:focus{outline:none}.brand-content{margin:43px 0 0 0}.brand-content .no-search{display:none;margin:100px 0 120px 0;text-align:center;line-height:22px;font-size:16px}.brand-content .no-search a{font-size:16px;color:#000}.brand-content .no-search a:hover{text-decoration:underline}.brand-list li{float:left;position:relative}.brand-list li .close-tag{position:absolute;font-size:25px;top:32px;right:32px}.brand-list li .img-box{position:relative}.brand-list li .img-box img{max-width:160px;max-height:100px}.brand-introduction{display:none;position:fixed;max-width:900px;max-height:750px;top:50%;left:50%;margin:-355px 0 0 -452px;padding:50px 80px 0;z-index:102;background:#fff}.brand-introduction h2{font-size:18px;color:#000;line-height:20px}.brand-introduction .brand-info{margin:40px 0 0 0;padding-bottom:20px}.brand-introduction .brand-info .pic{float:left;width:235px;height:235px;overflow:hidden;margin-top:6px}.brand-introduction .brand-info .pic img{width:100%}.brand-introduction .brand-info .text{float:left;margin:0 0 0 20px}.brand-introduction .brand-info .text p{width:480px;height:188px;max-height:188px;overflow-x:hidden;overflow-y:auto;margin:0;line-height:24px;font-size:14px;text-align:left}.brand-introduction .brand-info a{font-size:16px;display:inline-block;height:33px;margin-top:15px;margin-left:20px;padding:.3em 1.5em;line-height:2em;border:1px solid #000;background:#fff;color:#000}.brand-introduction .brand-close-btn{position:absolute;color:#b2b2b2;top:10px;right:10px}.brand-related-post{margin:0 0 50px 0}.brand-related-post h3{font-size:20px;font-weight:bold}.brand-related-post .post-list .time{text-align:left}.video-wrap{width:1180px;margin:50px auto}.site-activity-date{margin:38px 0 0 0;width:120px;line-height:38px;font-size:22px;color:#000;border-bottom:4px solid #000;text-align:center}.site-activity-content{float:left;width:738px}.site-activity-content .main-layout{width:auto;border-left:2px solid #e0e0e0;margin-left:96px;padding-bottom:50px}.site-activity-content .main-layout .layout-section{width:auto;position:relative;padding-top:84px}.site-activity-content .main-layout .layout-section .site-activity-intro{position:absolute;top:28px;left:18px;background:#000;border-radius:2px;padding:0 15px;color:#fff;line-height:28px}.site-activity-content .main-layout .layout-section .site-activity-intro span{position:absolute;left:-6px;top:0;width:6px;height:17px;background:url("../images/yohood/site-activity-intro-icon.png") no-repeat}.site-activity-content .main-layout .layout-section .site-activity-time{position:absolute;color:#000;left:-98px;top:35px}.site-activity-content .main-layout .layout-section .site-activity-icon{position:absolute;width:10px;height:10px;top:40px;left:-6px;background:url("../images/yohood/site-activity-icon.png") no-repeat}.site-activity-content .layout-item{float:none;width:630px;margin:0 0 0 18px}.site-activity-content .layout-item .image-box{float:left;width:310px;height:174px;overflow:hidden}.site-activity-content .layout-item .image-box a{display:table-cell;width:310px;height:174px;text-align:center;vertical-align:middle}.site-activity-content .layout-item .content{float:left;margin-left:28px;width:290px}.site-activity-content .layout-item .content a{cursor:default}.site-activity-tab.fix{position:fixed;top:0;left:50%;width:134px;margin:10px 0 0 356px}.site-activity-tab{float:right;margin-top:79px}.site-activity-tab h4{line-height:42px;padding-top:14px;border-top:1px dashed #979797;font-size:14px;text-align:center}.site-activity-tab li{width:130px;margin-bottom:18px;line-height:42px;background:#fff;text-align:center;font-size:14px;border:2px solid #7e7e7e;border-radius:2px}.site-activity-tab li a{display:block;color:#000}.site-activity-tab .current{border-radius:0;background:#000;border-color:#000}.site-activity-tab .current a{color:#fff}.site-activity-tab .disable{border-color:#ccc}.site-activity-tab .disable a{color:#ccc;cursor:default}.show-title{line-height:98px;font-size:24px;color:#0099bb;text-align:center}.show-wrap{width:1180px;margin:0 auto;padding-bottom:50px}.show-wrap .layout-item{height:450px}.show-wrap .layout-item .image-box{height:342px;overflow:visible}.show-wrap .layout-item .image-box img{width:100%;height:100%}.show-wrap .layout-item .content p{font-size:20px;font-weight:bold;color:#282828}.show-wrap .layout-item .content .time{font-size:12px;font-weight:normal;color:#8c8c8c}.img-zoom .close-btn{position:absolute;top:6px;right:-58px;width:27px;height:27px;background-image:url("../images/yohood/close-btn.png");background-size:100% 100%}.pic-tip{display:block;position:absolute;left:80px;top:80px;background:rgba(255,255,255,0.9);color:#009abe;text-decoration:none;height:18px;line-height:18px;padding:0 5px;border-radius:11px;font-family:'Helvetica';font-weight:bold;box-shadow:1px 2px 2px rgba(0,0,0,0.5);background:#fff\9;filter:alpha(opacity=90);white-space:nowrap;z-index:1;cursor:default}.pic-tip:hover{display:block}.pic-tip:after{display:none\9;position:absolute;content:"";background-image:url("../images/yohood/vedio-btn.png");background-repeat:no-repeat;background-position:0 -55px;background-size:30px 310px;width:7px;height:5px;top:13px;left:-2px}.page-detail-wrap{width:1080px;margin:0 auto}.page-detail-title{margin:40px 0 28px;width:644px;font-size:30px}.page-detail-title h2{line-height:40px;font-weight:bold;color:#282828}.page-detail-title .item-info{height:18px;line-height:18px;margin:8px 0 0;font-size:12px}.page-detail-title .item-info .item-tag{display:inline-block;width:64px;height:auto;text-align:center;background:#000;line-height:18px;color:#fff}.page-detail-title .item-info .brand-info{background:#1a72ff}.page-detail-title .item-info .activity-intro{background-color:#ffc000}.page-detail-title .item-info .spotlight-activity{background-color:#ff365c}.page-detail-title .item-info .limited-edition{background-color:#21dbcc}.page-detail-title .item-info .item-time{margin:0 0 0 20px;color:#b2b2b2;font-size:12px;background:#fff;font-style:italic}.page-detail-body{float:left;width:740px}.page-detail-body img{max-width:100%}.detail-video{width:740px;height:425px;position:relative;overflow:hidden;margin:0 0 30px 0}.detail-video .play-icon{position:absolute;width:50px;height:43px;background:url("../images/yohood/play.png");background-size:100% 100%;left:50%;top:50%;margin:-22px 0 0 -25px;z-index:100}.detail-slide{margin-bottom:20px}.detail-slide-body{position:relative;width:100%;height:425px;overflow:hidden}.detail-slide-body .detail-slide-piclist{height:425px;overflow:hidden;position:relative}.detail-slide-body .detail-slide-piclist .box{float:left;width:740px;height:425px;line-height:425px;position:relative;background:#000;text-align:center}.detail-slide-body .detail-slide-piclist .box img{max-width:100%;vertical-align:middle}.slide-shadow a{position:absolute;width:50px;top:0;bottom:0}.slide-shadow a:focus{outline:none}.slide-shadow .slide-shadow-prev{left:0}.slide-shadow .slide-shadow-next{right:0}.detail-slide-big-ctrl a{display:none;position:absolute;font-size:40px;top:50%;color:#fff;margin-top:-30px;z-index:20}.detail-slide-big-ctrl a:focus{outline:none}.detail-slide-big-ctrl .slide-big-ctrl-prev{left:5px}.detail-slide-big-ctrl .slide-big-ctrl-next{right:5px}.detail-slide-ctrl{padding:15px 0 0 0;width:100%;height:86px;overflow:hidden;position:relative}.detail-slide-ctrl .box{width:148px;height:86px}.detail-slide-ctrl .detail-slide-ctrl-prev,.detail-slide-ctrl .detail-slide-ctrl-next{display:inline;position:absolute;top:15px;width:30px;height:86px;line-height:86px;font-size:18px;text-align:center;color:#fff;background:rgba(0,0,0,0.2)}.detail-slide-ctrl .detail-slide-ctrl-prev{left:0}.detail-slide-ctrl .detail-slide-ctrl-next{right:0}.detail-slide-ctrl-tabs{position:relative;left:0;top:0}.detail-slide-ctrl-tabs li{position:relative;float:left}.detail-slide-ctrl-tabs li img{display:block;width:148px;height:86px}.detail-slide-ctrl-tabs li .cover{position:absolute;left:0px;right:0px;top:0px;bottom:0px;background:rgba(0,0,0,0.5)}.detail-slide-ctrl-tabs li .cover.on{background:transparent}.text-body{margin:0 0 25px 0;font-size:14px;line-height:28px;color:#000;word-break:break-all}.text-body p{margin:0 0 25px}.text-body a{color:#000;text-decoration:underline}.related-post h3{font-weight:bold}.related-post .post-list{margin-top:17px;width:740px}.related-post .post-list .layout-item{float:left;width:235px;height:255px;margin:0 17.5px 0 0}.related-post .post-list .layout-item .image-box{width:235px;height:135px;overflow:hidden}.related-post .post-list .layout-item .image-box a{display:table-cell;width:235px;height:135px;vertical-align:middle}.related-post .post-list .layout-item .image-box a img{margin:0 auto}.related-post .post-list .layout-item .content .volupia{margin:22px 0 0 0;line-height:20px}.related-post .post-list .layout-item .content .volupia a{font-size:14px;font-weight:bold}.related-post .post-list .layout-item .content .time{margin:22px 0 0;color:#b2b2b2;font-size:12px;font-style:italic}.related-post .post-list .layout-item .content a{word-break:break-all}.related-post .post-list .layout-item:last-child{margin:0}.detail-related-post{margin:100px 0 80px 0}.detail-related-post h3{font-size:22px;font-weight:bold;min-width:5em;width:5em;text-align:center;border:1px solid #000;padding:.3em 4em;margin:0 auto}.detail-related-post hr{margin:32px 0 40px 0;border:0;border-top:1px solid #e3e3e3}.page-detail-side{width:290px;float:left;margin:0 0 0 50px;padding-bottom:62px}.detail-ad{width:290px}.detail-ad li{margin-bottom:30px}.detail-ad li img{width:100%;display:block;max-width:100%}.side-related-post.fix{position:fixed;top:0px}.side-related-tab{margin:50px 0 20px 0;border:1px solid #000;position:relative;text-align:center}.side-related-tab a{float:left;width:50%;text-align:center;font-size:14px;opacity:.7;height:48px;line-height:48px;color:#000;font-weight:bold}.side-related-tab span{display:inline-block;font-size:2em;position:absolute;left:0;right:0;bottom:0;top:0;height:48px;line-height:48px;text-align:center}.side-related-tab a.current{opacity:1}.side-related-list{width:290px;display:none}.side-related-list.current{display:block}.side-related-list .layout-item{width:290px;height:95px;float:none;margin:0}.side-related-list .layout-item .image-box{float:left;width:92px;height:54px;overflow:hidden}.side-related-list .layout-item .image-box img{display:block;width:100%;height:100%}.side-related-list .layout-item .image-box .play-icon{width:20px;height:20px;margin:-10px 0 0 -10px}.side-related-list .layout-item .content{float:left;margin:0 0 0 16px;width:182px}.side-related-list .layout-item .content h2{margin:0}.side-related-list .layout-item .content h2 a{font-size:13px;font-weight:bold;line-height:20px;color:#282828}.side-related-list .layout-item .content .time{color:#b2b2b2;font-size:12px;font-style:italic;margin:0;color:#8C8C8C}.side-related-list .layout-item hr{margin:20px 0 0;float:left;width:290px;border:0;border-top:1px solid #e3e3e3}.detial-img-zoom .img-zoom .close-btn{display:none}.detial-img-zoom .img-zoom .img-zoom-ctrl-prev,.detial-img-zoom .img-zoom .img-zoom-ctrl-next{position:fixed;top:50%;margin:-16px 0 0 0;color:#fff;font-size:50px}.detial-img-zoom .img-zoom .img-zoom-ctrl-prev{left:50px}.detial-img-zoom .img-zoom .img-zoom-ctrl-next{right:50px}.contact-us-wrap{width:1180px;margin:50px auto}.contact-us-wrap .info-list{float:left;border:1px solid #000;padding:32px}.contact-us-wrap .info-list .info-title{text-align:center;font-weight:bold;margin:0 auto 32px auto}.contact-us-wrap .info-list .info-section{margin-bottom:32px;font-size:16px;line-height:28px}.contact-us-wrap .info-list .info-section h2{font-weight:bold}.contact-us-wrap .info-list .contact-us-section:last-child{margin-bottom:0}.contact-us-info{width:600px;margin:0 0 0 25px}.contact-us-info .contact-us-title{font-size:30px}.contact-us-info .contact-us-section{font-size:14px}.public-number-info{width:300px;margin:0 0 0 50px}.public-number-info .public-number-title{font-size:18px}.public-number-info .public-number-section{text-align:center;font-size:14px}.public-number-info .public-number-section img{width:200px;height:200px}.sh-hd{height:500px;background:url("../images/yohood/sh/img01.jpg") no-repeat center center}.sh-bd{background:#1f1d1e}.sh-bd div{height:300px}.sh-bd .section1{background:url("../images/yohood/sh/img02.jpg") no-repeat center center}.sh-bd .section2{background:url("../images/yohood/sh/img03.jpg") no-repeat center center}.sh-bd .section3{background:url("../images/yohood/sh/img04.jpg") no-repeat center center}.sh-bd .section4{background:url("../images/yohood/sh/img05.jpg") no-repeat center center}.sh-bd .section5{background:url("../images/yohood/sh/img06.jpg") no-repeat center center}.sh-bd .section6{background:url("../images/yohood/sh/img07.jpg") no-repeat center center}.sh-bd .section7{background:url("../images/yohood/sh/img08.jpg") no-repeat center center}.sh-bd .section8{background:url("../images/yohood/sh/img09.jpg") no-repeat center center}.sh-bd .section9{background:url("../images/yohood/sh/img10.jpg") no-repeat center center}.sh-bd .section10{background:url("../images/yohood/sh/img11.jpg") no-repeat center center}.sh-bd .section11{background:url("../images/yohood/sh/img12.jpg") no-repeat center center}.sh-bd .section12{background:url("../images/yohood/sh/img13.jpg") no-repeat top center}.pull-left{float:left}.pull-right{float:right}.error{color:#f00}.yoho-banner-w{width:100%;background:#f9f9f9;overflow:hidden}.yoho-header-w{width:100%;background:#f9f9f9;overflow:hidden;position:relative;text-align:center}.yoho-header-title{display:inline-block;font-weight:bold;color:#fff;position:relative;vertical-align:middle;text-align:center}.yoho-header-title .main-header{font-size:18px;color:#d41728}.yoho-header-title .second-header{font-size:11px;color:#000}.yoho-header-title img{width:100%}.submit-content{width:990px;margin:0 auto;height:auto;overflow:hidden}.submit-content .page-header{margin-top:45px;height:auto;overflow:hidden;font-size:28px;font-weight:bold;color:#000}.submit-content .page-header a{padding:0 30px;text-decoration:none;cursor:pointer;color:#b0b0b0}.submit-content .page-header a.end{border-left:2px solid #7f7f7f}.submit-content .page-header a.active{color:#000;text-decoration:none}.submit-content .page-header a.active span{padding-bottom:3px;border-bottom:2px solid #000}.submit-content .pull-left{width:340px;padding-top:50px}.submit-content .content-sub{border:1px solid #cfcfcf;padding:28px 29px;line-height:25px;color:#000;font-size:14px}.submit-content .content-sub span{display:inline-block;float:left;text-align:justify;text-justify:auto}.submit-content .content-sub span i:after{content:"空";visibility:hidden}.submit-content .content-sub p{display:inline-block;width:200px}.submit-content .pull-right{width:648px;padding-top:50px}.submit-content .pull-right h2.content-header{text-indent:100px;font-size:23px;color:#000;font-weight:bold;margin-bottom:38px}.submit-content .pull-right h2.content-header a{width:150px;height:30px;line-height:30px;color:#444;border:1px solid #444;text-align:center;float:right;font-size:12px;text-indent:0;cursor:pointer}.submit-content .pull-right .form-leading{float:left;width:210px;text-align:right;height:30px;line-height:30px;font-size:14px;color:#444}.submit-content .pull-right .form-leading b{color:#ff2424}.submit-content .pull-right .form-control{float:left;width:438px;line-height:30px;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;padding-left:30px}.submit-content .pull-right li{margin-bottom:18px;height:auto;overflow:hidden}.submit-content .pull-right li.h-auto{height:auto;overflow:hidden}.submit-content .pull-right li input[type="text"]{border:1px solid #e8e8e8;height:28px;background:none;outline:none;line-height:28px;display:block;width:405px;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.submit-content .pull-right li input[type="text"].pic-code{width:111px;float:left}.submit-content .pull-right li textarea{border:1px solid #e8e8e8;height:100px;outline:none;display:block;width:405px;max-width:405px;min-width:405px;padding:15px;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.submit-content .pull-right li .pic-code-text{display:block;width:80px;height:30px;border:1px solid #f7f7f7;background:#e8e8e8;line-height:30px;text-align:center;float:left;margin-left:20px}.submit-content .pull-right li .upload-tips{font-size:12px;color:#b0b0b0}.submit-content .pull-right li .upload-tips.error{color:red}.submit-content .pull-right li .has-upload{margin:10px 0;height:auto;overflow:hidden;display:none}.submit-content .pull-right li .has-upload span{display:block;float:left;padding:0 30px 0 15px;text-align:center;border:1px solid #ededed;-moz-border-radius:20px;-webkit-border-radius:20px;border-radius:20px;position:relative}.submit-content .pull-right li .has-upload span b{text-indent:-100000px;display:inline-block;width:20px;height:20px;background:url('../images/yohood/mobile/clo.png?1459837582') center center no-repeat;cursor:pointer;position:absolute;top:50%;margin-top:-10px;right:5px}.submit-content .pull-right li.upload-list{height:auto;overflow:hidden}.submit-content .pull-right .submit-w-btn{border:none;display:block;width:112px;height:40px;line-height:40px;text-align:center;font-size:14px;color:#fff;background:#1a1a1a;margin:35px 145px 400px auto;cursor:pointer}.submit-content .pull-right .submit-w-btn.dis{background:#ccc}.dialog-w{position:fixed;width:100%;height:100%;display:block;top:0;left:0;z-index:1000;background:url('../images/yohood/mobile/op.png?1459837582')}.dialog-w .dia-content{width:600px;height:430px;background:#fff;position:absolute;top:50%;left:50%;margin-left:-300px;margin-top:-215px}.dialog-w .dia-content span{position:absolute;display:block;width:100%;height:100%;background:url('../images/yohood/mobile/submit-success.png?1459837582') center center no-repeat;top:0;left:0}.apply-content{width:1080px;margin:0 auto;margin-top:45px}.apply-content .apply-enter{width:100%;height:auto;overflow:hidden}.apply-content .apply-enter li{float:left;width:342px;height:auto;overflow:hidden;position:relative;text-align:center}.apply-content .apply-enter li div.background{height:420px;position:relative}.apply-content .apply-enter li div.background a{display:block;width:100%;height:55px;position:absolute;bottom:38px;cursor:pointer}.apply-content .apply-enter li.apply-left .background{background:url('../images/yohood/mobile/czs.png?1459837582') center center no-repeat}.apply-content .apply-enter li.apply-center{margin:0 27px}.apply-content .apply-enter li.apply-center .background{background:url('../images/yohood/mobile/mt.png?1459837582') center center no-repeat}.apply-content .apply-enter li.apply-right .background{background:url('../images/yohood/mobile/zzs.png?1459837582') center center no-repeat}.apply-content .apply-enter li .apply-operate{display:inline-block;color:#444;font-size:16px;margin-top:30px;margin-bottom:80px}.apply-content .apply-enter li .apply-operate a{display:inline-block;border:1px solid #444;width:140px;height:40px;line-height:40px;text-align:center;margin:0 5px;cursor:pointer;color:#444}.submit-content .pull-right .media-down li{height:95px}.media-down{padding-left:65px}.media-down li{position:relative;border-bottom:1px solid #cfcfcf}.media-down li h2{font-size:18px;font-weight:bold;color:#000;width:465px}.media-down li div{font-size:14px;color:#444;margin-top:12px;font-weight:bold}.media-down li div .media-date{font-size:12px;font-weight:normal;color:#a6a6a5}.media-down li .down-btn{width:112px;height:40px;text-align:center;line-height:40px;display:block;position:absolute;right:0;top:50%;margin-top:-20px;color:#fff;font-size:14px;background:#000;cursor:pointer}#introduction-tips{display:none}#introduction-tips span{color:red}.submit-content .pull-right .exhibitor-down li{height:auto}.exhibitor-down{padding:0 15px;margin-bottom:100px}.exhibitor-down ul{height:auto;overflow:hidden}.exhibitor-down ul li{float:left;margin:0 15px;text-align:center;width:279px}.exhibitor-down ul li img{display:block;overflow:hidden;width:279px;height:396px}.exhibitor-down ul li span{display:block;width:100%;height:70px;line-height:70px;text-align:center;font-size:14px;color:#3f3f3f;white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.exhibitor-down ul li .exhibitor-btn{width:112px;height:40px;text-align:center;line-height:40px;display:inline-block;color:#fff;font-size:14px;background:#000;cursor:pointer}#upload-file{display:block;float:left;background:#ccc;cursor:pointer;text-align:center;margin-right:15px;position:relative}#upload-file object{display:block;width:100%;height:100%;position:absolute;top:0;left:0}.uploadify-queue{display:none} /*# sourceMappingURL=index.css.map */ diff --git a/res/css/index.css.map b/res/css/index.css.map index 947a609..d7101ef 100644 --- a/res/css/index.css.map +++ b/res/css/index.css.map @@ -1,7 +1,7 @@ { "version": 3, -"mappings": "CACA,uMAAoP,EAChP,KAAM,EAAE,AAAC,EACT,MAAO,EAAE,AAAC,EACV,KAAM,EAAE,AAAC,EACT,UAAW,EAAE,MAAO,EACpB,SAAU,EAAE,MAAO,EACnB,QAAS,EAAE,GAAI,EACf,UAAW,EAAE,MAAO,EACpB,aAAc,EAAE,OAAQ,EAG5B,GAAK,EACD,UAAW,EAAE,EAAG,EAGpB,IAAM,EACF,cAAe,EAAE,OAAQ,EACzB,aAAc,EAAE,AAAC,EAGrB,qBAA2B,EACvB,SAAU,EAAE,GAAI,EAChB,UAAW,EAAE,KAAM,EAGvB,UAAc,EACV,aAAc,EAAE,KAAM,EAG1B,kDAAuD,EACnD,MAAO,EAAE,CAAE,EAGf,WAAc,EACV,KAAM,EAAE,IAAK,EAGjB,IAAM,EACF,KAAM,EAAE,GAAI,EAGhB,MAAS,EACL,SAAU,EAAE,KAAM,EAGtB,GAAK,EACD,SAAU,EAAE,GAAI,EAChB,GAAI,EAAE,kCAAmC,EACzC,IAAK,EAAE,GAAI,EACX,IAAK,EAAE,GAAI,EAEX,MAAO,EAAE,AAAC,EACV,KAAM,EAAE,AAAC,EAGb,GAAK,EACD,IAAK,EAAE,GAAI,EACX,KAAM,EAAE,GAAI,EACZ,MAAO,EAAE,AAAC,EACV,KAAM,EAAE,AAAC,EAGb,gBAAuB,EACnB,UAAW,EAAE,KAAM,EACnB,IAAK,EAAE,GAAI,EAGf,AAAE,EACE,cAAe,EAAE,GAAI,EACrB,KAAM,EAAE,MAAO,EAGnB,MAAO,EACH,MAAO,E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AU,EAAE,2DAA4D,EAG5E,eAAU,EACN,SAAU,EAAE,2DAA4D,EAG5E,eAAU,EACN,SAAU,EAAE,2DAA4D,EAG5E,eAAU,EACN,SAAU,EAAE,2DAA4D,EAG5E,eAAU,EACN,SAAU,EAAE,2DAA4D,EAG5E,gBAAW,EACP,SAAU,EAAE,2DAA4D,EAG5E,gBAAW,EACP,SAAU,EAAE,2DAA4D,EAG5E,gBAAW,EACP,SAAU,EAAE,wDAAyD", -"sources": ["../sass/_base.scss","../sass/style/_common.scss","../sass/style/_home.scss","../sass/style/_activity.scss","../sass/style/_news.scss","../sass/style/_brand.scss","../sass/style/_video.scss","../sass/style/_site-activity.scss","../sass/style/_show.scss","../sass/style/_detail.scss","../sass/style/_other.scss","../sass/style/_shanghai.scss"], +"mappings": "CACA,uMAAoP,EAChP,KAAM,EAAE,AAAC,EACT,MAAO,EAAE,AAAC,EACV,KAAM,EAAE,AAAC,EACT,UAAW,EAAE,MAAO,EACpB,SAAU,EAAE,MAAO,EACnB,QAAS,EAAE,GAAI,EACf,UAAW,EAAE,MAAO,EACpB,aAAc,EAAE,OAAQ,EAG5B,GAAK,EACD,UAAW,EAAE,EAAG,EAGpB,IAAM,EACF,cAAe,EAAE,OAAQ,EACzB,aAAc,EAAE,AAAC,EAGrB,qBAA2B,EACvB,SAAU,EAAE,GAAI,EAChB,UAAW,EAAE,KAAM,EAGvB,UAAc,EACV,aAAc,EAAE,KAAM,EAG1B,kDAAuD,EACnD,MAAO,EAAE,CAAE,EAGf,WAAc,EACV,KAAM,EAAE,IAAK,EAGjB,IAAM,EACF,KAAM,EAAE,GAAI,EAGhB,MAAS,EACL,SAAU,EAAE,KAAM,EAGtB,GAAK,EACD,SAAU,EAAE,GAAI,EAChB,GAAI,EAAE,yHAA0H,EAChI,IAAK,EAAE,GAAI,EACX,IAAK,EAAE,GAAI,EAEX,MAAO,EAAE,AAAC,EACV,KAAM,EAAE,AAAC,EAGb,GAAK,EACD,IAAK,EAAE,GAAI,EACX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,OAAQ,EAAE,KAAM,EAChB,oBAAG,EACC,IAAK,EAAE,GAAI,EACX,KAAM,EAAE,KAAM,EACd,SAAU,EAAE,KAAM,EAClB,IAAK,EAAE,IAAK,EACZ,wBAAI,EACA,MAAO,EAAE,IAAK,EACd,OAAQ,EAAE,KAAM,EAChB,IAAK,EAAE,IAAK,EACZ,KAAM,EAAE,IAAK,EAEjB,yBAAK,EACD,MAAO,EAAE,IAAK,EACd,IAAK,EAAE,GAAI,EACX,KAAM,EAAE,GAAI,EACZ,UAAW,EAAE,GAAI,EACjB,SAAU,EAAE,KAAM,EAClB,QAAS,EAAE,GAAI,EACf,IAAK,EAAE,MAAO,EIxbb,UAAW,EAAE,KAAM,EAClC,OAAQ,EAAE,KAAM,ECkB2C,gBAAgB,EDjBtC,OAAQ,ECkBe,eAAe,EDlBtC,OAAQ,ECmBkB,YAAY,EDnBtC,OAAQ,EJybnC,mCAAe,EACX,IAAK,EAAE,IAAK,EACZ,KAAM,EAAE,GAAI,EACZ,SAAU,EAAE,KAAM,EAClB,UAAW,EAAE,GAAI,EACjB,MAAO,EAAE,WAAY,EACrB,IAAK,EAAE,GAAI,EACX,QAAS,EAAE,GAAI,EACf,SAAU,EAAE,GAAI,EAChB,KAAM,EAAE,MAAO,EAM/B,WAAa,EACT,MAAO,EAAE,IAAK,EACd,IAAK,EAAE,GAAI,EACX,SAAU,EAAE,GAAI,EAChB,KAAM,EAAE,MAAO,EACf,SAAU,EAAE,KAAM,EAClB,WAAY,EAAE,GAAI,EAClB,OAAQ,EAAE,OAAQ,EAClB,kBAAO,EACH,MAAO,EAAE,IAAK,EACd,IAAK,EAAE,GAAI,EACX,KAAM,EAAE,GAAI,EACZ,OAAQ,EAAE,OAAQ,EAClB,EAAG,EAAE,AAAC,EACN,GAAI,EAAE,AAAC,EAIf,eAAiB,EACb,MAAO,EAAE,GAAI", +"sources": ["../sass/_base.scss","../sass/style/_common.scss","../sass/style/_home.scss","../sass/style/_activity.scss","../sass/style/_news.scss","../sass/style/_brand.scss","../sass/style/_video.scss","../sass/style/_site-activity.scss","../sass/style/_show.scss","../sass/style/_detail.scss","../sass/style/_other.scss","../sass/style/_shanghai.scss","../sass/style/_submit.scss","../../../../../../../Library/Ruby/Gems/2.0.0/gems/compass-core-1.0.3/stylesheets/compass/_support.scss","../../../../../../../Library/Ruby/Gems/2.0.0/gems/compass-core-1.0.3/stylesheets/compass/css3/_box-sizing.scss","../../../../../../../Library/Ruby/Gems/2.0.0/gems/compass-core-1.0.3/stylesheets/compass/css3/_border-radius.scss","../../../../../../../Library/Ruby/Gems/2.0.0/gems/compass-core-1.0.3/stylesheets/compass/typography/text/_ellipsis.scss","../../../../../../../Library/Ruby/Gems/2.0.0/gems/compass-core-1.0.3/stylesheets/compass/css3/_deprecated-support.scss"], "names": [], "file": "index.css" } \ No newline at end of file diff --git a/res/css/mobile.css b/res/css/mobile.css index 935c1fc..48cb540 100644 --- a/res/css/mobile.css +++ b/res/css/mobile.css @@ -1,2 +1,2 @@ -html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,code,del,dfn,em,img,q,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,i{margin:0;padding:0;border:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline}body{line-height:1.5}table{border-collapse:collapse;border-spacing:0}caption,th,td,b,strong{text-align:left;font-weight:normal}table,td,th{vertical-align:middle}blockquote:before,blockquote:after,q:before,q:after{content:""}blockquote,q{quotes:"" ""}a img{border:none}em,cite{font-style:normal}body{background:#fff;font:12px/1.5 "arial","helvetica","微软雅黑";color:#000;width:100%;padding:0;margin:0}html{width:100%;height:100%;padding:0;margin:0}h1,h2,h3,h4,h5,h6{font-weight:normal;color:#111}a{text-decoration:none;cursor:pointer}a:focus{outline:none}dl,dt,dd,ul,li{list-style:none}.clearfix:before,.clearfix:after{content:"";display:table}.clearfix:after{clear:both}.clearfix{zoom:1;*zoom:1}*{-webkit-tap-highlight-color:transparent;-moz-tap-highlight-color:transparent;tap-highlight-color:transparent}@font-face{font-family:'iconfont';src:url("../fonts/iconfont.eot");src:url("../fonts/iconfont.eot?#iefix") format("embedded-opentype"),url("../fonts/iconfont.woff") format("woff"),url("../fonts/iconfont.ttf") format("truetype"),url("../fonts/iconfont.svg#iconfont") format("svg")}.iconfont{font-family:"iconfont" !important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-webkit-text-stroke-width:0.2px;-moz-osx-font-smoothing:grayscale}html{font-size:20px}@media only screen and (min-width: 360px){html{font-size:22.5px !important}}@media only screen and (min-width: 375px){html{font-size:23.43px !important}}@media only screen and (min-width: 401px){html{font-size:25px !important}}@media only screen and (min-width: 428px){html{font-size:26.75px !important}}@media only screen and (min-width: 414px){html{font-size:25.875px !important}}@media only screen and (min-width: 480px){html{font-size:30px !important}}@media only screen and (min-width: 569px){html{font-size:35px !important}}@media only screen and (min-width: 640px){html{font-size:40px !important}}.header-download-wrap{height:2.2rem}.header-download-wrap.show{border-top:1px solid transparent;border-bottom:1px solid transparent}.header-download{position:relative;height:2.2rem;border-top:1px solid #bcbcbe;border-bottom:1px solid #000;background:#fff}.header-download.fix{position:fixed;top:0;left:0;right:0;z-index:20}.header-download .tip-pic{position:absolute;top:50%;left:1rem;width:1.8rem;height:1.8rem;margin:-0.9rem 0 0 0;background:url('../images/yohood/mobile/app-icon.png?1442215979');background-size:100% 100%}.header-download .tip-info{position:relative;margin:0 0 0 3.1rem}.header-download .tip-info h2{font-size:0.6rem;line-height:0.7rem;margin-top:0.4rem}.header-download .tip-info p{color:#959192;font-size:0.5rem;line-height:0.7rem}.header-download .tip-info .yohoboy-download-app{position:absolute;width:2.65rem;height:1.05rem;top:0.1rem;right:1.5rem;border:1px solid #000;line-height:1.05rem;border-radius:2px;text-align:center;font-size:0.5rem;color:#000}.header-download .tip-close{position:absolute;width:1rem;height:1rem;top:0;right:0;background:url('../images/yohood/mobile/tip-c.png?1442215979');background-size:100% 100%}.logo{position:relative;height:2.15rem;line-height:2.15rem;text-align:center;font-size:1.2rem;border-bottom:1px solid #000}.logo .back-btn{position:absolute;left:0.5rem;font-size:1.1rem;color:#000}.bd{padding-bottom:1rem}.slide-main{position:relative}.slide-box{width:100%;position:relative;overflow:hidden;height:7.75rem}.slide-box .slide-wrap{width:100%;overflow:hidden;position:relative}.slide-box .slide-wrap .box{float:left;width:100%;position:relative}.slide-box .slide-wrap .box img{display:block;width:100%;height:7.75rem}.slide-navigator{position:absolute;left:0;right:0;bottom:5px;text-align:center}.slide-navigator .dib{display:inline-block}.slide-navigator .dib a{float:left;width:0.3rem;height:0.3rem;margin-left:0.15rem;background:#d0cfcb;border-radius:50%}.slide-navigator .dib a:first-child{margin-left:0}.slide-navigator .dib .swiper-active-switch,.slide-navigator .dib .on{background:#989795}.layout-item{margin:0 0 2.25rem 0}.layout-item .image-box{position:relative;overflow:hidden}.layout-item .image-box img{display:block;margin:0 auto;width:100%}.layout-item .image-box .item-tag{position:absolute;bottom:0;left:0;height:1.25rem;padding:0 0.5rem;line-height:1.25rem;background:#000;color:#fff;font-size:0.7rem}.layout-item .image-box .play-icon{position:absolute;top:50%;left:50%;width:2.3rem;height:2rem;margin:-1rem 0 0 -1.15rem;background:url('../images/yohood/mobile/play.png?1442215979');background-size:100% 100%}.layout-item .content{margin:0.5rem 0 0 0;padding:0 0.8rem}.layout-item .content h2 a{line-height:1.25rem;color:#000;font-size:1rem}.layout-item .content p{margin:0.5rem 0 0 0;font-size:0.7rem;line-height:1rem}.layout-item .content .time{margin:0;color:#aaa;font-size:0.6rem;background:#fff}.pagination-inner{padding:0 0.75rem}.pagination-inner a{float:left;font-size:0.9rem;color:#000}.pagination-inner a span{font-size:0.7rem;vertical-align:8%}.pagination-inner a.next{float:right}.cooperation-list{width:15rem;margin:0.6rem auto 0}.cooperation-list li{float:left;margin:0 0.25rem 0.45rem}.cooperation-list li .img-box{width:6.9rem;height:4.65rem;line-height:4.65rem;overflow:hidden;border:1px solid #e0e0e0;text-align:center}.cooperation-list li .img-box.current{border:1px solid #000}.cooperation-list li .img-box img{vertical-align:middle;max-width:100%;max-height:100%;width:auto;background:#fff}.cooperation-list li p{margin:0.3rem 0;font-size:0.6rem;line-height:0.7rem;text-align:center;color:#000}.cooperation-list li:hover .img-box{border:1px solid #000}.img-zoom{display:none;position:fixed;max-width:100%;z-index:99;top:50%;left:50%}.img-zoom img{display:block;-width:100%}.img-zoom.show{display:block}.home-logo{border:none}.banner-swiper{height:7.8rem;overflow:hidden}.banner-swiper img{width:100%}.channel-list{text-align:center}.channel-list li{display:inline-block;margin:1.1rem 0.75rem 0;text-align:center}.channel-list .channel-pic{width:3.3rem;height:3.3rem;line-height:3.3rem;border-radius:50%;border:1px solid #000;text-align:center;color:#000;font-size:1.2rem}.channel-list .video{font-size:0.8rem}.channel-list .recmmend{background:url('../images/yohood/mobile/recmmend.png?1442215979') no-repeat center center;background-size:36% auto}.channel-list .show{background:url('../images/yohood/mobile/show.png?1442215979') no-repeat center center;background-size:42% auto}.channel-list .ticket{background:url('../images/yohood/mobile/ticket.png?1442215979') no-repeat center center;background-size:36% auto}.channel-list .contact{font-size:0.6rem;line-height:3.5rem}.channel-list .channel-name{margin-top:0.45rem;line-height:0.75rem;font-size:0.6rem;font-weight:bold;color:#000}.channel-list .channel-name-cn{line-height:0.75rem;font-size:0.6rem;color:#000}.channel-list li.current .channel-pic,.channel-list li:hover .channel-pic{color:#fff;background:#000}.channel-list li.current .channel-pic.recmmend,.channel-list li:hover .channel-pic.recmmend{background:#000 url('../images/yohood/mobile/recmmend-current.png?1442215979') no-repeat center center;background-size:36% auto}.channel-list li.current .channel-pic.show,.channel-list li:hover .channel-pic.show{background:#000 url('../images/yohood/mobile/show-current.png?1442215979') no-repeat center center;background-size:36% auto}.channel-list li.current .channel-pic.ticket,.channel-list li:hover .channel-pic.ticket{background:#000 url('../images/yohood/mobile/ticket-current.png?1442215979') no-repeat center center;background-size:36% auto}.content-tab{margin:0.6rem 0 0 0;text-align:center}.content-tab ul{display:inline-block;border-left:1px solid #000}.content-tab ul li{float:left;border:1px solid #000;border-left:none}.content-tab ul li a{display:block;width:4.8rem;height:1.7rem;line-height:1.7rem;text-align:center;font-size:0.7rem;color:#000}.content-tab ul li.current{background:#000}.content-tab ul li.current a{color:#fff}.activity-main{margin:0.6rem 0 0 0}.activity-content{display:none}.activity-content .content-wrap{margin:0 0.75rem;font-size:0.7rem;line-height:1.2rem}.activity-content .content-wrap img{margin-left:-0.75rem;width:16rem}.activity-content img{width:100%}.activity-content .section{margin:1.2em 0 0 0}.activity-content .section p,.activity-content .section h4{padding:0 0.8rem;line-height:1rem;font-size:0.7rem}.activity-content.current{display:block}.activity-cooperation h2{margin-left:0.6rem;font-size:0.8rem;color:#000;line-height:1.1rem;font-weight:bold}.search-wrap{position:relative;z-index:2;height:2.2rem;padding:0 0.4rem;background:#f0f0f0;text-align:center}.search-wrap input{width:15.2rem;height:1.4rem;margin:0.4rem 0 0 0;padding:0;border:none;outline:none;font-size:0.7rem;border-radius:2px}.search-wrap input:focus,.search-wrap input.hasVal{width:13.6rem;padding-left:1.6rem}.search-wrap .search-btn{position:absolute;color:#8e8e93;font-size:0.7rem;top:0.6rem;left:50%;margin-left:-1.05rem}.search-wrap .search-btn span{margin-right:0.1rem;font-size:0.7rem;vertical-align:2%}.search-wrap input:focus ~ .search-btn,.search-wrap input.hasVal ~ .search-btn{left:0.9rem;margin-left:0}.search-wrap input:focus ~ .search-btn em,.search-wrap input.hasVal ~ .search-btn em{display:none}.brand-slide .slide-box{height:8.8rem}.brand-slide .slide-box .box img{height:8.8rem}.no-search{display:none;text-align:center;font-size:0.6rem;margin:1rem 0 0 0}.no-search a{font-size:0.6rem;line-height:0.8rem;color:#000}.overlay{display:none;position:fixed;left:0;right:0;top:0;bottom:0;background:rgba(0,0,0,0.5);z-index:1}.overlay.show{display:block}.main-title{font-size:0.8rem;line-height:2.3rem;text-align:center;color:#000}.video-wrap .layout-item .image-box{height:10.3rem}.video-wrap .layout-item img{width:100%;height:100%}.scene-bd{padding:0}.scene-tab{margin:0.5rem 0 0 0.7rem}.scene-tab li{float:left;width:4.8rem;height:1.7rem;line-height:1.7rem;text-align:center;background:#fff;border:1px solid #000;border-left:none}.scene-tab li a{font-size:0.6rem;color:#000}.scene-tab li:first-child{border-left:1px solid #000}.scene-tab li.current{background:#000}.scene-tab li.current a{color:#fff}.scene-tab li.disable.current{background:#ccc;color:#fff;border-color:#ccc;cursor:default}.scene-tab li.disable.current a{color:#fff}.scene-tab li:first-child.disable{border-left:1px solid #ccc}.scene-tab li.disable+li{border-left:1px solid #000}.scene-tab li.disable{background:#fff;border:1px solid #ccc;cursor:default}.scene-tab li.disable a{color:#ccc}.scene-content{position:relative;margin:0 0 0 0.7rem;border-left:2px solid #e0e0e0}.scene-content .scene-intro{position:relative;display:inline-block;padding:0 0.8rem;line-height:1.4rem;max-width:12rem;background:#000;color:#fff;font-size:0.6rem}.scene-content .scene-intro:before{position:absolute;content:"";width:0.3rem;height:0.85rem;top:0;left:-0.3rem;background:url("../images/yohood/site-activity-intro-icon.png") no-repeat;background-size:100% 100%}.scene-content .scene-time{margin:0.5rem 0 1rem;color:#aeaeae}.scene-content .scene-icon{position:absolute;top:1.45rem;left:-0.2rem;width:0.3rem;height:0.3rem;background:url("../images/yohood/site-activity-icon.png") no-repeat;background-size:100% 100%}.scene-content .main-layout{display:none}.scene-content .main-layout.current{display:block}.scene-content .layout-section{position:relative;padding:0.8rem 0 0 0.8rem}.scene-content .layout-item{width:13.6rem}.scene-content .image-box img{width:100%}.show-title{color:#0099bb}.show-wrap .layout-item .image-box{height:16rem}.show-wrap .layout-item .image-box img{width:100%;height:100%}.show-wrap .layout-item .image-box .pic-tip{display:none;position:absolute;background:rgba(255,255,255,0.9);color:#009abe;text-decoration:none;height:0.6rem;line-height:0.6rem;padding:0 0.25rem;border-radius:11px;font-family:'Helvetica';font-weight:bold;box-shadow:1px 2px 2px rgba(0,0,0,0.5)}.show-wrap .layout-item .image-box .pic-tip:after{position:absolute;content:"";background-image:url("../images/yohood/vedio-btn.png");background-repeat:no-repeat;background-position:0 -55px;background-size:30px 310px;width:7px;height:5px;top:0.4rem;left:-0.1rem;z-index:10}.show-wrap .layout-item .image-box:hover .pic-tip{display:block}.contact-us-section{text-align:center}.contact-us-section h2{font-size:0.8rem}.contact-us-section p{font-size:0.7rem;line-height:1rem}.contact-us-section:first-child{margin:0.5rem 0 0 0}.detail-title{margin:0.75rem 0;padding:0 0 0 0.7rem}.detail-title .title{line-height:1.2rem;font-size:1rem;font-weight:bold}.detail-title .subtitle{margin:0.25rem 0 0 0;font-size:0.6rem;line-height:0.75rem;color:#a5a5a5}.detail-slide .slide-box{height:10.3rem}.detail-slide .slide-box .slide-wrap .box img{height:10.3rem}.brand-title{margin:0.4rem 0}.brand-title .title{font-size:0.8rem;text-align:center}.detail-article{margin:0.75rem 0.75rem 0;font-size:0.7rem;line-height:1.2rem}.detail-article img{margin-left:-0.75rem;width:16rem}.detail-article p{margin:0.5rem 0;font-size:0.7rem;line-height:1.2rem}.detail-article a{color:#000;text-decoration:underline}.related-post{margin:1.4rem 0.85rem 0 0.85rem}.related-post h2{font-weight:bold;font-size:0.8rem;line-height:0.9rem}.related-post ul{margin:0.2rem 0 0 0}.related-post ul li{margin:0.8rem 0 0 0;padding:0.8rem 0 0 0;border-top:1px solid #e5e5e5}.related-post ul li a{display:block}.related-post ul li .image-box{float:left;width:4.8rem;height:3.05rem;vertical-align:middle;text-align:center}.related-post ul li .image-box img{max-width:100%;max-height:100%;vertical-align:middle}.related-post ul li .content{float:left;width:9.1rem;margin:0.4rem 0 0 0.4rem;font-size:0.7rem;line-height:1.1rem;color:#000}.related-post ul li:first-child{border-top:none}.share{position:fixed;bottom:0;left:0;right:0;background-image:linear-gradient(rgba(255,255,255,0), #fff);text-align:center}.share ul{display:inline-block}.share li{float:left;margin-left:2.05rem}.share li a{display:block;width:46px;height:48px;background-image:url('../images/yohood/mobile/share.png?1442215979');background-size:100% auto}.share li:first-child{margin-left:0}.share .yohoo-share-button-sina a{background-position:0 -151px}.share .yohoo-share-button-qq a{background-position:0 -50px}.enter-store{display:block;width:4.7rem;height:1.65rem;margin:0.75rem auto 0;padding-left:34px;line-height:1.75rem;border:1px solid #000;border-radius:4px;background:#fff;color:#000;background:url("../images/yohood/enter-store.png") no-repeat 10px center;text-decoration:none !important}.news-select{position:relative;margin:0.75rem 0;text-align:center}.news-select select{padding-right:10px;font-size:0.8rem;border:none;outline:none;font-family:"arial","helvetica","微软雅黑";text-align:center;background:transparent;color:#000}.news-main{display:none}.news-main.current{display:block}.sh-hd{height:7.4rem;background:url('../images/yohood/mobile/sh/img01.jpg?1442477875');background-size:100% 100%}.sh-bd div{height:4.45rem}.sh-bd .section1{background:url('../images/yohood/mobile/sh/img02.jpg?1442477875');background-size:100% 100%}.sh-bd .section2{background:url('../images/yohood/mobile/sh/img03.jpg?1442477875');background-size:100% 100%}.sh-bd .section3{background:url('../images/yohood/mobile/sh/img04.jpg?1442477875');background-size:100% 100%}.sh-bd .section4{background:url('../images/yohood/mobile/sh/img05.jpg?1442477875');background-size:100% 100%}.sh-bd .section5{background:url('../images/yohood/mobile/sh/img06.jpg?1442477875');background-size:100% 100%}.sh-bd .section6{background:url('../images/yohood/mobile/sh/img07.jpg?1442477875');background-size:100% 100%}.sh-bd .section7{background:url('../images/yohood/mobile/sh/img08.jpg?1442477875');background-size:100% 100%}.sh-bd .section8{background:url('../images/yohood/mobile/sh/img09.jpg?1442477875');background-size:100% 100%}.sh-bd .section9{background:url('../images/yohood/mobile/sh/img10.jpg?1442477875');background-size:100% 100%}.sh-bd .section10{background:url('../images/yohood/mobile/sh/img11.jpg?1442477875');background-size:100% 100%}.sh-bd .section11{background:url('../images/yohood/mobile/sh/img12.jpg?1442477875');background-size:100% 100%}.sh-bd .section12{background:url('../images/yohood/mobile/sh/img13.jpg?1442477875');background-size:100% 100%} -/*# sourceMappingURL=mobile.css.map */ +html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,code,del,dfn,em,img,q,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,i{margin:0;padding:0;border:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline}body{line-height:1.5}table{border-collapse:collapse;border-spacing:0}caption,th,td,b,strong{text-align:left;font-weight:normal}table,td,th{vertical-align:middle}blockquote:before,blockquote:after,q:before,q:after{content:""}blockquote,q{quotes:"" ""}a img{border:none}em,cite{font-style:normal}body{background:#fff;font:12px/1.5 "Noto Sans CJK SC", "Source Han Sans CN","Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;color:#000;width:100%;padding:0;margin:0}html{width:100%;height:100%;padding:0;margin:0}h1,h2,h3,h4,h5,h6{font-weight:normal;color:#111}a{text-decoration:none;cursor:pointer}a:focus{outline:none}dl,dt,dd,ul,li{list-style:none}.clearfix:before,.clearfix:after{content:"";display:table}.clearfix:after{clear:both}.clearfix{zoom:1;*zoom:1}*{-webkit-tap-highlight-color:transparent;-moz-tap-highlight-color:transparent;tap-highlight-color:transparent}@font-face{font-family:'iconfont';src:url("../fonts/iconfont.eot");src:url("../fonts/iconfont.eot?#iefix") format("embedded-opentype"),url("../fonts/iconfont.woff") format("woff"),url("../fonts/iconfont.ttf") format("truetype"),url("../fonts/iconfont.svg#iconfont") format("svg")}.iconfont{font-family:"iconfont" !important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-webkit-text-stroke-width:0.2px;-moz-osx-font-smoothing:grayscale}html{font-size:20px}@media only screen and (min-width: 360px){html{font-size:22.5px !important}}@media only screen and (min-width: 375px){html{font-size:23.43px !important}}@media only screen and (min-width: 401px){html{font-size:25px !important}}@media only screen and (min-width: 428px){html{font-size:26.75px !important}}@media only screen and (min-width: 414px){html{font-size:25.875px !important}}@media only screen and (min-width: 480px){html{font-size:30px !important}}@media only screen and (min-width: 569px){html{font-size:35px !important}}@media only screen and (min-width: 640px){html{font-size:40px !important}}.header-download-wrap{height:2.2rem}.header-download-wrap.show{border-top:1px solid transparent;border-bottom:1px solid transparent}.header-download{position:relative;height:2.2rem;border-top:1px solid #bcbcbe;border-bottom:1px solid #000;background:#fff}.header-download.fix{position:fixed;top:0;left:0;right:0;z-index:20}.header-download .tip-pic{position:absolute;top:50%;left:1rem;width:1.8rem;height:1.8rem;margin:-.9rem 0 0 0;background:url('../images/yohood/mobile/app-icon.png?1459836099');background-size:100% 100%}.header-download .tip-info{position:relative;margin:0 0 0 3.1rem}.header-download .tip-info h2{font-size:.6rem;line-height:.7rem;margin-top:.4rem}.header-download .tip-info p{color:#959192;font-size:.5rem;line-height:.7rem}.header-download .tip-info .yohoboy-download-app{position:absolute;width:2.65rem;height:1.05rem;top:.1rem;right:1.5rem;border:1px solid #000;line-height:1.05rem;border-radius:2px;text-align:center;font-size:.5rem;color:#000}.header-download .tip-close{position:absolute;width:1rem;height:1rem;top:0;right:0;background:url('../images/yohood/mobile/tip-c.png?1459836099');background-size:100% 100%}.logo{position:relative;height:2.15rem;line-height:2.15rem;text-align:center;font-size:1.2rem;border-bottom:1px solid #000}.logo .back-btn{position:absolute;left:.5rem;font-size:1.1rem;color:#000}.bd{padding-bottom:1rem}.slide-main{position:relative}.slide-box{width:100%;position:relative;overflow:hidden;height:7.75rem}.slide-box .slide-wrap{width:100%;overflow:hidden;position:relative}.slide-box .slide-wrap .box{float:left;width:100%;position:relative}.slide-box .slide-wrap .box img{display:block;width:100%;height:7.75rem}.slide-navigator{position:absolute;left:0;right:0;bottom:5px;text-align:center}.slide-navigator .dib{display:inline-block}.slide-navigator .dib a{float:left;width:.3rem;height:.3rem;margin-left:.15rem;background:#d0cfcb;border-radius:50%}.slide-navigator .dib a:first-child{margin-left:0}.slide-navigator .dib .swiper-active-switch,.slide-navigator .dib .on{background:#989795}.layout-item{margin:0 0 2.25rem 0}.layout-item .image-box{position:relative;overflow:hidden}.layout-item .image-box img{display:block;margin:0 auto;width:100%}.layout-item .image-box .item-tag{position:absolute;bottom:0;left:0;height:1.25rem;padding:0 .5rem;line-height:1.25rem;background:#000;color:#fff;font-size:.7rem}.layout-item .image-box .play-icon{position:absolute;top:50%;left:50%;width:2.3rem;height:2rem;margin:-1rem 0 0 -1.15rem;background:url('../images/yohood/mobile/play.png?1459836099');background-size:100% 100%}.layout-item .content{margin:.5rem 0 0 0;padding:0 .8rem}.layout-item .content h2 a{line-height:1.25rem;color:#000;font-size:1rem}.layout-item .content p{margin:.5rem 0 0 0;font-size:.7rem;line-height:1rem}.layout-item .content .time{margin:0;color:#aaa;font-size:.6rem;background:#fff}.pagination-inner{padding:0 .75rem}.pagination-inner a{float:left;font-size:.9rem;color:#000}.pagination-inner a span{font-size:.7rem;vertical-align:8%}.pagination-inner a.next{float:right}.cooperation-list{width:15rem;margin:.6rem auto 0}.cooperation-list li{float:left;margin:0 .25rem .45rem}.cooperation-list li .img-box{width:6.9rem;height:4.65rem;line-height:4.65rem;overflow:hidden;border:1px solid #e0e0e0;text-align:center}.cooperation-list li .img-box.current{border:1px solid #000}.cooperation-list li .img-box img{vertical-align:middle;max-width:100%;max-height:100%;width:auto;background:#fff}.cooperation-list li p{margin:.3rem 0;font-size:.6rem;line-height:.7rem;text-align:center;color:#000}.cooperation-list li:hover .img-box{border:1px solid #000}.img-zoom{display:none;position:fixed;max-width:100%;z-index:99;top:50%;left:50%}.img-zoom img{display:block;-width:100%}.img-zoom.show{display:block}.home-logo{border:none}.banner-swiper{height:7.8rem;overflow:hidden}.banner-swiper img{width:100%}.channel-list{text-align:center}.channel-list li{display:inline-block;margin:1.1rem .75rem 0;text-align:center}.channel-list .channel-pic{width:3.3rem;height:3.3rem;line-height:3.3rem;border-radius:50%;border:1px solid #000;text-align:center;color:#000;font-size:1.2rem}.channel-list .video{font-size:.8rem}.channel-list .recmmend{background:url('../images/yohood/mobile/recmmend.png?1459836099') no-repeat center center;background-size:36% auto}.channel-list .show{background:url('../images/yohood/mobile/show.png?1459836099') no-repeat center center;background-size:42% auto}.channel-list .ticket{background:url('../images/yohood/mobile/ticket.png?1459836099') no-repeat center center;background-size:36% auto}.channel-list .contact{font-size:.6rem;line-height:3.5rem}.channel-list .channel-name{margin-top:.45rem;line-height:.75rem;font-size:.6rem;font-weight:bold;color:#000}.channel-list .channel-name-cn{line-height:.75rem;font-size:.6rem;color:#000}.channel-list li.current .channel-pic,.channel-list li:hover .channel-pic{color:#fff;background:#000}.channel-list li.current .channel-pic.recmmend,.channel-list li:hover .channel-pic.recmmend{background:#000 url('../images/yohood/mobile/recmmend-current.png?1459836099') no-repeat center center;background-size:36% auto}.channel-list li.current .channel-pic.show,.channel-list li:hover .channel-pic.show{background:#000 url('../images/yohood/mobile/show-current.png?1459836099') no-repeat center center;background-size:36% auto}.channel-list li.current .channel-pic.ticket,.channel-list li:hover .channel-pic.ticket{background:#000 url('../images/yohood/mobile/ticket-current.png?1459836099') no-repeat center center;background-size:36% auto}.content-tab{margin:.6rem 0 0 0;text-align:center}.content-tab ul{display:inline-block;border-left:1px solid #000}.content-tab ul li{float:left;border:1px solid #000;border-left:none}.content-tab ul li a{display:block;width:4.8rem;height:1.7rem;line-height:1.7rem;text-align:center;font-size:.7rem;color:#000}.content-tab ul li.current{background:#000}.content-tab ul li.current a{color:#fff}.activity-main{margin:.6rem 0 0 0}.activity-content{display:none}.activity-content .content-wrap{margin:0 .75rem;font-size:.7rem;line-height:1.2rem}.activity-content .content-wrap img{margin-left:-.75rem;width:16rem}.activity-content img{width:100%}.activity-content .section{margin:1.2em 0 0 0}.activity-content .section p,.activity-content .section h4{padding:0 .8rem;line-height:1rem;font-size:.7rem}.activity-content.current{display:block}.activity-cooperation h2{margin-left:.6rem;font-size:.8rem;color:#000;line-height:1.1rem;font-weight:bold}.search-wrap{position:relative;z-index:2;height:2.2rem;padding:0 .4rem;background:#f0f0f0;text-align:center}.search-wrap input{width:15.2rem;height:1.4rem;margin:.4rem 0 0 0;padding:0;border:none;outline:none;font-size:.7rem;border-radius:2px}.search-wrap input:focus,.search-wrap input.hasVal{width:13.6rem;padding-left:1.6rem}.search-wrap .search-btn{position:absolute;color:#8e8e93;font-size:.7rem;top:.6rem;left:50%;margin-left:-1.05rem}.search-wrap .search-btn span{margin-right:.1rem;font-size:.7rem;vertical-align:2%}.search-wrap input:focus ~ .search-btn,.search-wrap input.hasVal ~ .search-btn{left:.9rem;margin-left:0}.search-wrap input:focus ~ .search-btn em,.search-wrap input.hasVal ~ .search-btn em{display:none}.brand-slide .slide-box{height:8.8rem}.brand-slide .slide-box .box img{height:8.8rem}.no-search{display:none;text-align:center;font-size:.6rem;margin:1rem 0 0 0}.no-search a{font-size:.6rem;line-height:.8rem;color:#000}.overlay{display:none;position:fixed;left:0;right:0;top:0;bottom:0;background:rgba(0,0,0,0.5);z-index:1}.overlay.show{display:block}.main-title{font-size:.8rem;line-height:2.3rem;text-align:center;color:#000}.video-wrap .layout-item .image-box{height:10.3rem}.video-wrap .layout-item img{width:100%;height:100%}.scene-bd{padding:0}.scene-tab{margin:.5rem 0 0 .7rem}.scene-tab li{float:left;width:4.8rem;height:1.7rem;line-height:1.7rem;text-align:center;background:#fff;border:1px solid #000;border-left:none}.scene-tab li a{font-size:.6rem;color:#000}.scene-tab li:first-child{border-left:1px solid #000}.scene-tab li.current{background:#000}.scene-tab li.current a{color:#fff}.scene-tab li.disable.current{background:#ccc;color:#fff;border-color:#ccc;cursor:default}.scene-tab li.disable.current a{color:#fff}.scene-tab li:first-child.disable{border-left:1px solid #ccc}.scene-tab li.disable+li{border-left:1px solid #000}.scene-tab li.disable{background:#fff;border:1px solid #ccc;cursor:default}.scene-tab li.disable a{color:#ccc}.scene-content{position:relative;margin:0 0 0 .7rem;border-left:2px solid #e0e0e0}.scene-content .scene-intro{position:relative;display:inline-block;padding:0 .8rem;line-height:1.4rem;max-width:12rem;background:#000;color:#fff;font-size:.6rem}.scene-content .scene-intro:before{position:absolute;content:"";width:.3rem;height:.85rem;top:0;left:-.3rem;background:url("../images/yohood/site-activity-intro-icon.png") no-repeat;background-size:100% 100%}.scene-content .scene-time{margin:.5rem 0 1rem;color:#aeaeae}.scene-content .scene-icon{position:absolute;top:1.45rem;left:-.2rem;width:.3rem;height:.3rem;background:url("../images/yohood/site-activity-icon.png") no-repeat;background-size:100% 100%}.scene-content .main-layout{display:none}.scene-content .main-layout.current{display:block}.scene-content .layout-section{position:relative;padding:.8rem 0 0 .8rem}.scene-content .layout-item{width:13.6rem}.scene-content .image-box img{width:100%}.show-title{color:#0099bb}.show-wrap .layout-item .image-box{height:16rem}.show-wrap .layout-item .image-box img{width:100%;height:100%}.show-wrap .layout-item .image-box .pic-tip{display:none;position:absolute;background:rgba(255,255,255,0.9);color:#009abe;text-decoration:none;height:.6rem;line-height:.6rem;padding:0 .25rem;border-radius:11px;font-family:'Helvetica';font-weight:bold;box-shadow:1px 2px 2px rgba(0,0,0,0.5)}.show-wrap .layout-item .image-box .pic-tip:after{position:absolute;content:"";background-image:url("../images/yohood/vedio-btn.png");background-repeat:no-repeat;background-position:0 -55px;background-size:30px 310px;width:7px;height:5px;top:.4rem;left:-.1rem;z-index:10}.show-wrap .layout-item .image-box:hover .pic-tip{display:block}.contact-us-section{text-align:center}.contact-us-section h2{font-size:.8rem}.contact-us-section p{font-size:.7rem;line-height:1rem}.contact-us-section:first-child{margin:.5rem 0 0 0}.detail-title{margin:.75rem 0;padding:0 0 0 .7rem}.detail-title .title{line-height:1.2rem;font-size:1rem;font-weight:bold}.detail-title .subtitle{margin:.25rem 0 0 0;font-size:.6rem;line-height:.75rem;color:#a5a5a5}.detail-slide .slide-box{height:10.3rem}.detail-slide .slide-box .slide-wrap .box img{height:10.3rem}.brand-title{margin:.4rem 0}.brand-title .title{font-size:.8rem;text-align:center}.detail-article{margin:.75rem .75rem 0;font-size:.7rem;line-height:1.2rem}.detail-article img{margin-left:-.75rem;width:16rem}.detail-article p{margin:.5rem 0;font-size:.7rem;line-height:1.2rem}.detail-article a{color:#000;text-decoration:underline}.related-post{margin:1.4rem .85rem 0 .85rem}.related-post h2{font-weight:bold;font-size:.8rem;line-height:.9rem}.related-post ul{margin:.2rem 0 0 0}.related-post ul li{margin:.8rem 0 0 0;padding:.8rem 0 0 0;border-top:1px solid #e5e5e5}.related-post ul li a{display:block}.related-post ul li .image-box{float:left;width:4.8rem;height:3.05rem;vertical-align:middle;text-align:center}.related-post ul li .image-box img{max-width:100%;max-height:100%;vertical-align:middle}.related-post ul li .content{float:left;width:9.1rem;margin:.4rem 0 0 .4rem;font-size:.7rem;line-height:1.1rem;color:#000}.related-post ul li:first-child{border-top:none}.share{position:fixed;bottom:0;left:0;right:0;background-image:linear-gradient(rgba(255,255,255,0), #fff);text-align:center}.share ul{display:inline-block}.share li{float:left;margin-left:2.05rem}.share li a{display:block;width:46px;height:48px;background-image:url('../images/yohood/mobile/share.png?1459836099');background-size:100% auto}.share li:first-child{margin-left:0}.share .yohoo-share-button-sina a{background-position:0 -151px}.share .yohoo-share-button-qq a{background-position:0 -50px}.enter-store{display:block;width:4.7rem;height:1.65rem;margin:.75rem auto 0;padding-left:34px;line-height:1.75rem;border:1px solid #000;border-radius:4px;background:#fff;color:#000;background:url("../images/yohood/enter-store.png") no-repeat 10px center;text-decoration:none !important}.news-select{position:relative;margin:.75rem 0;text-align:center}.news-select select{padding-right:10px;font-size:.8rem;border:none;outline:none;font-family:"arial","helvetica","微软雅黑";text-align:center;background:transparent;color:#000}.news-main{display:none}.news-main.current{display:block}.sh-hd{height:7.4rem;background:url('../images/yohood/mobile/sh/img01.jpg?1459836099');background-size:100% 100%}.sh-bd div{height:4.45rem}.sh-bd .section1{background:url('../images/yohood/mobile/sh/img02.jpg?1459836099');background-size:100% 100%}.sh-bd .section2{background:url('../images/yohood/mobile/sh/img03.jpg?1459836099');background-size:100% 100%}.sh-bd .section3{background:url('../images/yohood/mobile/sh/img04.jpg?1459836099');background-size:100% 100%}.sh-bd .section4{background:url('../images/yohood/mobile/sh/img05.jpg?1459836099');background-size:100% 100%}.sh-bd .section5{background:url('../images/yohood/mobile/sh/img06.jpg?1459836099');background-size:100% 100%}.sh-bd .section6{background:url('../images/yohood/mobile/sh/img07.jpg?1459836099');background-size:100% 100%}.sh-bd .section7{background:url('../images/yohood/mobile/sh/img08.jpg?1459836099');background-size:100% 100%}.sh-bd .section8{background:url('../images/yohood/mobile/sh/img09.jpg?1459836099');background-size:100% 100%}.sh-bd .section9{background:url('../images/yohood/mobile/sh/img10.jpg?1459836099');background-size:100% 100%}.sh-bd .section10{background:url('../images/yohood/mobile/sh/img11.jpg?1459836099');background-size:100% 100%}.sh-bd .section11{background:url('../images/yohood/mobile/sh/img12.jpg?1459836099');background-size:100% 100%}.sh-bd .section12{background:url('../images/yohood/mobile/sh/img13.jpg?1459836099');background-size:100% 100%} +/*# sourceMappingURL=mobile.css.map */ diff --git a/res/css/mobile.css.map b/res/css/mobile.css.map index bb96230..e14bb91 100644 --- a/res/css/mobile.css.map +++ b/res/css/mobile.css.map @@ -1,7 +1,7 @@ -{ -"version": 3, -"mappings": "CACA,uMAAoP,EAChP,KAAM,EAAE,AAAC,EACT,MAAO,EAAE,AAAC,EACV,KAAM,EAAE,AAAC,EACT,UAAW,EAAE,MAAO,EACpB,SAAU,EAAE,MAAO,EACnB,QAAS,EAAE,GAAI,EACf,UAAW,EAAE,MAAO,EACpB,aAAc,EAAE,OAAQ,EAG5B,GAAK,EACD,UAAW,EAAE,EAAG,EAGpB,IAAM,EACF,cAAe,EAAE,OAAQ,EACzB,aAAc,EAAE,AAAC,EAGrB,qBAA2B,EACvB,SAAU,EAAE,GAAI,EAChB,UAAW,EAAE,KAAM,EAGvB,UAAc,EACV,aAAc,EAAE,KAAM,EAG1B,kDAAuD,EACnD,MAAO,EAAE,CAAE,EAGf,WAAc,EACV,KAAM,EAAE,IAAK,EAGjB,IAAM,EACF,KAAM,EAAE,GAAI,EAGhB,MAAS,EACL,SAAU,EAAE,KAAM,EAGtB,GAAK,EACD,SAAU,E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,GAAI,EACZ,MAAO,EAAE,GAAI,EACb,UAAW,EAAE,yBAA0B,EACvC,SAAU,EAAE,KAAM,EAClB,SAAU,EAAE,UAAW,EACvB,IAAK,EAAE,GAAI,EAGnB,SAAU,EACN,MAAO,EAAE,GAAI,EAEjB,iBAAkB,EACd,MAAO,EAAE,IAAK,ECnBlB,KAAO,EACH,KAAM,EAAE,KAAgB,EACxB,SAAU,EAAE,qDAAyB,EACrC,cAAe,EAAE,QAAS,EAI1B,SAAI,EACA,KAAM,EAAE,MAAe,EAG3B,eAAU,EACN,SAAU,EAAE,qDAAyB,EACrC,cAAe,EAAE,QAAS,EAG9B,eAAU,EACN,SAAU,EAAE,qDAAyB,EACrC,cAAe,EAAE,QAAS,EAG9B,eAAU,EACN,SAAU,EAAE,qDAAyB,EACrC,cAAe,EAAE,QAAS,EAG9B,eAAU,EACN,SAAU,EAAE,qDAAyB,EACrC,cAAe,EAAE,QAAS,EAG9B,eAAU,EACN,SAAU,EAAE,qDAAyB,EACrC,cAAe,EAAE,QAAS,EAG9B,eAAU,EACN,SAAU,EAAE,qDAAyB,EACrC,cAAe,EAAE,QAAS,EAG9B,eAAU,EACN,SAAU,EAAE,qDAAyB,EACrC,cAAe,EAAE,QAAS,EAG9B,eAAU,EACN,SAAU,EAAE,qDAAyB,EACrC,cAAe,EAAE,QAAS,EAG9B,eAAU,EACN,SAAU,EAAE,qDAAyB,EACrC,cAAe,EAAE,QAAS,EAG9B,gBAAW,EACP,SAAU,EAAE,qDAAyB,EACrC,cAAe,EAAE,QAAS,EAG9B,gBAAW,EACP,SAAU,EAAE,qDAAyB,EACrC,cAAe,EAAE,QAAS,EAG9B,gBAAW,EACP,SAAU,EAAE,qDAAyB,EACrC,cAAe,EAAE,QAAS", -"sources": ["../sass/_base.scss","../sass/mobile/_common.scss","../sass/mobile/_home.scss","../sass/mobile/_activity.scss","../sass/mobile/_brand.scss","../sass/mobile/_video.scss","../sass/mobile/_scene.scss","../sass/mobile/_show.scss","../sass/mobile/_other.scss","../sass/mobile/_detail.scss","../sass/mobile/_news.scss","../sass/mobile/_shanghai.scss"], -"names": [], -"file": "mobile.css" +{ +"version": 3, +"mappings": "CACA,uMAAoP,EAChP,KAAM,EAAE,AAAC,EACT,MAAO,EAAE,AAAC,EACV,KAAM,EAAE,AAAC,EACT,UAAW,EAAE,MAAO,EACpB,SAAU,EAAE,MAAO,EACnB,QAAS,EAAE,GAAI,EACf,UAAW,EAAE,MAAO,EACpB,aAAc,EAAE,OAAQ,EAG5B,GAAK,EACD,UAAW,EAAE,EAAG,EAGpB,IAAM,EACF,cAAe,EAAE,OAAQ,EACzB,aAAc,EAAE,AAAC,EAGrB,qBAA2B,EACvB,SAAU,EAAE,GAAI,EAChB,UAAW,EAAE,KAAM,EAGvB,UAAc,EACV,aAAc,EAAE,KAAM,EAG1B,kDAAuD,EACnD,MAAO,EAAE,CAAE,EAGf,WAAc,EACV,KAAM,EAAE,IAAK,EAGjB,IAAM,EACF,KAAM,EAAE,GAAI,EAGhB,MAAS,EACL,SAAU,EAAE,KAAM,EAGtB,GAAK,EACD,SAAU,EAAE,GAAI,EAChB,GAAI,EAAE,yHAA0H,EAChI,IAAK,EAAE,GAAI,EACX,IAAK,EAAE,GAAI,EAEX,MAAO,EAAE,AAAC,EACV,KAAM,EAAE,AAAC,EAGb,GAAK,EACD,IAAK,EAAE,GAAI,EACX,KAAM,EAAE,GAAI,EACZ,MAAO,EAAE,AAAC,EACV,KAAM,EAAE,AAAC,EAGb,gBAAuB,EACnB,UAAW,EAAE,KAAM,EACnB,IAAK,EAAE,GAAI,EAGf,AAAE,EACE,cAAe,EAAE,GAAI,EACrB,KAAM,EAAE,MAAO,EAGnB,MAAO,EACH,MAAO,EAAE,GAAI,EAGjB,aAAmB,EACf,SAAU,EAAE,GAAI,EAOpB,+BACgB,EACZ,MAAO,EAAE,CAAE,EACX,MAAO,EAAE,IAAK,EAGlB,cAAgB,EACZ,IAAK,EAAE,GAAI,EAGf,QAAU,EACN,GAAI,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,cAAe,EAAE,QAAS,EAG9B,eAAU,EACN,SAAU,EAAE,qDAAyB,EACrC,cAAe,EAAE,QAAS,EAG9B,eAAU,EACN,SAAU,EAAE,qDAAyB,EACrC,cAAe,EAAE,QAAS,EAG9B,eAAU,EACN,SAAU,EAAE,qDAAyB,EACrC,cAAe,EAAE,QAAS,EAG9B,eAAU,EACN,SAAU,EAAE,qDAAyB,EACrC,cAAe,EAAE,QAAS,EAG9B,eAAU,EACN,SAAU,EAAE,qDAAyB,EACrC,cAAe,EAAE,QAAS,EAG9B,gBAAW,EACP,SAAU,EAAE,qDAAyB,EACrC,cAAe,EAAE,QAAS,EAG9B,gBAAW,EACP,SAAU,EAAE,qDAAyB,EACrC,cAAe,EAAE,QAAS,EAG9B,gBAAW,EACP,SAAU,EAAE,qDAAyB,EACrC,cAAe,EAAE,QAAS", +"sources": ["../sass/_base.scss","../sass/mobile/_common.scss","../sass/mobile/_home.scss","../sass/mobile/_activity.scss","../sass/mobile/_brand.scss","../sass/mobile/_video.scss","../sass/mobile/_scene.scss","../sass/mobile/_show.scss","../sass/mobile/_other.scss","../sass/mobile/_detail.scss","../sass/mobile/_news.scss","../sass/mobile/_shanghai.scss"], +"names": [], +"file": "mobile.css" } \ No newline at end of file diff --git a/res/fonts/new/iconfont.css b/res/fonts/new/iconfont.css new file mode 100644 index 0000000..fb01b89 --- /dev/null +++ b/res/fonts/new/iconfont.css @@ -0,0 +1,27 @@ + +@font-face {font-family: "iconfont"; + src: url('iconfont.eot?t=1461656874'); /* IE9*/ + src: url('iconfont.eot?t=1461656874#iefix') format('embedded-opentype'), /* IE6-IE8 */ + url('iconfont.woff?t=1461656874') format('woff'), /* chrome, firefox */ + url('iconfont.ttf?t=1461656874') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/ + url('iconfont.svg?t=1461656874#iconfont') format('svg'); /* iOS 4.1- */ +} + +.iconfont { + font-family:"iconfont" !important; + font-size:16px; + font-style:normal; + -webkit-font-smoothing: antialiased; + -webkit-text-stroke-width: 0.2px; + -moz-osx-font-smoothing: grayscale; +} +.icon-xiayibu:before { content: "\e6ba"; } +.icon-shouqi:before { content: "\e6b8"; } +.icon-xiala:before { content: "\e6b9"; } +.icon-fold:before { content: "\e60c"; } +.icon-back:before { content: "\e614"; } +.icon-unfold:before { content: "\e611"; } +.icon-iconfontup:before { content: "\e603"; } +.icon-iconfontdown:before { content: "\e604"; } +.icon-close:before { content: "\e616"; } +.icon-right:before { content: "\e622"; } diff --git a/res/fonts/new/iconfont.eot b/res/fonts/new/iconfont.eot new file mode 100644 index 0000000..c6aa7bc Binary files /dev/null and b/res/fonts/new/iconfont.eot differ diff --git a/res/fonts/new/iconfont.svg b/res/fonts/new/iconfont.svg new file mode 100644 index 0000000..eae7747 --- /dev/null +++ b/res/fonts/new/iconfont.svg @@ -0,0 +1,58 @@ +<?xml version="1.0" standalone="no"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" > +<svg xmlns="http://www.w3.org/2000/svg"> +<metadata> +Created by FontForge 20120731 at Tue Apr 26 15:47:53 2016 + By admin +</metadata> +<defs> +<font id="iconfont" horiz-adv-x="1024" > + <font-face + font-family="iconfont" + font-weight="500" + font-stretch="normal" + units-per-em="1024" + panose-1="2 0 6 3 0 0 0 0 0 0" + ascent="896" + descent="-128" + x-height="792" + bbox="34 -64 968 832" + underline-thickness="50" + underline-position="-100" + unicode-range="U+0078-E6BA" + /> +<missing-glyph horiz-adv-x="374" +d="M34 0v682h272v-682h-272zM68 34h204v614h-204v-614z" /> + <glyph glyph-name=".notdef" horiz-adv-x="374" +d="M34 0v682h272v-682h-272zM68 34h204v614h-204v-614z" /> + <glyph glyph-name=".null" horiz-adv-x="0" + /> + <glyph glyph-name="nonmarkingreturn" horiz-adv-x="341" + /> + <glyph glyph-name="x" unicode="x" horiz-adv-x="1001" +d="M281 543q-27 -1 -53 -1h-83q-18 0 -36.5 -6t-32.5 -18.5t-23 -32t-9 -45.5v-76h912v41q0 16 -0.5 30t-0.5 18q0 13 -5 29t-17 29.5t-31.5 22.5t-49.5 9h-133v-97h-438v97zM955 310v-52q0 -23 0.5 -52t0.5 -58t-10.5 -47.5t-26 -30t-33 -16t-31.5 -4.5q-14 -1 -29.5 -0.5 +t-29.5 0.5h-32l-45 128h-439l-44 -128h-29h-34q-20 0 -45 1q-25 0 -41 9.5t-25.5 23t-13.5 29.5t-4 30v167h911zM163 247q-12 0 -21 -8.5t-9 -21.5t9 -21.5t21 -8.5q13 0 22 8.5t9 21.5t-9 21.5t-22 8.5zM316 123q-8 -26 -14 -48q-5 -19 -10.5 -37t-7.5 -25t-3 -15t1 -14.5 +t9.5 -10.5t21.5 -4h37h67h81h80h64h36q23 0 34 12t2 38q-5 13 -9.5 30.5t-9.5 34.5q-5 19 -11 39h-368zM336 498v228q0 11 2.5 23t10 21.5t20.5 15.5t34 6h188q31 0 51.5 -14.5t20.5 -52.5v-227h-327z" /> + <glyph glyph-name="uniE603" unicode="" +d="M472 624l-399 -400q-17 -16 -17 -39.5t16.5 -40t40 -16.5t40.5 16l359 360l359 -360q17 -16 40.5 -16t40 16.5t16.5 40t-17 39.5l-399 400q-17 16 -40 16t-40 -16z" /> + <glyph glyph-name="uniE604" unicode="" +d="M472 144l-399 400q-17 16 -17 39.5t16.5 40t40 16.5t40.5 -16l359 -360l359 360q17 16 40.5 16t40 -16.5t16.5 -40t-17 -39.5l-399 -400q-17 -16 -40 -16t-40 16z" /> + <glyph glyph-name="uniE60C" unicode="" +d="M942 157.5q-9 -9.5 -21.5 -10t-21.5 7.5l-370 370q-11 12 -17 12t-18 -12l-370 -370q-8 -8 -21 -7.5t-22 10t-9.5 22t8.5 21.5l411 411q7 7 18 8h5q12 -1 19 -8l411 -411q8 -9 7.5 -21.5t-9.5 -22z" /> + <glyph glyph-name="uniE611" unicode="" +d="M942 577.5q-9 9.5 -21.5 10t-21.5 -7.5l-370 -370q-11 -12 -17 -12t-18 12l-370 370q-8 8 -21 7.5t-22 -10t-9.5 -22t8.5 -21.5l411 -411q7 -7 18 -8h5q12 1 19 8l411 411q8 9 7.5 21.5t-9.5 22z" /> + <glyph glyph-name="uniE614" unicode="" +d="M877 404zM758.5 -54.5q9.5 9.5 10 22.5t-7.5 22l-377 376q-12 12 -12 18t12 18l377 376q8 9 7.5 22t-10 22t-22.5 9.5t-22 -7.5l-418 -419q-7 -7 -8 -18v-6q1 -11 8 -18l418 -419q9 -8 22 -8t22.5 9.5z" /> + <glyph glyph-name="uniE616" unicode="" +d="M877 404zM575 386l372 369q13 13 13 32t-13 32t-31.5 13t-31.5 -13l-372 -370l-368 370q-13 13 -31.5 13t-32 -13t-13.5 -31.5t13 -32.5l369 -369l-372 -370q-13 -13 -13 -31.5t13 -31.5t31.5 -13t31.5 13l372 369l371 -373q14 -13 32.5 -13t31.5 13t13 31.5t-13 31.5z +M575 386z" /> + <glyph glyph-name="uniE622" unicode="" +d="M877 404zM298 -54.5q-9 9.5 -10 22.5t8 22l376 376q12 12 12 18t-12 18l-376 376q-9 9 -8 22t10 22t22.5 9.5t21.5 -7.5l419 -419q7 -7 7 -18v-6q0 -11 -7 -18l-419 -419q-8 -8 -21.5 -8t-22.5 9.5z" /> + <glyph glyph-name="uniE6B8" unicode="" +d="M773 221q-13 0 -22 9l-238 243l-239 -243q-9 -9 -21.5 -9t-21 8.5t-9 21t8.5 21.5l260 265q9 9 21.5 9t21.5 -9l260 -265q9 -9 9 -21.5t-9 -21t-21 -8.5z" /> + <glyph glyph-name="uniE6B9" unicode="" +d="M512.5 221q-12.5 0 -21.5 9l-260 265q-9 9 -8.5 21.5t9 21t21 8.5t21.5 -9l239 -243l238 243q9 9 21.5 9t21.5 -8.5t9 -21t-9 -21.5l-260 -265q-9 -9 -21.5 -9z" /> + <glyph glyph-name="uniE6BA" unicode="" +d="M380 93q-13 0 -21.5 9t-8.5 21.5t9 21.5l244 238l-244 239q-9 9 -9 21.5t8.5 21t21 9t21.5 -8.5l265 -260q9 -9 9 -21.5t-9 -21.5l-265 -260q-9 -9 -21 -9z" /> + </font> +</defs></svg> diff --git a/res/fonts/new/iconfont.ttf b/res/fonts/new/iconfont.ttf new file mode 100644 index 0000000..381d21e Binary files /dev/null and b/res/fonts/new/iconfont.ttf differ diff --git a/res/fonts/new/iconfont.woff b/res/fonts/new/iconfont.woff new file mode 100644 index 0000000..9a1b8c8 Binary files /dev/null and b/res/fonts/new/iconfont.woff differ diff --git a/res/images/yohood/banner.png b/res/images/yohood/banner.png new file mode 100755 index 0000000..f48e5d5 Binary files /dev/null and b/res/images/yohood/banner.png differ diff --git a/res/images/yohood/brand-logo.png b/res/images/yohood/brand-logo.png new file mode 100644 index 0000000..edb7ae5 Binary files /dev/null and b/res/images/yohood/brand-logo.png differ diff --git a/res/images/yohood/center-1-1.png b/res/images/yohood/center-1-1.png new file mode 100755 index 0000000..78255ad Binary files /dev/null and b/res/images/yohood/center-1-1.png differ diff --git a/res/images/yohood/center-1-2.png b/res/images/yohood/center-1-2.png new file mode 100755 index 0000000..8708813 Binary files /dev/null and b/res/images/yohood/center-1-2.png differ diff --git a/res/images/yohood/center-1-3.png b/res/images/yohood/center-1-3.png new file mode 100755 index 0000000..d071471 Binary files /dev/null and b/res/images/yohood/center-1-3.png differ diff --git a/res/images/yohood/center-2-1.png b/res/images/yohood/center-2-1.png new file mode 100755 index 0000000..216ce76 Binary files /dev/null and b/res/images/yohood/center-2-1.png differ diff --git a/res/images/yohood/center-2-2.png b/res/images/yohood/center-2-2.png new file mode 100755 index 0000000..c859698 Binary files /dev/null and b/res/images/yohood/center-2-2.png differ diff --git a/res/images/yohood/center-2-3.png b/res/images/yohood/center-2-3.png new file mode 100755 index 0000000..069f389 Binary files /dev/null and b/res/images/yohood/center-2-3.png differ diff --git a/res/images/yohood/center-3-1.png b/res/images/yohood/center-3-1.png new file mode 100755 index 0000000..943e3c7 Binary files /dev/null and b/res/images/yohood/center-3-1.png differ diff --git a/res/images/yohood/center-3-2.png b/res/images/yohood/center-3-2.png new file mode 100755 index 0000000..82381ef Binary files /dev/null and b/res/images/yohood/center-3-2.png differ diff --git a/res/images/yohood/center-3-3.png b/res/images/yohood/center-3-3.png new file mode 100755 index 0000000..715e73c Binary files /dev/null and b/res/images/yohood/center-3-3.png differ diff --git a/res/images/yohood/czs-header.png b/res/images/yohood/czs-header.png new file mode 100644 index 0000000..de3ebe0 Binary files /dev/null and b/res/images/yohood/czs-header.png differ diff --git a/res/images/yohood/down-1.jpg b/res/images/yohood/down-1.jpg new file mode 100644 index 0000000..31cce7d Binary files /dev/null and b/res/images/yohood/down-1.jpg differ diff --git a/res/images/yohood/down-2.jpg b/res/images/yohood/down-2.jpg new file mode 100644 index 0000000..5ef6af9 Binary files /dev/null and b/res/images/yohood/down-2.jpg differ diff --git a/res/images/yohood/logo3.0.png b/res/images/yohood/logo3.0.png new file mode 100644 index 0000000..f7c5ae3 Binary files /dev/null and b/res/images/yohood/logo3.0.png differ diff --git a/res/images/yohood/mobile/clo.png b/res/images/yohood/mobile/clo.png new file mode 100644 index 0000000..8aedaa8 Binary files /dev/null and b/res/images/yohood/mobile/clo.png differ diff --git a/res/images/yohood/mobile/czs.png b/res/images/yohood/mobile/czs.png new file mode 100644 index 0000000..d9ec994 Binary files /dev/null and b/res/images/yohood/mobile/czs.png differ diff --git a/res/images/yohood/mobile/mt.png b/res/images/yohood/mobile/mt.png new file mode 100644 index 0000000..3ab79b8 Binary files /dev/null and b/res/images/yohood/mobile/mt.png differ diff --git a/res/images/yohood/mobile/online-banner.jpg b/res/images/yohood/mobile/online-banner.jpg new file mode 100644 index 0000000..71a614c Binary files /dev/null and b/res/images/yohood/mobile/online-banner.jpg differ diff --git a/res/images/yohood/mobile/online-header.jpg b/res/images/yohood/mobile/online-header.jpg new file mode 100644 index 0000000..cde04f9 Binary files /dev/null and b/res/images/yohood/mobile/online-header.jpg differ diff --git a/res/images/yohood/mobile/op.png b/res/images/yohood/mobile/op.png new file mode 100644 index 0000000..385d713 Binary files /dev/null and b/res/images/yohood/mobile/op.png differ diff --git a/res/images/yohood/mobile/submit-success.png b/res/images/yohood/mobile/submit-success.png new file mode 100644 index 0000000..8071606 Binary files /dev/null and b/res/images/yohood/mobile/submit-success.png differ diff --git a/res/images/yohood/mobile/zzs.png b/res/images/yohood/mobile/zzs.png new file mode 100644 index 0000000..8cfa025 Binary files /dev/null and b/res/images/yohood/mobile/zzs.png differ diff --git a/res/images/yohood/mt-header.png b/res/images/yohood/mt-header.png new file mode 100644 index 0000000..a6a265b Binary files /dev/null and b/res/images/yohood/mt-header.png differ diff --git a/res/images/yohood/slide-bar-left.png b/res/images/yohood/slide-bar-left.png new file mode 100755 index 0000000..e9c65dd Binary files /dev/null and b/res/images/yohood/slide-bar-left.png differ diff --git a/res/images/yohood/slide-bar-right.png b/res/images/yohood/slide-bar-right.png new file mode 100755 index 0000000..66e1f62 Binary files /dev/null and b/res/images/yohood/slide-bar-right.png differ diff --git a/res/images/yohood/zzs-header.png b/res/images/yohood/zzs-header.png new file mode 100644 index 0000000..ea69d1c Binary files /dev/null and b/res/images/yohood/zzs-header.png differ diff --git a/res/js/admin/brand.js b/res/js/admin/brand.js index 339052a..3378e52 100644 --- a/res/js/admin/brand.js +++ b/res/js/admin/brand.js @@ -124,6 +124,24 @@ define('admin/brand',function(require, exports) ); initLogoUp(); initPicUp(); + init_upload_video('upload_video', function(response,swf) + { + if (response.error == 0) + { + var realPath = response.relaPath; + $("#video").val(realPath); + if($("#video").next().size()>0) + { + $("#video").next().remove(); + } + $("#video").prev().css("margin-top","-100px"); + $("#video").after('<video src="'+response.url+'" controls="controls" width="80"></video>'); + } + else + { + box.alert(response.message); + } + } ); }); diff --git a/res/js/admin/onlinereg.js b/res/js/admin/onlinereg.js new file mode 100644 index 0000000..5ba6d98 --- /dev/null +++ b/res/js/admin/onlinereg.js @@ -0,0 +1,359 @@ +define('admin/onlinereg', function(require, exports){ + var box = require('admin/box'); // 提示框 + var $ = require("jquery"); + var common = require("common"); + var upload = require('admin/upload'); + var form_html = $("#form_pan").html()+''; + $("#form_pan").remove(); + exports.index = function() + { + //全选 + $("#all_check").bind("click",function() + { + if($(this).attr("checked")) + { + $.each($("input[type=checkbox]"), function(i, obj) + { + $(obj).attr("checked", 1); + }); + } + else + { + $.each($("input[type=checkbox]"), function(i, obj) + { + $(obj).attr("checked", false); + }); + } + }); + //批量导出 + $(".batch_export").bind("click",function() + { + var ids = ''; + $("input[type=checkbox]").each(function() + { + if($(this).attr("checked")) + { + ids += $(this).attr("seller_id")+','; + } + }); + if(ids != '') + { + window.location.href = '/admin/onlinereg/export?id='+ids; + } + else + { + alert("没有选中"); + } + }); + //查看数据 + $(".look").bind("click",function() + { + var type = $(".nav-tabs").attr("type"); + var sellerId = $(this).attr("seller_id"); + var seller; + box.confirm(form_html,function() + { + var type = $(".nav-tabs").attr("type"); + var params = {}; + var sellerId = $("#box_confirm_ok").attr("seller_id"); + var requires = []; + //参展商校验数据 + var requireType0 = ['name','contact','telphone','relation','place']; + //赞助商校验数据 + var requireType1 = ['name','contact','telphone']; + //媒体校验数据 + var requireType2 = ['name','mobile']; + var val = ''; + var keys = ['name','profession','company','contact','telphone','mobile','brand_reg_type', + 'country', 'zipcode','city','introduction','email','place','website']; + var selectKeys = ['is_enter_yohobuy','is_3c','relation','brand_reg_type','sex']; + var i; + params.id = sellerId; + if(type == 0) + { + requires = requireType0; + } + else if(type == 1) + { + requires = requireType1; + } + else if(type == 2) + { + requires = requireType2; + } + + for(i = 0;i< selectKeys.length; i++) + { + if($("select[name="+selectKeys[i]+"]").size()> 0) + { + params[""+selectKeys[i]+""] = $("select[name="+selectKeys[i]+"]").val(); + } + } + for(i = 0; i< keys.length; i++) + { + if($("input[name="+keys[i]+"]").size() > 0) + { + val = $.trim($("input[name="+keys[i]+"]").val()); + if($.inArray(keys[i], requires) !== -1 && val == '') + { + alert("带*内容不能为空"); + return false; + } + params[""+keys[i]+""] = val; + } + } + $.ajax + ({ + type:"post", + url:"/admin/onlinereg/setseller", + data:params, + success:function(data) + { + if(data.code == 200) + { + window.location.reload(); + } + else + { + alert("保存失败"); + } + } + }); + },{title: '查看详情', width: '750px', autoClose: false}); + $.ajax + ({ + type:"post", + url:"/admin/onlinereg/getseller", + data:{id:sellerId}, + success:function(data) + { + seller = data.data; + if(data.code == 200) + { + var files = [], html = '', filePath; + $("input[name=name]").val(seller.name); + $("select[name=is_enter_yohobuy]").val(seller.is_enter_yohobuy); + $("input[name=product_type]").val(seller.product_type); + $("input[name=profession]").val(seller.profession); + $("select[name=sex]").val(seller.sex); + $("input[name=company]").val(seller.company); + $("input[name=contact]").val(seller.contact); + $("input[name=telphone]").val(seller.telphone); + $("input[name=mobile]").val(seller.mobile); + $("select[name=relation]").val(seller.relation); + $("input[name=country]").val(seller.country); + $("input[name=zipcode]").val(seller.zipcode); + $("input[name=city]").val(seller.city); + $("input[name=introduction]").val(seller.introduction); + $("input[name=email]").val(seller.email); + $("input[name=place]").val(seller.place); + $("select[name=is_3c]").val(seller.is_3c); + $("select[name=brand_reg_type]").val(seller.brand_reg_type); + $("input[name=website]").val(seller.website); + if(seller.files != "") + { + files = seller.files.split("|"); + for(var i = 0; i <files.length; i++) + { + if(files[i] !='') + { + filePath = common.getImages(files[i],'source', 'blogimg'); + html+='<a href="' + filePath + '">'+files[i].split("/")[files[i].split("/").length - 1]+'</a><br/>'; + } + } + } + + $("#download_list").html(html); + $("#box_confirm_ok").attr("seller_id", sellerId); + } + } + }); + + }); + }; + + function init_upload(id, callback, setting, post_params) + { + var defaultSetting = { + button_placeholder_id:id, + button_width : "58", + button_height : "30", + post_params: {'key':$('#'+id).attr('key'), 'format':'json'}, + file_queue_limit:50, + custom_settings: + { + saveCallback:callback + } + }; + if(setting) + { + $.extend(defaultSetting, setting); + } + if(post_params) + { + $.extend(defaultSetting.post_params, post_params); + } + //绑定上传背景按钮 + upload.init(defaultSetting); + } + + //设置下载信息 + exports.download = function() + { + //设置下载信息 + $(".modify, #create_download_info").bind("click", function() + { + var download_id = 0; + var type = $(".table").attr("type"); + var title = type == 0 ? '设置参展商手册':'设置新闻稿'; + //设置下载信息 + box.confirm(form_html,function() + { + var id = parseInt($("#download_id").val()); + var title = $("input[name=title]").val(); + var type = $(".table").attr("type"); + var file = $("#file").size() ? $("#file").attr("val") : ''; + var cover = ''; + var source = ''; + var source_link = ''; + if(title == '' || file == '') + { + alert("带*内容不能为空"); + return false; + } + //封面 + if(typeof($("#pic").attr("val")) !=="undefined") + { + cover = $("#pic").attr("val"); + if(cover == '') + { + alert("带*内容不能为空"); + return false; + } + } + //来源 + if($("input[name=source]").size()) + { + source = $("input[name=source]").val(); + if(source == '') + { + alert("带*内容不能为空"); + return false; + } + } + //来源链接 + if($("input[name=source_link]").size()) + { + source_link = $("input[name=source_link]").val(); + if(source_link == '') + { + alert("带*内容不能为空"); + return false; + } + } + + $.ajax + ({ + type:"post", + url:"/admin/onlinereg/setdownload", + data:{title:title,cover:cover, file:file, id: id, type:type, source:source, source_link:source_link}, + success:function(data) + { + if(data.code == 200) + { + window.location.reload(); + } + else + { + alert("设置失败"); + } + } + }) + + },{title: title, width: '750px', autoClose: false}); + + if($("#upload_pic").size()) + { + //上传图片 + init_upload('upload_pic', function(response, swf) + { + var thumbPath = common.getImages(response.data.file.relaPath, "0100x0100", "blogimg", "primary"); + var realPath = response.data.file.relaPath; + $("#picdiv").html("<img id='pic' class='thumb_but' val='"+realPath+"' src='"+thumbPath+"' width='100' height='100' /> "); + }, {button_width:"100", button_height : "30"}); + } + + if($("#upload_file").size()) + { + //上传文件 + init_upload('upload_file', function(response, swf) + { + var filePath = response.data.file.absPath; + var realPath = response.data.file.relaPath; + var file = filePath.split("/")[filePath.split("/").length - 1]; + //图片 + $("#filediv").html('<a id="file" href="'+filePath+'" val="'+realPath+'">'+file+'</a>'); + + }, {button_width:"100", button_height : "30",file_types:"*.zip;*.xlsx;*.xls;*.docx;*.doc;*.pdf;*.ppt;*.pptx"}, {"fileType":"file"}); + } + //下载ID + if(typeof($(this).attr("download_id")) !== 'undefined') + { + download_id = $(this).attr("download_id"); + $("#download_id").val(download_id); + } + + if(download_id > 0) + { + $.ajax + ({ + type:"get", + url:"/admin/onlinereg/getdownload", + data:{id:download_id}, + success:function(data) + { + if(data.code == 200) + { + $("#title").val(data.data.title); + var thumbPath = common.getImages(data.data.cover, "0100x0100", "blogimg", "primary"); + $("#picdiv").html("<img id='pic' class='thumb_but' val='"+data.data.cover+"' src='"+thumbPath+"' width='100' height='100' /> "); + var filePath = common.getImages(data.data.file,'source','blogimg'); + var file = filePath.split("/")[filePath.split("/").length - 1]; + $("#filediv").html('<a id="file" href="'+filePath+'" val="'+data.data.file+'">'+file+'</a>'); + $("input[name=source]").val(data.data.source); + $("input[name=source_link]").val(data.data.source_link); + } + } + }); + } + + }); + + //删除下载 + $(".del").bind("click",function() + { + if(window.confirm("你确定要删除吗?")) + { + var download_id = $(this).attr("download_id"); + $.ajax + ({ + type:"post", + url:"/admin/onlinereg/deldownload", + data:{id:download_id}, + success:function(data) + { + if(data.code == 200) + { + window.location.reload(); + } + else + { + alert("删除失败"); + } + } + }); + } + }); + + }; +}); \ No newline at end of file diff --git a/res/js/admin/partner.js b/res/js/admin/partner.js index a256c7d..4feff66 100644 --- a/res/js/admin/partner.js +++ b/res/js/admin/partner.js @@ -30,6 +30,14 @@ define('admin/partner',function(require, exports) var pic = $("#pic").val(); var description = $("#description").val(); var url = $("#url").val(); + if (!name) { + box.alert('亲,名称不能为空!'); + return false; + } + if (!pic) { + box.alert('亲,图片不能为空!'); + return false; + } $.ajax ({ type:"post", diff --git a/res/js/channel.js b/res/js/channel.js index 90715e2..7bce912 100644 --- a/res/js/channel.js +++ b/res/js/channel.js @@ -1,499 +1,1278 @@ define('channel', function(require, exports) { - var swipe = require("plugins/swipe"), - swiper = require("plugins/idangerous.swiper"), - $ = require("jquery"), - freetile = require("lib/ui/jquery.freetile"), - share = require('plugins/share'); - require("plugins/pagination"); - require("plugins/imgZoom"); - require("plugins/slider"); - - function setLayout() { - $('.fluid-list-inner').freetile({ - animate: false, - elementDelay: 0 - }); - }; - - function getTopProduct(gender) { - $.ajax({ - type: "post", - url: '/default/getTopProduct', - data: { - gender: gender - }, - dataType: "json", - success: function(data) { - if (data.code == 200) { - var html = ''; - var pos = 1; - var number_class = ''; - var number = ''; - $.each(data.data, function(key, val) { - if (pos == 1) { - number_class = 'number_1'; - number = ''; - } else { - number = pos; - number_class = 'number_2'; - } - html += '<li><div class="goods-image">' + - '<img src="' + val.product_img + '" alt=""/>' + - '<span class="' + number_class + '">' + number + '</span></div>' + - '<h3><a target="_blank" href="' + val.product_url + '">' + val.product_name + '</a></h3><p>人气: ' + val.sale_sum + '</p></li>'; - pos++; - }); - $(".show-goods-list").html('<ul>' + html + '</ul>'); - } - } - }); - }; - exports.common = function() { - var goodsSwiper, - limitedPrev, - limitedNext, - swiperLen, - shareUrl, - shareCover, - detailTitle, - detailSubtitle; - - - //导航动画效果 - $('.nav').on('click', 'li', function() { - $(this).addClass('current'); - }); - - if (navigator.userAgent.indexOf('iPad') === -1) { - $('.nav').on('mouseover', 'li', function() { - if (!$(this).hasClass('current')) { - $(this).addClass('animate') - } - }).on('mouseout', 'li', function() { - $('.nav').find('li').removeClass('animate'); - }); - } - - //大banner滑动 - swipe.init({ - slideBox: '.slide-box', - prev: '.slide-prev', - next: '.slide-next', - auto: 3000, - continuous: true, - callback: function(index) { - if (index >= $('.dib a').size()) { - index = index - $('.dib a').size(); - } - $('.dib a').removeClass('on').eq(index).addClass('on'); - } - }); - - //限量商品滑动 - limitedPrev = $('.limited-slide-prev'); - limitedNext = $('.limited-slide-next'); - swiperLen = $('.limited-slide-box').find('.box').size(); - goodsSwiper = swipe.init({ - slideBox: '.limited-slide-box', - prev: '.limited-slide-prev', - next: '.limited-slide-next', - auto: false, - callback: function(index, element) { - limitedPrev.removeClass('disable'); - limitedNext.removeClass('disable'); - console.log(index); - console.log(swiperLen); - if (index === swiperLen - 1) { - limitedNext.addClass('disable'); - }; - if (index === 0) { - limitedPrev.addClass('disable'); - }; - } - }); - - - //tab - $('.content-tab').on('click', 'li', function() { - var nowIndex = $(this).index(); - $(this).addClass('current').siblings().removeClass('current'); - $('.content-main').hide().eq(nowIndex).show(); - }); - - //回到顶部 - $(window).scroll(function() { - if ($(window).scrollTop() > 100) { - $(".return-top").fadeIn(500); - } else { - $(".return-top").fadeOut(500); - } - }); - - $(".return-top").click(function() { - $('body, html').animate({ - scrollTop: 0 - }, 500); - return false; - }); - - //使用瀑布流布局 - setLayout(); - - if ($('.share').size() > 0) { - //微信分享鼠标事件 - $('.yohoo-share-button-wx').on('mouseover', function() { - $('.wx-qrcode-dialog').show(); - }).on('mouseout', function() { - $('.wx-qrcode-dialog').hide(); - }); - - shareUrl = $(".share").attr("data-link"); - shareCover = $(".share").attr("cover-url"); - detailTitle = $('.detail-title').find('h2'); - detailSubtitle = $('.detail-title').find('h3'); - //分享 - share.init({ - shareUrl: shareUrl, - img: shareCover, - sinaText: '【YOHOOD 2015】' + detailTitle.text() + '\r\n' + detailSubtitle.text() + '@YOHO潮流志', - fbTextFunction: function() { - return { - des: '【YOHOOD 2015】' + detailTitle.text() + '\r\n' + detailSubtitle.text(), - name: '【YOHOOD 2015】' + detailTitle.text() + '\r\n' + detailSubtitle.text(), - caption: '【YOHOOD 2015】' + detailTitle.text() + '\r\n' + detailSubtitle.text(), - url: location.href - } - }, - tweetText: '【YOHOOD 2015】' + detailTitle.text() + '\r\n' + detailSubtitle.text(), - qqText: '【YOHOOD 2015】' + detailTitle.text() + ' ' + detailSubtitle.text() + '#YOHOOD 2015' - }); - } - - - }; - - //yohood展会页面 - exports.exhibition = function() { - swipe.init({ - slideBox: '.slide-box-exhibition', - prev: '.slide-prev-exhibition', - next: '.slide-next-exhibition', - pagination: '.dib a', - activeClass: 'on', - auto: 3000, - continuous: true - }); - }; - //首页 - exports.index = function() { - var sortPos = 0; - var productGenders = []; - var currentGenderPos = 0; - var productListNames = []; - - - var cooperateSwiper, - cooperatePrev, - cooperateNext, - swiperLen; - - if ($(".show-goods").size() > 0) { - productGenders = $(".show-goods").attr("product_genders").split(','); - currentGenderPos = $(".show-goods").attr("current_gender_pos"); - productListNames = $(".show-goods").attr("product_list_names").split(','); - getTopProduct(productGenders[currentGenderPos]); - } - - $('.cooperation-slide-prev').addClass('disable'); - cooperateSwiper = new swiper('.cooperation-slide-box', { - wrapperClass: 'slide-wrap', - slideClass: 'box', - slidesPerView: 'auto', - onSlideChangeStart: function() { - var swiperLen = $('.cooperation-slide-box').find('.box').size(); - $('.cooperation-slide-prev,.cooperation-slide-next').removeClass('disable'); - if (cooperateSwiper.activeIndex === swiperLen - 1) { - $('.cooperation-slide-next').addClass('disable'); - } else if (cooperateSwiper.activeIndex === 0) { - $('.cooperation-slide-prev').addClass('disable'); - } - } - }); - - $('.cooperation-slide-prev').on('click', function(e) { - e.preventDefault(); - cooperateSwiper.swipePrev(); - }); - $('.cooperation-slide-next').on('click', function(e) { - e.preventDefault(); - cooperateSwiper.swipeNext(); - }); - $(".goods_prev, .goods_next").bind("click", function() { - currentGenderPos = parseInt($(".show-goods").attr("current_gender_pos")); - if ($(this).attr("class") == 'goods_prev') { - genderPos = parseInt(currentGenderPos - 1 >= 0 ? currentGenderPos - 1 : 0); - } else { - genderPos = parseInt(currentGenderPos + 1 < productGenders.length ? currentGenderPos + 1 : currentGenderPos); - } - if (genderPos != currentGenderPos) { - $(".show-goods").attr("current_gender_pos", genderPos); - getTopProduct(productGenders[genderPos]); - $(".show-goods").find("span").remove(); - $(".show-goods").find("h2").prepend("<span>" + productListNames[genderPos] + "</span>"); - } - }); - - }; - //品牌 - exports.brand = function() { - $('.brand-list').on('click', 'li', function() { - if ($(this).find('.brand-introduction').size() > 0) { - $(this).find('.brand-introduction').show(); - $('.overlay').show(); - } - }); - $('.overlay').on('click', function() { - $(this).hide(); - $('.brand-introduction').hide(); - }); - }; - //资讯 - exports.news = function() { - setLayout(); - }; - - //detail页面 - exports.detail = function() { - var timer, - nowIndex, - detailSwiper; - - var relatedTop, - relatedPost, - relatedH, - maxH; - //详情页图片滚动 - if ($('.detail-slide').size() > 0) { - //slide大图上的左右箭头显示 - $('.slide-shadow').on('mouseover', 'a', function() { - if ($(this).hasClass('slide-shadow-prev')) { - $('.slide-big-ctrl-prev').show(); - } else { - $('.slide-big-ctrl-next').show(); - } - }).on('mouseout', 'a', function() { - $('.slide-big-ctrl-prev, .slide-big-ctrl-next').hide(); - }); - $('.detail-slide-body').on('mouseout', function() { - $('.slide-big-ctrl-prev, .slide-big-ctrl-next').hide(); - }); - $('.detail-slide-big-ctrl').on('mouseenter', 'a', function() { - $(this).show(); - }); - - detailSwiper = new swiper('.detail-slide-body', { - wrapperClass: 'detail-slide-piclist', - slideClass: 'box', - loop: true, - slidesPerView: 'auto', - slideElement: 'li' - }); - - $('.slide-big-ctrl-prev').bind('click', function(e) { - e.preventDefault(); - detailSwiper.swipePrev(); - }); - $('.slide-big-ctrl-next').bind('click', function(e) { - e.preventDefault(); - detailSwiper.swipeNext(); - }); - - $('.detail-slide-ctrl-tabs').slider(); - $('.detail-slide-big-ctrl').on('click', 'a', function() { - $('.detail-slide-ctrl-tabs').slider('slideTo', detailSwiper.activeLoopIndex); - }); - $('.detail-slide-ctrl-tabs').on('click', 'li', function() { - detailSwiper.swipeTo($(this).index()); - }); - }; - - //侧栏推荐切换 - clearInterval(timer); - - function postSwitch() { - $('.side-related-tab').find('a').each(function(i) { - if ($(this).hasClass('current')) { - $(this).removeClass('current'); - } else { - $(this).addClass('current'); - $('.side-related-list').hide().eq(i).show(); - } - }); - } - timer = setInterval(function() { - postSwitch(); - }, 5000); - $('.side-related-post').on('mouseenter', function() { - clearInterval(timer); - }).on('mouseleave', function() { - timer = setInterval(function() { - postSwitch(); - }, 5000); - }) - $('.side-related-tab').on('click', 'a', function() { - nowIndex = $(this).index(); - if ($(this).hasClass('current')) return; - $(this).addClass('current').siblings().removeClass('current'); - $('.side-related-list').hide().eq(nowIndex).show(); - }); - - //右侧相关文章定位 - relatedPost = $('.side-related-post'); - relatedTop = relatedPost.offset().top; - relatedH = relatedPost.outerHeight(); - maxH = $('.limited-goods').offset().top; - $(window).on('scroll', function() { - if ($('.detail-body').outerHeight() > $('.detail-side').outerHeight() && navigator.userAgent.indexOf('iPad') === -1) { - relatedH = relatedPost.outerHeight(); - maxH = $('.limited-goods').offset().top; - if ($(this).scrollTop() >= relatedTop) { - relatedPost.addClass('fix'); - if (relatedPost.offset().top + relatedH >= maxH && relatedPost.hasClass('fix')) { - relatedPost.css({ - 'position': 'absolute', - 'top': maxH - relatedH - 10 - }) - } - if ($(this).scrollTop() <= maxH - relatedH) { - relatedPost.css({ - 'position': 'fixed', - 'top': 0 - }); - } - } else { - relatedPost.removeClass('fix').removeAttr('style'); - } - } - }); - - //分享按钮位置 - var shareOffsetTop = $(".share").offset().top; - $(window).scroll(function() { - scrollTop = $(window).scrollTop(); - maxH = $('.limited-goods').offset().top; - if (shareOffsetTop - scrollTop <= 0) { - $(".share").css({ - "position": "fixed", - "top": 10 - }); - } else { - $(".share").css({ - "position": "absolute", - "top": shareOffsetTop - }); - } - console.log($(".share").offset().top + $('.share').outerHeight()); - console.log($('.limited-goods').offset().top); - if($(".share").offset().top + $('.share').outerHeight() > maxH){; - $(".share").css({ - 'position': 'absolute', - 'top': maxH - $('.share').outerHeight() - 10 - }); - } - }); - }; - - exports.siteActivity = function() { - $('.site-activity-content').find('.layout-item').each(function() { - $(this).imgZoom({ - imgTag: 'pic-tip' - }); - }); - - //活动日期定位 - var tabTop = $('.site-activity-tab').offset().top - 10, - oTab = $('.site-activity-tab'), - mainBodyOffsetTop, - mainBodyHeight, - tabOffsetHeightTop, - distance, - eleTop, - tabPositionTop; - $(window).on('scroll', function() { - if (tabTop <= $(this).scrollTop()) { - $('.site-activity-tab').css({ - "position": "fixed", - "top": "0", - "left": "50%", - "width": "134px", - "marginLeft": "356px", - "marginTop": "10px" - }) - - - mainBodyOffsetTop = $('.bd').offset().top; - mainBodyHeight = $('.bd').outerHeight(); - tabOffsetHeightTop = oTab.offset().top + oTab.outerHeight(); - distance = mainBodyHeight + mainBodyOffsetTop; - eleTop = distance - oTab.outerHeight(); - tabPositionTop = 10; - - if (tabOffsetHeightTop >= distance) { - oTab.css({ - 'position': 'absolute', - 'top': eleTop - tabPositionTop - 10 - }); - } - if (oTab.offset().top - $(window).scrollTop() > tabPositionTop) { - oTab.css({ - 'position': 'fixed', - 'top': tabPositionTop - }); - } - } else { - $('.site-activity-tab').removeAttr('style'); - }; - }); - }; - - //show页面 - exports.show = function() { - $(".look_big_image").bind("click", function(event) { - var divName = '#mask'; - var sourceImage = $(this).attr("source"); - var imageWidth = parseInt($(divName).children().attr("width")); - var imageHeight = parseInt($(divName).children().attr("height")); - $(divName).html('<img src="' + sourceImage + '" width="' + imageWidth + '" height="' + imageHeight + '" />').attr("current_class", $(this).parent().attr("class")); - var top = ($(window).height() - imageHeight) / 2; - var left = ($(window).width() - imageWidth) / 2; - var scrollTop = 0; //$(document).scrollTop(); - var scrollLeft = 0; //$(document).scrollLeft(); - $(divName).css({ - position: 'absolute', - 'top': top + scrollTop, - left: left + scrollLeft - }); - $(".model").show(); - if (left - 75 > 10) { - $(".image-prev").css("left", left - 75); - $(".image-next").css("right", left - 75); - } - $.each($(this).parents("span").children("span"), function(index, dom) { - var style_top = parseInt($(dom).attr("x")) / 10000 * imageHeight; - var style_left = parseInt($(dom).attr("y")) / 10000 * imageWidth; - $(divName).append('<a class="pic-tip" style="left:' + style_left + 'px;top:' + style_top + 'px;">' + $(dom).attr("label") + '</a>') - }); - event.stopPropagation(); - }); - $(".ui-dialog-close").bind("click", function(event) { - $(".model").hide(); - event.stopPropagation(); - }); - $('.show-wrap').find('.layout-item').each(function() { - $(this).imgZoom({ - imgTag: 'pic-tip' - }); - }); - - } -}); \ No newline at end of file + var swipe = require("plugins/swipe"), + swiper = require("plugins/idangerous.swiper"), + $ = require("jquery"), + freetile = require("lib/ui/jquery.freetile"), + share = require('plugins/share'); + require("plugins/pagination"); + require("plugins/imgZoom"); + require("plugins/slider"); + require("lib/jquery.validate"); + require("plugins/clamp"); + + + function setLayout() { + $('.fluid-list-inner').freetile({ + animate: false, + elementDelay: 0 + }); + }; + + function getTopProduct(gender) { + $.ajax({ + type: "post", + url: '/default/getTopProduct', + data: { + gender: gender + }, + dataType: "json", + success: function(data) { + if (data.code == 200) { + var html = ''; + var pos = 1; + var number_class = ''; + var number = ''; + $.each(data.data, function(key, val) { + if (pos == 1) { + number_class = 'number_1'; + number = ''; + } else { + number = pos; + number_class = 'number_2'; + } + html += '<li><div class="goods-image">' + + '<img src="' + val.product_img + '" alt=""/>' + + '<span class="' + number_class + '">' + number + '</span></div>' + + '<h3><a target="_blank" href="' + val.product_url + '">' + val.product_name + '</a></h3><p>人气: ' + val.sale_sum + '</p></li>'; + pos++; + }); + $(".show-goods-list").html('<ul>' + html + '</ul>'); + } + } + }); + }; + + function formatLayoutItemStyle(mainLayout) { + var method = null, + $title = $(mainLayout).find("h2"), + $textContent = null, + clampNum = { + title: 2, + smallText: 3, + bigText: 4 + }, + style = null, + i = 0, + len = 0; + + method = { + /** + * 获取元素计算后CSS样式 + * @param {HTMLElement} element 要获取计算后CSS样式的元素 + * @return {CSSStyleDeclaration} 计算后的CSS样式 + */ + getComputedStyle: function(element) { + if (typeof window.getComputedStyle === "function") { + return window.getComputedStyle(element, null); + } else { + return element.currentStyle; + } + } + } + + for (i = 0, len = $title.length; i < len; i++) { + style = method.getComputedStyle($title[i]); + $textContent = $($title[i]).next(".text-content"); + + $clamp($($title[i]).find("a")[0], { clamp: clampNum.title }); + if ($textContent.size() <= 0) { + continue; + } + + if (parseInt(style.height) > 30) { + $textContent.css("margin", "21px 0 0 0"); + $clamp($textContent.find("a")[0], { + clamp: clampNum.smallText + }); + } else { + $clamp($textContent.find("a")[0], { + clamp: clampNum.bigText + }); + } + + } + } + + exports.common = function() { + var goodsSwiper, + limitedPrev, + limitedNext, + swiperLen, + shareUrl, + shareCover, + detailTitle, + detailSubtitle; + + // 弹窗关闭 + $(document).click(function() { + $('.dialog-w').hide(); + }); + + $('.dia-content').click(function(e) { + + e.stopPropagation(); + }); + + //导航动画效果 + $('.nav').on('click', 'li', function() { + $(this).addClass('current'); + }); + + + // if (navigator.userAgent.indexOf('iPad') === -1) { + // $('.nav').on('mouseenter', 'li', function() { + // $(this).addClass('animate'); + // }).on('mouseleave', 'li', function() { + // $('.nav').find('li').removeClass('animate'); + // }); + // } + + + /** + * 首页顶部 banner 滑动条 + */ + ({ + bannerSwiper: (function() { + var boxNum = $(".slide-box").find(".box").size(), + isMulti = boxNum <= 1 ? false : true; + + if (!isMulti) { + $(".slide-main .slide-control").hide(); + $(".slide-main .slide-navigator").hide(); + } + + return new swiper('.slide-box', { + autoplay: (function() { + if (!isMulti) { + return 0; + } else { + return 4000; + } + }()), + loop: isMulti, + wrapperClass: 'slide-wrap', + slideClass: 'box', + slidesPerView: 'auto', + initialSlide: 0, + autoplayDisableOnInteraction: false, + calculateHeight: true, + loopedSlides: boxNum, + onSlideChangeEnd: function(swiper) { + var activeIndex = swiper.activeIndex, + len = $('.dib a').size(), + pos = (activeIndex) % len; + $('.dib a').removeClass('on').eq(pos).addClass('on'); + } + }) + }()), + + init: function() { + var swiper = this.bannerSwiper; + + $('.slide-box-warp .slide-prev').on('click', function(e) { + e.preventDefault(); + swiper.swipePrev(); + }); + $('.slide-box-warp .slide-next').on('click', function(e) { + e.preventDefault(); + swiper.swipeNext(); + }); + + $(".dib a").on("click", function(event) { + var index = $(this).index(".dib a"); + swiper.swipeTo(index); + }); + } + }).init(); + + //tab + $('.content-tab').on('click', 'li', function() { + var nowIndex = $(this).index(); + if (location.href.split("/").indexOf("news") >= 0) { + return; + } + $(this).addClass('current').siblings().removeClass('current'); + $('.content-main').hide().eq(nowIndex).show(); + }); + + //回到顶部 + // $(window).scroll(function() { + // if ($(window).scrollTop() > 100) { + // $(".return-top").fadeIn(500); + // } else { + // $(".return-top").fadeOut(500); + // } + // }); + + // $(".return-top").click(function() { + // $('body, html').animate({ + // scrollTop: 0 + // }, 500); + // return false; + // }); + + // ({ + // getScrollBottom: function() { + // var scrollTop = $(window).scrollTop(), + // pageHeight = $(document).height(), + // windowHeight = $(window).height(); + + // return pageHeight - windowHeight - scrollTop; + // }, + + // fixedReturnTop: function(position) { + // $("body").css("position", "relative"); + // $(".return-top").css("position", "absolute").css("bottom", position + "px"); + // }, + + // floatReturnTop: function(position) { + // $(".return-top").css("position", "fixed").css("bottom", position + "px"); + // }, + + // init: function() { + // var that = this, + // hasCooperation = $(".cooperation").size() > 0 ? true : false, + // initPosition = 50; + // stayPosition = hasCooperation ? (71 + 240 + 50) : (71 + 50), + + + // $(window).on("scroll", function(event) { + // if (that.getScrollBottom() > stayPosition - initPosition) { + // that.floatReturnTop(initPosition); + // } else { + // that.fixedReturnTop(stayPosition); + // } + + // }); + // } + // }).init(); + + //使用瀑布流布局 + setLayout(); + + // if ($('.share').size() > 0) { + // //微信分享鼠标事件 + // $('.yohoo-share-button-wx').on('mouseover', function() { + // $('.wx-qrcode-dialog').show(); + // }).on('mouseout', function() { + // $('.wx-qrcode-dialog').hide(); + // }); + + // shareUrl = $(".share").attr("data-link"); + // shareCover = $(".share").attr("cover-url"); + // detailTitle = $('.detail-title').find('h2'); + // detailSubtitle = $('.detail-title').find('h3'); + // //分享 + // share.init({ + // shareUrl: shareUrl, + // img: shareCover, + // sinaText: '【YO’HOOD 2016】' + detailTitle.text() + '\r\n' + detailSubtitle.text() + '@YOHO!潮流志' + shareUrl, + // fbTextFunction: function() { + // return { + // des: '【YO’HOOD 2016】' + detailTitle.text() + '\r\n' + detailSubtitle.text() + '#YO’HOOD 2016', + // name: '【YO’HOOD 2016】' + detailTitle.text() + '\r\n' + detailSubtitle.text() + '#YO’HOOD 2016', + // caption: '【YO’HOOD 2016】' + detailTitle.text() + '\r\n' + detailSubtitle.text() + '#YO’HOOD 2016', + // url: location.href + // } + // }, + // tweetText: '【YO’HOOD 2016】' + detailTitle.text() + '\r\n' + detailSubtitle.text(), + // qqText: '【YO’HOOD 2016】' + detailTitle.text() + ' ' + detailSubtitle.text() + shareUrl, + // }); + // } + + // 表单验证 + if ($('#index-form').length > 0) { + + + $('#index-form').validate({ + focusInvalid: false, + onkeyup: false, + rules: { + indexName: { + required: true + } + }, + messages: { + indexName: { + required: '必填' + } + }, + submitHandler: function(form) { + form.submit(); + } + }); + } + + // 格式化标题和内容显示的行数 + ({ + init: function() { + var $mainLayout = $(".main-layout"), + i = 0, + len = 0; + + for (i = 0, len = $mainLayout.length; i < len; i++) { + formatLayoutItemStyle($mainLayout[i]); + } + } + }).init(); + + }; + + //yohood展会页面 + exports.exhibition = function() { + swipe.init({ + slideBox: '.slide-box-exhibition', + prev: '.slide-prev-exhibition', + next: '.slide-next-exhibition', + pagination: '.dib a', + activeClass: 'on', + auto: 3000, + continuous: true + }); + }; + //首页 + exports.index = function() { + if ($('.slide-box').find('.box').size() <= 1) { + $('.slide-navigator').hide(); + $('.slide-control').hide(); + } + var sortPos = 0; + var productGenders = []; + var currentGenderPos = 0; + var productListNames = []; + + + var cooperateSwiper, + cooperatePrev, + cooperateNext, + swiperLen, + changeCooperationClass; + + /** + * 将 资讯页面的 固定 banner 位插入资讯右侧 + */ + ({ + init: function() { + var rightBanner = $(".right-banner")[0], + $banners = $(rightBanner).find(".image-box"), + len = $banners.length, + $pageContent = $("#index_content"), + $layoutItems = $pageContent.find(".layout-item"), + placeholderItems = ""; + + if (len <= 0) { + return; + } + + if ($layoutItems.length < 2) { + placeholderItems = "<div class='fluid-item layout-item tiled'></div>"; + placeholderItems += placeholderItems; + $pageContent.prepend($(placeholderItems)); + $layoutItems = $pageContent.find(".layout-item"); + } + + len = len > 2 ? 2 : len; + rightBanner.style.height = len * 420 + (len - 1) * 26 + "px"; + + $(rightBanner).insertAfter($layoutItems[1]); + + //插入新元素、重新瀑布流布局 + setLayout(); + } + }).init(); + + if ($(".show-goods").size() > 0) { + productGenders = $(".show-goods").attr("product_genders").split(','); + currentGenderPos = $(".show-goods").attr("current_gender_pos"); + productListNames = $(".show-goods").attr("product_list_names").split(','); + getTopProduct(productGenders[currentGenderPos]); + } + + + + // CtrlSwiper = function(option) { + // this.swiper = option.swiper; + // this.elem = $(option.elem); + // this.slides = $(option.elem).find(option.slides); + // this.nextButton = $(option.nextButton); + // this.prevButton = $(option.prevButton); + // this.slidesNum = 0; + // this.slidesPerView = option.slidesPerView; + // this.slideWitdh = option.slideWitdh; + // this.groupWidth = option.perSlideWidth; + // this.totalWidth = 0; + // this.currentGroup = 0; + // this.maxGroup = 0; + // } + + // CtrlSwiper.prototype = { + // constructor: CtrlSwiper, + + // slideTo: function(index) { + // var group = Math.floor(index / this.slidesPerView); + // if (group < 0 || group > this.maxGroup) { + // return; + // } + + // this.slideElem(this.elem, -group * this.groupWidth); + // }, + + // slideElem: function(elem, width, time) { + // time = time === undefined ? 0.3 : time; + // elem.css("transform", "translate3d(" + width + "px, 0px, 0px)").css("transition-duration", time + "s"); + // }, + + // init: function() { + // var that = this, + // swiper = this.detailCtrlSwiper, + // i = 0, + // len = 0, + // groupCount = 0; + + // this.slidesNum = this.slides.size(); + // this.groupWidth = this.slideWitdh * this.slidesPerView; + + // for (i = 0, len = this.slides.length; i < len; i++) { + // if (i % 2 === 0) { + // if (/big-size/.test(this.slides[i].className)) { + // group++; + // } else if () + // } + + + // if (i + 1 < len) { + // if (/big-size/.test(this.slides[i+1].className)) { + // this.slides[i].css("width", "1140px"); + // group++; + // } else { + + // } + // } + // } + + + // // this.totalWidth = this.slidesNum * this.slideWitdh; + + + // this.maxGroup = Math.floor(this.slidesNum / this.slidesPerView); + // this.elem.css("width", this.totalWidth + "px"); + + // // if (this.slidesNum <= 5) { + // // $(".detail-slide-ctrl-prev").hide(); + // // $(".detail-slide-ctrl-next").hide(); + // // } + + // this.prevButton.on("click", function() { + // if ((that.currentGroup - 1) >= 0) { + // that.slideElem(that.elem, -(that.currentGroup - 1) * that.groupWidth); + // that.currentGroup--; + // } else { + // that.slideElem(that.elem, -that.maxGroup * that.groupWidth, 0.1); + // that.currentGroup = that.maxGroup; + // } + // }); + + // this.nextButton.on("click", function() { + // if ((that.currentGroup + 1) <= that.maxGroup) { + // that.slideElem(that.elem, -(that.currentGroup + 1) * that.groupWidth); + // that.currentGroup++; + // } else { + // that.slideElem(that.elem, 0, 0.1); + // that.currentGroup = 0; + // } + + // }); + + // this.slides.on("click", function() { + // var index = $(this).index(this.slides); + + // $(".detail-slide-ctrl-tabs .box").find(".cover").removeClass("on"); + // $(this).find(".cover").addClass("on"); + // detailSwiper.swipeTo(index); + // }); + + // $(this.slides[0]).click(); + // } + // } + + // var ctrlTabs = new CtrlSwiper({ + // elem: ".cooperation .slide-wrap", + // slides: ".box", + // prevButton: ".cooperation .cooperation-slide-prev", + // nextButton: ".cooperation .cooperation-slide-next", + // slidesPerView: 1, + // slideWitdh: 1180 + // }); + + // ctrlTabs.init(); + + + + + + /** + * 首页底部合作商滑动条 + */ + ({ + boxNum: $(".cooperation .slide-wrap").find(".box").size(), + + currentSlide: 0, + + cooperateSwiper: (function() { + var boxNum = $(".cooperation .slide-wrap").find(".box").size(), + isMulti = boxNum > 1 ? true : false; + + return new swiper('.cooperation-slide-box', { + wrapperClass: 'slide-wrap', + loop: isMulti, + slideClass: 'box', + slidesPerView: 'auto', + loopedSlides: boxNum, + loopAdditionalSlides: boxNum + }); + }()), + + + clearOtherSlideStyle: function(swiper) { + var slides = swiper.slides, + i = 0, + len = 0; + + for (i = 0, len = slides.length; i < len; i++) { + slides[i].style = null; + } + }, + + nextChagneSileSize: function(swiper, boxNum) { + var activeIndex = swiper.activeIndex, + slides = swiper.slides, + activeSlide = slides[activeIndex], + nextSlide = slides[activeIndex + 1], + nextNextSlide = slides[activeIndex + 2]; + + if (/big\-size/.test(nextNextSlide.className)) { + nextSlide.style.width = "1140px"; + } + + }, + + prevChangeSlideSize: function(swiper, boxNum) { + var activeIndex = swiper.activeIndex, + slides = swiper.slides, + activeSlide = slides[activeIndex], + prevSlide = slides[activeIndex - 1]; + + if (/big-size/.test(activeSlide.className)) { + prevSlide.style.width = "1140px"; + } + }, + + getCurrentSlide: function(swiper, boxNum, direction) { + var $visibleSlide = $(".cooperation .slide-wrap").find(".swiper-slide-visible"), + $activeSlide = $(swiper.slides[swiper.activeIndex]); + isActiveFirst = $visibleSlide.index($activeSlide) === 0 ? true : false; + currentSlide = 0; + + direction = direction > 0 ? 1 : -1; + + if ($visibleSlide.size() > 1) { + if (direction === 1) { + if (isActiveFirst) { + currentSlide = swiper.activeIndex + 2; + } else { + currentSlide = swiper.activeIndex + 1; + } + } else if (direction === -1) { + if (isActiveFirst) { + currentSlide = swiper.activeIndex - 1; + } else { + currentSlide = swiper.activeIndex - 2; + } + } + } else { + currentSlide = swiper.activeIndex + direction * $visibleSlide.size(); + } + + currentSlide = currentSlide < 0 ? currentSlide + boxNum : currentSlide % boxNum; + return currentSlide; + }, + + init: function() { + if ($(".cooperation").size() <= 0) { + return; + } + + var that = this, + swiper = this.cooperateSwiper, + firstSlide = swiper.slides[swiper.activeIndex], + secondSlide = swiper.slides[swiper.activeIndex + 1]; + + swiper.disableMousewheelControl(); + + $('.cooperation-slide-prev').on('click', function(e) { + e.preventDefault(); + that.clearOtherSlideStyle(swiper); + that.prevChangeSlideSize(swiper); + swiper.swipeTo(that.getCurrentSlide(swiper, that.boxNum, -1)); + }); + + $('.cooperation-slide-next').on('click', function(e) { + e.preventDefault(); + that.clearOtherSlideStyle(swiper); + that.nextChagneSileSize(swiper); + swiper.swipeTo(that.getCurrentSlide(swiper, that.boxNum, 1)); + }); + + if (firstSlide == null || secondSlide == null) { + return; + } + + if (/big-size/.test(secondSlide.className)) { + firstSlide.style.width = "1180px"; + } + + } + }).init(); + + /** + * 通过ajax获取更多信息并渲染 + * @param {Object} ajaxOption Ajax配置 + * @param {Object} domOption DOM结构信息 + * @param {String} template 模板字符串 + * @param {Function} callback 成功之后的回调函数 + */ + function pageLoadMore(ajaxOption, domOption, template, callback) { + var method = null, + status = { + loadCount: 2, + loadCountTota: 4, + isPullingData: false, + scrollBottom: 700 + }; + + method = { + /** + * 获取滚动至页面底部的距离 + * @return {Number} 视口底部至页面底部的距离 + */ + getScrollBottom: function() { + var scrollTop = $(window).scrollTop(), + pageHeight = $(document).height(), + windowHeight = $(window).height(); + + return pageHeight - windowHeight - scrollTop; + }, + /** + * 模板引擎 + * @param {String} tpl 模板字符串或包含模板字符串的元素ID + * @param {Object} data 要填充进模板字符串的数据 + * @return {Function | Any} 依据模板生成的函数或生成函数的返回值 + */ + templateEngine: function tplEngine(tpl, data) { + if (/^[a-zA-Z_][\w-_]*$/.test(tpl)) { + // 判断只含有字母数字下划线,则有可能为元素ID + return tplEngine(document.getElementById(tpl).innerHTML, data); + } else { + var reg = /<#([^%>]+)?#>/g, + regOut = /(^( )?(var|if|for|else|switch|case|break|{|}))(.*)?/g, + code = 'var r=[];\n', + cursor = 0, + match = {}, + func = {}; + + var add = function(line, js) { + js ? (code += line.match(regOut) ? line + '\n' : 'r.push(' + line + ');\n') : + (code += line != '' ? 'r.push("' + line.replace(/"/g, '\\"') + '");\n' : ''); + return add; + } + while (match = reg.exec(tpl)) { + add(tpl.slice(cursor, match.index))(match[1], true); + cursor = match.index + match[0].length; + } + add(tpl.substr(cursor, tpl.length - cursor)); + code += 'return r.join("");'; + func = new Function("data", code.replace(/[\r\t\n]/g, '')); + return data ? func(data) : func; + } + }, + searchTextNode: function(elem, text, maxLen) { + var childNodes = null, + i = 0, + len = 0, + elemName = "", + searchElem = ["DIV", "A", "SPAN", "P", "H1", "H2", "H3", "H4", "H5"]; + + if (typeof elem === "string") { + elem = $("<div>" + unescape(elem) + "</div>")[0]; + } + + if (text.length >= maxLen) { + return text; + } + + childNodes = elem.childNodes; + + + for (i = 0, len = childNodes.length; i < len; i++) { + if (childNodes[i].nodeType === 3) { + text += $.trim(childNodes[i].nodeValue); + } else if (childNodes[i].nodeType === 1) { + elemName = childNodes[i].nodeName.toUpperCase(); + if (elemName.indexOf(searchElem) > -1) { + text += method.searchTextNode(childNodes[i], text, maxLen); + } + } + if (text.length >= maxLen) { + return text; + } + } + + return text; + }, + formatDate: function(datetime) { + + var date = new Date(parseInt(datetime) * 1000), + month = date.getMonth(), + monthEN = "", + day = date.getDate(), + year = date.getFullYear(); + + switch (month) { + case 0: + monthEN = "January"; + break; + case 1: + monthEN = "February"; + break; + case 2: + monthEN = "March"; + break; + case 3: + monthEN = "April"; + break; + case 4: + monthEN = "May"; + break; + case 5: + monthEN = "June"; + break; + case 6: + monthEN = "July"; + break; + case 7: + monthEN = "August"; + break; + case 8: + monthEN = "September"; + break; + case 9: + monthEN = "October"; + break; + case 10: + monthEN = "November"; + break; + case 11: + monthEN = "December"; + break; + default: + monthEN = month; + breank; + } + + return monthEN + " " + day + "," + year; + }, + formatStr: function(str, maxLen) { + str = str.length > maxLen ? str.substr(0, maxLen) + "..." : str; + return str; + }, + formatData: function(data) { + var i = 0, + len = 0; + + for (i = 0, len = data.length; i < len; i++) { + if (typeof data[i].title === "string") { + data[i].title = method.formatStr(data[i].title, 33); + } + if (typeof data[i].content === "string") { + data[i].content = method.searchTextNode(data[i].content, "", 100); + } + + if (data[i]["create_time"] !== null && data[i]["create_time"] !== undefined) { + data[i]["create_time"] = method.formatDate(data[i]["create_time"]); + } + + + } + + return data; + } + }; + + + function generateHTML(data) { + var i = 0, + len = 0, + result = ""; + + for (i = 0, len = data.length; i < len; i++) { + result += "<div class=\"fluid-item layout-item tiled\">" + + "<div class=\"image-box\">" + + "<a href=\"/news/detail/id/" + data[i].id + "\" target=\"_blank\" title=\"" + data[i].title + "\">"; + if (parseInt(data[i]["is_video"]) === 1) { + result += "<i class=\"play-icon\"></i>"; + } + result += "<img src=\"" + data[i].thumb + "\" alt=\"\">" + "</a>" + + "</div>" + "<div class=\"item-info\">" + + "<a class=\"fluid-tag item-tag "; + switch (data[i].tag) { + case '品牌资讯': + result += "brand-info"; + break; + case '活动介绍': + result += "activity-intro"; + break; + case '亮点活动': + result += "spotlight-activity"; + break; + case '限量商品': + result += "limited-edition"; + break; + } + result += "\" href=\"/news/index/tag/" + data[i].tag + "\">" + data[i].tag + "</a>" + + "<span class=\"item-time\">" + data[i].create_time + "</span>" + + "</div>" + + "<div class=\"content\">" + + "<h2 class=\"volupia\">" + + "<a href=\"/news/detail/id/" + data[i].id + "\" target=\"_blank\">" + data[i].title + "</a>" + + "</h2>" + + "<p class=\"text-content\"><a href=\"/news/detail/id/" + data[i].id + "\" target=\"_blank\">" + data[i].content + "</a></p>" + + "</div>" + + "</div>"; + } + + return result; + + } + + /** + * ajax成功函数 渲染模板并改变状态 且调用回调函数 + * @param {String} data 成功返回的JSON字符串 + */ + ajaxOption.success = function(dataString) { + var data = JSON.parse(dataString), + elem = null; + + // console.log("ajax请求成功"); + // console.log("JSON数据"); + // console.log(dataString); + + // console.log("JSON数据解析JS对象"); + // console.log(data); + data = method.formatData(data); + + // elem = method.templateEngine(template, data); + elem = generateHTML(data); + $(domOption.parent).append(elem); + + status.loadCount++; + status.isPullingData = false; + + if (typeof callback === "function") { + callback(); + } + } + + /** + * ajax失败函数 + */ + ajaxOption.error = function(err) { + status.loadCount = status.loadCountTota; + console.log(err); + } + + /** + * 发送ajax请求 + * @param {Object} ajaxOption ajax配置对象 + * @param {Object} domOption 页面Dom元素信息 + * @param {String} template 模板字符串 + * @param {Function} callback 回调函数 + */ + function getMoreData(ajaxOption, domOption, template, callback) { + + if (status.isPullingData) { + return; + } + + status.isPullingData = true; + $(domOption.pagination).hide(); + + // console.log("发送ajax请求"); + // console.log("发送数据"); + // console.log(ajaxOption.data); + $.ajax({ + url: ajaxOption.url, + data: ajaxOption.data, + type: ajaxOption.type, + success: ajaxOption.success, + error: ajaxOption.error + }); + } + + $(window).on("scroll", function() { + if (status.loadCount > status.loadCountTota) { + $(domOption.pagination).show(); + return; + } + + if (method.getScrollBottom() > status.scrollBottom) { + return; + } + + if (status.isPullingData) { + return; + } + + ajaxOption.data.type = status.loadCount; + + getMoreData(ajaxOption, domOption, template, callback); + + event.preventDefault(); + event.stopPropagation(); + return false; + }); + } + + /** + * 当页面下拉到底部的时候、加载更多数据 + */ + ({ + ajaxOption: { + url: "/default/LoadNews", + // url: "/", + type: "post", + data: { + page: (function() { + var pathname = window.location.pathname.split("/"); + pos = Array.prototype.indexOf.call(pathname, "page") + 1; + + if (pos < 1) { + return 1; + } else { + return pathname[pos]; + } + }()) + } + }, + + domOption: { + parent: "#index_content", + // parent: ".main-layout", + pagination: "#pageContent", + }, + + template: "<#for (var i = 0, len = data.length; i < len; i++) {#>" + "<div class=\"fluid-item layout-item tiled\">" + "<div class=\"image-box\">" + "<a href=\"/news/detail/id/<#data[i].id#>\" target=\"_blank\" title=\"<#data[i].title#>\">" + "<img src=\"<#data[i].thumb#>\" alt=\"\">" + "</a>" + "</div>" + "<div class=\"item-info\">" + "<a class=\"fluid-tag item-tag " + "<#switch (data[i].tag) {" + "case '品牌资讯':" + "#>brand-info<#" + "break;" + "case '活动介绍':" + "#>activity-intro<#" + "break;" + "case '亮点活动':" + "#>spotlight-activity<#" + "break;" + "case '限量商品':" + "#>limited-edition<#" + "break;" + "}#>\" href=\"/news/index/tag/<#data[i].tag#>\"><#data[i].tag#></a>" + "<span class=\"item-time\"><#data[i].create_time#></span>" + "</div>" + "<div class=\"content\">" + "<h2 class=\"volupia\">" + "<a href=\"/news/detail/id/<#data[i].id#>\" target=\"_blank\"><#data[i].title#></a>" + "</h2>" + "<p class=\"text-content\"><a href=\"/news/detail/id/<#data[i].id#>\" target=\"_blank\"><#data[i].content#></a></p>" + "</div>" + "</div>" + "<#}#>", + + callback: function() { + setLayout(); // 格式化标题和内容显示的行数 + (function() { + var $mainLayout = $(".main-layout"), + i = 0, + len = 0; + + for (i = 0, len = $mainLayout.length; i < len; i++) { + formatLayoutItemStyle($mainLayout[i]); + } + })(); + + }, + + init: function() { + if ($("#index_content").size() > 0) { + pageLoadMore(this.ajaxOption, this.domOption, this.template, this.callback); + } + } + }).init(); + + }; + //品牌 + exports.brand = function() { + /** + * 关于品牌点击弹窗事件 + */ + ({ + init: function() { + // 点击品牌图标、弹窗显示品牌信息 + $('.brand-list').on('click', 'li', function() { + if ($(this).find('.brand-introduction').size() > 0) { + $(this).find('.brand-introduction').show(); + $('.overlay').show(); + } + }); + + // 点击遮罩层、关闭modal窗 + $('.overlay').on('click', function() { + $(this).hide(); + $('.brand-introduction').hide(); + }); + + // 点击关闭按钮、关闭modal窗 + $('.brand-introduction .close-tag').on('click', function(event) { + event.preventDefault(); + event.stopPropagation(); + $('.overlay').hide(); + $('.brand-introduction').hide(); + }); + } + }).init(); + + }; + //资讯 + exports.news = function() { + setLayout(); + }; + + //detail页面 + exports.detail = function() { + var timer, + nowIndex, + detailSwiper; + + var relatedTop, + relatedPost, + relatedH, + maxH; + //详情页图片滚动 + if ($('.detail-slide').size() > 0) { + //slide大图上的左右箭头显示 + $('.slide-shadow').on('mouseover', 'a', function() { + if ($(this).hasClass('slide-shadow-prev')) { + $('.slide-big-ctrl-prev').show(); + } else { + $('.slide-big-ctrl-next').show(); + } + }).on('mouseout', 'a', function() { + $('.slide-big-ctrl-prev, .slide-big-ctrl-next').hide(); + }); + $('.detail-slide-body').on('mouseout', function() { + $('.slide-big-ctrl-prev, .slide-big-ctrl-next').hide(); + }); + $('.detail-slide-big-ctrl').on('mouseenter', 'a', function() { + $(this).show(); + }); + + detailSwiper = new swiper('.detail-slide-body', { + wrapperClass: 'detail-slide-piclist', + slideClass: 'box', + loop: true, + slidesPerView: 'auto', + slideElement: 'li', + loopedSlides: $(".detail-slide-ctrl-tabs").find(".box").size() + }); + + $('.slide-big-ctrl-prev').bind('click', function(e) { + e.preventDefault(); + detailSwiper.swipePrev(); + }); + $('.slide-big-ctrl-next').bind('click', function(e) { + e.preventDefault(); + detailSwiper.swipeNext(); + }); + + $('.detail-slide-ctrl-tabs').slider(); + $('.detail-slide-big-ctrl').on('click', 'a', function() { + $('.detail-slide-ctrl-tabs').slider('slideTo', detailSwiper.activeLoopIndex); + }); + $('.detail-slide-ctrl-tabs').on('click', 'li', function() { + detailSwiper.swipeTo($(this).index()); + }); + + ({ + detialImgZoom: $('.detail-slide-body').find('.box').each(function() { + $(this).imgZoom({ + imgTag: 'pic-tip', + }); + }), + + init: function() { + $(".img-zoom-ctrl-prev").on("click", function(event) { + event.preventDefault(); + $('.slide-big-ctrl-prev').click(); + $(".detail-slide-body .swiper-slide-active").find("img").click(); + }); + $(".img-zoom-ctrl-next").on("click", function(event) { + event.preventDefault(); + $('.slide-big-ctrl-next').click(); + $(".detail-slide-body .swiper-slide-active").find("img").click(); + }); + } + }).init(); + }; + + + + + + /** + * 详情页面侧边栏 最新信息 切换 + */ + ({ + /** + * setIimeout编号 以便清除 + * @type {Number} + */ + setTimeoutNum: 0, + + /** + * 自动切换时间 + * @type {Number} + */ + autoSwitchTime: 5000, + + /** + * 自动切换标签 + * @return {Undefined} + */ + autoSwitch: function() { + $('.side-related-tab').find('a').each(function(i) { + if ($(this).hasClass('current')) { + $(this).removeClass('current'); + } else { + $(this).addClass('current'); + $('.side-related-list').hide().eq(i).show(); + } + }); + + this.setTimeoutNum = setTimeout(this.autoSwitch, this.autoSwitchTime); + }, + + init: function() { + var that = this; + + // 鼠标移入 停止自动切换 移出 开始自动切换 + $('.side-related-post').on('mouseenter', function() { + clearTimeout(that.setTimeoutNum); + }).on('mouseleave', function() { + that.autoSwitch(); + }); + + // 点击标签 切换信息 + $('.side-related-tab').on('click', 'a', function() { + nowIndex = $(this).index(".side-related-tab a"); + if ($(this).hasClass('current')) { + return; + } + $(this).addClass('current').siblings().removeClass('current'); + $('.side-related-list').hide().eq(nowIndex).show(); + }); + + // 开始自动切换 + this.autoSwitch(); + } + }).init(); + + }; + + //exports.siteActivity = function() { + // $('.site-activity-content').find('.layout-item').each(function() { + // $(this).imgZoom({ + // imgTag: 'pic-tip' + // }); + // }); + // + // //活动日期定位 + // var tabTop = $('.site-activity-tab').offset().top - 10, + // oTab = $('.site-activity-tab'), + // mainBodyOffsetTop, + // mainBodyHeight, + // tabOffsetHeightTop, + // distance, + // eleTop, + // tabPositionTop; + // $(window).on('scroll', function() { + // if (tabTop <= $(this).scrollTop()) { + // $('.site-activity-tab').css({ + // "position": "fixed", + // "top": "0", + // "left": "50%", + // "width": "134px", + // "marginLeft": "356px", + // "marginTop": "10px" + // }) + // + // + // mainBodyOffsetTop = $('.bd').offset().top; + // mainBodyHeight = $('.bd').outerHeight(); + // tabOffsetHeightTop = oTab.offset().top + oTab.outerHeight(); + // distance = mainBodyHeight + mainBodyOffsetTop; + // eleTop = distance - oTab.outerHeight(); + // tabPositionTop = 10; + // + // if (tabOffsetHeightTop >= distance) { + // oTab.css({ + // 'position': 'absolute', + // 'top': eleTop - tabPositionTop - 10 + // }); + // } + // if (oTab.offset().top - $(window).scrollTop() > tabPositionTop) { + // oTab.css({ + // 'position': 'fixed', + // 'top': tabPositionTop + // }); + // } + // } else { + // $('.site-activity-tab').removeAttr('style'); + // }; + // }); + //}; + + //show页面 + exports.show = function() { + $(".look_big_image").bind("click", function(event) { + var divName = '#mask'; + var sourceImage = $(this).attr("source"); + var imageWidth = parseInt($(divName).children().attr("width")); + var imageHeight = parseInt($(divName).children().attr("height")); + $(divName).html('<img src="' + sourceImage + '" width="' + imageWidth + '" height="' + imageHeight + '" />').attr("current_class", $(this).parent().attr("class")); + var top = ($(window).height() - imageHeight) / 2; + var left = ($(window).width() - imageWidth) / 2; + var scrollTop = 0; //$(document).scrollTop(); + var scrollLeft = 0; //$(document).scrollLeft(); + $(divName).css({ + position: 'absolute', + 'top': top + scrollTop, + left: left + scrollLeft + }); + $(".model").show(); + if (left - 75 > 10) { + $(".image-prev").css("left", left - 75); + $(".image-next").css("right", left - 75); + } + $.each($(this).parents("span").children("span"), function(index, dom) { + var style_top = parseInt($(dom).attr("x")) / 10000 * imageHeight; + var style_left = parseInt($(dom).attr("y")) / 10000 * imageWidth; + $(divName).append('<a class="pic-tip" style="left:' + style_left + 'px;top:' + style_top + 'px;">' + $(dom).attr("label") + '</a>') + }); + event.stopPropagation(); + }); + $(".ui-dialog-close").bind("click", function(event) { + $(".model").hide(); + event.stopPropagation(); + }); + $('.show-wrap').find('.layout-item').each(function() { + $(this).imgZoom({ + imgTag: 'pic-tip' + }); + }); + + } +}); diff --git a/res/js/lib/jquery.uploadify.js b/res/js/lib/jquery.uploadify.js new file mode 100644 index 0000000..11200b4 --- /dev/null +++ b/res/js/lib/jquery.uploadify.js @@ -0,0 +1,990 @@ +/* +SWFObject v2.2 <http://code.google.com/p/swfobject/> +is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> +*/ +;var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null; +if(typeof t.plugins!=D&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true; +X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10); +ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0;}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version"); +if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)];}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}; +}(),k=function(){if(!M.w3){return;}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f(); +}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false);}if(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee); +f();}});if(O==top){(function(){if(J){return;}try{j.documentElement.doScroll("left");}catch(X){setTimeout(arguments.callee,0);return;}f();})();}}if(M.wk){(function(){if(J){return; +}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return;}f();})();}s(f);}}();function f(){if(J){return;}try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span")); +Z.parentNode.removeChild(Z);}catch(aa){return;}J=true;var X=U.length;for(var Y=0;Y<X;Y++){U[Y]();}}function K(X){if(J){X();}else{U[U.length]=X;}}function s(Y){if(typeof O.addEventListener!=D){O.addEventListener("load",Y,false); +}else{if(typeof j.addEventListener!=D){j.addEventListener("load",Y,false);}else{if(typeof O.attachEvent!=D){i(O,"onload",Y);}else{if(typeof O.onload=="function"){var X=O.onload; +O.onload=function(){X();Y();};}else{O.onload=Y;}}}}}function h(){if(T){V();}else{H();}}function V(){var X=j.getElementsByTagName("body")[0];var aa=C(r); +aa.setAttribute("type",q);var Z=X.appendChild(aa);if(Z){var Y=0;(function(){if(typeof Z.GetVariable!=D){var ab=Z.GetVariable("$version");if(ab){ab=ab.split(" ")[1].split(","); +M.pv=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)];}}else{if(Y<10){Y++;setTimeout(arguments.callee,10);return;}}X.removeChild(aa);Z=null;H(); +})();}else{H();}}function H(){var ag=o.length;if(ag>0){for(var af=0;af<ag;af++){var Y=o[af].id;var ab=o[af].callbackFn;var aa={success:false,id:Y};if(M.pv[0]>0){var ae=c(Y); +if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa);}}else{if(o[af].expressInstall&&A()){var ai={};ai.data=o[af].expressInstall; +ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class");}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align"); +}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad<ac;ad++){if(X[ad].getAttribute("name").toLowerCase()!="movie"){ah[X[ad].getAttribute("name")]=X[ad].getAttribute("value"); +}}P(ai,ah,Y,ab);}else{p(ae);if(ab){ab(aa);}}}}}else{w(Y,true);if(ab){var Z=z(Y);if(Z&&typeof Z.SetVariable!=D){aa.success=true;aa.ref=Z;}ab(aa);}}}}}function z(aa){var X=null; +var Y=c(aa);if(Y&&Y.nodeName=="OBJECT"){if(typeof Y.SetVariable!=D){X=Y;}else{var Z=Y.getElementsByTagName(r)[0];if(Z){X=Z;}}}return X;}function A(){return !a&&F("6.0.65")&&(M.win||M.mac)&&!(M.wk&&M.wk<312); +}function P(aa,ab,X,Z){a=true;E=Z||null;B={success:false,id:X};var ae=c(X);if(ae){if(ae.nodeName=="OBJECT"){l=g(ae);Q=null;}else{l=ae;Q=X;}aa.id=R;if(typeof aa.width==D||(!/%$/.test(aa.width)&&parseInt(aa.width,10)<310)){aa.width="310"; +}if(typeof aa.height==D||(!/%$/.test(aa.height)&&parseInt(aa.height,10)<137)){aa.height="137";}j.title=j.title.slice(0,47)+" - Flash Player Installation"; +var ad=M.ie&&M.win?"ActiveX":"PlugIn",ac="MMredirectURL="+O.location.toString().replace(/&/g,"%26")+"&MMplayerType="+ad+"&MMdoctitle="+j.title;if(typeof ab.flashvars!=D){ab.flashvars+="&"+ac; +}else{ab.flashvars=ac;}if(M.ie&&M.win&&ae.readyState!=4){var Y=C("div");X+="SWFObjectNew";Y.setAttribute("id",X);ae.parentNode.insertBefore(Y,ae);ae.style.display="none"; +(function(){if(ae.readyState==4){ae.parentNode.removeChild(ae);}else{setTimeout(arguments.callee,10);}})();}u(aa,ab,X);}}function p(Y){if(M.ie&&M.win&&Y.readyState!=4){var X=C("div"); +Y.parentNode.insertBefore(X,Y);X.parentNode.replaceChild(g(Y),X);Y.style.display="none";(function(){if(Y.readyState==4){Y.parentNode.removeChild(Y);}else{setTimeout(arguments.callee,10); +}})();}else{Y.parentNode.replaceChild(g(Y),Y);}}function g(ab){var aa=C("div");if(M.win&&M.ie){aa.innerHTML=ab.innerHTML;}else{var Y=ab.getElementsByTagName(r)[0]; +if(Y){var ad=Y.childNodes;if(ad){var X=ad.length;for(var Z=0;Z<X;Z++){if(!(ad[Z].nodeType==1&&ad[Z].nodeName=="PARAM")&&!(ad[Z].nodeType==8)){aa.appendChild(ad[Z].cloneNode(true)); +}}}}}return aa;}function u(ai,ag,Y){var X,aa=c(Y);if(M.wk&&M.wk<312){return X;}if(aa){if(typeof ai.id==D){ai.id=Y;}if(M.ie&&M.win){var ah="";for(var ae in ai){if(ai[ae]!=Object.prototype[ae]){if(ae.toLowerCase()=="data"){ag.movie=ai[ae]; +}else{if(ae.toLowerCase()=="styleclass"){ah+=' class="'+ai[ae]+'"';}else{if(ae.toLowerCase()!="classid"){ah+=" "+ae+'="'+ai[ae]+'"';}}}}}var af="";for(var ad in ag){if(ag[ad]!=Object.prototype[ad]){af+='<param name="'+ad+'" value="'+ag[ad]+'" />'; +}}aa.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ah+">"+af+"</object>";N[N.length]=ai.id;X=c(ai.id);}else{var Z=C(r);Z.setAttribute("type",q); +for(var ac in ai){if(ai[ac]!=Object.prototype[ac]){if(ac.toLowerCase()=="styleclass"){Z.setAttribute("class",ai[ac]);}else{if(ac.toLowerCase()!="classid"){Z.setAttribute(ac,ai[ac]); +}}}}for(var ab in ag){if(ag[ab]!=Object.prototype[ab]&&ab.toLowerCase()!="movie"){e(Z,ab,ag[ab]);}}aa.parentNode.replaceChild(Z,aa);X=Z;}}return X;}function e(Z,X,Y){var aa=C("param"); +aa.setAttribute("name",X);aa.setAttribute("value",Y);Z.appendChild(aa);}function y(Y){var X=c(Y);if(X&&X.nodeName=="OBJECT"){if(M.ie&&M.win){X.style.display="none"; +(function(){if(X.readyState==4){b(Y);}else{setTimeout(arguments.callee,10);}})();}else{X.parentNode.removeChild(X);}}}function b(Z){var Y=c(Z);if(Y){for(var X in Y){if(typeof Y[X]=="function"){Y[X]=null; +}}Y.parentNode.removeChild(Y);}}function c(Z){var X=null;try{X=j.getElementById(Z);}catch(Y){}return X;}function C(X){return j.createElement(X);}function i(Z,X,Y){Z.attachEvent(X,Y); +I[I.length]=[Z,X,Y];}function F(Z){var Y=M.pv,X=Z.split(".");X[0]=parseInt(X[0],10);X[1]=parseInt(X[1],10)||0;X[2]=parseInt(X[2],10)||0;return(Y[0]>X[0]||(Y[0]==X[0]&&Y[1]>X[1])||(Y[0]==X[0]&&Y[1]==X[1]&&Y[2]>=X[2]))?true:false; +}function v(ac,Y,ad,ab){if(M.ie&&M.mac){return;}var aa=j.getElementsByTagName("head")[0];if(!aa){return;}var X=(ad&&typeof ad=="string")?ad:"screen";if(ab){n=null; +G=null;}if(!n||G!=X){var Z=C("style");Z.setAttribute("type","text/css");Z.setAttribute("media",X);n=aa.appendChild(Z);if(M.ie&&M.win&&typeof j.styleSheets!=D&&j.styleSheets.length>0){n=j.styleSheets[j.styleSheets.length-1]; +}G=X;}if(M.ie&&M.win){if(n&&typeof n.addRule==r){n.addRule(ac,Y);}}else{if(n&&typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+" {"+Y+"}")); +}}}function w(Z,X){if(!m){return;}var Y=X?"visible":"hidden";if(J&&c(Z)){c(Z).style.visibility=Y;}else{v("#"+Z,"visibility:"+Y);}}function L(Y){var Z=/[\\\"<>\.;]/; +var X=Z.exec(Y)!=null;return X&&typeof encodeURIComponent!=D?encodeURIComponent(Y):Y;}var d=function(){if(M.ie&&M.win){window.attachEvent("onunload",function(){var ac=I.length; +for(var ab=0;ab<ac;ab++){I[ab][0].detachEvent(I[ab][1],I[ab][2]);}var Z=N.length;for(var aa=0;aa<Z;aa++){y(N[aa]);}for(var Y in M){M[Y]=null;}M=null;for(var X in swfobject){swfobject[X]=null; +}swfobject=null;});}}();return{registerObject:function(ab,X,aa,Z){if(M.w3&&ab&&X){var Y={};Y.id=ab;Y.swfVersion=X;Y.expressInstall=aa;Y.callbackFn=Z;o[o.length]=Y; +w(ab,false);}else{if(Z){Z({success:false,id:ab});}}},getObjectById:function(X){if(M.w3){return z(X);}},embedSWF:function(ab,ah,ae,ag,Y,aa,Z,ad,af,ac){var X={success:false,id:ah}; +if(M.w3&&!(M.wk&&M.wk<312)&&ab&&ah&&ae&&ag&&Y){w(ah,false);K(function(){ae+="";ag+="";var aj={};if(af&&typeof af===r){for(var al in af){aj[al]=af[al];}}aj.data=ab; +aj.width=ae;aj.height=ag;var am={};if(ad&&typeof ad===r){for(var ak in ad){am[ak]=ad[ak];}}if(Z&&typeof Z===r){for(var ai in Z){if(typeof am.flashvars!=D){am.flashvars+="&"+ai+"="+Z[ai]; +}else{am.flashvars=ai+"="+Z[ai];}}}if(F(Y)){var an=u(aj,am,ah);if(aj.id==ah){w(ah,true);}X.success=true;X.ref=an;}else{if(aa&&A()){aj.data=aa;P(aj,am,ah,ac); +return;}else{w(ah,true);}}if(ac){ac(X);}});}else{if(ac){ac(X);}}},switchOffAutoHideShow:function(){m=false;},ua:M,getFlashPlayerVersion:function(){return{major:M.pv[0],minor:M.pv[1],release:M.pv[2]}; +},hasFlashPlayerVersion:F,createSWF:function(Z,Y,X){if(M.w3){return u(Z,Y,X);}else{return undefined;}},showExpressInstall:function(Z,aa,X,Y){if(M.w3&&A()){P(Z,aa,X,Y); +}},removeSWF:function(X){if(M.w3){y(X);}},createCSS:function(aa,Z,Y,X){if(M.w3){v(aa,Z,Y,X);}},addDomLoadEvent:K,addLoadEvent:s,getQueryParamValue:function(aa){var Z=j.location.search||j.location.hash; +if(Z){if(/\?/.test(Z)){Z=Z.split("?")[1];}if(aa==null){return L(Z);}var Y=Z.split("&");for(var X=0;X<Y.length;X++){if(Y[X].substring(0,Y[X].indexOf("="))==aa){return L(Y[X].substring((Y[X].indexOf("=")+1))); +}}}return"";},expressInstallCallback:function(){if(a){var X=c(R);if(X&&l){X.parentNode.replaceChild(l,X);if(Q){w(Q,true);if(M.ie&&M.win){l.style.display="block"; +}}if(E){E(B);}}a=false;}}};}(); + +/* +SWFUpload: http://www.swfupload.org, http://swfupload.googlecode.com + +mmSWFUpload 1.0: Flash upload dialog - http://profandesign.se/swfupload/, http://www.vinterwebb.se/ + +SWFUpload is (c) 2006-2007 Lars Huring, Olov Nilzén and Mammon Media and is released under the MIT License: +http://www.opensource.org/licenses/mit-license.php + +SWFUpload 2 is (c) 2007-2008 Jake Roberts and is released under the MIT License: +http://www.opensource.org/licenses/mit-license.php +*/ + +var SWFUpload;if(SWFUpload==undefined){SWFUpload=function(a){this.initSWFUpload(a)}}SWFUpload.prototype.initSWFUpload=function(b){try{this.customSettings={};this.settings=b;this.eventQueue=[];this.movieName="SWFUpload_"+SWFUpload.movieCount++;this.movieElement=null;SWFUpload.instances[this.movieName]=this;this.initSettings();this.loadFlash();this.displayDebugInfo()}catch(a){delete SWFUpload.instances[this.movieName];throw a}};SWFUpload.instances={};SWFUpload.movieCount=0;SWFUpload.version="2.2.0 2009-03-25";SWFUpload.QUEUE_ERROR={QUEUE_LIMIT_EXCEEDED:-100,FILE_EXCEEDS_SIZE_LIMIT:-110,ZERO_BYTE_FILE:-120,INVALID_FILETYPE:-130};SWFUpload.UPLOAD_ERROR={HTTP_ERROR:-200,MISSING_UPLOAD_URL:-210,IO_ERROR:-220,SECURITY_ERROR:-230,UPLOAD_LIMIT_EXCEEDED:-240,UPLOAD_FAILED:-250,SPECIFIED_FILE_ID_NOT_FOUND:-260,FILE_VALIDATION_FAILED:-270,FILE_CANCELLED:-280,UPLOAD_STOPPED:-290};SWFUpload.FILE_STATUS={QUEUED:-1,IN_PROGRESS:-2,ERROR:-3,COMPLETE:-4,CANCELLED:-5};SWFUpload.BUTTON_ACTION={SELECT_FILE:-100,SELECT_FILES:-110,START_UPLOAD:-120};SWFUpload.CURSOR={ARROW:-1,HAND:-2};SWFUpload.WINDOW_MODE={WINDOW:"window",TRANSPARENT:"transparent",OPAQUE:"opaque"};SWFUpload.completeURL=function(a){if(typeof(a)!=="string"||a.match(/^https?:\/\//i)||a.match(/^\//)){return a}var c=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"");var b=window.location.pathname.lastIndexOf("/");if(b<=0){path="/"}else{path=window.location.pathname.substr(0,b)+"/"}return path+a};SWFUpload.prototype.initSettings=function(){this.ensureDefault=function(b,a){this.settings[b]=(this.settings[b]==undefined)?a:this.settings[b]};this.ensureDefault("upload_url","");this.ensureDefault("preserve_relative_urls",false);this.ensureDefault("file_post_name","Filedata");this.ensureDefault("post_params",{});this.ensureDefault("use_query_string",false);this.ensureDefault("requeue_on_error",false);this.ensureDefault("http_success",[]);this.ensureDefault("assume_success_timeout",0);this.ensureDefault("file_types","*.*");this.ensureDefault("file_types_description","All Files");this.ensureDefault("file_size_limit",0);this.ensureDefault("file_upload_limit",0);this.ensureDefault("file_queue_limit",0);this.ensureDefault("flash_url","swfupload.swf");this.ensureDefault("prevent_swf_caching",true);this.ensureDefault("button_image_url","");this.ensureDefault("button_width",1);this.ensureDefault("button_height",1);this.ensureDefault("button_text","");this.ensureDefault("button_text_style","color: #000000; font-size: 16pt;");this.ensureDefault("button_text_top_padding",0);this.ensureDefault("button_text_left_padding",0);this.ensureDefault("button_action",SWFUpload.BUTTON_ACTION.SELECT_FILES);this.ensureDefault("button_disabled",false);this.ensureDefault("button_placeholder_id","");this.ensureDefault("button_placeholder",null);this.ensureDefault("button_cursor",SWFUpload.CURSOR.ARROW);this.ensureDefault("button_window_mode",SWFUpload.WINDOW_MODE.WINDOW);this.ensureDefault("debug",false);this.settings.debug_enabled=this.settings.debug;this.settings.return_upload_start_handler=this.returnUploadStart;this.ensureDefault("swfupload_loaded_handler",null);this.ensureDefault("file_dialog_start_handler",null);this.ensureDefault("file_queued_handler",null);this.ensureDefault("file_queue_error_handler",null);this.ensureDefault("file_dialog_complete_handler",null);this.ensureDefault("upload_start_handler",null);this.ensureDefault("upload_progress_handler",null);this.ensureDefault("upload_error_handler",null);this.ensureDefault("upload_success_handler",null);this.ensureDefault("upload_complete_handler",null);this.ensureDefault("debug_handler",this.debugMessage);this.ensureDefault("custom_settings",{});this.customSettings=this.settings.custom_settings;if(!!this.settings.prevent_swf_caching){this.settings.flash_url=this.settings.flash_url+(this.settings.flash_url.indexOf("?")<0?"?":"&")+"preventswfcaching="+new Date().getTime()}if(!this.settings.preserve_relative_urls){this.settings.upload_url=SWFUpload.completeURL(this.settings.upload_url);this.settings.button_image_url=SWFUpload.completeURL(this.settings.button_image_url)}delete this.ensureDefault};SWFUpload.prototype.loadFlash=function(){var a,b;if(document.getElementById(this.movieName)!==null){throw"ID "+this.movieName+" is already in use. The Flash Object could not be added"}a=document.getElementById(this.settings.button_placeholder_id)||this.settings.button_placeholder;if(a==undefined){throw"Could not find the placeholder element: "+this.settings.button_placeholder_id}b=document.createElement("div");b.innerHTML=this.getFlashHTML();a.parentNode.replaceChild(b.firstChild,a);if(window[this.movieName]==undefined){window[this.movieName]=this.getMovieElement()}};SWFUpload.prototype.getFlashHTML=function(){return['<object id="',this.movieName,'" type="application/x-shockwave-flash" data="',this.settings.flash_url,'" width="',this.settings.button_width,'" height="',this.settings.button_height,'" class="swfupload">','<param name="wmode" value="',this.settings.button_window_mode,'" />','<param name="movie" value="',this.settings.flash_url,'" />','<param name="quality" value="high" />','<param name="menu" value="false" />','<param name="allowScriptAccess" value="always" />','<param name="flashvars" value="'+this.getFlashVars()+'" />',"</object>"].join("")};SWFUpload.prototype.getFlashVars=function(){var b=this.buildParamString();var a=this.settings.http_success.join(",");return["movieName=",encodeURIComponent(this.movieName),"&uploadURL=",encodeURIComponent(this.settings.upload_url),"&useQueryString=",encodeURIComponent(this.settings.use_query_string),"&requeueOnError=",encodeURIComponent(this.settings.requeue_on_error),"&httpSuccess=",encodeURIComponent(a),"&assumeSuccessTimeout=",encodeURIComponent(this.settings.assume_success_timeout),"&params=",encodeURIComponent(b),"&filePostName=",encodeURIComponent(this.settings.file_post_name),"&fileTypes=",encodeURIComponent(this.settings.file_types),"&fileTypesDescription=",encodeURIComponent(this.settings.file_types_description),"&fileSizeLimit=",encodeURIComponent(this.settings.file_size_limit),"&fileUploadLimit=",encodeURIComponent(this.settings.file_upload_limit),"&fileQueueLimit=",encodeURIComponent(this.settings.file_queue_limit),"&debugEnabled=",encodeURIComponent(this.settings.debug_enabled),"&buttonImageURL=",encodeURIComponent(this.settings.button_image_url),"&buttonWidth=",encodeURIComponent(this.settings.button_width),"&buttonHeight=",encodeURIComponent(this.settings.button_height),"&buttonText=",encodeURIComponent(this.settings.button_text),"&buttonTextTopPadding=",encodeURIComponent(this.settings.button_text_top_padding),"&buttonTextLeftPadding=",encodeURIComponent(this.settings.button_text_left_padding),"&buttonTextStyle=",encodeURIComponent(this.settings.button_text_style),"&buttonAction=",encodeURIComponent(this.settings.button_action),"&buttonDisabled=",encodeURIComponent(this.settings.button_disabled),"&buttonCursor=",encodeURIComponent(this.settings.button_cursor)].join("")};SWFUpload.prototype.getMovieElement=function(){if(this.movieElement==undefined){this.movieElement=document.getElementById(this.movieName)}if(this.movieElement===null){throw"Could not find Flash element"}return this.movieElement};SWFUpload.prototype.buildParamString=function(){var c=this.settings.post_params;var b=[];if(typeof(c)==="object"){for(var a in c){if(c.hasOwnProperty(a)){b.push(encodeURIComponent(a.toString())+"="+encodeURIComponent(c[a].toString()))}}}return b.join("&")};SWFUpload.prototype.destroy=function(){try{this.cancelUpload(null,false);var a=null;a=this.getMovieElement();if(a&&typeof(a.CallFunction)==="unknown"){for(var c in a){try{if(typeof(a[c])==="function"){a[c]=null}}catch(e){}}try{a.parentNode.removeChild(a)}catch(b){}}window[this.movieName]=null;SWFUpload.instances[this.movieName]=null;delete SWFUpload.instances[this.movieName];this.movieElement=null;this.settings=null;this.customSettings=null;this.eventQueue=null;this.movieName=null;return true}catch(d){return false}};SWFUpload.prototype.displayDebugInfo=function(){this.debug(["---SWFUpload Instance Info---\n","Version: ",SWFUpload.version,"\n","Movie Name: ",this.movieName,"\n","Settings:\n","\t","upload_url: ",this.settings.upload_url,"\n","\t","flash_url: ",this.settings.flash_url,"\n","\t","use_query_string: ",this.settings.use_query_string.toString(),"\n","\t","requeue_on_error: ",this.settings.requeue_on_error.toString(),"\n","\t","http_success: ",this.settings.http_success.join(", "),"\n","\t","assume_success_timeout: ",this.settings.assume_success_timeout,"\n","\t","file_post_name: ",this.settings.file_post_name,"\n","\t","post_params: ",this.settings.post_params.toString(),"\n","\t","file_types: ",this.settings.file_types,"\n","\t","file_types_description: ",this.settings.file_types_description,"\n","\t","file_size_limit: ",this.settings.file_size_limit,"\n","\t","file_upload_limit: ",this.settings.file_upload_limit,"\n","\t","file_queue_limit: ",this.settings.file_queue_limit,"\n","\t","debug: ",this.settings.debug.toString(),"\n","\t","prevent_swf_caching: ",this.settings.prevent_swf_caching.toString(),"\n","\t","button_placeholder_id: ",this.settings.button_placeholder_id.toString(),"\n","\t","button_placeholder: ",(this.settings.button_placeholder?"Set":"Not Set"),"\n","\t","button_image_url: ",this.settings.button_image_url.toString(),"\n","\t","button_width: ",this.settings.button_width.toString(),"\n","\t","button_height: ",this.settings.button_height.toString(),"\n","\t","button_text: ",this.settings.button_text.toString(),"\n","\t","button_text_style: ",this.settings.button_text_style.toString(),"\n","\t","button_text_top_padding: ",this.settings.button_text_top_padding.toString(),"\n","\t","button_text_left_padding: ",this.settings.button_text_left_padding.toString(),"\n","\t","button_action: ",this.settings.button_action.toString(),"\n","\t","button_disabled: ",this.settings.button_disabled.toString(),"\n","\t","custom_settings: ",this.settings.custom_settings.toString(),"\n","Event Handlers:\n","\t","swfupload_loaded_handler assigned: ",(typeof this.settings.swfupload_loaded_handler==="function").toString(),"\n","\t","file_dialog_start_handler assigned: ",(typeof this.settings.file_dialog_start_handler==="function").toString(),"\n","\t","file_queued_handler assigned: ",(typeof this.settings.file_queued_handler==="function").toString(),"\n","\t","file_queue_error_handler assigned: ",(typeof this.settings.file_queue_error_handler==="function").toString(),"\n","\t","upload_start_handler assigned: ",(typeof this.settings.upload_start_handler==="function").toString(),"\n","\t","upload_progress_handler assigned: ",(typeof this.settings.upload_progress_handler==="function").toString(),"\n","\t","upload_error_handler assigned: ",(typeof this.settings.upload_error_handler==="function").toString(),"\n","\t","upload_success_handler assigned: ",(typeof this.settings.upload_success_handler==="function").toString(),"\n","\t","upload_complete_handler assigned: ",(typeof this.settings.upload_complete_handler==="function").toString(),"\n","\t","debug_handler assigned: ",(typeof this.settings.debug_handler==="function").toString(),"\n"].join(""))};SWFUpload.prototype.addSetting=function(b,c,a){if(c==undefined){return(this.settings[b]=a)}else{return(this.settings[b]=c)}};SWFUpload.prototype.getSetting=function(a){if(this.settings[a]!=undefined){return this.settings[a]}return""};SWFUpload.prototype.callFlash=function(functionName,argumentArray){argumentArray=argumentArray||[];var movieElement=this.getMovieElement();var returnValue,returnString;try{returnString=movieElement.CallFunction('<invoke name="'+functionName+'" returntype="javascript">'+__flash__argumentsToXML(argumentArray,0)+"</invoke>");returnValue=eval(returnString)}catch(ex){throw"Call to "+functionName+" failed"}if(returnValue!=undefined&&typeof returnValue.post==="object"){returnValue=this.unescapeFilePostParams(returnValue)}return returnValue};SWFUpload.prototype.selectFile=function(){this.callFlash("SelectFile")};SWFUpload.prototype.selectFiles=function(){this.callFlash("SelectFiles")};SWFUpload.prototype.startUpload=function(a){this.callFlash("StartUpload",[a])};SWFUpload.prototype.cancelUpload=function(a,b){if(b!==false){b=true}this.callFlash("CancelUpload",[a,b])};SWFUpload.prototype.stopUpload=function(){this.callFlash("StopUpload")};SWFUpload.prototype.getStats=function(){return this.callFlash("GetStats")};SWFUpload.prototype.setStats=function(a){this.callFlash("SetStats",[a])};SWFUpload.prototype.getFile=function(a){if(typeof(a)==="number"){return this.callFlash("GetFileByIndex",[a])}else{return this.callFlash("GetFile",[a])}};SWFUpload.prototype.addFileParam=function(a,b,c){return this.callFlash("AddFileParam",[a,b,c])};SWFUpload.prototype.removeFileParam=function(a,b){this.callFlash("RemoveFileParam",[a,b])};SWFUpload.prototype.setUploadURL=function(a){this.settings.upload_url=a.toString();this.callFlash("SetUploadURL",[a])};SWFUpload.prototype.setPostParams=function(a){this.settings.post_params=a;this.callFlash("SetPostParams",[a])};SWFUpload.prototype.addPostParam=function(a,b){this.settings.post_params[a]=b;this.callFlash("SetPostParams",[this.settings.post_params])};SWFUpload.prototype.removePostParam=function(a){delete this.settings.post_params[a];this.callFlash("SetPostParams",[this.settings.post_params])};SWFUpload.prototype.setFileTypes=function(a,b){this.settings.file_types=a;this.settings.file_types_description=b;this.callFlash("SetFileTypes",[a,b])};SWFUpload.prototype.setFileSizeLimit=function(a){this.settings.file_size_limit=a;this.callFlash("SetFileSizeLimit",[a])};SWFUpload.prototype.setFileUploadLimit=function(a){this.settings.file_upload_limit=a;this.callFlash("SetFileUploadLimit",[a])};SWFUpload.prototype.setFileQueueLimit=function(a){this.settings.file_queue_limit=a;this.callFlash("SetFileQueueLimit",[a])};SWFUpload.prototype.setFilePostName=function(a){this.settings.file_post_name=a;this.callFlash("SetFilePostName",[a])};SWFUpload.prototype.setUseQueryString=function(a){this.settings.use_query_string=a;this.callFlash("SetUseQueryString",[a])};SWFUpload.prototype.setRequeueOnError=function(a){this.settings.requeue_on_error=a;this.callFlash("SetRequeueOnError",[a])};SWFUpload.prototype.setHTTPSuccess=function(a){if(typeof a==="string"){a=a.replace(" ","").split(",")}this.settings.http_success=a;this.callFlash("SetHTTPSuccess",[a])};SWFUpload.prototype.setAssumeSuccessTimeout=function(a){this.settings.assume_success_timeout=a;this.callFlash("SetAssumeSuccessTimeout",[a])};SWFUpload.prototype.setDebugEnabled=function(a){this.settings.debug_enabled=a;this.callFlash("SetDebugEnabled",[a])};SWFUpload.prototype.setButtonImageURL=function(a){if(a==undefined){a=""}this.settings.button_image_url=a;this.callFlash("SetButtonImageURL",[a])};SWFUpload.prototype.setButtonDimensions=function(c,a){this.settings.button_width=c;this.settings.button_height=a;var b=this.getMovieElement();if(b!=undefined){b.style.width=c+"px";b.style.height=a+"px"}this.callFlash("SetButtonDimensions",[c,a])};SWFUpload.prototype.setButtonText=function(a){this.settings.button_text=a;this.callFlash("SetButtonText",[a])};SWFUpload.prototype.setButtonTextPadding=function(b,a){this.settings.button_text_top_padding=a;this.settings.button_text_left_padding=b;this.callFlash("SetButtonTextPadding",[b,a])};SWFUpload.prototype.setButtonTextStyle=function(a){this.settings.button_text_style=a;this.callFlash("SetButtonTextStyle",[a])};SWFUpload.prototype.setButtonDisabled=function(a){this.settings.button_disabled=a;this.callFlash("SetButtonDisabled",[a])};SWFUpload.prototype.setButtonAction=function(a){this.settings.button_action=a;this.callFlash("SetButtonAction",[a])};SWFUpload.prototype.setButtonCursor=function(a){this.settings.button_cursor=a;this.callFlash("SetButtonCursor",[a])};SWFUpload.prototype.queueEvent=function(b,c){if(c==undefined){c=[]}else{if(!(c instanceof Array)){c=[c]}}var a=this;if(typeof this.settings[b]==="function"){this.eventQueue.push(function(){this.settings[b].apply(this,c)});setTimeout(function(){a.executeNextEvent()},0)}else{if(this.settings[b]!==null){throw"Event handler "+b+" is unknown or is not a function"}}};SWFUpload.prototype.executeNextEvent=function(){var a=this.eventQueue?this.eventQueue.shift():null;if(typeof(a)==="function"){a.apply(this)}};SWFUpload.prototype.unescapeFilePostParams=function(c){var e=/[$]([0-9a-f]{4})/i;var f={};var d;if(c!=undefined){for(var a in c.post){if(c.post.hasOwnProperty(a)){d=a;var b;while((b=e.exec(d))!==null){d=d.replace(b[0],String.fromCharCode(parseInt("0x"+b[1],16)))}f[d]=c.post[a]}}c.post=f}return c};SWFUpload.prototype.testExternalInterface=function(){try{return this.callFlash("TestExternalInterface")}catch(a){return false}};SWFUpload.prototype.flashReady=function(){var a=this.getMovieElement();if(!a){this.debug("Flash called back ready but the flash movie can't be found.");return}this.cleanUp(a);this.queueEvent("swfupload_loaded_handler")};SWFUpload.prototype.cleanUp=function(a){try{if(this.movieElement&&typeof(a.CallFunction)==="unknown"){this.debug("Removing Flash functions hooks (this should only run in IE and should prevent memory leaks)");for(var c in a){try{if(typeof(a[c])==="function"){a[c]=null}}catch(b){}}}}catch(d){}window.__flash__removeCallback=function(e,f){try{if(e){e[f]=null}}catch(g){}}};SWFUpload.prototype.fileDialogStart=function(){this.queueEvent("file_dialog_start_handler")};SWFUpload.prototype.fileQueued=function(a){a=this.unescapeFilePostParams(a);this.queueEvent("file_queued_handler",a)};SWFUpload.prototype.fileQueueError=function(a,c,b){a=this.unescapeFilePostParams(a);this.queueEvent("file_queue_error_handler",[a,c,b])};SWFUpload.prototype.fileDialogComplete=function(b,c,a){this.queueEvent("file_dialog_complete_handler",[b,c,a])};SWFUpload.prototype.uploadStart=function(a){a=this.unescapeFilePostParams(a);this.queueEvent("return_upload_start_handler",a)};SWFUpload.prototype.returnUploadStart=function(a){var b;if(typeof this.settings.upload_start_handler==="function"){a=this.unescapeFilePostParams(a);b=this.settings.upload_start_handler.call(this,a)}else{if(this.settings.upload_start_handler!=undefined){throw"upload_start_handler must be a function"}}if(b===undefined){b=true}b=!!b;this.callFlash("ReturnUploadStart",[b])};SWFUpload.prototype.uploadProgress=function(a,c,b){a=this.unescapeFilePostParams(a);this.queueEvent("upload_progress_handler",[a,c,b])};SWFUpload.prototype.uploadError=function(a,c,b){a=this.unescapeFilePostParams(a);this.queueEvent("upload_error_handler",[a,c,b])};SWFUpload.prototype.uploadSuccess=function(b,a,c){b=this.unescapeFilePostParams(b);this.queueEvent("upload_success_handler",[b,a,c])};SWFUpload.prototype.uploadComplete=function(a){a=this.unescapeFilePostParams(a);this.queueEvent("upload_complete_handler",a)};SWFUpload.prototype.debug=function(a){this.queueEvent("debug_handler",a)};SWFUpload.prototype.debugMessage=function(c){if(this.settings.debug){var a,d=[];if(typeof c==="object"&&typeof c.name==="string"&&typeof c.message==="string"){for(var b in c){if(c.hasOwnProperty(b)){d.push(b+": "+c[b])}}a=d.join("\n")||"";d=a.split("\n");a="EXCEPTION: "+d.join("\nEXCEPTION: ");SWFUpload.Console.writeLine(a)}else{SWFUpload.Console.writeLine(c)}}};SWFUpload.Console={};SWFUpload.Console.writeLine=function(d){var b,a;try{b=document.getElementById("SWFUpload_Console");if(!b){a=document.createElement("form");document.getElementsByTagName("body")[0].appendChild(a);b=document.createElement("textarea");b.id="SWFUpload_Console";b.style.fontFamily="monospace";b.setAttribute("wrap","off");b.wrap="off";b.style.overflow="auto";b.style.width="700px";b.style.height="350px";b.style.margin="5px";a.appendChild(b)}b.value+=d+"\n";b.scrollTop=b.scrollHeight-b.clientHeight}catch(c){alert("Exception: "+c.name+" Message: "+c.message)}}; + +/* +Uploadify v3.2.1 +Copyright (c) 2012 Reactive Apps, Ronnie Garcia +Released under the MIT License <http://www.opensource.org/licenses/mit-license.php> +*/ +define('lib/jquery.uploadify', [ "jquery"], function(require) { + + var $ = require("jquery"); + +(function($) { + + // These methods can be called by adding them as the first argument in the uploadify plugin call + var methods = { + + init : function(options, swfUploadOptions) { + + return this.each(function() { + + // Create a reference to the jQuery DOM object + var $this = $(this); + + // Clone the original DOM object + var $clone = $this.clone(); + + // Setup the default options + var settings = $.extend({ + // Required Settings + id : $this.attr('id'), // The ID of the DOM object + swf : 'uploadify.swf', // The path to the uploadify SWF file + uploader : 'uploadify.php', // The path to the server-side upload script + + // Options + auto : true, // Automatically upload files when added to the queue + buttonClass : '', // A class name to add to the browse button DOM object + buttonCursor : 'hand', // The cursor to use with the browse button + buttonImage : null, // (String or null) The path to an image to use for the Flash browse button if not using CSS to style the button + buttonText : 'SELECT FILES', // The text to use for the browse button + checkExisting : false, // The path to a server-side script that checks for existing files on the server + debug : false, // Turn on swfUpload debugging mode + fileObjName : 'Filedata', // The name of the file object to use in your server-side script + fileSizeLimit : 0, // The maximum size of an uploadable file in KB (Accepts units B KB MB GB if string, 0 for no limit) + fileTypeDesc : 'All Files', // The description for file types in the browse dialog + fileTypeExts : '*.*', // Allowed extensions in the browse dialog (server-side validation should also be used) + height : 30, // The height of the browse button + itemTemplate : false, // The template for the file item in the queue + method : 'post', // The method to use when sending files to the server-side upload script + multi : true, // Allow multiple file selection in the browse dialog + formData : {}, // An object with additional data to send to the server-side upload script with every file upload + preventCaching : true, // Adds a random value to the Flash URL to prevent caching of it (conflicts with existing parameters) + progressData : 'percentage', // ('percentage' or 'speed') Data to show in the queue item during a file upload + queueID : false, // The ID of the DOM object to use as a file queue (without the #) + queueSizeLimit : 999, // The maximum number of files that can be in the queue at one time + removeCompleted : true, // Remove queue items from the queue when they are done uploading + removeTimeout : 3, // The delay in seconds before removing a queue item if removeCompleted is set to true + requeueErrors : false, // Keep errored files in the queue and keep trying to upload them + successTimeout : 30, // The number of seconds to wait for Flash to detect the server's response after the file has finished uploading + uploadLimit : 0, // The maximum number of files you can upload + width : 120, // The width of the browse button + + // Events + overrideEvents : [] // (Array) A list of default event handlers to skip + /* + onCancel // Triggered when a file is cancelled from the queue + onClearQueue // Triggered during the 'clear queue' method + onDestroy // Triggered when the uploadify object is destroyed + onDialogClose // Triggered when the browse dialog is closed + onDialogOpen // Triggered when the browse dialog is opened + onDisable // Triggered when the browse button gets disabled + onEnable // Triggered when the browse button gets enabled + onFallback // Triggered is Flash is not detected + onInit // Triggered when Uploadify is initialized + onQueueComplete // Triggered when all files in the queue have been uploaded + onSelectError // Triggered when an error occurs while selecting a file (file size, queue size limit, etc.) + onSelect // Triggered for each file that is selected + onSWFReady // Triggered when the SWF button is loaded + onUploadComplete // Triggered when a file upload completes (success or error) + onUploadError // Triggered when a file upload returns an error + onUploadSuccess // Triggered when a file is uploaded successfully + onUploadProgress // Triggered every time a file progress is updated + onUploadStart // Triggered immediately before a file upload starts + */ + }, options); + + // Prepare settings for SWFUpload + var swfUploadSettings = { + assume_success_timeout : settings.successTimeout, + button_placeholder_id : settings.id, + button_width : settings.width, + button_height : settings.height, + button_text : null, + button_text_style : null, + button_text_top_padding : 0, + button_text_left_padding : 0, + button_action : (settings.multi ? SWFUpload.BUTTON_ACTION.SELECT_FILES : SWFUpload.BUTTON_ACTION.SELECT_FILE), + button_disabled : false, + button_cursor : (settings.buttonCursor == 'arrow' ? SWFUpload.CURSOR.ARROW : SWFUpload.CURSOR.HAND), + button_window_mode : SWFUpload.WINDOW_MODE.TRANSPARENT, + debug : settings.debug, + requeue_on_error : settings.requeueErrors, + file_post_name : settings.fileObjName, + file_size_limit : settings.fileSizeLimit, + file_types : settings.fileTypeExts, + file_types_description : settings.fileTypeDesc, + file_queue_limit : settings.queueSizeLimit, + file_upload_limit : settings.uploadLimit, + flash_url : settings.swf, + prevent_swf_caching : settings.preventCaching, + post_params : settings.formData, + upload_url : settings.uploader, + use_query_string : (settings.method == 'get'), + + // Event Handlers + file_dialog_complete_handler : handlers.onDialogClose, + file_dialog_start_handler : handlers.onDialogOpen, + file_queued_handler : handlers.onSelect, + file_queue_error_handler : handlers.onSelectError, + swfupload_loaded_handler : settings.onSWFReady, + upload_complete_handler : handlers.onUploadComplete, + upload_error_handler : handlers.onUploadError, + upload_progress_handler : handlers.onUploadProgress, + upload_start_handler : handlers.onUploadStart, + upload_success_handler : handlers.onUploadSuccess + } + + // Merge the user-defined options with the defaults + if (swfUploadOptions) { + swfUploadSettings = $.extend(swfUploadSettings, swfUploadOptions); + } + // Add the user-defined settings to the swfupload object + swfUploadSettings = $.extend(swfUploadSettings, settings); + + // Detect if Flash is available + var playerVersion = swfobject.getFlashPlayerVersion(); + var flashInstalled = (playerVersion.major >= 9); + + if (flashInstalled) { + // Create the swfUpload instance + window['uploadify_' + settings.id] = new SWFUpload(swfUploadSettings); + var swfuploadify = window['uploadify_' + settings.id]; + + // Add the SWFUpload object to the elements data object + $this.data('uploadify', swfuploadify); + + // Wrap the instance + var $wrapper = $('<div />', { + 'id' : settings.id, + 'class' : 'uploadify', + 'css' : { + 'height' : settings.height + 'px', + 'width' : settings.width + 'px' + } + }); + $('#' + swfuploadify.movieName).wrap($wrapper); + // Recreate the reference to wrapper + $wrapper = $('#' + settings.id); + // Add the data object to the wrapper + $wrapper.data('uploadify', swfuploadify); + + // Create the button + var $button = $('<div />', { + 'id' : settings.id + '-button', + 'class' : 'uploadify-button ' + settings.buttonClass + }); + if (settings.buttonImage) { + $button.css({ + 'background-image' : "url('" + settings.buttonImage + "')", + 'text-indent' : '-9999px' + }); + } + $button.html('<span class="uploadify-button-text">' + settings.buttonText + '</span>') + .css({ + 'height' : settings.height + 'px', + 'line-height' : settings.height + 'px', + 'width' : settings.width + 'px' + }); + // Append the button to the wrapper + $wrapper.append($button); + + // Adjust the styles of the movie + $('#' + swfuploadify.movieName).css({ + 'position' : 'absolute', + 'z-index' : 1 + }); + + // Create the file queue + if (!settings.queueID) { + var $queue = $('<div />', { + 'id' : settings.id + '-queue', + 'class' : 'uploadify-queue' + }); + $wrapper.after($queue); + swfuploadify.settings.queueID = settings.id + '-queue'; + swfuploadify.settings.defaultQueue = true; + } + + // Create some queue related objects and variables + swfuploadify.queueData = { + files : {}, // The files in the queue + filesSelected : 0, // The number of files selected in the last select operation + filesQueued : 0, // The number of files added to the queue in the last select operation + filesReplaced : 0, // The number of files replaced in the last select operation + filesCancelled : 0, // The number of files that were cancelled instead of replaced + filesErrored : 0, // The number of files that caused error in the last select operation + uploadsSuccessful : 0, // The number of files that were successfully uploaded + uploadsErrored : 0, // The number of files that returned errors during upload + averageSpeed : 0, // The average speed of the uploads in KB + queueLength : 0, // The number of files in the queue + queueSize : 0, // The size in bytes of the entire queue + uploadSize : 0, // The size in bytes of the upload queue + queueBytesUploaded : 0, // The size in bytes that have been uploaded for the current upload queue + uploadQueue : [], // The files currently to be uploaded + errorMsg : 'Some files were not added to the queue:' + }; + + // Save references to all the objects + swfuploadify.original = $clone; + swfuploadify.wrapper = $wrapper; + swfuploadify.button = $button; + swfuploadify.queue = $queue; + + // Call the user-defined init event handler + if (settings.onInit) settings.onInit.call($this, swfuploadify); + + } else { + + // Call the fallback function + if (settings.onFallback) settings.onFallback.call($this); + + } + }); + + }, + + // Stop a file upload and remove it from the queue + cancel : function(fileID, supressEvent) { + + var args = arguments; + + this.each(function() { + // Create a reference to the jQuery DOM object + var $this = $(this), + swfuploadify = $this.data('uploadify'), + settings = swfuploadify.settings, + delay = -1; + + if (args[0]) { + // Clear the queue + if (args[0] == '*') { + var queueItemCount = swfuploadify.queueData.queueLength; + $('#' + settings.queueID).find('.uploadify-queue-item').each(function() { + delay++; + if (args[1] === true) { + swfuploadify.cancelUpload($(this).attr('id'), false); + } else { + swfuploadify.cancelUpload($(this).attr('id')); + } + $(this).find('.data').removeClass('data').html(' - Cancelled'); + $(this).find('.uploadify-progress-bar').remove(); + $(this).delay(1000 + 100 * delay).fadeOut(500, function() { + $(this).remove(); + }); + }); + swfuploadify.queueData.queueSize = 0; + swfuploadify.queueData.queueLength = 0; + // Trigger the onClearQueue event + if (settings.onClearQueue) settings.onClearQueue.call($this, queueItemCount); + } else { + for (var n = 0; n < args.length; n++) { + swfuploadify.cancelUpload(args[n]); + $('#' + args[n]).find('.data').removeClass('data').html(' - Cancelled'); + $('#' + args[n]).find('.uploadify-progress-bar').remove(); + $('#' + args[n]).delay(1000 + 100 * n).fadeOut(500, function() { + $(this).remove(); + }); + } + } + } else { + var item = $('#' + settings.queueID).find('.uploadify-queue-item').get(0); + $item = $(item); + swfuploadify.cancelUpload($item.attr('id')); + $item.find('.data').removeClass('data').html(' - Cancelled'); + $item.find('.uploadify-progress-bar').remove(); + $item.delay(1000).fadeOut(500, function() { + $(this).remove(); + }); + } + }); + + }, + + // Revert the DOM object back to its original state + destroy : function() { + + this.each(function() { + // Create a reference to the jQuery DOM object + var $this = $(this), + swfuploadify = $this.data('uploadify'), + settings = swfuploadify.settings; + + // Destroy the SWF object and + swfuploadify.destroy(); + + // Destroy the queue + if (settings.defaultQueue) { + $('#' + settings.queueID).remove(); + } + + // Reload the original DOM element + $('#' + settings.id).replaceWith(swfuploadify.original); + + // Call the user-defined event handler + if (settings.onDestroy) settings.onDestroy.call(this); + + delete swfuploadify; + }); + + }, + + // Disable the select button + disable : function(isDisabled) { + + this.each(function() { + // Create a reference to the jQuery DOM object + var $this = $(this), + swfuploadify = $this.data('uploadify'), + settings = swfuploadify.settings; + + // Call the user-defined event handlers + if (isDisabled) { + swfuploadify.button.addClass('disabled'); + if (settings.onDisable) settings.onDisable.call(this); + } else { + swfuploadify.button.removeClass('disabled'); + if (settings.onEnable) settings.onEnable.call(this); + } + + // Enable/disable the browse button + swfuploadify.setButtonDisabled(isDisabled); + }); + + }, + + // Get or set the settings data + settings : function(name, value, resetObjects) { + + var args = arguments; + var returnValue = value; + + this.each(function() { + // Create a reference to the jQuery DOM object + var $this = $(this), + swfuploadify = $this.data('uploadify'), + settings = swfuploadify.settings; + + if (typeof(args[0]) == 'object') { + for (var n in value) { + setData(n,value[n]); + } + } + if (args.length === 1) { + returnValue = settings[name]; + } else { + switch (name) { + case 'uploader': + swfuploadify.setUploadURL(value); + break; + case 'formData': + if (!resetObjects) { + value = $.extend(settings.formData, value); + } + swfuploadify.setPostParams(settings.formData); + break; + case 'method': + if (value == 'get') { + swfuploadify.setUseQueryString(true); + } else { + swfuploadify.setUseQueryString(false); + } + break; + case 'fileObjName': + swfuploadify.setFilePostName(value); + break; + case 'fileTypeExts': + swfuploadify.setFileTypes(value, settings.fileTypeDesc); + break; + case 'fileTypeDesc': + swfuploadify.setFileTypes(settings.fileTypeExts, value); + break; + case 'fileSizeLimit': + swfuploadify.setFileSizeLimit(value); + break; + case 'uploadLimit': + swfuploadify.setFileUploadLimit(value); + break; + case 'queueSizeLimit': + swfuploadify.setFileQueueLimit(value); + break; + case 'buttonImage': + swfuploadify.button.css('background-image', settingValue); + break; + case 'buttonCursor': + if (value == 'arrow') { + swfuploadify.setButtonCursor(SWFUpload.CURSOR.ARROW); + } else { + swfuploadify.setButtonCursor(SWFUpload.CURSOR.HAND); + } + break; + case 'buttonText': + $('#' + settings.id + '-button').find('.uploadify-button-text').html(value); + break; + case 'width': + swfuploadify.setButtonDimensions(value, settings.height); + break; + case 'height': + swfuploadify.setButtonDimensions(settings.width, value); + break; + case 'multi': + if (value) { + swfuploadify.setButtonAction(SWFUpload.BUTTON_ACTION.SELECT_FILES); + } else { + swfuploadify.setButtonAction(SWFUpload.BUTTON_ACTION.SELECT_FILE); + } + break; + } + settings[name] = value; + } + }); + + if (args.length === 1) { + return returnValue; + } + + }, + + // Stop the current uploads and requeue what is in progress + stop : function() { + + this.each(function() { + // Create a reference to the jQuery DOM object + var $this = $(this), + swfuploadify = $this.data('uploadify'); + + // Reset the queue information + swfuploadify.queueData.averageSpeed = 0; + swfuploadify.queueData.uploadSize = 0; + swfuploadify.queueData.bytesUploaded = 0; + swfuploadify.queueData.uploadQueue = []; + + swfuploadify.stopUpload(); + }); + + }, + + // Start uploading files in the queue + upload : function() { + + var args = arguments; + + this.each(function() { + // Create a reference to the jQuery DOM object + var $this = $(this), + swfuploadify = $this.data('uploadify'); + + // Reset the queue information + swfuploadify.queueData.averageSpeed = 0; + swfuploadify.queueData.uploadSize = 0; + swfuploadify.queueData.bytesUploaded = 0; + swfuploadify.queueData.uploadQueue = []; + + // Upload the files + if (args[0]) { + if (args[0] == '*') { + swfuploadify.queueData.uploadSize = swfuploadify.queueData.queueSize; + swfuploadify.queueData.uploadQueue.push('*'); + swfuploadify.startUpload(); + } else { + for (var n = 0; n < args.length; n++) { + swfuploadify.queueData.uploadSize += swfuploadify.queueData.files[args[n]].size; + swfuploadify.queueData.uploadQueue.push(args[n]); + } + swfuploadify.startUpload(swfuploadify.queueData.uploadQueue.shift()); + } + } else { + swfuploadify.startUpload(); + } + + }); + + } + + } + + // These functions handle all the events that occur with the file uploader + var handlers = { + + // Triggered when the file dialog is opened + onDialogOpen : function() { + // Load the swfupload settings + var settings = this.settings; + + // Reset some queue info + this.queueData.errorMsg = 'Some files were not added to the queue:'; + this.queueData.filesReplaced = 0; + this.queueData.filesCancelled = 0; + + // Call the user-defined event handler + if (settings.onDialogOpen) settings.onDialogOpen.call(this); + }, + + // Triggered when the browse dialog is closed + onDialogClose : function(filesSelected, filesQueued, queueLength) { + // Load the swfupload settings + var settings = this.settings; + + // Update the queue information + this.queueData.filesErrored = filesSelected - filesQueued; + this.queueData.filesSelected = filesSelected; + this.queueData.filesQueued = filesQueued - this.queueData.filesCancelled; + this.queueData.queueLength = queueLength; + + // Run the default event handler + if ($.inArray('onDialogClose', settings.overrideEvents) < 0) { + if (this.queueData.filesErrored > 0) { + alert(this.queueData.errorMsg); + } + } + + // Call the user-defined event handler + if (settings.onDialogClose) settings.onDialogClose.call(this, this.queueData); + + // Upload the files if auto is true + if (settings.auto) $('#' + settings.id).uploadify('upload', '*'); + }, + + // Triggered once for each file added to the queue + onSelect : function(file) { + // Load the swfupload settings + var settings = this.settings; + + // Check if a file with the same name exists in the queue + var queuedFile = {}; + for (var n in this.queueData.files) { + queuedFile = this.queueData.files[n]; + if (queuedFile.uploaded != true && queuedFile.name == file.name) { + var replaceQueueItem = confirm('The file named "' + file.name + '" is already in the queue.\nDo you want to replace the existing item in the queue?'); + if (!replaceQueueItem) { + this.cancelUpload(file.id); + this.queueData.filesCancelled++; + return false; + } else { + $('#' + queuedFile.id).remove(); + this.cancelUpload(queuedFile.id); + this.queueData.filesReplaced++; + } + } + } + + // Get the size of the file + var fileSize = Math.round(file.size / 1024); + var suffix = 'KB'; + if (fileSize > 1000) { + fileSize = Math.round(fileSize / 1000); + suffix = 'MB'; + } + var fileSizeParts = fileSize.toString().split('.'); + fileSize = fileSizeParts[0]; + if (fileSizeParts.length > 1) { + fileSize += '.' + fileSizeParts[1].substr(0,2); + } + fileSize += suffix; + + // Truncate the filename if it's too long + var fileName = file.name; + if (fileName.length > 25) { + fileName = fileName.substr(0,25) + '...'; + } + + // Create the file data object + itemData = { + 'fileID' : file.id, + 'instanceID' : settings.id, + 'fileName' : fileName, + 'fileSize' : fileSize + } + + // Create the file item template + if (settings.itemTemplate == false) { + settings.itemTemplate = '<div id="${fileID}" class="uploadify-queue-item">\ + <div class="cancel">\ + <a href="javascript:$(\'#${instanceID}\').uploadify(\'cancel\', \'${fileID}\')">X</a>\ + </div>\ + <span class="fileName">${fileName} (${fileSize})</span><span class="data"></span>\ + <div class="uploadify-progress">\ + <div class="uploadify-progress-bar"><!--Progress Bar--></div>\ + </div>\ + </div>'; + } + + // Run the default event handler + if ($.inArray('onSelect', settings.overrideEvents) < 0) { + + // Replace the item data in the template + itemHTML = settings.itemTemplate; + for (var d in itemData) { + itemHTML = itemHTML.replace(new RegExp('\\$\\{' + d + '\\}', 'g'), itemData[d]); + } + + // Add the file item to the queue + $('#' + settings.queueID).append(itemHTML); + } + + this.queueData.queueSize += file.size; + this.queueData.files[file.id] = file; + + // Call the user-defined event handler + if (settings.onSelect) settings.onSelect.apply(this, arguments); + }, + + // Triggered when a file is not added to the queue + onSelectError : function(file, errorCode, errorMsg) { + // Load the swfupload settings + var settings = this.settings; + + // Run the default event handler + if ($.inArray('onSelectError', settings.overrideEvents) < 0) { + switch(errorCode) { + case SWFUpload.QUEUE_ERROR.QUEUE_LIMIT_EXCEEDED: + if (settings.queueSizeLimit > errorMsg) { + this.queueData.errorMsg += '\nThe number of files selected exceeds the remaining upload limit (' + errorMsg + ').'; + } else { + this.queueData.errorMsg += '\nThe number of files selected exceeds the queue size limit (' + settings.queueSizeLimit + ').'; + } + break; + case SWFUpload.QUEUE_ERROR.FILE_EXCEEDS_SIZE_LIMIT: + this.queueData.errorMsg += '\nThe file "' + file.name + '" exceeds the size limit (' + settings.fileSizeLimit + ').'; + break; + case SWFUpload.QUEUE_ERROR.ZERO_BYTE_FILE: + this.queueData.errorMsg += '\nThe file "' + file.name + '" is empty.'; + break; + case SWFUpload.QUEUE_ERROR.FILE_EXCEEDS_SIZE_LIMIT: + this.queueData.errorMsg += '\nThe file "' + file.name + '" is not an accepted file type (' + settings.fileTypeDesc + ').'; + break; + } + } + if (errorCode != SWFUpload.QUEUE_ERROR.QUEUE_LIMIT_EXCEEDED) { + delete this.queueData.files[file.id]; + } + + // Call the user-defined event handler + if (settings.onSelectError) settings.onSelectError.apply(this, arguments); + }, + + // Triggered when all the files in the queue have been processed + onQueueComplete : function() { + if (this.settings.onQueueComplete) this.settings.onQueueComplete.call(this, this.settings.queueData); + }, + + // Triggered when a file upload successfully completes + onUploadComplete : function(file) { + // Load the swfupload settings + var settings = this.settings, + swfuploadify = this; + + // Check if all the files have completed uploading + var stats = this.getStats(); + this.queueData.queueLength = stats.files_queued; + if (this.queueData.uploadQueue[0] == '*') { + if (this.queueData.queueLength > 0) { + this.startUpload(); + } else { + this.queueData.uploadQueue = []; + + // Call the user-defined event handler for queue complete + if (settings.onQueueComplete) settings.onQueueComplete.call(this, this.queueData); + } + } else { + if (this.queueData.uploadQueue.length > 0) { + this.startUpload(this.queueData.uploadQueue.shift()); + } else { + this.queueData.uploadQueue = []; + + // Call the user-defined event handler for queue complete + if (settings.onQueueComplete) settings.onQueueComplete.call(this, this.queueData); + } + } + + // Call the default event handler + if ($.inArray('onUploadComplete', settings.overrideEvents) < 0) { + if (settings.removeCompleted) { + switch (file.filestatus) { + case SWFUpload.FILE_STATUS.COMPLETE: + setTimeout(function() { + if ($('#' + file.id)) { + swfuploadify.queueData.queueSize -= file.size; + swfuploadify.queueData.queueLength -= 1; + delete swfuploadify.queueData.files[file.id] + $('#' + file.id).fadeOut(500, function() { + $(this).remove(); + }); + } + }, settings.removeTimeout * 1000); + break; + case SWFUpload.FILE_STATUS.ERROR: + if (!settings.requeueErrors) { + setTimeout(function() { + if ($('#' + file.id)) { + swfuploadify.queueData.queueSize -= file.size; + swfuploadify.queueData.queueLength -= 1; + delete swfuploadify.queueData.files[file.id]; + $('#' + file.id).fadeOut(500, function() { + $(this).remove(); + }); + } + }, settings.removeTimeout * 1000); + } + break; + } + } else { + file.uploaded = true; + } + } + + // Call the user-defined event handler + if (settings.onUploadComplete) settings.onUploadComplete.call(this, file); + }, + + // Triggered when a file upload returns an error + onUploadError : function(file, errorCode, errorMsg) { + // Load the swfupload settings + var settings = this.settings; + + // Set the error string + var errorString = 'Error'; + switch(errorCode) { + case SWFUpload.UPLOAD_ERROR.HTTP_ERROR: + errorString = 'HTTP Error (' + errorMsg + ')'; + break; + case SWFUpload.UPLOAD_ERROR.MISSING_UPLOAD_URL: + errorString = 'Missing Upload URL'; + break; + case SWFUpload.UPLOAD_ERROR.IO_ERROR: + errorString = 'IO Error'; + break; + case SWFUpload.UPLOAD_ERROR.SECURITY_ERROR: + errorString = 'Security Error'; + break; + case SWFUpload.UPLOAD_ERROR.UPLOAD_LIMIT_EXCEEDED: + alert('The upload limit has been reached (' + errorMsg + ').'); + errorString = 'Exceeds Upload Limit'; + break; + case SWFUpload.UPLOAD_ERROR.UPLOAD_FAILED: + errorString = 'Failed'; + break; + case SWFUpload.UPLOAD_ERROR.SPECIFIED_FILE_ID_NOT_FOUND: + break; + case SWFUpload.UPLOAD_ERROR.FILE_VALIDATION_FAILED: + errorString = 'Validation Error'; + break; + case SWFUpload.UPLOAD_ERROR.FILE_CANCELLED: + errorString = 'Cancelled'; + this.queueData.queueSize -= file.size; + this.queueData.queueLength -= 1; + if (file.status == SWFUpload.FILE_STATUS.IN_PROGRESS || $.inArray(file.id, this.queueData.uploadQueue) >= 0) { + this.queueData.uploadSize -= file.size; + } + // Trigger the onCancel event + if (settings.onCancel) settings.onCancel.call(this, file); + delete this.queueData.files[file.id]; + break; + case SWFUpload.UPLOAD_ERROR.UPLOAD_STOPPED: + errorString = 'Stopped'; + break; + } + + // Call the default event handler + if ($.inArray('onUploadError', settings.overrideEvents) < 0) { + + if (errorCode != SWFUpload.UPLOAD_ERROR.FILE_CANCELLED && errorCode != SWFUpload.UPLOAD_ERROR.UPLOAD_STOPPED) { + $('#' + file.id).addClass('uploadify-error'); + } + + // Reset the progress bar + $('#' + file.id).find('.uploadify-progress-bar').css('width','1px'); + + // Add the error message to the queue item + if (errorCode != SWFUpload.UPLOAD_ERROR.SPECIFIED_FILE_ID_NOT_FOUND && file.status != SWFUpload.FILE_STATUS.COMPLETE) { + $('#' + file.id).find('.data').html(' - ' + errorString); + } + } + + var stats = this.getStats(); + this.queueData.uploadsErrored = stats.upload_errors; + + // Call the user-defined event handler + if (settings.onUploadError) settings.onUploadError.call(this, file, errorCode, errorMsg, errorString); + }, + + // Triggered periodically during a file upload + onUploadProgress : function(file, fileBytesLoaded, fileTotalBytes) { + // Load the swfupload settings + var settings = this.settings; + + // Setup all the variables + var timer = new Date(); + var newTime = timer.getTime(); + var lapsedTime = newTime - this.timer; + if (lapsedTime > 500) { + this.timer = newTime; + } + var lapsedBytes = fileBytesLoaded - this.bytesLoaded; + this.bytesLoaded = fileBytesLoaded; + var queueBytesLoaded = this.queueData.queueBytesUploaded + fileBytesLoaded; + var percentage = Math.round(fileBytesLoaded / fileTotalBytes * 100); + + // Calculate the average speed + var suffix = 'KB/s'; + var mbs = 0; + var kbs = (lapsedBytes / 1024) / (lapsedTime / 1000); + kbs = Math.floor(kbs * 10) / 10; + if (this.queueData.averageSpeed > 0) { + this.queueData.averageSpeed = Math.floor((this.queueData.averageSpeed + kbs) / 2); + } else { + this.queueData.averageSpeed = Math.floor(kbs); + } + if (kbs > 1000) { + mbs = (kbs * .001); + this.queueData.averageSpeed = Math.floor(mbs); + suffix = 'MB/s'; + } + + // Call the default event handler + if ($.inArray('onUploadProgress', settings.overrideEvents) < 0) { + if (settings.progressData == 'percentage') { + $('#' + file.id).find('.data').html(' - ' + percentage + '%'); + } else if (settings.progressData == 'speed' && lapsedTime > 500) { + $('#' + file.id).find('.data').html(' - ' + this.queueData.averageSpeed + suffix); + } + $('#' + file.id).find('.uploadify-progress-bar').css('width', percentage + '%'); + } + + // Call the user-defined event handler + if (settings.onUploadProgress) settings.onUploadProgress.call(this, file, fileBytesLoaded, fileTotalBytes, queueBytesLoaded, this.queueData.uploadSize); + }, + + // Triggered right before a file is uploaded + onUploadStart : function(file) { + // Load the swfupload settings + var settings = this.settings; + + var timer = new Date(); + this.timer = timer.getTime(); + this.bytesLoaded = 0; + if (this.queueData.uploadQueue.length == 0) { + this.queueData.uploadSize = file.size; + } + if (settings.checkExisting) { + $.ajax({ + type : 'POST', + async : false, + url : settings.checkExisting, + data : {filename: file.name}, + success : function(data) { + if (data == 1) { + var overwrite = confirm('A file with the name "' + file.name + '" already exists on the server.\nWould you like to replace the existing file?'); + if (!overwrite) { + this.cancelUpload(file.id); + $('#' + file.id).remove(); + if (this.queueData.uploadQueue.length > 0 && this.queueData.queueLength > 0) { + if (this.queueData.uploadQueue[0] == '*') { + this.startUpload(); + } else { + this.startUpload(this.queueData.uploadQueue.shift()); + } + } + } + } + } + }); + } + + // Call the user-defined event handler + if (settings.onUploadStart) settings.onUploadStart.call(this, file); + }, + + // Triggered when a file upload returns a successful code + onUploadSuccess : function(file, data, response) { + // Load the swfupload settings + var settings = this.settings; + var stats = this.getStats(); + this.queueData.uploadsSuccessful = stats.successful_uploads; + this.queueData.queueBytesUploaded += file.size; + + // Call the default event handler + if ($.inArray('onUploadSuccess', settings.overrideEvents) < 0) { + $('#' + file.id).find('.data').html(' - Complete'); + } + + // Call the user-defined event handler + if (settings.onUploadSuccess) settings.onUploadSuccess.call(this, file, data, response); + } + + } + + $.fn.uploadify = function(method) { + + if (methods[method]) { + return methods[method].apply(this, Array.prototype.slice.call(arguments, 1)); + } else if (typeof method === 'object' || !method) { + return methods.init.apply(this, arguments); + } else { + $.error('The method ' + method + ' does not exist in $.uploadify'); + } + + } + +})($); +}) \ No newline at end of file diff --git a/res/js/lib/jquery.validate.js b/res/js/lib/jquery.validate.js new file mode 100644 index 0000000..a861f68 --- /dev/null +++ b/res/js/lib/jquery.validate.js @@ -0,0 +1,1540 @@ +/*! + * jQuery Validation Plugin v1.15.0 + * + * http://jqueryvalidation.org/ + * + * Copyright (c) 2016 Jörn Zaefferer + * Released under the MIT license + */ + +define('lib/jquery.validate', [ "jquery"], function(require) { + var $ = require("jquery"); + /*(function (factory) { + if (typeof define === "function" && define.amd) { + define(["jquery"], factory); + } else if (typeof module === "object" && module.exports) { + module.exports = factory(require("jquery")); + } else { + factory(jQuery); + } + }(function ($) {*/ + + $.extend($.fn, { + + // http://jqueryvalidation.org/validate/ + validate: function (options) { + + // If nothing is selected, return nothing; can't chain anyway + if (!this.length) { + if (options && options.debug && window.console) { + console.warn("Nothing selected, can't validate, returning nothing."); + } + return; + } + + // Check if a validator for this form was already created + var validator = $.data(this[0], "validator"); + if (validator) { + return validator; + } + + // Add novalidate tag if HTML5. + this.attr("novalidate", "novalidate"); + + validator = new $.validator(options, this[0]); + $.data(this[0], "validator", validator); + + if (validator.settings.onsubmit) { + + this.on("click.validate", ":submit", function (event) { + if (validator.settings.submitHandler) { + validator.submitButton = event.target; + } + + // Allow suppressing validation by adding a cancel class to the submit button + if ($(this).hasClass("cancel")) { + validator.cancelSubmit = true; + } + + // Allow suppressing validation by adding the html5 formnovalidate attribute to the submit button + if ($(this).attr("formnovalidate") !== undefined) { + validator.cancelSubmit = true; + } + }); + + // Validate the form on submit + this.on("submit.validate", function (event) { + if (validator.settings.debug) { + + // Prevent form submit to be able to see console output + event.preventDefault(); + } + function handle() { + var hidden, result; + if (validator.settings.submitHandler) { + if (validator.submitButton) { + + // Insert a hidden input as a replacement for the missing submit button + hidden = $("<input type='hidden'/>") + .attr("name", validator.submitButton.name) + .val($(validator.submitButton).val()) + .appendTo(validator.currentForm); + } + result = validator.settings.submitHandler.call(validator, validator.currentForm, event); + if (validator.submitButton) { + + // And clean up afterwards; thanks to no-block-scope, hidden can be referenced + hidden.remove(); + } + if (result !== undefined) { + return result; + } + return false; + } + return true; + } + + // Prevent submit for invalid forms or custom submit handlers + if (validator.cancelSubmit) { + validator.cancelSubmit = false; + return handle(); + } + if (validator.form()) { + if (validator.pendingRequest) { + validator.formSubmitted = true; + return false; + } + return handle(); + } else { + validator.focusInvalid(); + return false; + } + }); + } + + return validator; + }, + + // http://jqueryvalidation.org/valid/ + valid: function () { + var valid, validator, errorList; + + if ($(this[0]).is("form")) { + valid = this.validate().form(); + } else { + errorList = []; + valid = true; + validator = $(this[0].form).validate(); + this.each(function () { + valid = validator.element(this) && valid; + if (!valid) { + errorList = errorList.concat(validator.errorList); + } + }); + validator.errorList = errorList; + } + return valid; + }, + + // http://jqueryvalidation.org/rules/ + rules: function (command, argument) { + + // If nothing is selected, return nothing; can't chain anyway + if (!this.length) { + return; + } + + var element = this[0], + settings, staticRules, existingRules, data, param, filtered; + + if (command) { + settings = $.data(element.form, "validator").settings; + staticRules = settings.rules; + existingRules = $.validator.staticRules(element); + switch (command) { + case "add": + $.extend(existingRules, $.validator.normalizeRule(argument)); + + // Remove messages from rules, but allow them to be set separately + delete existingRules.messages; + staticRules[element.name] = existingRules; + if (argument.messages) { + settings.messages[element.name] = $.extend(settings.messages[element.name], argument.messages); + } + break; + case "remove": + if (!argument) { + delete staticRules[element.name]; + return existingRules; + } + filtered = {}; + $.each(argument.split(/\s/), function (index, method) { + filtered[method] = existingRules[method]; + delete existingRules[method]; + if (method === "required") { + $(element).removeAttr("aria-required"); + } + }); + return filtered; + } + } + + data = $.validator.normalizeRules( + $.extend( + {}, + $.validator.classRules(element), + $.validator.attributeRules(element), + $.validator.dataRules(element), + $.validator.staticRules(element) + ), element); + + // Make sure required is at front + if (data.required) { + param = data.required; + delete data.required; + data = $.extend({required: param}, data); + $(element).attr("aria-required", "true"); + } + + // Make sure remote is at back + if (data.remote) { + param = data.remote; + delete data.remote; + data = $.extend(data, {remote: param}); + } + + return data; + } + }); + +// Custom selectors + $.extend($.expr[":"], { + + // http://jqueryvalidation.org/blank-selector/ + blank: function (a) { + return !$.trim("" + $(a).val()); + }, + + // http://jqueryvalidation.org/filled-selector/ + filled: function (a) { + var val = $(a).val(); + return val !== null && !!$.trim("" + val); + }, + + // http://jqueryvalidation.org/unchecked-selector/ + unchecked: function (a) { + return !$(a).prop("checked"); + } + }); + +// Constructor for validator + $.validator = function (options, form) { + this.settings = $.extend(true, {}, $.validator.defaults, options); + this.currentForm = form; + this.init(); + }; + +// http://jqueryvalidation.org/jQuery.validator.format/ + $.validator.format = function (source, params) { + if (arguments.length === 1) { + return function () { + var args = $.makeArray(arguments); + args.unshift(source); + return $.validator.format.apply(this, args); + }; + } + if (params === undefined) { + return source; + } + if (arguments.length > 2 && params.constructor !== Array) { + params = $.makeArray(arguments).slice(1); + } + if (params.constructor !== Array) { + params = [params]; + } + $.each(params, function (i, n) { + source = source.replace(new RegExp("\\{" + i + "\\}", "g"), function () { + return n; + }); + }); + return source; + }; + + $.extend($.validator, { + + defaults: { + messages: {}, + groups: {}, + rules: {}, + errorClass: "error", + pendingClass: "pending", + validClass: "valid", + errorElement: "label", + focusCleanup: false, + focusInvalid: true, + errorContainer: $([]), + errorLabelContainer: $([]), + onsubmit: true, + ignore: ":hidden", + ignoreTitle: false, + onfocusin: function (element) { + this.lastActive = element; + + // Hide error label and remove error class on focus if enabled + if (this.settings.focusCleanup) { + if (this.settings.unhighlight) { + this.settings.unhighlight.call(this, element, this.settings.errorClass, this.settings.validClass); + } + this.hideThese(this.errorsFor(element)); + } + }, + onfocusout: function (element) { + if (!this.checkable(element) && ( element.name in this.submitted || !this.optional(element) )) { + this.element(element); + } + }, + onkeyup: function (element, event) { + + // Avoid revalidate the field when pressing one of the following keys + // Shift => 16 + // Ctrl => 17 + // Alt => 18 + // Caps lock => 20 + // End => 35 + // Home => 36 + // Left arrow => 37 + // Up arrow => 38 + // Right arrow => 39 + // Down arrow => 40 + // Insert => 45 + // Num lock => 144 + // AltGr key => 225 + var excludedKeys = [ + 16, 17, 18, 20, 35, 36, 37, + 38, 39, 40, 45, 144, 225 + ]; + + if (event.which === 9 && this.elementValue(element) === "" || $.inArray(event.keyCode, excludedKeys) !== -1) { + return; + } else if (element.name in this.submitted || element.name in this.invalid) { + this.element(element); + } + }, + onclick: function (element) { + + // Click on selects, radiobuttons and checkboxes + if (element.name in this.submitted) { + this.element(element); + + // Or option elements, check parent select in that case + } else if (element.parentNode.name in this.submitted) { + this.element(element.parentNode); + } + }, + highlight: function (element, errorClass, validClass) { + if (element.type === "radio") { + this.findByName(element.name).addClass(errorClass).removeClass(validClass); + } else { + $(element).addClass(errorClass).removeClass(validClass); + } + }, + unhighlight: function (element, errorClass, validClass) { + if (element.type === "radio") { + this.findByName(element.name).removeClass(errorClass).addClass(validClass); + } else { + $(element).removeClass(errorClass).addClass(validClass); + } + } + }, + + // http://jqueryvalidation.org/jQuery.validator.setDefaults/ + setDefaults: function (settings) { + $.extend($.validator.defaults, settings); + }, + + messages: { + required: "This field is required.", + remote: "Please fix this field.", + email: "Please enter a valid email address.", + url: "Please enter a valid URL.", + date: "Please enter a valid date.", + dateISO: "Please enter a valid date ( ISO ).", + number: "Please enter a valid number.", + digits: "Please enter only digits.", + equalTo: "Please enter the same value again.", + maxlength: $.validator.format("Please enter no more than {0} characters."), + minlength: $.validator.format("Please enter at least {0} characters."), + rangelength: $.validator.format("Please enter a value between {0} and {1} characters long."), + range: $.validator.format("Please enter a value between {0} and {1}."), + max: $.validator.format("Please enter a value less than or equal to {0}."), + min: $.validator.format("Please enter a value greater than or equal to {0}."), + step: $.validator.format("Please enter a multiple of {0}.") + }, + + autoCreateRanges: false, + + prototype: { + + init: function () { + this.labelContainer = $(this.settings.errorLabelContainer); + this.errorContext = this.labelContainer.length && this.labelContainer || $(this.currentForm); + this.containers = $(this.settings.errorContainer).add(this.settings.errorLabelContainer); + this.submitted = {}; + this.valueCache = {}; + this.pendingRequest = 0; + this.pending = {}; + this.invalid = {}; + this.reset(); + + var groups = ( this.groups = {} ), + rules; + $.each(this.settings.groups, function (key, value) { + if (typeof value === "string") { + value = value.split(/\s/); + } + $.each(value, function (index, name) { + groups[name] = key; + }); + }); + rules = this.settings.rules; + $.each(rules, function (key, value) { + rules[key] = $.validator.normalizeRule(value); + }); + + function delegate(event) { + var validator = $.data(this.form, "validator"), + eventType = "on" + event.type.replace(/^validate/, ""), + settings = validator.settings; + if (settings[eventType] && !$(this).is(settings.ignore)) { + settings[eventType].call(validator, this, event); + } + } + + $(this.currentForm) + .on("focusin.validate focusout.validate keyup.validate", + ":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], " + + "[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], " + + "[type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], " + + "[type='radio'], [type='checkbox'], [contenteditable]", delegate) + + // Support: Chrome, oldIE + // "select" is provided as event.target when clicking a option + .on("click.validate", "select, option, [type='radio'], [type='checkbox']", delegate); + + if (this.settings.invalidHandler) { + $(this.currentForm).on("invalid-form.validate", this.settings.invalidHandler); + } + + // Add aria-required to any Static/Data/Class required fields before first validation + // Screen readers require this attribute to be present before the initial submission http://www.w3.org/TR/WCAG-TECHS/ARIA2.html + $(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required", "true"); + }, + + // http://jqueryvalidation.org/Validator.form/ + form: function () { + this.checkForm(); + $.extend(this.submitted, this.errorMap); + this.invalid = $.extend({}, this.errorMap); + if (!this.valid()) { + $(this.currentForm).triggerHandler("invalid-form", [this]); + } + this.showErrors(); + return this.valid(); + }, + + checkForm: function () { + this.prepareForm(); + for (var i = 0, elements = ( this.currentElements = this.elements() ); elements[i]; i++) { + this.check(elements[i]); + } + return this.valid(); + }, + + // http://jqueryvalidation.org/Validator.element/ + element: function (element) { + var cleanElement = this.clean(element), + checkElement = this.validationTargetFor(cleanElement), + v = this, + result = true, + rs, group; + + if (checkElement === undefined) { + delete this.invalid[cleanElement.name]; + } else { + this.prepareElement(checkElement); + this.currentElements = $(checkElement); + + // If this element is grouped, then validate all group elements already + // containing a value + group = this.groups[checkElement.name]; + if (group) { + $.each(this.groups, function (name, testgroup) { + if (testgroup === group && name !== checkElement.name) { + cleanElement = v.validationTargetFor(v.clean(v.findByName(name))); + if (cleanElement && cleanElement.name in v.invalid) { + v.currentElements.push(cleanElement); + result = result && v.check(cleanElement); + } + } + }); + } + + rs = this.check(checkElement) !== false; + result = result && rs; + if (rs) { + this.invalid[checkElement.name] = false; + } else { + this.invalid[checkElement.name] = true; + } + + if (!this.numberOfInvalids()) { + + // Hide error containers on last error + this.toHide = this.toHide.add(this.containers); + } + this.showErrors(); + + // Add aria-invalid status for screen readers + $(element).attr("aria-invalid", !rs); + } + + return result; + }, + + // http://jqueryvalidation.org/Validator.showErrors/ + showErrors: function (errors) { + if (errors) { + var validator = this; + + // Add items to error list and map + $.extend(this.errorMap, errors); + this.errorList = $.map(this.errorMap, function (message, name) { + return { + message: message, + element: validator.findByName(name)[0] + }; + }); + + // Remove items from success list + this.successList = $.grep(this.successList, function (element) { + return !( element.name in errors ); + }); + } + if (this.settings.showErrors) { + this.settings.showErrors.call(this, this.errorMap, this.errorList); + } else { + this.defaultShowErrors(); + } + }, + + // http://jqueryvalidation.org/Validator.resetForm/ + resetForm: function () { + if ($.fn.resetForm) { + $(this.currentForm).resetForm(); + } + this.invalid = {}; + this.submitted = {}; + this.prepareForm(); + this.hideErrors(); + var elements = this.elements() + .removeData("previousValue") + .removeAttr("aria-invalid"); + + this.resetElements(elements); + }, + + resetElements: function (elements) { + var i; + + if (this.settings.unhighlight) { + for (i = 0; elements[i]; i++) { + this.settings.unhighlight.call(this, elements[i], + this.settings.errorClass, ""); + this.findByName(elements[i].name).removeClass(this.settings.validClass); + } + } else { + elements + .removeClass(this.settings.errorClass) + .removeClass(this.settings.validClass); + } + }, + + numberOfInvalids: function () { + return this.objectLength(this.invalid); + }, + + objectLength: function (obj) { + /* jshint unused: false */ + var count = 0, + i; + for (i in obj) { + if (obj[i]) { + count++; + } + } + return count; + }, + + hideErrors: function () { + this.hideThese(this.toHide); + }, + + hideThese: function (errors) { + errors.not(this.containers).text(""); + this.addWrapper(errors).hide(); + }, + + valid: function () { + return this.size() === 0; + }, + + size: function () { + return this.errorList.length; + }, + + focusInvalid: function () { + if (this.settings.focusInvalid) { + try { + $(this.findLastActive() || this.errorList.length && this.errorList[0].element || []) + .filter(":visible") + .focus() + + // Manually trigger focusin event; without it, focusin handler isn't called, findLastActive won't have anything to find + .trigger("focusin"); + } catch (e) { + + // Ignore IE throwing errors when focusing hidden elements + } + } + }, + + findLastActive: function () { + var lastActive = this.lastActive; + return lastActive && $.grep(this.errorList, function (n) { + return n.element.name === lastActive.name; + }).length === 1 && lastActive; + }, + + elements: function () { + var validator = this, + rulesCache = {}; + + // Select all valid inputs inside the form (no submit or reset buttons) + return $(this.currentForm) + .find("input, select, textarea, [contenteditable]") + .not(":submit, :reset, :image, :disabled") + .not(this.settings.ignore) + .filter(function () { + var name = this.name || $(this).attr("name"); // For contenteditable + if (!name && validator.settings.debug && window.console) { + console.error("%o has no name assigned", this); + } + + // Set form expando on contenteditable + if (this.hasAttribute("contenteditable")) { + this.form = $(this).closest("form")[0]; + } + + // Select only the first element for each name, and only those with rules specified + if (name in rulesCache || !validator.objectLength($(this).rules())) { + return false; + } + + rulesCache[name] = true; + return true; + }); + }, + + clean: function (selector) { + return $(selector)[0]; + }, + + errors: function () { + var errorClass = this.settings.errorClass.split(" ").join("."); + return $(this.settings.errorElement + "." + errorClass, this.errorContext); + }, + + resetInternals: function () { + this.successList = []; + this.errorList = []; + this.errorMap = {}; + this.toShow = $([]); + this.toHide = $([]); + }, + + reset: function () { + this.resetInternals(); + this.currentElements = $([]); + }, + + prepareForm: function () { + this.reset(); + this.toHide = this.errors().add(this.containers); + }, + + prepareElement: function (element) { + this.reset(); + this.toHide = this.errorsFor(element); + }, + + elementValue: function (element) { + var $element = $(element), + type = element.type, + val, idx; + + if (type === "radio" || type === "checkbox") { + return this.findByName(element.name).filter(":checked").val(); + } else if (type === "number" && typeof element.validity !== "undefined") { + return element.validity.badInput ? "NaN" : $element.val(); + } + + if (element.hasAttribute("contenteditable")) { + val = $element.text(); + } else { + val = $element.val(); + } + + if (type === "file") { + + // Modern browser (chrome & safari) + if (val.substr(0, 12) === "C:\\fakepath\\") { + return val.substr(12); + } + + // Legacy browsers + // Unix-based path + idx = val.lastIndexOf("/"); + if (idx >= 0) { + return val.substr(idx + 1); + } + + // Windows-based path + idx = val.lastIndexOf("\\"); + if (idx >= 0) { + return val.substr(idx + 1); + } + + // Just the file name + return val; + } + + if (typeof val === "string") { + return val.replace(/\r/g, ""); + } + return val; + }, + + check: function (element) { + element = this.validationTargetFor(this.clean(element)); + + var rules = $(element).rules(), + rulesCount = $.map(rules, function (n, i) { + return i; + }).length, + dependencyMismatch = false, + val = this.elementValue(element), + result, method, rule; + + // If a normalizer is defined for this element, then + // call it to retreive the changed value instead + // of using the real one. + // Note that `this` in the normalizer is `element`. + if (typeof rules.normalizer === "function") { + val = rules.normalizer.call(element, val); + + if (typeof val !== "string") { + throw new TypeError("The normalizer should return a string value."); + } + + // Delete the normalizer from rules to avoid treating + // it as a pre-defined method. + delete rules.normalizer; + } + + for (method in rules) { + rule = {method: method, parameters: rules[method]}; + try { + result = $.validator.methods[method].call(this, val, element, rule.parameters); + + // If a method indicates that the field is optional and therefore valid, + // don't mark it as valid when there are no other rules + if (result === "dependency-mismatch" && rulesCount === 1) { + dependencyMismatch = true; + continue; + } + dependencyMismatch = false; + + if (result === "pending") { + this.toHide = this.toHide.not(this.errorsFor(element)); + return; + } + + if (!result) { + this.formatAndAdd(element, rule); + return false; + } + } catch (e) { + if (this.settings.debug && window.console) { + console.log("Exception occurred when checking element " + element.id + ", check the '" + rule.method + "' method.", e); + } + if (e instanceof TypeError) { + e.message += ". Exception occurred when checking element " + element.id + ", check the '" + rule.method + "' method."; + } + + throw e; + } + } + if (dependencyMismatch) { + return; + } + if (this.objectLength(rules)) { + this.successList.push(element); + } + return true; + }, + + // Return the custom message for the given element and validation method + // specified in the element's HTML5 data attribute + // return the generic message if present and no method specific message is present + customDataMessage: function (element, method) { + return $(element).data("msg" + method.charAt(0).toUpperCase() + + method.substring(1).toLowerCase()) || $(element).data("msg"); + }, + + // Return the custom message for the given element name and validation method + customMessage: function (name, method) { + var m = this.settings.messages[name]; + return m && ( m.constructor === String ? m : m[method] ); + }, + + // Return the first defined argument, allowing empty strings + findDefined: function () { + for (var i = 0; i < arguments.length; i++) { + if (arguments[i] !== undefined) { + return arguments[i]; + } + } + return undefined; + }, + + defaultMessage: function (element, rule) { + var message = this.findDefined( + this.customMessage(element.name, rule.method), + this.customDataMessage(element, rule.method), + + // 'title' is never undefined, so handle empty string as undefined + !this.settings.ignoreTitle && element.title || undefined, + $.validator.messages[rule.method], + "<strong>Warning: No message defined for " + element.name + "</strong>" + ), + theregex = /\$?\{(\d+)\}/g; + if (typeof message === "function") { + message = message.call(this, rule.parameters, element); + } else if (theregex.test(message)) { + message = $.validator.format(message.replace(theregex, "{$1}"), rule.parameters); + } + + return message; + }, + + formatAndAdd: function (element, rule) { + var message = this.defaultMessage(element, rule); + + this.errorList.push({ + message: message, + element: element, + method: rule.method + }); + + this.errorMap[element.name] = message; + this.submitted[element.name] = message; + }, + + addWrapper: function (toToggle) { + if (this.settings.wrapper) { + toToggle = toToggle.add(toToggle.parent(this.settings.wrapper)); + } + return toToggle; + }, + + defaultShowErrors: function () { + var i, elements, error; + for (i = 0; this.errorList[i]; i++) { + error = this.errorList[i]; + if (this.settings.highlight) { + this.settings.highlight.call(this, error.element, this.settings.errorClass, this.settings.validClass); + } + this.showLabel(error.element, error.message); + } + if (this.errorList.length) { + this.toShow = this.toShow.add(this.containers); + } + if (this.settings.success) { + for (i = 0; this.successList[i]; i++) { + this.showLabel(this.successList[i]); + } + } + if (this.settings.unhighlight) { + for (i = 0, elements = this.validElements(); elements[i]; i++) { + this.settings.unhighlight.call(this, elements[i], this.settings.errorClass, this.settings.validClass); + } + } + this.toHide = this.toHide.not(this.toShow); + this.hideErrors(); + this.addWrapper(this.toShow).show(); + }, + + validElements: function () { + return this.currentElements.not(this.invalidElements()); + }, + + invalidElements: function () { + return $(this.errorList).map(function () { + return this.element; + }); + }, + + showLabel: function (element, message) { + var place, group, errorID, v, + error = this.errorsFor(element), + elementID = this.idOrName(element), + describedBy = $(element).attr("aria-describedby"); + + if (error.length) { + + // Refresh error/success class + error.removeClass(this.settings.validClass).addClass(this.settings.errorClass); + + // Replace message on existing label + error.html(message); + } else { + + // Create error element + error = $("<" + this.settings.errorElement + ">") + .attr("id", elementID + "-error") + .addClass(this.settings.errorClass) + .html(message || ""); + + // Maintain reference to the element to be placed into the DOM + place = error; + if (this.settings.wrapper) { + + // Make sure the element is visible, even in IE + // actually showing the wrapped element is handled elsewhere + place = error.hide().show().wrap("<" + this.settings.wrapper + "/>").parent(); + } + if (this.labelContainer.length) { + this.labelContainer.append(place); + } else if (this.settings.errorPlacement) { + this.settings.errorPlacement(place, $(element)); + } else { + place.insertAfter(element); + } + + // Link error back to the element + if (error.is("label")) { + + // If the error is a label, then associate using 'for' + error.attr("for", elementID); + + // If the element is not a child of an associated label, then it's necessary + // to explicitly apply aria-describedby + } else if (error.parents("label[for='" + this.escapeCssMeta(elementID) + "']").length === 0) { + errorID = error.attr("id"); + + // Respect existing non-error aria-describedby + if (!describedBy) { + describedBy = errorID; + } else if (!describedBy.match(new RegExp("\\b" + this.escapeCssMeta(errorID) + "\\b"))) { + + // Add to end of list if not already present + describedBy += " " + errorID; + } + $(element).attr("aria-describedby", describedBy); + + // If this element is grouped, then assign to all elements in the same group + group = this.groups[element.name]; + if (group) { + v = this; + $.each(v.groups, function (name, testgroup) { + if (testgroup === group) { + $("[name='" + v.escapeCssMeta(name) + "']", v.currentForm) + .attr("aria-describedby", error.attr("id")); + } + }); + } + } + } + if (!message && this.settings.success) { + error.text(""); + if (typeof this.settings.success === "string") { + error.addClass(this.settings.success); + } else { + this.settings.success(error, element); + } + } + this.toShow = this.toShow.add(error); + }, + + errorsFor: function (element) { + var name = this.escapeCssMeta(this.idOrName(element)), + describer = $(element).attr("aria-describedby"), + selector = "label[for='" + name + "'], label[for='" + name + "'] *"; + + // 'aria-describedby' should directly reference the error element + if (describer) { + selector = selector + ", #" + this.escapeCssMeta(describer) + .replace(/\s+/g, ", #"); + } + + return this + .errors() + .filter(selector); + }, + + // See https://api.jquery.com/category/selectors/, for CSS + // meta-characters that should be escaped in order to be used with JQuery + // as a literal part of a name/id or any selector. + escapeCssMeta: function (string) { + return string.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g, "\\$1"); + }, + + idOrName: function (element) { + return this.groups[element.name] || ( this.checkable(element) ? element.name : element.id || element.name ); + }, + + validationTargetFor: function (element) { + + // If radio/checkbox, validate first element in group instead + if (this.checkable(element)) { + element = this.findByName(element.name); + } + + // Always apply ignore filter + return $(element).not(this.settings.ignore)[0]; + }, + + checkable: function (element) { + return ( /radio|checkbox/i ).test(element.type); + }, + + findByName: function (name) { + return $(this.currentForm).find("[name='" + this.escapeCssMeta(name) + "']"); + }, + + getLength: function (value, element) { + switch (element.nodeName.toLowerCase()) { + case "select": + return $("option:selected", element).length; + case "input": + if (this.checkable(element)) { + return this.findByName(element.name).filter(":checked").length; + } + } + return value.length; + }, + + depend: function (param, element) { + return this.dependTypes[typeof param] ? this.dependTypes[typeof param](param, element) : true; + }, + + dependTypes: { + "boolean": function (param) { + return param; + }, + "string": function (param, element) { + return !!$(param, element.form).length; + }, + "function": function (param, element) { + return param(element); + } + }, + + optional: function (element) { + var val = this.elementValue(element); + return !$.validator.methods.required.call(this, val, element) && "dependency-mismatch"; + }, + + startRequest: function (element) { + if (!this.pending[element.name]) { + this.pendingRequest++; + $(element).addClass(this.settings.pendingClass); + this.pending[element.name] = true; + } + }, + + stopRequest: function (element, valid) { + this.pendingRequest--; + + // Sometimes synchronization fails, make sure pendingRequest is never < 0 + if (this.pendingRequest < 0) { + this.pendingRequest = 0; + } + delete this.pending[element.name]; + $(element).removeClass(this.settings.pendingClass); + if (valid && this.pendingRequest === 0 && this.formSubmitted && this.form()) { + $(this.currentForm).submit(); + this.formSubmitted = false; + } else if (!valid && this.pendingRequest === 0 && this.formSubmitted) { + $(this.currentForm).triggerHandler("invalid-form", [this]); + this.formSubmitted = false; + } + }, + + previousValue: function (element, method) { + return $.data(element, "previousValue") || $.data(element, "previousValue", { + old: null, + valid: true, + message: this.defaultMessage(element, {method: method}) + }); + }, + + // Cleans up all forms and elements, removes validator-specific events + destroy: function () { + this.resetForm(); + + $(this.currentForm) + .off(".validate") + .removeData("validator") + .find(".validate-equalTo-blur") + .off(".validate-equalTo") + .removeClass("validate-equalTo-blur"); + } + + }, + + classRuleSettings: { + required: {required: true}, + email: {email: true}, + url: {url: true}, + date: {date: true}, + dateISO: {dateISO: true}, + number: {number: true}, + digits: {digits: true}, + creditcard: {creditcard: true} + }, + + addClassRules: function (className, rules) { + if (className.constructor === String) { + this.classRuleSettings[className] = rules; + } else { + $.extend(this.classRuleSettings, className); + } + }, + + classRules: function (element) { + var rules = {}, + classes = $(element).attr("class"); + + if (classes) { + $.each(classes.split(" "), function () { + if (this in $.validator.classRuleSettings) { + $.extend(rules, $.validator.classRuleSettings[this]); + } + }); + } + return rules; + }, + + normalizeAttributeRule: function (rules, type, method, value) { + + // Convert the value to a number for number inputs, and for text for backwards compability + // allows type="date" and others to be compared as strings + if (/min|max|step/.test(method) && ( type === null || /number|range|text/.test(type) )) { + value = Number(value); + + // Support Opera Mini, which returns NaN for undefined minlength + if (isNaN(value)) { + value = undefined; + } + } + + if (value || value === 0) { + rules[method] = value; + } else if (type === method && type !== "range") { + + // Exception: the jquery validate 'range' method + // does not test for the html5 'range' type + rules[method] = true; + } + }, + + attributeRules: function (element) { + var rules = {}, + $element = $(element), + type = element.getAttribute("type"), + method, value; + + for (method in $.validator.methods) { + + // Support for <input required> in both html5 and older browsers + if (method === "required") { + value = element.getAttribute(method); + + // Some browsers return an empty string for the required attribute + // and non-HTML5 browsers might have required="" markup + if (value === "") { + value = true; + } + + // Force non-HTML5 browsers to return bool + value = !!value; + } else { + value = $element.attr(method); + } + + this.normalizeAttributeRule(rules, type, method, value); + } + + // 'maxlength' may be returned as -1, 2147483647 ( IE ) and 524288 ( safari ) for text inputs + if (rules.maxlength && /-1|2147483647|524288/.test(rules.maxlength)) { + delete rules.maxlength; + } + + return rules; + }, + + dataRules: function (element) { + var rules = {}, + $element = $(element), + type = element.getAttribute("type"), + method, value; + + for (method in $.validator.methods) { + value = $element.data("rule" + method.charAt(0).toUpperCase() + method.substring(1).toLowerCase()); + this.normalizeAttributeRule(rules, type, method, value); + } + return rules; + }, + + staticRules: function (element) { + var rules = {}, + validator = $.data(element.form, "validator"); + + if (validator.settings.rules) { + rules = $.validator.normalizeRule(validator.settings.rules[element.name]) || {}; + } + return rules; + }, + + normalizeRules: function (rules, element) { + + // Handle dependency check + $.each(rules, function (prop, val) { + + // Ignore rule when param is explicitly false, eg. required:false + if (val === false) { + delete rules[prop]; + return; + } + if (val.param || val.depends) { + var keepRule = true; + switch (typeof val.depends) { + case "string": + keepRule = !!$(val.depends, element.form).length; + break; + case "function": + keepRule = val.depends.call(element, element); + break; + } + if (keepRule) { + rules[prop] = val.param !== undefined ? val.param : true; + } else { + $.data(element.form, "validator").resetElements($(element)); + delete rules[prop]; + } + } + }); + + // Evaluate parameters + $.each(rules, function (rule, parameter) { + rules[rule] = $.isFunction(parameter) && rule !== "normalizer" ? parameter(element) : parameter; + }); + + // Clean number parameters + $.each(["minlength", "maxlength"], function () { + if (rules[this]) { + rules[this] = Number(rules[this]); + } + }); + $.each(["rangelength", "range"], function () { + var parts; + if (rules[this]) { + if ($.isArray(rules[this])) { + rules[this] = [Number(rules[this][0]), Number(rules[this][1])]; + } else if (typeof rules[this] === "string") { + parts = rules[this].replace(/[\[\]]/g, "").split(/[\s,]+/); + rules[this] = [Number(parts[0]), Number(parts[1])]; + } + } + }); + + if ($.validator.autoCreateRanges) { + + // Auto-create ranges + if (rules.min != null && rules.max != null) { + rules.range = [rules.min, rules.max]; + delete rules.min; + delete rules.max; + } + if (rules.minlength != null && rules.maxlength != null) { + rules.rangelength = [rules.minlength, rules.maxlength]; + delete rules.minlength; + delete rules.maxlength; + } + } + + return rules; + }, + + // Converts a simple string to a {string: true} rule, e.g., "required" to {required:true} + normalizeRule: function (data) { + if (typeof data === "string") { + var transformed = {}; + $.each(data.split(/\s/), function () { + transformed[this] = true; + }); + data = transformed; + } + return data; + }, + + // http://jqueryvalidation.org/jQuery.validator.addMethod/ + addMethod: function (name, method, message) { + $.validator.methods[name] = method; + $.validator.messages[name] = message !== undefined ? message : $.validator.messages[name]; + if (method.length < 3) { + $.validator.addClassRules(name, $.validator.normalizeRule(name)); + } + }, + + // http://jqueryvalidation.org/jQuery.validator.methods/ + methods: { + + // http://jqueryvalidation.org/required-method/ + required: function (value, element, param) { + + // Check if dependency is met + if (!this.depend(param, element)) { + return "dependency-mismatch"; + } + if (element.nodeName.toLowerCase() === "select") { + + // Could be an array for select-multiple or a string, both are fine this way + var val = $(element).val(); + return val && val.length > 0; + } + if (this.checkable(element)) { + return this.getLength(value, element) > 0; + } + return value.length > 0; + }, + + // http://jqueryvalidation.org/email-method/ + email: function (value, element) { + + // From https://html.spec.whatwg.org/multipage/forms.html#valid-e-mail-address + // Retrieved 2014-01-14 + // If you have a problem with this implementation, report a bug against the above spec + // Or use custom methods to implement your own email validation + return this.optional(element) || /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(value); + }, + + // http://jqueryvalidation.org/url-method/ + url: function (value, element) { + + // Copyright (c) 2010-2013 Diego Perini, MIT licensed + // https://gist.github.com/dperini/729294 + // see also https://mathiasbynens.be/demo/url-regex + // modified to allow protocol-relative URLs + return this.optional(element) || /^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(value); + }, + + // http://jqueryvalidation.org/date-method/ + date: function (value, element) { + return this.optional(element) || !/Invalid|NaN/.test(new Date(value).toString()); + }, + + // http://jqueryvalidation.org/dateISO-method/ + dateISO: function (value, element) { + return this.optional(element) || /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value); + }, + + // http://jqueryvalidation.org/number-method/ + number: function (value, element) { + return this.optional(element) || /^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(value); + }, + + // http://jqueryvalidation.org/digits-method/ + digits: function (value, element) { + return this.optional(element) || /^\d+$/.test(value); + }, + + // http://jqueryvalidation.org/minlength-method/ + minlength: function (value, element, param) { + var length = $.isArray(value) ? value.length : this.getLength(value, element); + return this.optional(element) || length >= param; + }, + + // http://jqueryvalidation.org/maxlength-method/ + maxlength: function (value, element, param) { + var length = $.isArray(value) ? value.length : this.getLength(value, element); + return this.optional(element) || length <= param; + }, + + // http://jqueryvalidation.org/rangelength-method/ + rangelength: function (value, element, param) { + var length = $.isArray(value) ? value.length : this.getLength(value, element); + return this.optional(element) || ( length >= param[0] && length <= param[1] ); + }, + + // http://jqueryvalidation.org/min-method/ + min: function (value, element, param) { + return this.optional(element) || value >= param; + }, + + // http://jqueryvalidation.org/max-method/ + max: function (value, element, param) { + return this.optional(element) || value <= param; + }, + + // http://jqueryvalidation.org/range-method/ + range: function (value, element, param) { + return this.optional(element) || ( value >= param[0] && value <= param[1] ); + }, + + // http://jqueryvalidation.org/step-method/ + step: function (value, element, param) { + var type = $(element).attr("type"), + errorMessage = "Step attribute on input type " + type + " is not supported.", + supportedTypes = ["text", "number", "range"], + re = new RegExp("\\b" + type + "\\b"), + notSupported = type && !re.test(supportedTypes.join()); + + // Works only for text, number and range input types + // TODO find a way to support input types date, datetime, datetime-local, month, time and week + if (notSupported) { + throw new Error(errorMessage); + } + return this.optional(element) || ( value % param === 0 ); + }, + + // http://jqueryvalidation.org/equalTo-method/ + equalTo: function (value, element, param) { + + // Bind to the blur event of the target in order to revalidate whenever the target field is updated + var target = $(param); + if (this.settings.onfocusout && target.not(".validate-equalTo-blur").length) { + target.addClass("validate-equalTo-blur").on("blur.validate-equalTo", function () { + $(element).valid(); + }); + } + return value === target.val(); + }, + + // http://jqueryvalidation.org/remote-method/ + remote: function (value, element, param, method) { + if (this.optional(element)) { + return "dependency-mismatch"; + } + + method = typeof method === "string" && method || "remote"; + + var previous = this.previousValue(element, method), + validator, data, optionDataString; + + if (!this.settings.messages[element.name]) { + this.settings.messages[element.name] = {}; + } + previous.originalMessage = previous.originalMessage || this.settings.messages[element.name][method]; + this.settings.messages[element.name][method] = previous.message; + + param = typeof param === "string" && {url: param} || param; + optionDataString = $.param($.extend({data: value}, param.data)); + if (previous.old === optionDataString) { + return previous.valid; + } + + previous.old = optionDataString; + validator = this; + this.startRequest(element); + data = {}; + data[element.name] = value; + $.ajax($.extend(true, { + mode: "abort", + port: "validate" + element.name, + dataType: "json", + data: data, + context: validator.currentForm, + success: function (response) { + var valid = response === true || response === "true", + errors, message, submitted; + + validator.settings.messages[element.name][method] = previous.originalMessage; + if (valid) { + submitted = validator.formSubmitted; + validator.resetInternals(); + validator.toHide = validator.errorsFor(element); + validator.formSubmitted = submitted; + validator.successList.push(element); + validator.invalid[element.name] = false; + validator.showErrors(); + } else { + errors = {}; + message = response || validator.defaultMessage(element, { + method: method, + parameters: value + }); + errors[element.name] = previous.message = message; + validator.invalid[element.name] = true; + validator.showErrors(errors); + } + previous.valid = valid; + validator.stopRequest(element, valid); + } + }, param)); + return "pending"; + } + } + + }); + +// Ajax mode: abort +// usage: $.ajax({ mode: "abort"[, port: "uniqueport"]}); +// if mode:"abort" is used, the previous request on that port (port can be undefined) is aborted via XMLHttpRequest.abort() + + var pendingRequests = {}, + ajax; + +// Use a prefilter if available (1.5+) + if ($.ajaxPrefilter) { + $.ajaxPrefilter(function (settings, _, xhr) { + var port = settings.port; + if (settings.mode === "abort") { + if (pendingRequests[port]) { + pendingRequests[port].abort(); + } + pendingRequests[port] = xhr; + } + }); + } else { + + // Proxy ajax + ajax = $.ajax; + $.ajax = function (settings) { + var mode = ( "mode" in settings ? settings : $.ajaxSettings ).mode, + port = ( "port" in settings ? settings : $.ajaxSettings ).port; + if (mode === "abort") { + if (pendingRequests[port]) { + pendingRequests[port].abort(); + } + pendingRequests[port] = ajax.apply(this, arguments); + return pendingRequests[port]; + } + return ajax.apply(this, arguments); + }; + } + /* + + }));*/ +}) \ No newline at end of file diff --git a/res/js/lib/seajs.js b/res/js/lib/seajs.js index 4f8b633..494aacf 100644 --- a/res/js/lib/seajs.js +++ b/res/js/lib/seajs.js @@ -615,10 +615,12 @@ var YohoConfig = { }; seajs.config({ alias: { +// 'jquery': 'http://172.16.6.200:8000/js/lib/jquery', +// 'zepto': 'http://172.16.6.200:8000/js/lib/zepto' 'jquery': 'lib/jquery', 'zepto': 'lib/zepto' }, - //base: '../../../res/js/', +// base: 'http://172.16.6.200:8000/js/', base: YohoConfig.resUrl + 'js/', charset: 'utf-8' }); \ No newline at end of file diff --git a/res/js/lib/uploadify.swf b/res/js/lib/uploadify.swf new file mode 100644 index 0000000..1090a0e Binary files /dev/null and b/res/js/lib/uploadify.swf differ diff --git a/res/js/plugins/clamp.js b/res/js/plugins/clamp.js new file mode 100755 index 0000000..2d8783a --- /dev/null +++ b/res/js/plugins/clamp.js @@ -0,0 +1,12 @@ +/*! +* Clamp.js 0.5.1 +* +* Copyright 2011-2013, Joseph Schmitt http://joe.sh +* Released under the WTFPL license +* http://sam.zoy.org/wtfpl/ +*/ +(function(){window.$clamp=function(c,d){function s(a,b){n.getComputedStyle||(n.getComputedStyle=function(a,b){this.el=a;this.getPropertyValue=function(b){var c=/(\-([a-z]){1})/g;"float"==b&&(b="styleFloat");c.test(b)&&(b=b.replace(c,function(a,b,c){return c.toUpperCase()}));return a.currentStyle&&a.currentStyle[b]?a.currentStyle[b]:null};return this});return n.getComputedStyle(a,null).getPropertyValue(b)}function t(a){a=a||c.clientHeight;var b=u(c);return Math.max(Math.floor(a/b),0)}function x(a){return u(c)* +a}function u(a){var b=s(a,"line-height");"normal"==b&&(b=1.2*parseInt(s(a,"font-size")));return parseInt(b)}function l(a){if(a.lastChild.children&&0<a.lastChild.children.length)return l(Array.prototype.slice.call(a.children).pop());if(a.lastChild&&a.lastChild.nodeValue&&""!=a.lastChild.nodeValue&&a.lastChild.nodeValue!=b.truncationChar)return a.lastChild;a.lastChild.parentNode.removeChild(a.lastChild);return l(c)}function p(a,d){if(d){var e=a.nodeValue.replace(b.truncationChar,"");f||(h=0<k.length? +k.shift():"",f=e.split(h));1<f.length?(q=f.pop(),r(a,f.join(h))):f=null;m&&(a.nodeValue=a.nodeValue.replace(b.truncationChar,""),c.innerHTML=a.nodeValue+" "+m.innerHTML+b.truncationChar);if(f){if(c.clientHeight<=d)if(0<=k.length&&""!=h)r(a,f.join(h)+h+q),f=null;else return c.innerHTML}else""==h&&(r(a,""),a=l(c),k=b.splitOnChars.slice(0),h=k[0],q=f=null);if(b.animate)setTimeout(function(){p(a,d)},!0===b.animate?10:b.animate);else return p(a,d)}}function r(a,c){a.nodeValue=c+b.truncationChar}d=d||{}; +var n=window,b={clamp:d.clamp||2,useNativeClamp:"undefined"!=typeof d.useNativeClamp?d.useNativeClamp:!0,splitOnChars:d.splitOnChars||[".","-","\u2013","\u2014"," "],animate:d.animate||!1,truncationChar:d.truncationChar||"\u2026",truncationHTML:d.truncationHTML},e=c.style,y=c.innerHTML,z="undefined"!=typeof c.style.webkitLineClamp,g=b.clamp,v=g.indexOf&&(-1<g.indexOf("px")||-1<g.indexOf("em")),m;b.truncationHTML&&(m=document.createElement("span"),m.innerHTML=b.truncationHTML);var k=b.splitOnChars.slice(0), +h=k[0],f,q;"auto"==g?g=t():v&&(g=t(parseInt(g)));var w;z&&b.useNativeClamp?(e.overflow="hidden",e.textOverflow="ellipsis",e.webkitBoxOrient="vertical",e.display="-webkit-box",e.webkitLineClamp=g,v&&(e.height=b.clamp+"px")):(e=x(g),e<=c.clientHeight&&(w=p(l(c),e)));return{original:y,clamped:w}}})(); \ No newline at end of file diff --git a/res/js/plugins/share.js b/res/js/plugins/share.js index 3acb08a..614eab7 100644 --- a/res/js/plugins/share.js +++ b/res/js/plugins/share.js @@ -99,6 +99,8 @@ define('plugins/share', function(require, exports) { name: "", caption: "" }; + var appid = "", + domain = document.domain; if (options.fbTextFunction != null) { tmpResult = (function() { return options.fbTextFunction.apply($(".yohoo-share-button-facebook")); @@ -128,6 +130,25 @@ define('plugins/share', function(require, exports) { .replace(/[&]/g, "%26") .replace(/[#]/g, "%23") .replace(/[+]/g, "%2B"); + if (domain === "yohood.dev.yoho.cn") { + appid = "146057275796393"; + } else if (domain === "yohood.test.yoho.cn") { + appid = "146057275796393"; + } else if (domain === "www.yohood.cn") { + appid = "146050529130401"; + } + if (appid !== "") { + window.open("http://www.facebook.com/dialog/feed?app_id=" + appid + + // "&redirect_uri=" + location.href + + "&link=" + options.shareUrl + + "&picture=" + options.img + + "&caption=" + options.fbName + + "&description=" + options.fbDescription + (options.fbDescription == "" ? "" : "") + + "&name=" + options.fbCaption, + "", + "height=" + options.height + ",width=" + options.width + ",left=" + iLeft + ",top=" + iTop); + return; + } window.open("http://www.facebook.com/dialog/feed?app_id=1431491300468916&redirect_uri=http://www.yohoboys.com/channel/yohood/closedialog&" + "link=" + options.shareUrl + "&picture=" + options.img + @@ -183,4 +204,4 @@ define('plugins/share', function(require, exports) { $(".enterprise").on("click.closeWxDialog", function() { $(".detail-container").trigger("click.closeWxDialog"); }) -}); \ No newline at end of file +}); diff --git a/res/js/yohood.js b/res/js/yohood.js index 0b7f0e7..6721e1b 100644 --- a/res/js/yohood.js +++ b/res/js/yohood.js @@ -1,761 +1,1966 @@ -define('yohood', function(require, exports) { - var swipe = require("plugins/swipe"); - var swiper = require("plugins/idangerous.swiper"); - var $ = require("jquery"); - var common = require("common"); - var share = require('plugins/share'); - var freetile = require("lib/ui/jquery.freetile"); - var tools = require("lib/util/tools"); - var goodsSwiper = null; - require("plugins/slider"); - require("plugins/imgZoom"); - require("plugins/pagination"); - //图片转换 - var imgTransform = function(obj) { - obj.bind("mousemove", function() { - if ($(this).attr("disopen") == 1) { //禁止 - return false; - } - //图片变大 - if ($(this).attr("isopen") != 1) { - $(this).css({ - '-webkit-transition': '-webkit-transform .5s ease-in', - '-moz-transition': '-moz-transform .5s ease-in', - '-ms-transition': '-ms-transform .5s ease-in', - '-o-transition': '-o-transform .5s ease-in', - 'transition': 'transform .5s ease-in', - '-webkit-transform': 'scale(1.2)', - '-moz-transform': 'scale(1.2)', - '-ms-transform': 'scale(1.2)', - '-o-transform': 'scale(1.2)', - 'transform': 'scale(1.2)' - }); - $(this).attr("isopen", 1); - } - return false; - }); - obj.bind("mouseout", function() { - if ($(this).attr("isopen") == 1) { - //图片还原 - $(this).css({ - '-webkit-transition': '-webkit-transform .5s ease-in', - '-moz-transition': '-moz-transform .5s ease-in', - '-ms-transition': '-ms-transform .5s ease-in', - '-o-transition': '-o-transform .5s ease-in', - 'transition': 'transform .5s ease-in', - '-webkit-transform': 'scale(1)', - '-moz-transform': 'scale(1)', - '-ms-transform': 'scale(1)', - '-o-transform': 'scale(1)', - 'transform': 'scale(1)' - }); - $(this).attr("isopen", 0); - } - }); - return false; - } - //设置瀑布流 - exports.setFlowLayout = setFlowLayout = function() { - $('.fluid-list-inner').freetile({ - animate: false, - elementDelay: 0 - }); - imgTransform($(".image-box img")); - } - //设置商品滚动条 - function setGoodsSwiper() { - var limitedPrev, - limitedNext, - swiperLen; - //限量商品滑动 - limitedPrev = $('.limited-slide-prev'); - limitedNext = $('.limited-slide-next'); - swiperLen = $('.limited-slide-box').find('.box').size(); - limitedPrev.addClass('disable'); - goodsSwiper = swipe.init({ - slideBox: '.limited-slide-box', - prev: '.limited-slide-prev', - next: '.limited-slide-next', - auto: false, - callback: function(index, element) { - swiperLen = $('.limited-slide-box').find('.box').size(); - limitedPrev.removeClass('disable'); - limitedNext.removeClass('disable'); - if (index === swiperLen - 1) { - limitedNext.addClass('disable'); - }; - if (index === 0) { - limitedPrev.addClass('disable'); - }; - } - }); - } - //获取推荐商品 - function getRecommendProduct(obj, limit) { - var template = '<div class="box"><ul class="goods-list clearfix">{li}</ul></div>'; - var offset = parseInt(obj.attr("offset")); - var temp = ''; - var html = ''; - $.ajax({ - url: "/product/getrecommend", - type: "post", - data: { - offset: offset, - limit: limit - }, - success: function(data) { - var product = data.data, - pic = '', - pos = offset, - part, topClass = '', - price = '', - market_price = ''; - if (data.code == 200 && product != "") { - $.each(product, function(i, v) { - //http://img05.static.yohobuy.com/thumb/2014/08/01/02/015008fea15e6a7c44afc0a6293e87b594-0150x0200-2-goodsimg.jpg - pic = v.pic.split('|')[0].replace(/-(\w+)-/g, '-0150x0200-'); - //http://img12.static.yhbimg.com/goodsimg/2015/05/27/09/0235d475f72b11a24128a02c7fc24d4cfc.jpg?imageView/2/w/100/h/100 - pic = pic.replace('imageView/2/w/100/h/100', 'imageView/2/w/200/h/200'); - topClass = pos > 2 ? '' : 'red'; - parts = v.price.split('.'); - market_price = ''; - //价格样式 - price = parts[0] + '.' + (parts[1] ? parts[1] : '00'); - if (parseInt(v.market_price) > 0 && v.market_price != v.price) //原价 - { - parts = v.market_price.split('.'); - market_price = parts[0] + '.' + (parts[1] ? parts[1] : '00'); - market_price = '<span class="original-price">¥ ' + market_price + '</span>'; - } - html += '<li><a href="' + v.url + '" target="_blank" title="' + v.name.replace(/\s+/g, ' ').replace(/"/g, "“") + '">' + - '<div class="img-box"><img src="' + pic + '" alt=""><span class="' + topClass + '">TOP ' + (++pos) + '</span></div>' + - '<p class="goods-name">' + tools.limitWords(v.name.replace(/\s+/g, ' '), 50).replace(/"/g, "“") + '</p>' + - '<p class="price">' + market_price + '¥' + price + '</p></a></li>'; - if (pos % 5 == 0) { - temp += template.replace('{li}', html); - html = ''; - } - }); - if (pos % 5 != 0) { - temp += template.replace('{li}', html); - } - obj.append(temp); - obj.attr("offset", pos); - if (offset <= 0) { - setGoodsSwiper(); - } else { - //重新绘画 - goodsSwiper.setup(); - $('.limited-slide-next').removeClass('disable'); - } - if (pos <= 5) //去掉左右按钮 - { - $(".limited-slide-control").remove(); - } - } - } - }); - return html; - } - //首页 - exports.index = function() { - var cooperateSwiper, - bannerSwipe; - //大banner滑动 - if ($('.slide-main').find('.box').size() > 1) { - bannerSwipe = swipe.init({ - slideBox: '.slide-box', - prev: '.slide-prev', - next: '.slide-next', - auto: 3000, - continuous: true, - callback: function(index) { - if (index >= $('.dib a').size()) { - index = index - $('.dib a').size(); - } - $('.dib a').removeClass('on').eq(index).addClass('on'); - } - }); - } - - $('.dib').on('click', 'a', function() { - bannerSwipe.slide($(this).index()); - }) - - if ($('.slide-box').find('.box').size() <= 1) { - $('.slide-navigator').hide(); - $('.slide-control').hide(); - } - - $('.cooperation-slide-prev').addClass('disable'); - cooperateSwiper = new swiper('.cooperation-slide-box', { - wrapperClass: 'slide-wrap', - slideClass: 'box', - slidesPerView: 'auto', - onSlideChangeStart: function() { - var swiperLen = $('.cooperation-slide-box').find('.box').size(); - $('.cooperation-slide-prev,.cooperation-slide-next').removeClass('disable'); - if (cooperateSwiper.activeIndex === swiperLen - 1) { - $('.cooperation-slide-next').addClass('disable'); - } else if (cooperateSwiper.activeIndex === 0) { - $('.cooperation-slide-prev').addClass('disable'); - } - } - }); - - $('.cooperation-slide-prev').on('click', function(e) { - e.preventDefault(); - cooperateSwiper.swipePrev(); - }); - $('.cooperation-slide-next').on('click', function(e) { - e.preventDefault(); - cooperateSwiper.swipeNext(); - }); - if (parseInt($("#right_banner").attr("num")) > 0) { - $("#img_flow").find(".layout-item").eq(2).before($("#right_banner").html()); - } - setFlowLayout(); - - }; - //资讯 - exports.news = function() { - setFlowLayout(); - } - - //show页面 - exports.show = function() { - var showLabel = function(obj, imageWidth, imageHeight, top, left) { - obj.find(".pic-tip").each(function() { - var style_left = top + parseInt($(this).attr("x")) / 10000 * imageWidth; - var style_top = left + parseInt($(this).attr("y")) / 10000 * imageHeight; - $(this).css({ - top: style_top, - left: style_left, - display: "block" - }); - }); - }; - var showNone = function(obj) { - obj.find(".pic-tip").each(function() { - $(this).css({ - display: "none" - }); - }); - }; - $('.show-wrap').find('.layout-item').each(function() { - $(this).imgZoom({ - imgTag: 'pic-tip' - }); - }); - //标签设置 - if (/(iPad)/i.test(navigator.userAgent)) { //ipad处理 - $("#bigpic").live("click", function() { - if ($(this).attr("isopen") == 1) { - showNone($(this).parent()); - $(this).attr("isopen", 0); - } else { - showLabel($(this).parent(), 480, 480, 0, 0); - $(this).attr("isopen", 1); - } - - }); - } else { - $(".show-wrap .image-box").bind("click", function() { - showNone($(this)); - }); - $("#bigpic").live("mouseenter", function() { - showLabel($(this).parent(), 480, 480, 0, 0); - }); - $(".show-wrap .image-box").bind("mouseenter", function() { - showLabel($(this), 308, 308, 0, 0); - }); - } - $(".show-wrap .image-box, .img-zoom").bind("mouseleave", function() { - showNone($(this)); - }); - } - - //整个页面布局 - exports.layout = function() { - getRecommendProduct($("#product_list"), 20); - //点击 - $(".limited-slide-next").bind("click", function() { - getRecommendProduct($("#product_list"), 20); - }); - //导航动画效果 - $('.nav').on('click', 'li', function() { - $(this).addClass('current').siblings().removeClass('current'); - }); - if (navigator.userAgent.indexOf('iPad') === -1) { - $('.nav').on('mouseover', 'li', function() { - if (!$(this).hasClass('current')) { - $(this).addClass('animate') - } - }).on('mouseout', 'li', function() { - $('.nav').find('li').removeClass('animate'); - }); - } - - //回到顶部 - $(window).scroll(function() { - if ($(window).scrollTop() > 100) { - $(".return-top").fadeIn(500); - } else { - $(".return-top").fadeOut(500); - } - }); - $(".return-top").click(function() { - $('body,html').animate({ - scrollTop: 0 - }, 500); - return false; - }); - } - - //活动 - exports.activity = function() { - - } - - //品牌 - exports.brand = function() { - var bannerSwipe; - //banner滑动 - if ($('.brand-slide').find('box').size() > 1) { - bannerSwipe = swipe.init({ - slideBox: '.slide-box', - prev: '.slide-prev', - next: '.slide-next', - auto: 3000, - continuous: true, - callback: function(index) { - if (index >= $('.dib a').size()) { - index = index - $('.dib a').size(); - } - $('.dib a').removeClass('on').eq(index).addClass('on'); - } - }); - } - $('.dib').on('click', 'a', function() { - bannerSwipe.slide($(this).index()); - }) - - if ($('.slide-box').find('.box').size() <= 1) { - $('.slide-navigator').hide(); - $('.slide-control').hide(); - } - //所有品牌 - $(".all_brand").live("click", function() { - $("input[type=text]").val(""); - $(".search-btn").click(); - }); - - //搜素品牌 - $('.search-wrap').find('input').on('keyup', function() { - $(".search-btn").trigger("click.search"); - }); - $(".search-btn").bind("click.search", function() { - var brand = $.trim($("input[type=text]").val()); - var template = '<ul class="brand-list cooperation-list clearfix">{li}</ul>'; - var noSearchTemplate = '<div class="no-search" style="display:block;"><p>未搜索到“{brand}”的相关品牌</p><a href="javascript:;" class="all_brand"><查看全部品牌</a></div>'; - var html = ''; - $.ajax({ - type: "post", - url: "/brand/getbrand", - data: { - brand: encodeURIComponent(brand) - }, - success: function(data) { - var brands = data.data; - if (data.code == 200 && brands != "") { - $.each(brands, function(k, v) { - html += '<li><a href="javascript:void(0);" target="_blank" title="' + v.name + '"><div class="img-box" brand_id="' + v.id + '">' + - '<img width="145" height="97" src="' + common.getImages(v.logo, 'source', 'blogimg', 'primary') + '" alt="" alt="' + v.name + '"></div>' + - '<p>' + v.name + '</p></a></li>'; - }); - $(".brand-content").html(template.replace('{li}', html)); - } else { - $(".brand-content").html(""); - $(".brand-content").html(noSearchTemplate.replace('{brand}', tools.escapeHTML(brand).replace(/\"/g,"“").replace(/\'/g,"‘"))); - } - } - }); - }); - //品牌列表 - $(".brand-list li .img-box").live("click", function(event) { - var brand_id = $(this).attr("brand_id"); - $.ajax({ - type: "post", - url: "/brand/detail", - data: { - id: brand_id - }, - success: function(data) { - $("#brand_detail").html(data); - if ($(window).height() < 580) { //小屏幕,去掉关闭按钮 - $("#brand_detail").find('.brand-close-btn').remove(); - } - $('.overlay').show(); - } - }); - event.stopPropagation(); - return false; - }); - //隐藏 - $('.overlay').on('click', function() { - $(this).hide(); - $('.brand-introduction').hide(); - }); - $('body').on('click', '.brand-close-btn', function() { - $('.overlay').trigger('click'); - }); - if($(".search-btn").size()) { - $(".search-btn").click(); - } - }; - - //详情页 - exports.detail = function() { - var shareUrl, - shareCover, - detailTitle, - detailSubtitle; - var timer, - nowIndex; - - if ($('.share').size() > 0) { - //微信分享鼠标时间 - $('.yohoo-share-button-wx').on('mouseover', function() { - $('.wx-qrcode-dialog').show(); - }).on('mouseout', function() { - $('.wx-qrcode-dialog').hide(); - }); - shareUrl = $(".share").attr("data-link"); - shareCover = $(".share").attr("cover-url"); - detailTitle = $('.detail-title').find('h2'); - detailSubtitle = $('.detail-title').find('h3'); - //分享 - share.init({ - shareUrl: shareUrl, - img: shareCover, - sinaText: '【YOHOOD 2015】' + detailTitle.text() + '\r\n' + detailSubtitle.text() + '@YOHO潮流志', - fbTextFunction: function() { - return { - des: '【YOHOOD 2015】' + detailTitle.text() + '\r\n' + detailSubtitle.text(), - name: '【YOHOOD 2015】' + detailTitle.text() + '\r\n' + detailSubtitle.text(), - caption: '【YOHOOD 2015】' + detailTitle.text() + '\r\n' + detailSubtitle.text(), - url: location.href - } - }, - tweetText: '【YOHOOD 2015】' + detailTitle.text() + '\r\n' + detailSubtitle.text(), - qqText: '【YOHOOD 2015】' + detailTitle.text() + ' ' + detailSubtitle.text() + '#YOHOOD 2015' - }); - } - //详情页图片滚动 - if ($('.detail-slide').size() > 0) { - //slide大图上的左右箭头显示 - $('.slide-shadow').on('mouseover', 'a', function() { - if ($('.detail-slide-ctrl-tabs').find('li').size() <= 1) return; - if ($(this).hasClass('slide-shadow-prev')) { - $('.slide-big-ctrl-prev').show(); - } else { - $('.slide-big-ctrl-next').show(); - } - }).on('mouseout', 'a', function() { - $('.slide-big-ctrl-prev, .slide-big-ctrl-next').hide(); - }); - $('.detail-slide-body').on('mouseout', function() { - $('.slide-big-ctrl-prev, .slide-big-ctrl-next').hide(); - }); - $('.detail-slide-big-ctrl').on('mouseenter', 'a', function() { - $(this).show(); - }); - - //图片滚动 - detailSwiper = new swiper('.detail-slide-body', { - wrapperClass: 'detail-slide-piclist', - slideClass: 'box', - loop: true, - slidesPerView: 'auto', - slideElement: 'li' - }); - - $('.slide-big-ctrl-prev,.slide-shadow-prev').bind('click', function(e) { - e.preventDefault(); - detailSwiper.swipePrev(); - }); - $('.slide-big-ctrl-next,.slide-shadow-next').bind('click', function(e) { - e.preventDefault(); - detailSwiper.swipeNext(); - }); - $('.detail-slide-ctrl-tabs').slider(); - $('.detail-slide-big-ctrl,.slide-shadow').on('click', 'a', function() { - $('.detail-slide-ctrl-tabs').slider('slideTo', detailSwiper.activeLoopIndex); - }); - $('.detail-slide-ctrl-tabs').on('click', 'li', function() { - detailSwiper.swipeTo($(this).index()); - }); - } - //侧栏推荐切换 - clearInterval(timer); - - function postSwitch() { - $('.side-related-tab').find('a').each(function(i) { - if ($(this).hasClass('current')) { - $(this).removeClass('current'); - } else { - $(this).addClass('current'); - $('.side-related-list').hide().eq(i).show(); - } - }); - } - timer = setInterval(function() { - postSwitch(); - }, 5000); - $('.side-related-post').on('mouseenter', function() { - clearInterval(timer); - }).on('mouseleave', function() { - timer = setInterval(function() { - postSwitch(); - }, 5000); - }) - $('.side-related-tab').on('click', 'a', function() { - nowIndex = $(this).index(); - if ($(this).hasClass('current')) return; - $(this).addClass('current').siblings().removeClass('current'); - $('.side-related-list').hide().eq(nowIndex).show(); - }); - - //分享按钮位置 - var shareOffsetTop = $(".share").offset().top; - $(window).scroll(function() { - scrollTop = $(window).scrollTop(); - maxH = $('.yoho-nav').outerHeight() + $('.header').outerHeight() + $('.bd').outerHeight(); - if (shareOffsetTop - scrollTop <= 0) { - $(".share").css({ - "position": "fixed", - "top": 10 - }); - } else { - $(".share").css({ - "position": "absolute", - "top": shareOffsetTop - }); - } - - if ($(".share").offset().top + $('.share').outerHeight() > maxH && navigator.userAgent.indexOf('iPad') === -1) {; - $(".share").css({ - 'position': 'absolute', - 'top': maxH - $('.share').outerHeight() - 10 - }); - } - }); - - //ipad处理share位置 - if (navigator.userAgent.indexOf('iPad') !== -1) { - $('.wrapper').width(960); - $('.share').css('marginLeft', '-514px'); - } - //设置flash宽度 - $(".text-body").find("object[class=content-web-flash]").each(function() { - if (parseInt($(this).attr("width")) > 650 || parseInt($(this).css("width")) > 650) { - $(this).css({ - width: "665px" - }); - } - }); - $(".text-body").find("embed").each(function() { - if (parseInt($(this).attr("width")) > 650 || parseInt($(this).css("width")) > 650) { - $(this).css({ - width: "665px" - }); - } - }); - //图片一张时,没有左右按钮 - if ($(".lazy").size() == 1) { - $(".detail-slide-ctrl").remove(); - } - - //设置h5视频高度 - var videoSize = $("video").size(); - var videoPos = 0; - if (videoSize > 0) { - var videoInterval = setInterval( - function() { - $("video").each(function() { //设置视频高度 - if ($(this)[0].videoHeight > 0) { - $(this).css({ - "height": Math.floor($(this)[0].videoHeight * (640 / $(this)[0].videoWidth)) - }); - videoPos++; - } - }); - if (videoPos >= videoSize) clearInterval(videoInterval); - }, 20); - } - - } - - //详情页资讯 - exports.detailNews = function(id) { - var recom = ''; - var hotVideo = ''; - var lastVideo = ''; - var template = function(topic, img, url, isVideo, isTitleStyle, title, imgStyle) { - var playIcon = ''; - var titleStyle = ''; - var title = $('<p>' + title + '</p>').text(); - var html = '<div class="layout-item clearfix">' + - '<div class="image-box">' + - '<a href="' + url + '" target="_blank" title="' + title + '">' + - '<img src="' + img + '" alt="" style="' + imgStyle + '">' + - '{playIcon}' + - '</a>' + - '</div>' + - '<div class="content">' + - '<h2 {titleStyle}>' + - '<a href="' + url + '" title="' + title + '" target="_blank">' + topic + '</a>' + - '</h2>' + - '</div>' + - '</div>'; - if (isVideo == 2) //侧边视频 - { - playIcon = '<i class="play-icon small"></i>'; - } else if (isVideo) { - playIcon = '<i class="play-icon"></i>'; - } - if (isTitleStyle) { - titleStyle = 'class="volupia"'; - } - html = html.replace("{playIcon}", playIcon); - html = html.replace("{titleStyle}", titleStyle); - return html; - } - $.ajax({ - url: "/news/getdetailnews", - type: "post", - data: { - id: id - }, - success: function(data) { - var isVideo, isTitleStyle; - var relatedTop, - relatedPost, - relatedH, - maxH; - if (data.code == 200) { - //推荐资讯 - $.each(data.data.recom, function(i, v) { - isVideo = (v.tag == '视频') ? 1 : 0; - isTitleStyle = (v.main_title_type == 1) ? 1 : 0; - recom += template(tools.limitWords(v.title, 48), common.getImages(v.thumb, '0230x0130', 'blogimg', '1'), - '/news/detail/id/' + v.id, isVideo, isTitleStyle, v.title, ''); - }); - - //热门视频 - $.each(data.data.hotVideo, function(i, v) { - isTitleStyle = (v.main_title_type == 1) ? 1 : 0; - hotVideo += template(tools.limitWords(v.title, 52), common.getImages(v.thumb, '0230x0230', 'blogimg', '1'), - '/news/detail/id/' + v.id, 2, isTitleStyle, v.title, ''); - }); - //最新视频 - $.each(data.data.lastVideo, function(i, v) { - isTitleStyle = (v.main_title_type == 1) ? 1 : 0; - lastVideo += template(tools.limitWords(v.title, 52), common.getImages(v.thumb, '0230x0230', 'blogimg', '1'), - '/news/detail/id/' + v.id, 2, isTitleStyle, v.title, ''); - }); - $(".post-list").html(recom); - $(".side-related-list").eq(0).html(hotVideo); - $(".side-related-list").eq(1).html(lastVideo); - - if ($('.detail-body').outerHeight() > $('.detail-side').outerHeight() && navigator.userAgent.indexOf('iPad') === -1) { - //右侧相关文章定位 - relatedPost = $('.side-related-post'); - relatedTop = relatedPost.offset().top; - relatedH = relatedPost.outerHeight(); - maxH = $('.header').outerHeight() + $('.yoho-nav').outerHeight() + $('.bd').outerHeight(); - if ($('.bd').outerHeight() > $(window).height()) { - $(window).on('scroll', function() { - relatedH = relatedPost.outerHeight(); - maxH = $('.yoho-nav').outerHeight() + $('.header').outerHeight() + $('.bd').outerHeight(); - if ($(this).scrollTop() >= relatedTop) { - relatedPost.addClass('fix'); - if (relatedPost.offset().top + relatedH >= maxH && relatedPost.hasClass('fix')) { - relatedPost.css({ - 'position': 'absolute', - 'top': maxH - relatedH - 10 - }) - } - if ($(this).scrollTop() <= maxH - relatedH) { - relatedPost.css({ - 'position': 'fixed', - 'top': 0 - }); - } - } else { - relatedPost.removeClass('fix').removeAttr('style'); - } - }); - } - } - } - } - }); - } - //现场计划活动 - exports.activityPlan = function() { - var timestamp = new Date().getTime() / 1000; - $('.site-activity-content').find('.layout-item').each(function() { - $(this).imgZoom({ - imgTag: 'pic-tip' - }); - }); - //活动日期定位 - var oTab = $('.site-activity-tab'), - tabTop = oTab.offset().top, - tabH = oTab.outerHeight(), - maxH = $('.yoho-nav').outerHeight() + $('.header').outerHeight() + $('.bd').outerHeight(); - if ($('.bd').outerHeight() > $(window).height()) { - $(window).on('scroll', function() { - tabH = oTab.outerHeight(); - maxH = $('.header').outerHeight() + $('.yoho-nav').outerHeight() + $('.bd').outerHeight(); - if ($(this).scrollTop() >= tabTop) { - oTab.addClass('fix'); - if (oTab.offset().top + tabH >= maxH && oTab.hasClass('fix')) { - oTab.css({ - 'position': 'absolute', - 'top': maxH - tabH - }) - } - if ($(this).scrollTop() <= maxH - tabH) { - oTab.css({ - 'position': 'fixed', - 'top': 0 - }); - } - } else { - oTab.removeClass('fix').removeAttr('style'); - } - }); - } - //日期自动定位 - $(".site-activity-time").each(function() { - if (timestamp >= $(this).attr("start_time") && timestamp <= $(this).attr("end_time")) { - $("body").animate({ - "scrollTop": $(this).offset().top - 50 - }, 1000); - return; - } - }) - } - //视频 - exports.video = function() { - //图片转换 - imgTransform($(".image-box img")); - } - //推荐 - exports.recommend = function() { - $(".wrapper").attr("class", ""); - $(".bd").attr("class", ""); - } -}); \ No newline at end of file +define('yohood', function(require, exports) { + var swipe = require("plugins/swipe"); + var swiper = require("plugins/idangerous.swiper"); + var $ = require("jquery"); + var common = require("common"); + var share = require('plugins/share'); + var freetile = require("lib/ui/jquery.freetile"); + var tools = require("lib/util/tools"); + var json = require("lib/util/json"); + var goodsSwiper = null; + require("plugins/slider"); + require("plugins/imgZoom"); + require("plugins/pagination"); + require("lib/jquery.validate"); + require("lib/jquery.uploadify"); + require("plugins/clamp"); + //图片转换 + var imgTransform = function(obj) { + obj.bind("mousemove", function() { + if ($(this).attr("disopen") == 1) { //禁止 + return false; + } + //图片变大 + if ($(this).attr("isopen") != 1) { + $(this).css({ + '-webkit-transition': '-webkit-transform .5s ease-in', + '-moz-transition': '-moz-transform .5s ease-in', + '-ms-transition': '-ms-transform .5s ease-in', + '-o-transition': '-o-transform .5s ease-in', + 'transition': 'transform .5s ease-in', + '-webkit-transform': 'scale(1.2)', + '-moz-transform': 'scale(1.2)', + '-ms-transform': 'scale(1.2)', + '-o-transform': 'scale(1.2)', + 'transform': 'scale(1.2)' + }); + $(this).attr("isopen", 1); + } + return false; + }); + obj.bind("mouseout", function() { + if ($(this).attr("isopen") == 1) { + //图片还原 + $(this).css({ + '-webkit-transition': '-webkit-transform .5s ease-in', + '-moz-transition': '-moz-transform .5s ease-in', + '-ms-transition': '-ms-transform .5s ease-in', + '-o-transition': '-o-transform .5s ease-in', + 'transition': 'transform .5s ease-in', + '-webkit-transform': 'scale(1)', + '-moz-transform': 'scale(1)', + '-ms-transform': 'scale(1)', + '-o-transform': 'scale(1)', + 'transform': 'scale(1)' + }); + $(this).attr("isopen", 0); + } + }); + return false; + } + + function formatLayoutItemStyle(mainLayout) { + var method = null, + $title = $(mainLayout).find(".content h2"), + $textContent = null, + clampNum = { + title: 2, + smallText: 3, + bigText: 4 + }, + style = null, + i = 0, + len = 0; + + method = { + /** + * 获取元素计算后CSS样式 + * @param {HTMLElement} element 要获取计算后CSS样式的元素 + * @return {CSSStyleDeclaration} 计算后的CSS样式 + */ + getComputedStyle: function(element) { + if (typeof window.getComputedStyle === "function") { + return window.getComputedStyle(element, null); + } else { + return element.currentStyle; + } + } + } + + + for (i = 0, len = $title.length; i < len; i++) { + style = method.getComputedStyle($title[i]); + $textContent = $($title[i]).next(".text-content"); + + $clamp($($title[i]).find("a")[0], { clamp: clampNum.title }); + if ($textContent.size() <= 0) { + continue; + } + + if (parseInt(style.height) > 30) { + $textContent.css("margin", "21px 0 0 0"); + $clamp($textContent.find("a")[0], { + clamp: clampNum.smallText + }); + } else { + $clamp($textContent.find("a")[0], { + clamp: clampNum.bigText + }); + } + + } + } + + + //设置瀑布流 + exports.setFlowLayout = setFlowLayout = function() { + $('.fluid-list-inner').freetile({ + animate: false, + elementDelay: 0 + }); + imgTransform($(".image-box img")); + } + //设置商品滚动条 + function setGoodsSwiper() { + var limitedPrev, + limitedNext, + swiperLen; + //限量商品滑动 + limitedPrev = $('.limited-slide-prev'); + limitedNext = $('.limited-slide-next'); + swiperLen = $('.limited-slide-box').find('.box').size(); + limitedPrev.addClass('disable'); + goodsSwiper = swipe.init({ + slideBox: '.limited-slide-box', + prev: '.limited-slide-prev', + next: '.limited-slide-next', + auto: false, + callback: function(index, element) { + swiperLen = $('.limited-slide-box').find('.box').size(); + limitedPrev.removeClass('disable'); + limitedNext.removeClass('disable'); + if (index === swiperLen - 1) { + limitedNext.addClass('disable'); + }; + if (index === 0) { + limitedPrev.addClass('disable'); + }; + } + }); + } + //获取推荐商品 + function getRecommendProduct(obj, limit) { + var template = '<div class="box"><ul class="goods-list clearfix">{li}</ul></div>'; + var offset = parseInt(obj.attr("offset")); + var temp = ''; + var html = ''; + $.ajax({ + url: "/product/getrecommend", + type: "post", + data: { + offset: offset, + limit: limit + }, + success: function(data) { + var product = data.data, + pic = '', + pos = offset, + part, topClass = '', + price = '', + market_price = ''; + if (data.code == 200 && product != "") { + $.each(product, function(i, v) { + //http://img05.static.yohobuy.com/thumb/2014/08/01/02/015008fea15e6a7c44afc0a6293e87b594-0150x0200-2-goodsimg.jpg + pic = v.pic.split('|')[0].replace(/-(\w+)-/g, '-0150x0200-'); + //http://img12.static.yhbimg.com/goodsimg/2015/05/27/09/0235d475f72b11a24128a02c7fc24d4cfc.jpg?imageView/2/w/100/h/100 + pic = pic.replace('imageView/2/w/100/h/100', 'imageView/2/w/200/h/200'); + topClass = pos > 2 ? '' : 'red'; + parts = v.price.split('.'); + market_price = ''; + //价格样式 + price = parts[0] + '.' + (parts[1] ? parts[1] : '00'); + if (parseInt(v.market_price) > 0 && v.market_price != v.price) //原价 + { + parts = v.market_price.split('.'); + market_price = parts[0] + '.' + (parts[1] ? parts[1] : '00'); + market_price = '<span class="original-price">¥ ' + market_price + '</span>'; + } + html += '<li><a href="' + v.url + '" target="_blank" title="' + v.name.replace(/\s+/g, ' ').replace(/"/g, "“") + '">' + + '<div class="img-box"><img src="' + pic + '" alt=""><span class="' + topClass + '">TOP ' + (++pos) + '</span></div>' + + '<p class="goods-name">' + tools.limitWords(v.name.replace(/\s+/g, ' '), 50).replace(/"/g, "“") + '</p>' + + '<p class="price">' + market_price + '¥' + price + '</p></a></li>'; + if (pos % 5 == 0) { + temp += template.replace('{li}', html); + html = ''; + } + }); + if (pos % 5 != 0) { + temp += template.replace('{li}', html); + } + obj.append(temp); + obj.attr("offset", pos); + if (offset <= 0) { + setGoodsSwiper(); + } else { + //重新绘画 + //goodsSwiper.setup(); + $('.limited-slide-next').removeClass('disable'); + } + if (pos <= 5) //去掉左右按钮 + { + $(".limited-slide-control").remove(); + } + } + } + }); + return html; + } + exports.point = function() { + var cooperateSwiper, + bannerSwipe; + //大banner滑动 + if ($('.slide-main').find('.box').size() > 1) { + bannerSwipe = swipe.init({ + slideBox: '.slide-box', + prev: '.slide-prev', + next: '.slide-next', + auto: 3000, + continuous: true, + callback: function(index) { + if (index >= $('.dib a').size()) { + index = index - $('.dib a').size(); + } + $('.dib a').removeClass('on').eq(index).addClass('on'); + } + }); + } + } + //首页 + exports.index = function() { + var cooperateSwiper, + bannerSwipe; + //大banner滑动 + //if ($('.slide-main').find('.box').size() > 1) { + // bannerSwipe = swipe.init({ + // slideBox: '.slide-box', + // prev: '.slide-prev', + // next: '.slide-next', + // auto: 3000, + // continuous: true, + // callback: function(index) { + // if (index >= $('.dib a').size()) { + // index = index - $('.dib a').size(); + // } + // $('.dib a').removeClass('on').eq(index).addClass('on'); + // } + // }); + //} + + $('.dib').on('click', 'a', function() { + bannerSwipe.slide($(this).index()); + }) + + if ($('.slide-box').find('.box').size() <= 1) { + $('.slide-navigator').hide(); + $('.slide-control').hide(); + } + + //$('.cooperation-slide-prev').addClass('disable'); + //cooperateSwiper = new swiper('.cooperation-slide-box', { + // wrapperClass: 'slide-wrap', + // slideClass: 'box', + // slidesPerView: 'auto', + // onSlideChangeStart: function() { + // var swiperLen = $('.cooperation-slide-box').find('.box').size(); + // $('.cooperation-slide-prev,.cooperation-slide-next').removeClass('disable'); + // if (cooperateSwiper.activeIndex === swiperLen - 1) { + // $('.cooperation-slide-next').addClass('disable'); + // } else if (cooperateSwiper.activeIndex === 0) { + // $('.cooperation-slide-prev').addClass('disable'); + // } + // } + //}); + + //$('.cooperation-slide-prev').on('click', function(e) { + // e.preventDefault(); + // cooperateSwiper.swipePrev(); + //}); + //$('.cooperation-slide-next').on('click', function(e) { + // e.preventDefault(); + // cooperateSwiper.swipeNext(); + //}); + if (parseInt($("#right_banner").attr("num")) > 0) { + $("#img_flow").find(".layout-item").eq(2).before($("#right_banner").html()); + } + setFlowLayout(); + + }; + //资讯 + exports.news = function() { + setFlowLayout(); + } + + //show页面 + exports.show = function() { + var showLabel = function(obj, imageWidth, imageHeight, top, left) { + obj.find(".pic-tip").each(function() { + var style_left = top + parseInt($(this).attr("x")) / 10000 * imageWidth; + var style_top = left + parseInt($(this).attr("y")) / 10000 * imageHeight; + $(this).css({ + top: style_top, + left: style_left, + display: "block" + }); + }); + }; + var showNone = function(obj) { + obj.find(".pic-tip").each(function() { + $(this).css({ + display: "none" + }); + }); + }; + $('.show-wrap').find('.layout-item').each(function() { + $(this).imgZoom({ + imgTag: 'pic-tip' + }); + }); + //标签设置 + if (/(iPad)/i.test(navigator.userAgent)) { //ipad处理 + $("#bigpic").live("click", function() { + if ($(this).attr("isopen") == 1) { + showNone($(this).parent()); + $(this).attr("isopen", 0); + } else { + showLabel($(this).parent(), 480, 480, 0, 0); + $(this).attr("isopen", 1); + } + + }); + } else { + $(".show-wrap .image-box").bind("click", function() { + showNone($(this)); + }); + $("#bigpic").live("mouseenter", function() { + showLabel($(this).parent(), 480, 480, 0, 0); + }); + $(".show-wrap .image-box").bind("mouseenter", function() { + showLabel($(this), 308, 308, 0, 0); + }); + } + $(".show-wrap .image-box, .img-zoom").bind("mouseleave", function() { + showNone($(this)); + }); + } + + //整个页面布局 + exports.layout = function() { + getRecommendProduct($("#product_list"), 20); + //点击 + $(".limited-slide-next").bind("click", function() { + getRecommendProduct($("#product_list"), 20); + }); + //导航动画效果 + $('.nav').on('click', 'li', function() { + $(this).addClass('current').siblings().removeClass('current'); + }); + // if (navigator.userAgent.indexOf('iPad') === -1) { + // $('.nav').on('mouseover', 'li', function() { + // if (!$(this).hasClass('current')) { + // $(this).addClass('animate') + // } + // }).on('mouseout', 'li', function() { + // $('.nav').find('li').removeClass('animate'); + // }); + // } + + //回到顶部 + $(window).scroll(function() { + if ($(window).scrollTop() > 100) { + $(".return-top").fadeIn(500); + } else { + $(".return-top").fadeOut(500); + } + }); + + $(".return-top").click(function() { + $('body,html').animate({ + scrollTop: 0 + }, 500); + return false; + }); + + ({ + getScrollBottom: function() { + var scrollTop = $(window).scrollTop(), + pageHeight = $(document).height(), + windowHeight = $(window).height(); + + return pageHeight - windowHeight - scrollTop; + }, + + fixedReturnTop: function(position) { + $("body").css("position", "relative"); + $(".return-top").css("position", "absolute").css("bottom", position + "px"); + }, + + floatReturnTop: function(position) { + $(".return-top").css("position", "fixed").css("bottom", position + "px"); + }, + + init: function() { + var that = this, + hasCooperation = $(".cooperation").size() > 0 ? true : false, + initPosition = 50; + stayPosition = hasCooperation ? (71 + 240 + 50) : (71 + 50), + + + $(window).on("scroll", function(event) { + if (that.getScrollBottom() > stayPosition - initPosition) { + that.floatReturnTop(initPosition); + } else { + that.fixedReturnTop(stayPosition); + } + + }); + } + }).init(); + + + } + + //活动 + exports.activity = function() { + + } + + //品牌 + exports.brand = function() { + var bannerSwipe; + // //banner滑动 + // if ($('.brand-slide').find('box').size() > 1) { + // bannerSwipe = swipe.init({ + // slideBox: '.slide-box', + // prev: '.slide-prev', + // next: '.slide-next', + // auto: 3000, + // continuous: true, + // callback: function(index) { + // if (index >= $('.dib a').size()) { + // index = index - $('.dib a').size(); + // } + // $('.dib a').removeClass('on').eq(index).addClass('on'); + // } + // }); + // } + // $('.dib').on('click', 'a', function() { + // bannerSwipe.slide($(this).index()); + // }) + + // if ($('.slide-box').find('.box').size() <= 1) { + // $('.slide-navigator').hide(); + // $('.slide-control').hide(); + // } + + //所有品牌 + $(".all_brand").on("click", function() { + $("input[type=text]").val(""); + $(".search-btn").click(); + }); + + //截取字符串 + function cutString(str, len) { + //length属性读出来的汉字长度为1 + if (str.length * 2 <= len) { + return str; + } + var strlen = 0; + var s = ""; + for (var i = 0; i < str.length; i++) { + s = s + str.charAt(i); + if (str.charCodeAt(i) > 128) { + strlen = strlen + 2; + if (strlen >= len) { + return s.substring(0, s.length - 1) + "..."; + } + } else { + strlen = strlen + 1; + if (strlen >= len) { + return s.substring(0, s.length - 2) + "..."; + } + } + } + return s; + } + + ({ + brandSort: function(brands, sortBase) { + var brandName = "", + i = 0, + len = 0; + + if (brands === null || brands === undefined) { + return brands; + } + if (typeof sortBase !== "string" || sortBase === "") { + return brands; + } + + sortBase = sortBase.toLowerCase(); + + for (i = 0, len = brands.length; i < len; i++) { + brandName = brands[i].name.toLowerCase(); + if (brandName.indexOf(sortBase) === 0) { + brands = brands.splice(i, 1).concat(brands); + } + } + + return brands; + }, + init: function() { + var that = this; + //搜素品牌 + $('.search-wrap').find('input').on('keyup', function() { + $(".search-btn").trigger("click.search"); + }); + $(".search-btn").bind("click.search", function() { + var brand = $.trim($("input[type=text]").val()); + var template = '<ul class="brand-list cooperation-list clearfix">{li}</ul>'; + var noSearchTemplate = '<div class="no-search" style="display:block;"><p>未搜索到“{brand}”的相关品牌</p><a href="javascript:;" class="all_brand"><查看全部品牌</a></div>'; + var html = ''; + $.ajax({ + type: "post", + url: "/brand/getbrand", + data: { + brand: encodeURIComponent(brand) + }, + success: function(data) { + var brands = data.data; + if (data.code == 200 && brands != "") { + brands = that.brandSort(brands, brand); + $.each(brands, function(k, v) { + html += '<li><a href="javascript:;" target="_blank" title="' + v.name + '"><div class="img-box" brand_id="' + v.id + '">' + + '<img class="grey-brand-logo" width="145" height="97" src="' + common.getImages(v.logo, 'source', 'blogimg', 'primary') + '" alt="" alt="' + v.name + '"></div>' + + '<p>' + cutString(v.name, 20) + '</p></a></li>'; + }); + $(".brand-content").html(template.replace('{li}', html)); + } else { + $(".brand-content").html(""); + $(".brand-content").html(noSearchTemplate.replace('{brand}', tools.escapeHTML(brand).replace(/\"/g, "“").replace(/\'/g, "‘"))); + } + + $(".all_brand").on("click", function() { + $("input[type=text]").val(""); + $(".search-btn").click(); + }); + } + }); + }); + } + }).init(); + + + function getComputedStyle(element) { + if (typeof window.getComputedStyle === "function") { + return window.getComputedStyle(element, null); + } else { + return element.currentStyle; + } + } + + //品牌列表 + $(".brand-list li .img-box").live("click", function(event) { + var brand_id = $(this).attr("brand_id"); + $.ajax({ + type: "post", + url: "/brand/detail", + data: { + id: brand_id + }, + success: function(data) { + var intro = null, + height = 0, + padding = 0, + margin = 0, + totalHeight = 0; + + $("#brand_detail").html(data); + if ($(window).height() < 580) { //小屏幕,去掉关闭按钮 + $("#brand_detail").find('.brand-close-btn').remove(); + } + $('.overlay').show(); + + (function() { + var $mainLayout = $(".main-layout"), + i = 0, + len = 0; + + for (i = 0, len = $mainLayout.length; i < len; i++) { + formatLayoutItemStyle($mainLayout[i]); + } + })(); + + intro = $("#brand_detail .brand-introduction"); + height = parseInt(intro.css("height")); + padding = parseInt(intro.css("padding-top")) + parseInt(intro.css("padding-bottom")); + totalHeight = height + padding + margin; + + intro.css("margin-top", -totalHeight / 2 + "px"); + } + }); + event.stopPropagation(); + return false; + }); + + //隐藏 + $('.overlay').on('click', function() { + $(this).hide(); + $('.brand-introduction').hide(); + }); + $('body').on('click', '.brand-close-btn', function() { + $('.overlay').trigger('click'); + }); + if ($(".search-btn").size()) { + $(".search-btn").click(); + } + }; + + //详情页 + exports.detail = function() { + var shareUrl, + shareCover, + detailTitle, + detailSubtitle; + var timer, + nowIndex; + + if ($('.share').size() > 0) { + //微信分享鼠标事件 + $('.yohoo-share-button-wx').on('mouseover', function() { + $('.wx-qrcode-dialog').show(); + }).on('mouseout', function() { + $('.wx-qrcode-dialog').hide(); + }); + + shareUrl = $(".share").attr("data-link"); + shareCover = $(".share").attr("cover-url"); + detailTitle = $('.page-detail-title').find('h2'); + detailSubtitle = $('.page-detail-title').find('h3'); + //分享 + share.init({ + shareUrl: shareUrl, + img: shareCover, + sinaText: '【YO’HOOD 2016】' + detailTitle.text() + '\r\n' + detailSubtitle.text() + '@YOHO潮流志', + fbTextFunction: function() { + return { + des: '【YO’HOOD 2016】' + detailTitle.text() + '\r\n' + detailSubtitle.text() + '#YO’HOOD 2016', + name: '【YO’HOOD 2016】' + detailTitle.text() + '\r\n' + detailSubtitle.text() + '#YO’HOOD 2016', + caption: '【YO’HOOD 2016】' + detailTitle.text() + '\r\n' + detailSubtitle.text() + '#YO’HOOD 2016', + // url: location.href + } + }, + tweetText: '【YO’HOOD 2016】' + detailTitle.text() + '\r\n' + detailSubtitle.text(), + qqText: '【YO’HOOD 2016】' + detailTitle.text() + ' ' + detailSubtitle.text(), + }); + } + + //详情页图片滚动 + if ($('.detail-slide').size() > 0) { + //slide大图上的左右箭头显示 + $('.slide-shadow').on('mouseover', 'a', function() { + if ($('.detail-slide-ctrl-tabs').find('li').size() <= 1) return; + if ($(this).hasClass('slide-shadow-prev')) { + $('.slide-big-ctrl-prev').show(); + } else { + $('.slide-big-ctrl-next').show(); + } + }).on('mouseout', 'a', function() { + $('.slide-big-ctrl-prev, .slide-big-ctrl-next').hide(); + }); + $('.detail-slide-body').on('mouseout', function() { + $('.slide-big-ctrl-prev, .slide-big-ctrl-next').hide(); + }); + $('.detail-slide-big-ctrl').on('mouseenter', 'a', function() { + $(this).show(); + }); + + //图片滚动 + detailSwiper = (function() { + var boxNum = $(".detail-slide-ctrl-tabs").find(".box").size(), + isMulti = boxNum > 1 ? true : false; + + if (!isMulti) { + $(".detail-slide-ctrl-prev").hide(); + $(".detail-slide-ctrl-next").hide(); + } + + return new swiper('.detail-slide-body', { + wrapperClass: 'detail-slide-piclist', + slideClass: 'box', + loop: isMulti, + slidesPerView: 'auto', + slideElement: 'li', + loopedSlides: boxNum, + loopAdditionalSlides: boxNum + }); + }()); + + $('.slide-big-ctrl-prev,.slide-shadow-prev').bind('click', function(e) { + e.preventDefault(); + detailSwiper.swipePrev(); + }); + $('.slide-big-ctrl-next,.slide-shadow-next').bind('click', function(e) { + e.preventDefault(); + detailSwiper.swipeNext(); + }); + + CtrlSwiper = function(option) { + this.swiper = option.swiper; + this.elem = $(option.elem); + this.slides = $(option.elem).find(option.slides); + this.nextButton = $(option.nextButton); + this.prevButton = $(option.prevButton); + this.slidesNum = 0; + this.slidesPerView = option.slidesPerView; + this.slideWitdh = option.slideWitdh; + this.groupWidth = option.perSlideWidth; + this.totalWidth = 0; + this.currentGroup = 0; + this.maxGroup = 0; + } + + CtrlSwiper.prototype = { + constructor: CtrlSwiper, + + slideTo: function(index) { + var group = Math.floor(index / this.slidesPerView); + if (group < 0 || group > this.maxGroup) { + return; + } + + this.slideElem(this.elem, -group * this.groupWidth); + }, + + slideElem: function(elem, width, time) { + time = time === undefined ? 0.3 : time; + elem.css("transform", "translate3d(" + width + "px, 0px, 0px)").css("transition-duration", time + "s"); + }, + + init: function() { + var that = this, + swiper = this.detailCtrlSwiper; + + this.slidesNum = this.slides.size(); + this.groupWidth = this.slideWitdh * this.slidesPerView; + this.totalWidth = this.slidesNum * this.slideWitdh; + this.maxGroup = Math.floor(this.slidesNum / this.slidesPerView); + this.elem.css("width", this.totalWidth + "px"); + + if (this.slidesNum <= 5) { + $(".detail-slide-ctrl-prev").hide(); + $(".detail-slide-ctrl-next").hide(); + } + + this.prevButton.on("click", function() { + if ((that.currentGroup - 1) >= 0) { + that.slideElem(that.elem, -(that.currentGroup - 1) * that.groupWidth); + that.currentGroup--; + } else { + that.slideElem(that.elem, -that.maxGroup * that.groupWidth, 0.1); + that.currentGroup = that.maxGroup; + } + }); + + this.nextButton.on("click", function() { + if ((that.currentGroup + 1) <= that.maxGroup) { + that.slideElem(that.elem, -(that.currentGroup + 1) * that.groupWidth); + that.currentGroup++; + } else { + that.slideElem(that.elem, 0, 0.1); + that.currentGroup = 0; + } + + }); + + this.slides.on("click", function() { + var index = $(this).index(this.slides); + + $(".detail-slide-ctrl-tabs .box").find(".cover").removeClass("on"); + $(this).find(".cover").addClass("on"); + detailSwiper.swipeTo(index); + }); + + $(this.slides[0]).click(); + } + } + + var ctrlTabs = new CtrlSwiper({ + elem: ".detail-slide-ctrl-tabs", + slides: ".box", + prevButton: ".detail-slide-ctrl-prev", + nextButton: ".detail-slide-ctrl-next", + slidesPerView: 5, + slideWitdh: 148 + }); + + ctrlTabs.init(); + + $('.detail-slide-big-ctrl,.slide-shadow').on('click', 'a', function() { + $(ctrlTabs.slides[detailSwiper.activeLoopIndex]).click(); + ctrlTabs.slideTo(detailSwiper.activeLoopIndex); + }); + + ({ + detialImgZoom: $('.detail-slide-body').find('.box').each(function() { + $(this).imgZoom({ + imgTag: 'pic-tip', + }); + }), + + init: function() { + if ($('.detail-slide-body .detail-slide-piclist').find(".box").size() <= 1) { + $(".img-zoom-ctrl-prev").hide(); + $(".img-zoom-ctrl-next").hide(); + } + + $(".img-zoom-ctrl-prev").on("click", function(event) { + event.preventDefault(); + $('.slide-big-ctrl-prev').click(); + $(".detail-slide-body .swiper-slide-active").find("img").click(); + }); + + $(".img-zoom-ctrl-next").on("click", function(event) { + event.preventDefault(); + $('.slide-big-ctrl-next').click(); + $(".detail-slide-body .swiper-slide-active").find("img").click(); + }); + } + }).init(); + + } + + /** + * 详情页面侧边栏 最新信息 切换 + */ + ({ + /** + * setIimeout编号 以便清除 + * @type {Number} + */ + setTimeoutNum: 0, + + /** + * 自动切换时间 + * @type {Number} + */ + autoSwitchTime: 5000, + + /** + * 自动切换标签 + * @return {Undefined} + */ + autoSwitch: function() { + var that = this; + $('.side-related-tab').find('a').each(function(i) { + if ($(this).hasClass('current')) { + $(this).removeClass('current'); + } else { + $(this).addClass('current'); + $('.side-related-list').hide().eq(i).show(); + } + }); + + this.setTimeoutNum = setTimeout(function() { + that.autoSwitch(); + }, this.autoSwitchTime); + }, + + init: function() { + var that = this; + + // 鼠标移入 停止自动切换 移出 开始自动切换 + $('.side-related-post').on('mouseenter', function() { + clearTimeout(that.setTimeoutNum); + }).on('mouseleave', function() { + that.autoSwitch(); + }); + + // 点击标签 切换信息 + $('.side-related-tab').on('click', 'a', function() { + nowIndex = $(this).index(".side-related-tab a"); + if ($(this).hasClass('current')) { + return; + } + $(this).addClass('current').siblings().removeClass('current'); + $('.side-related-list').hide().eq(nowIndex).show(); + }); + + // 开始自动切换 + this.autoSwitch(); + } + }).init(); + + //分享按钮位置 + var shareOffsetTop = $(".share").offset().top; + $(window).scroll(function() { + scrollTop = $(window).scrollTop(); + maxH = $('.yoho-nav').outerHeight() + $('.header').outerHeight() + $('.bd').outerHeight(); + if (shareOffsetTop - scrollTop <= 0) { + $(".share").css({ + "position": "fixed", + "top": 10 + }); + } else { + $(".share").css({ + "position": "absolute", + "top": shareOffsetTop + }); + } + + if ($(".share").offset().top + $('.share').outerHeight() > maxH && navigator.userAgent.indexOf('iPad') === -1) {; + $(".share").css({ + 'position': 'absolute', + 'top': maxH - $('.share').outerHeight() - 10 + }); + } + }); + + //ipad处理share位置 + if (navigator.userAgent.indexOf('iPad') !== -1) { + $('.wrapper').width(960); + $('.share').css('marginLeft', '-514px'); + } + //设置flash宽度 + $(".text-body").find("object[class=content-web-flash]").each(function() { + if (parseInt($(this).attr("width")) > 650 || parseInt($(this).css("width")) > 650) { + $(this).css({ + width: "665px" + }); + } + }); + + $(".text-body").find("embed").each(function() { + if (parseInt($(this).attr("width")) > 650 || parseInt($(this).css("width")) > 650) { + $(this).css({ + width: "665px" + }); + } + }); + //图片一张时,没有左右按钮 + if ($(".lazy").size() == 1) { + $(".detail-slide-ctrl").remove(); + } + + //设置h5视频高度 + var videoSize = $("video").size(); + var videoPos = 0; + if (videoSize > 0) { + var videoInterval = setInterval( + function() { + $("video").each(function() { //设置视频高度 + if ($(this)[0].videoHeight > 0) { + $(this).css({ + "height": Math.floor($(this)[0].videoHeight * (640 / $(this)[0].videoWidth)) + }); + videoPos++; + } + }); + if (videoPos >= videoSize) clearInterval(videoInterval); + }, 20); + } + + } + + //详情页资讯 + exports.detailNews = function(id) { + //截取字符串 + function cutString(str, len) { + //length属性读出来的汉字长度为1 + if (str.length * 2 <= len) { + return str; + } + var strlen = 0; + var s = ""; + for (var i = 0; i < str.length; i++) { + s = s + str.charAt(i); + if (str.charCodeAt(i) > 128) { + strlen = strlen + 2; + if (strlen >= len) { + return s.substring(0, s.length - 1) + "..."; + } + } else { + strlen = strlen + 1; + if (strlen >= len) { + return s.substring(0, s.length - 2) + "..."; + } + } + } + return s; + } + var recom = ''; + var hotVideo = ''; + var lastNews = ''; + var template = function(topic, img, url, isVideo, isTitleStyle, title, imgStyle, create_time) { + var playIcon = ''; + var titleStyle = ''; + + function getLocalTime(nS) { + var date = new Date(parseInt(nS) * 1000), + month = date.getMonth(), + monthEN = ""; + day = date.getDate(), + year = date.getFullYear(); + + switch (month) { + case 0: + monthEN = "January"; + break; + case 1: + monthEN = "February"; + break; + case 2: + monthEN = "March"; + break; + case 3: + monthEN = "April"; + break; + case 4: + monthEN = "May"; + break; + case 5: + monthEN = "June"; + break; + case 6: + monthEN = "July"; + break; + case 7: + monthEN = "August"; + break; + case 8: + monthEN = "September"; + break; + case 9: + monthEN = "October"; + break; + case 10: + monthEN = "November"; + break; + case 11: + monthEN = "December"; + break; + default: + monthEN = month; + breank; + } + + return monthEN + " " + day + "," + year; + } + var d = getLocalTime(create_time); + var title = $('<p>' + title + '</p>').text(); + var html = '<div class="layout-item clearfix">' + + '<div class="image-box">' + + '<a href="' + url + '" target="_blank" title="' + title + '">' + + '<img src="' + img + '" alt="" style="' + imgStyle + '">' + + '{playIcon}' + + '</a>' + + '</div>' + + '<div class="content">' + + '<h2 {titleStyle} class="volupia">' + + '<a href="' + url + '" title="' + title + '" target="_blank">' + topic + '</a>' + + '</h2>' + + '<p class="time">' + + '<a>' + d + '</a>' + + '</p>' + + '</div>' + + '<hr>' + + '</div>'; + if (isVideo === 2) //侧边视频 + { + playIcon = '<i class="play-icon small"></i>'; + } else if (isVideo === 1) { + playIcon = '<i class="play-icon"></i>'; + } + if (isTitleStyle) { + titleStyle = 'class="volupia"'; + } + html = html.replace("{playIcon}", playIcon); + html = html.replace("{titleStyle}", titleStyle); + return html; + } + $.ajax({ + url: "/news/getdetailnews", + type: "post", + data: { + id: id + }, + success: function(data) { + var isVideo, isTitleStyle; + var relatedTop, + relatedPost, + relatedH, + maxH; + if (data.code == 200) { + //推荐资讯 + $.each(data.data.recom, function(i, v) { + // isVideo = (v.tag == '视频') ? 1 : 0; + isVideo = parseInt(v.is_video); + isTitleStyle = (v.main_title_type == 1) ? 1 : 0; + recom += template(tools.limitWords(v.title, 100), common.getImages(v.thumb, '0230x0130', 'blogimg', '1'), + '/news/detail/id/' + v.id, isVideo, isTitleStyle, v.title, '', v.create_time); + }); + + //热门视频 + $.each(data.data.hotVideo, function(i, v) { + isTitleStyle = (v.main_title_type == 1) ? 1 : 0; + hotVideo += template(tools.limitWords(v.title, 100), common.getImages(v.thumb, '0230x0230', 'blogimg', '1'), + '/news/detail/id/' + v.id, 2, isTitleStyle, v.title, '', v.create_time); + }); + //最新资讯 + $.each(data.data.lastNews, function(i, v) { + isTitleStyle = (v.main_title_type == 1) ? 1 : 0; + lastNews += template(tools.limitWords(v.title, 100), common.getImages(v.thumb, '0230x0230', 'blogimg', '1'), + '/news/detail/id/' + v.id, isVideo, isTitleStyle, v.title, '', v.create_time); + }); + $(".post-list").html(recom); + $(".side-related-list").eq(0).html(lastNews); + $(".side-related-list").eq(1).html(hotVideo); + + console.log($('.page-detail-body').outerHeight() > $('.page-detail-side').outerHeight()); + + if ($('.page-detail-body').outerHeight() > $('.page-detail-side').outerHeight() && navigator.userAgent.indexOf('iPad') === -1) { + //右侧相关文章定位 + relatedPost = $('.side-related-post'); + relatedTop = relatedPost.offset().top; + relatedH = relatedPost.outerHeight(); + maxH = $('.header').outerHeight() + $('.yoho-nav').outerHeight() + $('.bd').outerHeight(); + if ($('.bd').outerHeight() > $(window).height()) { + $(window).on('scroll', function() { + relatedH = relatedPost.outerHeight(); + maxH = $('.yoho-nav').outerHeight() + $('.header').outerHeight() + $('.bd').outerHeight(); + if ($(this).scrollTop() >= relatedTop - 50) { + relatedPost.addClass('fix'); + if (relatedPost.offset().top + relatedH >= maxH && relatedPost.hasClass('fix')) { + relatedPost.css({ + 'position': 'absolute', + 'top': maxH - relatedH - 10 + }) + } + if ($(this).scrollTop() <= maxH - relatedH) { + relatedPost.css({ + 'position': 'fixed', + 'top': 0 + }); + } + } else { + relatedPost.removeClass('fix').removeAttr('style'); + } + }); + } + } + + (function() { + var $mainLayout = $(".main-layout"), + i = 0, + len = 0; + + for (i = 0, len = $mainLayout.length; i < len; i++) { + formatLayoutItemStyle($mainLayout[i]); + } + })(); + } + } + }); + } + //现场计划活动 + exports.activityPlan = function() { + var timestamp = new Date().getTime() / 1000; + $('.site-activity-content').find('.layout-item').each(function() { + $(this).imgZoom({ + imgTag: 'pic-tip' + }); + }); + //活动日期定位 + var oTab = $('.site-activity-tab'), + tabTop = oTab.offset().top, + tabH = oTab.outerHeight(), + maxH = $('.yoho-nav').outerHeight() + $('.header').outerHeight() + $('.bd').outerHeight(); + if ($('.bd').outerHeight() > $(window).height()) { + $(window).on('scroll', function() { + tabH = oTab.outerHeight(); + maxH = $('.header').outerHeight() + $('.yoho-nav').outerHeight() + $('.bd').outerHeight(); + if ($(this).scrollTop() >= tabTop) { + oTab.addClass('fix'); + if (oTab.offset().top + tabH >= maxH && oTab.hasClass('fix')) { + oTab.css({ + 'position': 'absolute', + 'top': maxH - tabH + }) + } + if ($(this).scrollTop() <= maxH - tabH) { + oTab.css({ + 'position': 'fixed', + 'top': 0 + }); + } + } else { + oTab.removeClass('fix').removeAttr('style'); + } + }); + } + //日期自动定位 + $(".site-activity-time").each(function() { + if (timestamp >= $(this).attr("start_time") && timestamp <= $(this).attr("end_time")) { + $("body").animate({ + "scrollTop": $(this).offset().top - 50 + }, 1000); + return; + } + }) + } + //视频 + exports.video = function() { + //图片转换 + imgTransform($(".image-box img")); + } + //推荐 + exports.recommend = function() { + $(".wrapper").attr("class", ""); + $(".bd").attr("class", ""); + } + + //在线登记 + exports.onlinereg = function() { + $.validator.addMethod("isPhone", function(value, element) { + var length = value.length; + var tel = /^[0-9]{3,4}-?[0-9]{7,9}$/; + return this.optional(element) || (tel.test(value)); + }, "请正确填写您的联系电话"); + + $.validator.addMethod("isMobile", function(value, element) { + var length = value.length; + var mobile = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1})|(17[0-9]{1})|(14[0-9]{1}))+\d{8})$/; + return this.optional(element) || (mobile.test(value)); + }, "请正确填写您的手机号"); + + $("#chinese a").bind("click", function(e) { + var href = $(this).attr("href"); + var isNotEmpty = false; + //判断表单数据是否为空 + $.each($("input[type=text]"), function(i, obj) { + if ($.trim($(obj).val()) != '') { + isNotEmpty = true; + return; + } + }); + if (isNotEmpty) { + $(this).attr("href", "javascript:void(0)"); + if (window.confirm('切换后已填信息将被清空,是否切换?')) { + window.location.href = href; + } else { + $(this).attr("href", href); + return false; + } + } + }); + $("#english a").bind("click", function(e) { + var href = $(this).attr("href"); + var isNotEmpty = false; + //判断表单数据是否为空 + $.each($("input[type=text]"), function(i, obj) { + if ($.trim($(obj).val()) != '') { + isNotEmpty = true; + return; + } + }); + if (isNotEmpty) { + $(this).attr("href", "javascript:void(0)"); + if (window.confirm('After the switch has been filled information will be emptied, whether to switch?')) { + window.location.href = href; + } else { + $(this).attr("href", href); + return false; + } + } + }); + $(".apply-operate span").bind("click", function() { + window.location.href = $(this).attr("href"); + }); + // 弹窗关闭 + $('.dialog-w').click(function() { + $('.dialog-w').hide(); + window.location.reload(); + }); + + + $('.dia-content').click(function(e) { + $('.dialog-w').hide(); + window.location.reload(); + e.stopPropagation(); + }); + + $(".wrapper").attr("class", ""); + $(".bd").attr("class", ""); + + + $("#upload-file").uploadify({ + height: 30, + multi: false, + fileTypeExts: '*.gif; *.jpg; *.png; *.pdf; *.rar; *.doc; *.xlsx; *.ppt; *.zip;*.pptx;*.docx;*.xls', + buttonText: ($("#upload-file").attr("lang") == 'en') ? 'upload' : '上传文件', + swf: '/../uploadify.swf', + uploader: '/onlinereg/uploadfile', + width: 120, + dataType: 'json', + onSelect: function(file) { + + if (file.size * 1 > (1024 * 1024 * 10)) { + + $('.upload-tips').addClass('error'); + + $("#upload-file").uploadify('cancel'); + } + }, + onUploadSuccess: function(file, data, response) { + //console.log(file); + data = json.parse(data); + $('.has-upload span').html(file.name + '<b class="del-file"></b>'); + $('.has-upload').fadeIn(); + + $('#file-url').val(data.data); + + $('.upload-tips').removeClass('error'); + + } + }); + + $(document).on('click', '.del-file', function() { + + $('#file-url').val(''); + + $('.has-upload').fadeOut(); + + }); + + // 验证码刷新 + $('.pic-code-text').click(function() { + var src = $(this).attr('src'); + + $(this).attr('src', src + '?1'); + }); + + ({ + key: (function() { + var href = location.href.split("/"), + index = href.indexOf("onlinereg"); + return href[index + 1]; + }()), + + setStroage: function(data) { + var dataString = JSON.stringify(data), + href = location.href.split("/"), + index = href.indexOf("onlinereg"); + + key = href[index + 1]; + + window.localStorage.setItem(this.key, dataString) + }, + getStroage: function(key) { + return JSON.parse(window.localStorage.getItem(key)); + }, + clearStroage: function(key) { + window.localStorage.removeItem(key); + }, + computedData: function(data) { + var $form = $("form"), + $elem = $form.find("input, textarea"), + key = "", + len = 0; + + for (key in data) { + if (data.hasOwnProperty(key)) { + $elem = $form.find("input[name=" + key + "], textarea[name=" + key + "]"); + if ($elem.size() > 0) { + if ($elem.attr("type") === "radio") { + $elem.parent("div").find("input[value=" + data[key] + "]")[0].checked = true; + } else { + $elem.val(data[key]); + } + } + } + } + + }, + + + init: function() { + var that = this, + data = {}; + + data = this.getStroage(this.key); + + this.computedData(data); + + $("input,textarea").on("keyup", function() { + getFormData(that.setStroage); + }); + + $("input[type=radio]").on("change", function() { + getFormData(that.setStroage); + }); + + $(".content-header a").on("click", function() { + that.clearStroage(that.key); + }); + } + + }).init(); + + var globalMethod = { + clearStroage: function() { + var href = location.href.split("/"), + index = href.indexOf("onlinereg"), + key = href[index + 1]; + + window.localStorage.removeItem(key); + } + }; + + function getFormData(callback) { + + var $formBox; + if ($('#exhibitor-form').length > 0) { + $formBox = $('#exhibitor-form'); + } else if ($('#media-form').length > 0) { + $formBox = $('#media-form'); + } else if ($('#sponsor-form').length > 0) { + $formBox = $('#sponsor-form'); + } + var name = $formBox.find('input[name="name"]').val(), + is_enter_yohobuy = $formBox.find('input[name="is_enter_yohobuy"]:checked').val(), + brand_reg_type = $formBox.find('input[name="brand_reg_type"]:checked').val(), + profession = $formBox.find('input[name="profession"]').val(), + product_type = $formBox.find('input[name="product_type"]').val(), + company = $formBox.find('input[name="company"]').val(), + country = $formBox.find('input[name="country"]').val(), + sex = $formBox.find('input[name="sex"]:checked').val(), + city = $formBox.find('input[name="city"]').val(), + mobile = $formBox.find('input[name="mobile"]').val(), + contact = $formBox.find('input[name="contact"]').val(), + introduction = $formBox.find('textarea[name="introduction"]').val(), + telphone = $formBox.find('input[name="telphone"]').val(), + email = $formBox.find('input[name="email"]').val(), + relation = $formBox.find('input[name="relation"]:checked').val(), + place = $formBox.find('input[name="place"]').val(), + is_3c = $formBox.find('input[name="is_3c"]:checked').val(), + website = $formBox.find('input[name="website"]').val(), + zipcode = $formBox.find('input[name="zipcode"]').val(), + files = $formBox.find('input[name="files"]').val(), + code = $formBox.find('input[name="code"]').val(), + + type = $formBox.find('input[name="type"]').val(); + + var resData = { + name: name, + is_enter_yohobuy: is_enter_yohobuy, + brand_reg_type: brand_reg_type, + profession: profession, + product_type: product_type, + company: company, + country: country, + sex: sex, + city: city, + mobile: mobile, + contact: contact, + introduction: introduction, + telphone: telphone, + email: email, + relation: relation, + place: place, + is_3c: is_3c, + website: website, + files: files, + zipcode: zipcode, + code: code, + type: type + }; + + callback(resData); + } + + function vCode(callback) { + $.ajax({ + type: 'post', + dataType: 'json', + url: '/onlinereg/validatecode', + data: { + code: $('.pic-code').val() + }, + success: function(d) { + + if (d.code === 200) { + + $('.pic-code').attr('data-code', 200); + + !!callback && callback(d); + } else { + + $('.pic-code').next('.error').remove() + .after('<label id="code-error" class="error" for="code">验证码错误</label>'); + } + } + }); + } + $('.pic-code').keyup(function() { + if ($(this).val().length === 4) { + vCode(); + } + }); + + // 表单验证 + if ($('#exhibitor-form').length > 0) { + $('.submit-w-btn').bind('click', function() { + + var exhibitorForm = $('#exhibitor-form').validate({ + focusInvalid: false, + rules: { + name: { + required: true + }, + contact: { + required: true + }, + is_enter_yohobuy: { + required: true + }, + brand_reg_type: { + required: true + }, + relation: { + required: true + }, + is_3c: { + required: true, + }, + telphone: { + //required: true, + isPhone: true + }, + place: { + required: true + }, + email: { + email: true + }, + code: { + required: true, + minlength: 4, + maxlength: 4 + }, + website: { + url: true + } + }, + messages: { + name: { + required: $(".submit-w-btn").attr('lang') == 'en' ? 'This is a required field' : '必填' + }, + contact: { + required: $(".submit-w-btn").attr('lang') == 'en' ? 'This is a required field' : '必填' + }, + is_enter_yohobuy: { + required: '必选' + }, + brand_reg_type: { + required: '必选' + }, + relation: { + required: '必选' + }, + is_3c: { + required: '必选' + }, + telphone: { + //required: $(".submit-w-btn").attr('lang') == 'en' ? 'This is a required field' : '必填', + isPhone: $(".submit-w-btn").attr('lang') == 'en' ? 'Please enter a valid telphone' : '联系电话不正确' + }, + place: { + required: $(".submit-w-btn").attr('lang') == 'en' ? 'This is a required field' : '必填' + }, + email: $(".submit-w-btn").attr('lang') == 'en' ? 'Please enter a valid email address' : '邮箱格式不正确', + code: { + required: $(".submit-w-btn").attr('lang') == 'en' ? 'Please enter enter a verification code' : "必须输入验证码", + minlength: $(".submit-w-btn").attr('lang') == 'en' ? 'Verification code length 4' : "验证码长度4位", + maxlength: $(".submit-w-btn").attr('lang') == 'en' ? 'Verification code length 4' : "验证码长度4位" + }, + website: { + url: $(".submit-w-btn").attr('lang') == 'en' ? 'Please enter a valid link' : "必须是有效链接" + } + }, + submitHandler: function(form) { + + getFormData(function(data) { + $.ajax({ + type: 'post', + dataType: 'json', + url: '/onlinereg/setseller', + data: { + name: data.name, + company: data.company, + is_enter_yohobuy: data.is_enter_yohobuy, + brand_reg_type: data.brand_reg_type, + contact: data.contact, + telphone: data.telphone, + email: data.email, + relation: data.relation, + place: data.place, + is_3c: data.is_3c, + website: data.website, + files: data.files, + code: data.code, + type: data.type + }, + success: function(d) { + if (d.code === 200) { + $('.dialog-w').fadeIn(); + + globalMethod.clearStroage(); + + setTimeout(function() { + $('.dialog-w').fadeOut(); + window.location.reload(); + }, 5000); + } else { + alert(d.message); + } + } + }); + + }); + + return false; + } + }); + + + }); + + } + + //媒体登记 + if ($('#media-form').length > 0) { + + $('.submit-w-btn').bind('click', function() { + + var mediaForm = $('#media-form').validate({ + focusInvalid: false, + rules: { + name: { + required: true + }, + profession: { + required: true + }, + sex: { + required: true + }, + company: { + required: true + }, + introduction: { + required: true, + maxlength: 200 + }, + mobile: { + required: true, + isMobile: true + }, + telphone: { + //required: true, + isPhone: true + }, + place: { + required: true + }, + city: { + required: true + }, + email: { + required: true, + email: true + }, + code: { + required: true, + minlength: 4, + maxlength: 4 + }, + website: { + required: true, + url: true + }, + zipcode: { + //required: true + } + }, + messages: { + name: { + required: $(".submit-w-btn").attr('lang') == 'en' ? 'This is a required field' : '必填' + }, + profession: { + required: $(".submit-w-btn").attr('lang') == 'en' ? 'This is a required field' : '必填' + }, + sex: { + required: $(".submit-w-btn").attr('lang') == 'en' ? 'This is a required field' : '必填' + }, + company: { + required: $(".submit-w-btn").attr('lang') == 'en' ? 'This is a required field' : '必填' + }, + introduction: { + required: $(".submit-w-btn").attr('lang') == 'en' ? 'This is a required field' : '必填', + maxlength: '最多输入200个字符' + }, + mobile: { + required: $(".submit-w-btn").attr('lang') == 'en' ? 'This is a required field' : '必填', + isMobile: $(".submit-w-btn").attr('lang') == 'en' ? 'Please enter a valid mobile' : '手机号码不正确' + }, + telphone: { + //required: $(".submit-w-btn").attr('lang') == 'en' ? 'This is a required field' : '必填', + isPhone: $(".submit-w-btn").attr('lang') == 'en' ? 'Please enter a valid telphone' : '联系电话不正确' + }, + place: { + required: $(".submit-w-btn").attr('lang') == 'en' ? 'This is a required field' : '必填' + }, + city: { + required: $(".submit-w-btn").attr('lang') == 'en' ? 'This is a required field' : '必填' + }, + email: { + required: $(".submit-w-btn").attr('lang') == 'en' ? 'This is a required field' : '必填', + email: $(".submit-w-btn").attr('lang') == 'en' ? 'Please enter a valid email address' : '邮箱格式不正确' + }, + code: { + required: $(".submit-w-btn").attr('lang') == 'en' ? 'Please enter enter a verification code' : "必须输入验证码", + minlength: $(".submit-w-btn").attr('lang') == 'en' ? 'Verification code length 4' : "验证码长度4位", + maxlength: $(".submit-w-btn").attr('lang') == 'en' ? 'Verification code length 4' : "验证码长度4位" + }, + website: { + required: $(".submit-w-btn").attr('lang') == 'en' ? 'This is a required field' : '必填', + url: $(".submit-w-btn").attr('lang') == 'en' ? 'Please enter a valid link' : "必须是有效链接" + }, + zipcode: { + //required: $(".submit-w-btn").attr('lang') == 'en' ? 'This is a required field' : '必填' + } + }, + submitHandler: function(form) { + + getFormData(function(data) { + $.ajax({ + type: 'post', + dataType: 'json', + url: '/onlinereg/setseller', + data: { + name: data.name, + profession: data.profession, + sex: data.sex, + company: data.company, + introduction: data.introduction, + city: data.city, + contact: data.contact, + telphone: data.telphone, + mobile: data.mobile, + email: data.email, + relation: data.relation, + place: data.place, + is_3c: data.is_3c, + website: data.website, + files: data.files, + code: data.code, + zipcode: data.zipcode, + type: data.type + }, + success: function(d) { + if (d.code === 200) { + $('.dialog-w').fadeIn(); + + globalMethod.clearStroage(); + + setTimeout(function() { + $('.dialog-w').fadeOut(); + window.location.reload(); + }, 2000); + } else { + alert("失败"); + } + } + }); + + }); + + return false; + } + }); + + }); + + } + + ({ + maxLen: 200, + + init: function() { + var that = this, + introduction = $("#media-form textarea[name='introduction']"); + + introduction.on("keyup", function() { + var textLen = introduction.val().length, + overfolw = textLen - that.maxLen; + + if (overfolw > 0) { + $("#introduction-tips").find("span").html(overfolw); + $("#introduction-tips").show(); + } else { + $("#introduction-tips").hide(); + } + }) + } + }).init(); + + //赞助商 + if ($('#sponsor-form').length > 0) { + + $('.submit-w-btn').bind('click', function() { + var sponsorForm = $('#sponsor-form').validate({ + focusInvalid: false, + rules: { + name: { + required: true + }, + is_enter_yohobuy: { + required: true + }, + telphone: { + //required: true, + isPhone: true + }, + email: { + email: true + }, + code: { + required: true, + minlength: 4, + maxlength: 4 + }, + website: { + url: true + } + }, + messages: { + name: { + required: $(".submit-w-btn").attr('lang') == 'en' ? 'This is a required field' : '必填' + }, + is_enter_yohobuy: { + required: '必选' + }, + telphone: { + //required: $(".submit-w-btn").attr('lang') == 'en' ? 'This is a required field' : '必填', + isPhone: $(".submit-w-btn").attr('lang') == 'en' ? 'Please enter a valid telphone' : '联系号码不正确' + }, + email: $(".submit-w-btn").attr('lang') == 'en' ? 'Please enter a valid email address' : '邮箱格式不正确', + code: { + required: $(".submit-w-btn").attr('lang') == 'en' ? 'Please enter enter a verification code' : "必须输入验证码", + minlength: $(".submit-w-btn").attr('lang') == 'en' ? 'Verification code length 4' : "验证码长度4位", + maxlength: $(".submit-w-btn").attr('lang') == 'en' ? 'Verification code length 4' : "验证码长度4位" + }, + website: { + url: $(".submit-w-btn").attr('lang') == 'en' ? 'Please enter a valid link' : "必须是有效链接" + } + }, + submitHandler: function(form) { + + getFormData(function(data) { + $.ajax({ + type: 'post', + dataType: 'json', + url: '/onlinereg/setseller', + data: { + name: data.name, + is_enter_yohobuy: data.is_enter_yohobuy, + product_type: data.product_type, + company: data.company, + country: data.country, + contact: data.contact, + telphone: data.telphone, + email: data.email, + place: data.place, + website: data.website, + files: data.files, + code: data.code, + type: data.type + }, + success: function(d) { + if (d.code === 200) { + $('.dialog-w').fadeIn(); + + globalMethod.clearStroage(); + + setTimeout(function() { + $('.dialog-w').fadeOut(); + window.location.reload(); + }, 2000); + } else { + alert("失败"); + } + } + }); + + }); + + return false; + } + }); + + + }); + + } + + $('#sponsor-form').find('input').keyup(function() { + + // console.log(sponsorForm.form()); + + // if(sponsorForm.form()) { + + vCode(function(data) { + if (data.code == 200) { + $('.submit-w-btn').removeAttr('disabled').removeClass('dis'); + } + }); + + // } + }); + + $('#media-form').find('input').keyup(function() { + + //if(mediaForm.form()) { + + vCode(function(data) { + if (data.code == 200) { + $('.submit-w-btn').removeAttr('disabled').removeClass('dis'); + } + }); + + // } + }); + + $('#exhibitor-form').find('input').keyup(function() { + + // if(true){//exhibitorForm.form()) { + vCode(function(data) { + if (data.code == 200) { + $('.submit-w-btn').removeAttr('disabled').removeClass('dis'); + } + }); + + // } + }); + } + +}); diff --git a/res/sass/_base.scss b/res/sass/_base.scss index 15528ef..c37d989 100644 --- a/res/sass/_base.scss +++ b/res/sass/_base.scss @@ -46,7 +46,7 @@ em, cite { body { background: #fff; - font: 12px/1.5 "arial","helvetica","微软雅黑"; + font: 12px/1.5 "Noto Sans CJK SC", "Source Han Sans CN","Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif; color: #000; width: 100%; //height: 100%; diff --git a/res/sass/index.scss b/res/sass/index.scss index 087b9f4..0481b82 100644 --- a/res/sass/index.scss +++ b/res/sass/index.scss @@ -20,4 +20,7 @@ @import "style/_detail"; @import "style/_other"; -@import "style/_shanghai"; \ No newline at end of file +@import "style/_shanghai"; + +// 表单提交 +@import "style/submit"; \ No newline at end of file diff --git a/res/sass/style/_activity.scss b/res/sass/style/_activity.scss index dfdba5c..9a9fa63 100644 --- a/res/sass/style/_activity.scss +++ b/res/sass/style/_activity.scss @@ -28,20 +28,20 @@ } } -.video-wrap { - .layout-item { - height: 362px; - margin: 0 28px 0 0; - .image-box { - height: 198px; - overflow: hidden; - img { - width: 100%; - height: 100%; - } - } - } -} +// .video-wrap { +// .layout-item { +// height: 362px; +// margin: 0 28px 0 0; +// .image-box { +// height: 198px; +// overflow: hidden; +// img { +// width: 100%; +// height: 100%; +// } +// } +// } +// } .activity-cooperation .section { text-align: left; diff --git a/res/sass/style/_brand.scss b/res/sass/style/_brand.scss index 1ddcef8..8ac39ab 100644 --- a/res/sass/style/_brand.scss +++ b/res/sass/style/_brand.scss @@ -1,5 +1,6 @@ .brand-main { - margin: 50px 0; + width: 1180px; + margin: 50px auto; } .search-wrap { @@ -32,7 +33,7 @@ } .brand-content { - margin: 38px 0 0 0; + margin: 43px 0 0 0; .no-search { display: none; margin: 100px 0 120px 0; @@ -52,18 +53,49 @@ .brand-list { li { float: left; + position: relative; + .close-tag { + position: absolute; + font-size: 25px; + top: 32px; + right: 32px; + } + .img-box { + position: relative; + img { + max-width: 160px; + max-height: 100px; + } + // .grey-brand-logo { + // opacity: .8; + // -webkit-filter: grayscale(100%); + // -moz-filter: grayscale(100%); + // -ms-filter: grayscale(100%); + // -o-filter: grayscale(100%); + // filter: grayscale(100%); + // filter: gray; + // &:hover { + // opacity: 1; + // -webkit-filter: none; + // -moz-filter: none; + // -ms-filter: none; + // -o-filter: none; + // filter: none; + // } + // } + } } } .brand-introduction { display: none; position: fixed; - width: 644px; - max-height: 560px; + max-width: 900px; + max-height: 750px; top: 50%; left: 50%; - margin: -288px 0 0 -352px; - padding: 16px 30px 0; + margin: -355px 0 0 -452px; + padding: 50px 80px 0; z-index: 102; background: #fff; h2 { @@ -72,13 +104,12 @@ line-height: 20px; } .brand-info { - margin: 20px 0 0 0; + margin: 40px 0 0 0; padding-bottom: 20px; - border-bottom: 1px solid #e0e0e0; .pic { float: left; - width: 200px; - height: 200px; + width: 235px; + height: 235px; overflow: hidden; margin-top: 6px; img { @@ -87,29 +118,30 @@ } .text { float: left; - margin: 0 0 0 29px; + margin: 0 0 0 20px; p { - width: 414px; - max-height: 192px; + width: 480px; + height: 188px; + max-height: 188px; overflow-x: hidden; overflow-y: auto; margin: 0; line-height: 24px; font-size: 14px; + text-align: left; } - a { - display: block; - width: 94px; - height: 33px; - margin-top: 15px; - padding-left: 34px; - line-height: 35px; - border: 1px solid #000; - border-radius: 4px; - background: #fff; - color: #000; - background: url("../images/yohood/enter-store.png") no-repeat 10px center; - } + } + a { + font-size: 16px; + display: inline-block; + height: 33px; + margin-top: 15px; + margin-left: 20px; + padding: .3em 1.5em; + line-height: 2em; + border: 1px solid #000; + background: #fff; + color: #000; } } .brand-close-btn { @@ -120,42 +152,15 @@ } } -.related-post { +.brand-related-post { + margin: 0 0 50px 0; h3 { - margin-top: 20px; - line-height: 22px; - font-size: 18px; + font-size: 20px; + font-weight: bold; } .post-list { - margin-top: 17px; - width: 666px; - .layout-item { - float: left; - width: 200px; - margin-right: 22px; - .image-box { - height: 128px; - overflow: hidden; - a{ - display: table-cell; - width: 200px; - height: 128px; - vertical-align: middle; - img{ - margin: 0 auto; - } - } - } - .content { - h2 { - margin: 8px 0 0 0; - line-height: 20px; - a { - font-size: 14px; - font-weight: normal; - } - } - } + .time { + text-align: left; } } -} \ No newline at end of file +} diff --git a/res/sass/style/_common.scss b/res/sass/style/_common.scss index a5fd7f2..e2f9fc9 100644 --- a/res/sass/style/_common.scss +++ b/res/sass/style/_common.scss @@ -1,5 +1,28 @@ +$pageMainWidth: 1180px; +@font-face { + font-family: 'iconfont-new'; + src: url('../fonts/new/iconfont.eot'); + /* IE9*/ + src: url('../fonts/new/iconfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ + url('../fonts/new/iconfont.woff') format('woff'), /* chrome、firefox */ + url('../fonts/new/iconfont.ttf') format('truetype'), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/ + url('../fonts/new/iconfont.svg#iconfont') format('svg'); + /* iOS 4.1- */ +} + +.iconfont-new { + font-family: "iconfont-new"; + font-size: 16px; + font-style: normal; +} + +body { + font-family: "Noto Sans CJK SC", "Source Han Sans CN", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif; +} + .yoho-nav { width: 100%; + min-width: $pageMainWidth; height: 34px; line-height: 34px; background: #f4f4f4; @@ -49,132 +72,125 @@ } .contact-btn { float: right; - margin: 0 15px; - color: #aaaaaa; + margin: 0 10px; + color: #000; } } .header { width: 100%; - padding: 14px 0 0 0; + min-width: $pageMainWidth; } .logo { - margin: 0 0 21px 0; - height: 88px; - background: url("../images/yohood/logo.png") no-repeat center center; + img { + width: 100%; + margin: -2px 0 -5px; + } } -@keyframes rainbow { +@mixin rainbow() { 90% { - border-radius: 50%; - width: 144px; - height: 144px; - margin: -50px 0 0 -16px; + border-radius: 10%/50%; + width: $pageMainWidth / 6; + height: 38px; } 100% { border-radius: 0; - width: 122px; - height: 44px; + width: $pageMainWidth / 6; + height: 38px; top: 0; left: 0; margin: 0; } } +@keyframes rainbow { + @include rainbow; +} @-webkit-keyframes rainbow { - 90% { - border-radius: 50%; - width: 144px; - height: 144px; - margin: -50px 0 0 -16px; - } - 100% { - border-radius: 0; - width: 126px; - height: 44px; - top: 0; - left: 0; - margin: 0; - } + @include rainbow; } - @-moz-keyframes rainbow { - 90% { - border-radius: 50%; - width: 144px; - height: 144px; - margin: -50px 0 0 -16px; - } - 100% { - border-radius: 0; - width: 126px; - height: 44px; - top: 0; - left: 0; - margin: 0; - } + @include rainbow; } - @-ms-keyframes rainbow { - 90% { - border-radius: 50%; - width: 144px; - height: 144px; - margin: -50px 0 0 -16px; - } - 100% { - border-radius: 0; - width: 126px; - height: 44px; - top: 0; - left: 0; - margin: 0; - } + @include rainbow; } - @keyframes rainbow { + @include rainbow; +} + +@mixin rainbow-seconed-menu() { 90% { - border-radius: 50%; - width: 144px; - height: 144px; - margin: -50px 0 0 -16px; + border-radius: 10%/50%; + width: $pageMainWidth / 6 - 2px; + height: 47px; } 100% { border-radius: 0; - width: 126px; - height: 44px; + width: $pageMainWidth / 6 - 2px; + height: 47px; top: 0; left: 0; margin: 0; } } +@keyframes rainbow-seconed-menu { + @include rainbow-seconed-menu; +} + +@-webkit-keyframes rainbow-seconed-menu { + @include rainbow-seconed-menu; +} + +@-moz-keyframes rainbow-seconed-menu { + @include rainbow-seconed-menu; +} + +@-ms-keyframes rainbow-seconed-menu { + @include rainbow-seconed-menu; +} + +@keyframes rainbow-seconed-menu { + @include rainbow-seconed-menu; +} .nav { - border-top: 2px solid #000; - border-bottom: 2px solid #000; - overflow: hidden; + border-top: 1px solid #000; + border-bottom: 1px solid #000; + $navHeight: 38px; ul { - width: 980px; + width: $pageMainWidth; + $navItemWidth: $pageMainWidth / 6; margin: 0 auto; li { position: relative; float: left; - line-height: 44px; - height: 44px; - width: 122px; + line-height: $navHeight; + height: $navHeight; + width: $navItemWidth; + a { + display: block; + position: relative; + color: #000; + background: #fff; + width: $navItemWidth; + height: $navHeight; + line-height: $navHeight; + } em { + display: inline-block; position: relative; z-index: 10; - width: 122px; + width: 100%; display: none; - font-size: 14px; - color: #fff; + font-size: 16px; font-weight: normal; font-style: normal; &:focus { @@ -183,81 +199,223 @@ } span { display: block; + width: 100%; text-align: center; - font-size: 14px; + font-size: 16px; color: #000; } i { display: none; position: absolute; - top: 50%; - left: 50%; - width: 44px; - height: 44px; - margin-left: -22px; - margin-top: -22px; + top: $navHeight / 2; + left: $navItemWidth / 2; + width: $navHeight; + height: $navHeight; + margin-left: -$navHeight / 2; + margin-top: -$navHeight / 2; border-radius: 50%; background: #000; z-index: 9; } - } - li.animate, li.current { - span { + .second-menu-hr { + width: $navItemWidth; + height: 0; + border: 0; + border-top: 1px solid #000; + margin: 0; + } + .second-menu { display: none; + position: relative; + background-color: #fff; + z-index: 8; + border: 1px solid #e0e0e0; + hr { + height: 0px; + width: 150px; + border: 0; + margin: 0 auto; + border-top: 1px solid #e0e0e0; + background: #fff; + } + a { + width: $navItemWidth - 2px; + height: 47px; + } + em { + width: $navItemWidth - 2px; + height: 47px; + line-height: 47px; + } + i { + display: none; + position: absolute; + top: -47px / 2; + left: -47px / 2; + width: $navHeight; + height: 47px; + margin-left: -47px / 2; + margin-top: -47px / 2; + border-radius: 50%; + background: #000; + z-index: 9; + } } } li.current { + a { + background: #000; + color: #fff; + } em { display: block; - background: #000; + height: $navHeight; + line-height: $navHeight; text-align: center; } + span { + display: none; + } i { display: none; } + .second-menu { + display: none; + em { + width: $navItemWidth - 2px; + height: 47px; + line-height: 47px; + } + } } - li.animate em { - display: block; - text-align: center; - margin: 0 auto; + li.current:hover { + em { + color: #fff; + } + .second-menu { + a { + background-color: #fff; + } + a:hover em { + color: #fff; + } + em { + color: #000; + width: $navItemWidth - 2px; + height: 47px; + line-height: 47px; + } + } } - li.animate i { - display: block; - animation: .5s rainbow forwards; - -webkit-animation: .5s rainbow forwards; - -moz-animation: .5s rainbow forwards; - -ms-animation: .5s rainbow forwards; - width: 122px\9; - margin-left: 0\9; - left: 0\9; - width: 122px\0; - margin-left: 0\0; - left: 0\0; - border-radius: 0\0; - /* -webkit-transition: all 1s 1s; */ + li:hover { + a { + color: #000; + } + em { + display: block; + text-align: center; + margin: 0 auto; + } + span { + display: none; + } + .second-menu { + display: block; + background: #fff; + em { + color: #000; + background-color: #fff; + } + } + } + .second-menu a:hover { + em { + // color: #fff; + // background-color: rgba(0, 0, 0, 0); + color: #fff; + background: #000; + } + i { + display: block; + animation: 0 rainbow-seconed-menu forwards; + -webkit-animation: 0 rainbow-seconed-menu forwards; + -moz-animation: 0 rainbow-seconed-menu forwards; + -ms-animation: 0 rainbow-seconed-menu forwards; + width: 122px\9; + margin-left: 0\9; + left: 0\9; + width: 122px\0; + margin-left: 0\0; + left: 0\0; + border-radius: 0\0; + /* -webkit-transition: all 1s 1s; */ + } + } + li a:hover { + em { + color: #fff; + } + i { + display: block; + animation: .5s rainbow forwards; + -webkit-animation: .5s rainbow forwards; + -moz-animation: .5s rainbow forwards; + -ms-animation: .5s rainbow forwards; + width: 122px\9; + margin-left: 0\9; + left: 0\9; + width: 122px\0; + margin-left: 0\0; + left: 0\0; + border-radius: 0\0; + /* -webkit-transition: all 1s 1s; */ + } } } } .slide-main { position: relative; + width: 100%; + height: 500px; + overflow: hidden; + min-width: $pageMainWidth; + .slide-box-warp { + float: left; + display: inline-block; + width: $pageMainWidth; + height: 500px; + margin: 0 auto; + position: relative; + } + .left-overlay, + .right-overlay { + float: left; + position: relative; + display: inline-block; + height: 100%; + width: calc((100% - 1180px) / 2); + background: rgba(255, 255, 255, 0.5); + z-index: 7; + } } .slide-box { position: relative; - margin: 16px 0 0 0; - overflow: hidden; + margin: 0; + // overflow: hidden; .slide-wrap { - height: 468px; - overflow: hidden; + // overflow: hidden; position: relative; .box { float: left; - width: 100%; + height: 500px; position: relative; img { display: block; width: 100%; + max-width: 100%; + vertical-align: middle; } } } @@ -267,9 +425,12 @@ position: absolute; left: 0; right: 0; - bottom: -32px; + bottom: 10px; text-align: center; .dib { + padding: 5px; + border-radius: 10px; + background-color: rgba(0, 0, 0, 0.2); display: inline-block; *display: inline !important; zoom: 1; @@ -290,6 +451,9 @@ background-image: url("../images/yohood/blackdot.png") \9; background-size: 100% 100%; } + a:first-child { + margin-left: 10px; + } } } @@ -297,18 +461,18 @@ a { position: absolute; top: 50%; - margin: -28px 0 0 0; - font-size: 48px; - color: #000; + margin: -26px 0 0 0; + font-size: 40px; + color: #FFF; &:focus { outline: none; } } .slide-prev { - left: -70px; + left: 60px; } .slide-next { - right: -70px; + right: 60px; } } @@ -346,14 +510,20 @@ } .main-layout { - width: 1008px; + $mainLayoutWidth: $pageMainWidth; + $layoutItemWidth: 342px; + margin: 0 auto; .layout-item { float: left; - width: 308px; - margin: 0 28px 26px 0; + overflow: hidden; + width: $layoutItemWidth; + height: 420px; + margin: 0 floor(($mainLayoutWidth - $layoutItemWidth * 3) / 6) 26px; .image-box { position: relative; overflow: hidden; + width: 342px; + height: 218px; a { img { display: block; @@ -364,19 +534,6 @@ outline: none; } } - .item-tag { - position: absolute; - display: block; - width: auto; - height: auto; - bottom: 0; - left: 0; - padding: 0 11px; - background: #000; - line-height: 26px; - font-size: 14px; - color: #fff; - } .play-icon { position: absolute; width: 50px; @@ -391,9 +548,45 @@ background: url("../images/yohood/play-small.png"); } } + .item-info { + $itemInfoHeight: 18px; + height: $itemInfoHeight; + line-height: $itemInfoHeight; + margin: 26px 0 0; + .item-tag { + display: inline-block; + width: 64px; + height: $itemInfoHeight; + background: #000; + line-height: $itemInfoHeight; + color: #fff; + text-align: center; + } + .brand-info { + background: #1a72ff; + } + .activity-intro { + background-color: #ffc000; + } + .spotlight-activity { + background-color: #ff365c; + } + .limited-edition { + background-color: #21dbcc; + } + .item-time { + float: right; + margin: 0 2px 0; + color: #b2b2b2; + font-size: 12px; + font-weight: 100; + background: #fff; + font-style: italic; + } + } .content { + margin: 25px 0 0 0; h2 { - margin: 15px 0 0 0; a { line-height: 24px; font-size: 20px; @@ -404,21 +597,16 @@ } } } - a { - color: #000; - } p { - margin: 8px 0 0 0; - font-size: 14px; - color: #000; + color: rgb(97, 97, 97); + margin: 24px 0 0 0; + font-size: 13px; line-height: 20px; - word-wrap: break-word; } - .time { - margin: 0; - color: #b2b2b2; - font-size: 12px; - background: #fff; + a { + // word-break: break-all; + color: rgb(97, 97, 97); + display: inline-block; } } } @@ -433,29 +621,38 @@ zoom: 1; a { float: left; - width: 36px; - height: 30px; - line-height: 30px; + margin: 0 5px 0; + width: 28px; + height: 28px; + line-height: 28px; font-size: 14px; - color: #999997; + color: #000; + border: 1px solid #000; &:focus { outline: none; } } + .page-fold { + border: 0; + } .current { background: #000; color: #fff; border-radius: 2px; } + .prev, + .next { + width: 85px; + } } } .cooperation-list { - width: 1005px; - margin: 12px 0 0 0; + width: 1180px; + margin: 0; li { float: left; - margin: 0 27px 27px 0; + margin: 0 (1180px - 200px * 5) / 4 27px 0; a { display: block; &:focus { @@ -463,16 +660,13 @@ } } .img-box { - width: 172px; - height: 116px; + width: 200px; + height: 120px; overflow: hidden; - border: 1px solid #e0e0e0; display: table-cell; vertical-align: middle; text-align: center; - &:hover { - border: 1px solid #000; - } + &:hover {} } p { margin: 16px 0 0 0; @@ -482,132 +676,134 @@ } } li.current { - .img-box { - border: 1px solid #000; - } - } -} - -.limited-goods { - position: relative; - padding: 30px 0 50px 0; - background: #333333; - h2 { - font-size: 24px; - color: #8b8b8b; - font-weight: bold; - text-align: center; - background: url("../images/yohood/limited-line.png") no-repeat center center; - } -} - -.limited-slide-box { - position: relative; - width: 944px; - margin: 28px auto 0; - overflow: hidden; - .slide-wrap { - position: relative; - overflow: hidden; + .img-box {} } - .box { - width: 944px; - position: relative; - float: left; - } -} - -.goods-list { - float: left; - width: 992px; - background: #333333; - li { - float: left; - width: 150px; - margin: 0 48px 0 0; - .img-box { - position: relative; - height: 200px; - text-align: center; - overflow: hidden; - img { - width: 100%; - } - span { - position: absolute; - left: 0; - bottom: 0; - width: 55px; - height: 25px; - line-height: 25px; - background: #000; - color: #fff; - font-size: 14px; - text-align: center; - } - span.red { - background: #ef3d00; - } - } - .goods-name { - margin: 5px 0 0 0; - line-height: 18px; - font-size: 14px; - color: #ccc; - } - .price { - margin: 6px 0 0 0; - line-height: 18px; - color: #ccc; - font-size: 12px; - .original-price { - color: #999; - text-decoration: line-through; - margin-right: 4px; - } - } - } -} - -.limited-slide-control { - position: absolute; - height: 200px; - left: 0; - right: 0; - top: 94px; - a { - position: absolute; - top: 50%; - left: 50%; - font-size: 30px; - color: #ebebeb; - margin-top: -22px; - &:focus { - outline: none; - } - } - .limited-slide-prev { - margin-left: -510px; - } - .limited-slide-next { - margin-left: 480px; - } - .disable { - color: #4a4a4a; - cursor: default; + li:nth-child(5n) { + margin-right: 0; } } +// .limited-goods { +// position: relative; +// padding: 30px 0 50px 0; +// background: #333333; +// h2 { +// font-size: 24px; +// color: #8b8b8b; +// font-weight: bold; +// text-align: center; +// background: url("../images/yohood/limited-line.png") no-repeat center center; +// } +// } +// .limited-slide-box { +// position: relative; +// width: 944px; +// margin: 28px auto 0; +// overflow: hidden; +// .slide-wrap { +// position: relative; +// overflow: hidden; +// } +// .box { +// width: 944px; +// position: relative; +// float: left; +// } +// } +// .goods-list { +// float: left; +// width: 992px; +// background: #333333; +// li { +// float: left; +// width: 150px; +// margin: 0 48px 0 0; +// .img-box { +// position: relative; +// height: 200px; +// text-align: center; +// overflow: hidden; +// img { +// width: 100%; +// } +// span { +// position: absolute; +// left: 0; +// bottom: 0; +// width: 55px; +// height: 25px; +// line-height: 25px; +// background: #000; +// color: #fff; +// font-size: 14px; +// text-align: center; +// } +// span.red { +// background: #ef3d00; +// } +// } +// .goods-name { +// margin: 5px 0 0 0; +// line-height: 18px; +// font-size: 14px; +// color: #ccc; +// } +// .price { +// margin: 6px 0 0 0; +// line-height: 18px; +// color: #ccc; +// font-size: 12px; +// .original-price { +// color: #999; +// text-decoration: line-through; +// margin-right: 4px; +// } +// } +// } +// } +// .limited-slide-control { +// position: absolute; +// height: 200px; +// left: 0; +// right: 0; +// top: 94px; +// a { +// position: absolute; +// top: 50%; +// left: 50%; +// font-size: 30px; +// color: #ebebeb; +// margin-top: -22px; +// &:focus { +// outline: none; +// } +// } +// .limited-slide-prev { +// margin-left: -510px; +// } +// .limited-slide-next { +// margin-left: 480px; +// } +// .disable { +// color: #4a4a4a; +// cursor: default; +// } +// } .return-top { + width: 42px; + height: 42px; position: fixed; - bottom: 440px; + bottom: 50px; left: 50%; - margin-left: 600px; + margin-left: 568px; a { color: #000; } span { display: block; + border: 1px solid #000; + font-size: 27px; + text-align: center; } } @@ -633,9 +829,9 @@ left: 0; right: 0; bottom: 0; - background: rgba(0, 0, 0, 0.5); + background: rgba(0, 0, 0, 0.7); background: #000 \9; - filter: alpha(opacity = 50) \9; + filter: alpha(opacity=50) \9; width: 100% \9; height: 100% \9; z-index: 101; @@ -649,8 +845,8 @@ position: absolute; z-index: 99; left: 50%; - top: 367px; - margin-left: -596px; + top: 432px; + margin-left: -616px; h4 { font-size: 14px; margin-bottom: 5px; @@ -696,4 +892,18 @@ .ft { width: 100%; -} \ No newline at end of file + min-width: $pageMainWidth; + hr { + margin: -1px auto; + width: $pageMainWidth; + border: 0; + border-top: 1px solid #e0e0e0; + } + .copyright { + margin: 0 auto; + line-height: 70px; + color: #444; + width: $pageMainWidth; + text-align: center; + } +} diff --git a/res/sass/style/_detail.scss b/res/sass/style/_detail.scss index adb8648..8593dce 100644 --- a/res/sass/style/_detail.scss +++ b/res/sass/style/_detail.scss @@ -1,44 +1,103 @@ -.detail-title { - margin: 48px 0 28px; +$pageContentWidth: 1080px; +$detialContentWidth: 740px; +$sideWidth: 290px; +.page-detail-wrap { + width: $pageContentWidth; + margin: 0 auto; +} + +.page-detail-title { + margin: 40px 0 28px; width: 644px; - font-size: 28px; - h2, h3 { + font-size: 30px; + h2 { line-height: 40px; font-weight: bold; + color: #282828; } - .time { + .item-info { + $itemInfoHeight: 18px; + height: $itemInfoHeight; + line-height: $itemInfoHeight; + margin: 8px 0 0; font-size: 12px; - color: #b2b2b2; - line-height: 24px; + .item-tag { + display: inline-block; + width: 64px; + height: auto; + text-align: center; + background: #000; + line-height: $itemInfoHeight; + color: #fff; + } + .brand-info { + background: #1a72ff; + } + .activity-intro { + background-color: #ffc000; + } + .spotlight-activity { + background-color: #ff365c; + } + .limited-edition { + background-color: #21dbcc; + } + .item-time { + margin: 0 0 0 20px; + color: #b2b2b2; + font-size: 12px; + background: #fff; + font-style: italic; + } } } -.detail-body { +.page-detail-body { float: left; - width: 644px; + width: $detialContentWidth; img { max-width: 100%; } } +.detail-video { + width: $detialContentWidth; + height: 425px; + position: relative; + overflow: hidden; + margin: 0 0 30px 0; + .play-icon { + position: absolute; + width: 50px; + height: 43px; + background: url("../images/yohood/play.png"); + background-size: 100% 100%; + left: 50%; + top: 50%; + margin: -22px 0 0 -25px; + z-index: 100; + } +} + .detail-slide { margin-bottom: 20px; } .detail-slide-body { + $slideBodyHeight: 425px; position: relative; width: 100%; - height: 415px; + height: $slideBodyHeight; overflow: hidden; .detail-slide-piclist { - height: 415px; + height: $slideBodyHeight; overflow: hidden; position: relative; .box { float: left; - width: 644px; - height: 415px; - line-height: 415px; + width: $detialContentWidth; + height: $slideBodyHeight; + line-height: $slideBodyHeight; position: relative; background: #000; text-align: center; @@ -53,7 +112,7 @@ .slide-shadow { a { position: absolute; - width: 322px; + width: 50px; top: 0; bottom: 0; &:focus { @@ -90,24 +149,28 @@ } .detail-slide-ctrl { + $slideCtrlHeight: 86px; padding: 15px 0 0 0; width: 100%; - height: 65px; + height: $slideCtrlHeight; overflow: hidden; position: relative; - .detail-slide-ctrl-prev, .detail-slide-ctrl-next { - display: none; + .box { + width: 148px; + height: $slideCtrlHeight; + } + .detail-slide-ctrl-prev, + .detail-slide-ctrl-next { + display: inline; position: absolute; top: 15px; width: 30px; - height: 65px; - line-height: 65px; - background: rgba(230, 230, 230, 0.9); + height: $slideCtrlHeight; + line-height: $slideCtrlHeight; font-size: 18px; text-align: center; - color: #000; - background: #fff\9; - filter: alpha(opacity = 90); + color: #fff; + background: rgba(0, 0, 0, .2); } .detail-slide-ctrl-prev { left: 0; @@ -118,46 +181,28 @@ } .detail-slide-ctrl-tabs { + $slideCtrlHeight: 86px; position: relative; left: 0; top: 0; li { position: relative; float: left; - padding: 0 0 0 9px; img { display: block; - width: 100px; - height: 65px; - } - } - li:first-child { - padding: 0; - } - li:first-child.current, li:first-child.swiper-slide-active { - .border { - left: 0px; + width: 148px; + height: $slideCtrlHeight; } - } - li.current, li.swiper-slide-active { - .border { + .cover { position: absolute; - left: 7px; + left: 0px; right: 0px; top: 0px; bottom: 0px; - border: 2px solid #000; + background: rgba(0, 0, 0, 0.5); } - .arrow { - position: absolute; - top: -9px; - left: 50%; - margin: 0 0 0 -9px; - width: 0; - height: 0; - border-left: 9px solid transparent; - border-right: 9px solid transparent; - border-bottom: 9px solid black; + .cover.on { + background: rgba(0, 0, 0, 0); } } } @@ -167,6 +212,7 @@ font-size: 14px; line-height: 28px; color: #000; + word-break: break-all; p { margin: 0 0 25px; } @@ -176,58 +222,94 @@ } } +.related-post { + h3 { + font-weight: bold; + } + .post-list { + $itemWidth: 235px; + margin-top: 17px; + width: $detialContentWidth; + .layout-item { + float: left; + width: 235px; + height: 255px; + margin: 0 ($detialContentWidth - $itemWidth * 3) / 2 0 0; + .image-box { + width: $itemWidth; + height: 135px; + overflow: hidden; + a { + display: table-cell; + width: $itemWidth; + height: 135px; + vertical-align: middle; + img { + margin: 0 auto; + } + } + } + .content { + .volupia { + margin: 22px 0 0 0; + line-height: 20px; + a { + font-size: 14px; + font-weight: bold; + } + } + .time { + margin: 22px 0 0; + color: #b2b2b2; + font-size: 12px; + font-style: italic; + } + a { + word-break: break-all; + } + } + } + .layout-item:last-child { + margin: 0; + } + } +} + .detail-related-post { + margin: 100px 0 80px 0; h3 { + font-size: 22px; font-weight: bold; + // font-family: "Source Han Sans CN"; + min-width: 5em; + width: 5em; + text-align: center; + border: 1px solid #000; + padding: .3em 4em; + margin: 0 auto; + } + hr { + margin: 32px 0 40px 0; + border: 0; + border-top: 1px solid #e3e3e3; } } -.detail-side { - width: 280px; - float: right; +.page-detail-side { + width: $sideWidth; + float: left; + margin: 0 0 0 50px; padding-bottom: 62px; } .detail-ad { - margin-bottom: 28px; + width: $sideWidth; li { - margin-bottom: 15px; + margin-bottom: 30px; img { - display: block; - } - } -} - -.app-download { - width: 278px; - height: 158px; - border: 1px solid #000; - .qr { - float: left; - margin: 22px 0 0 18px; - width: 114px; - height: 114px; - img { - display: block; width: 100%; - } - } - .download-text { - float: left; - margin: 20px 0 38px 12px; - width: 108px; - img { display: block; - width: 50px; - } - p { - font-size: 12px; - color: #666; - } - .yoho-name { - font-size: 18px; - color: #000; - font-weight: bold; + max-width: 100%; } } } @@ -235,39 +317,57 @@ .side-related-post.fix { position: fixed; top: 0px; - left: 50%; - width: 280px; - margin-left: 210px; } .side-related-tab { - border-bottom: 1px solid #000; + margin: 50px 0 20px 0; + border: 1px solid #000; + position: relative; + text-align: center; + $titleHeight: 48px; a { float: left; - width: 140px; + width: 50%; text-align: center; - font-size: 18px; - line-height: 38px; + font-size: 14px; + opacity: .7; + height: $titleHeight; + line-height: $titleHeight; color: #000; font-weight: bold; } + span { + display: inline-block; + font-size: 2em; + position: absolute; + left: 0; + right: 0; + bottom: 0; + top: 0; + height: $titleHeight; + line-height: $titleHeight; + text-align: center; + } a.current { - border-bottom: 2px solid #000; + opacity: 1; } } .side-related-list { + width: $sideWidth; display: none; &.current { display: block; } .layout-item { + width: $sideWidth; + height: 95px; float: none; - margin: 20px 0 0 0; + margin: 0; .image-box { float: left; - width: 82px; - height: 53px; + width: 92px; + height: 54px; overflow: hidden; img { display: block; @@ -282,16 +382,53 @@ } .content { float: left; - margin-left: 16px; - width: 182px; + margin: 0 0 0 16px; + width: $sideWidth - 92px - 16px; h2 { margin: 0; a { - font-size: 14px; - font-weight: normal; + font-size: 13px; + font-weight: bold; line-height: 20px; + color: #282828; } } + .time { + color: #b2b2b2; + font-size: 12px; + font-style: italic; + margin: 0; + color: #8C8C8C; + } + } + hr { + margin: 20px 0 0; + float: left; + width: $sideWidth; + border: 0; + border-top: 1px solid #e3e3e3; } } -} \ No newline at end of file +} + +.detial-img-zoom { + .img-zoom { + .close-btn { + display: none; + } + .img-zoom-ctrl-prev, + .img-zoom-ctrl-next { + position: fixed; + top: 50%; + margin: -16px 0 0 0; + color: #fff; + font-size: 50px; + } + .img-zoom-ctrl-prev { + left: 50px; + } + .img-zoom-ctrl-next { + right: 50px; + } + } +} diff --git a/res/sass/style/_home.scss b/res/sass/style/_home.scss index 23e1661..7a0c661 100644 --- a/res/sass/style/_home.scss +++ b/res/sass/style/_home.scss @@ -1,6 +1,7 @@ +$pageMainWidth: 1180px; .bd { - width: 980px; margin: 0 auto; + min-width: $pageMainWidth; } .wrapper { @@ -8,110 +9,102 @@ margin: 0 auto; } -.slide-main { - position: relative; -} - -.slide-control { - a { - position: absolute; - top: 50%; - margin: -28px 0 0 0; - font-size: 48px; - color: #000; - } - .slide-prev { - left: -70px; - } - .slide-next { - right: -70px; - } -} - .content-wrap { - margin: 50px 0 30px; + width: 1180px; + margin: 50px auto 30px; } .cooperation { - position: relative; - margin: 43px 0; - height: 118px; - border: 1px solid #000; + $cooperationHeight: 240px; + margin: 50px 0 0; + height: $cooperationHeight; + background: #f5f5f5; + .cooperation-slide-warp { + position: relative; + width: $pageMainWidth; + margin: 0 auto; + .cooperation-slide-box { + position: relative; + width: $pageMainWidth; + overflow: hidden; + height: $cooperationHeight; + } + .cooperation-slide-control { + a { + position: absolute; + top: 50%; + margin-top: -16px; + color: #000; + font-size: 26px; + } + .cooperation-slide-prev { + left: -40px; + } + .cooperation-slide-next { + right: -40px; + } + .disable { + color: #d9d9d9; + cursor: default; + } + } + } } .cooperation-slide-box { - position: relative; - width: 800px; - margin: 0 auto; - height: 90px; - padding: 28px 0 0 0; - overflow: hidden; + $cooperationHeight: 240px; + $boxInterval: 40px; .slide-wrap { position: relative; overflow: hidden; .box { + background-color: #f5f5f5; position: relative; float: left; - width: 800px; - } - } -} - -.cooperation { - .partner { - float: left; - margin: 0 50px 0 0; - } - .media { - float: left; - height: 68px; - padding: 0 0 0 50px; - border-left: 1px solid #000; - } - h2 { - font-size: 14px; - line-height: 20px; - } - ul { - li { - float: left; - height: 60px; - width: 132px; - a { - width: 132px; - height: 60px; - display: table-cell; - vertical-align: middle; - text-align: center; + padding: 50px $boxInterval 0 0; + width: $pageMainWidth / 2 - $boxInterval; + height: $cooperationHeight; + h2 { + font-size: 14px; + line-height: 20px; } - } - } - .partner ul, .media ul { - li { - width: 115px; - a { - width: 115px; + hr { + border: 0; + border-top: 1px solid #e0e0e0; + } + ul { + li { + float: left; + width: 120px; + height: 55px; + margin: 10px 14px 0 0; + a { + width: 120px; + height: 55px; + display: table-cell; + vertical-align: middle; + text-align: center; + img { + max-width: 100%; + max-height: 100%; + } + } + } } } + .big-size { + width: $pageMainWidth - $boxInterval; + } } } -.cooperation-slide-control { - a { - position: absolute; - top: 50%; - margin-top: -16px; - color: #000; - font-size: 26px; - } - .cooperation-slide-prev { - left: 20px; - } - .cooperation-slide-next { - right: 20px; - } - .disable { - color: #d9d9d9; - cursor: default; +.right-banner-warp { + display: none; +} + +.right-banner.layout-item { + .image-box { + height: 420px; + margin-bottom: 26px; } -} \ No newline at end of file +} diff --git a/res/sass/style/_news.scss b/res/sass/style/_news.scss index 3eea992..90a9d28 100644 --- a/res/sass/style/_news.scss +++ b/res/sass/style/_news.scss @@ -1,9 +1,27 @@ +.news-wrap { + width: 1180px; + margin: 0 auto; +} + .news-tab ul { li { - margin-left: 8px; + width: 140px; + height: 40px; + margin-left: 0; + a { + height: 40px; + line-height: 40px; + border-radius: 0; + border-right: 0; + } + } + li:last-child { + a { + border-right: 1px solid #000; + } } } .news-main { margin: 30px 0 50px 0; -} \ No newline at end of file +} diff --git a/res/sass/style/_other.scss b/res/sass/style/_other.scss index 8adbd31..4b294ff 100644 --- a/res/sass/style/_other.scss +++ b/res/sass/style/_other.scss @@ -1,9 +1,52 @@ -.contact-us { - padding: 20px 0 30px; +.contact-us-wrap { + width: 1180px; + margin: 50px auto; + .info-list { + float: left; + border: 1px solid #000; + padding: 32px; + .info-title { + text-align: center; + font-weight: bold; + margin: 0 auto 32px auto; + } + .info-section { + margin-bottom: 32px; + font-size: 16px; + line-height: 28px; + h2 { + font-weight: bold; + } + } + .contact-us-section:last-child { + margin-bottom: 0; + } + } } -.contact-us-section { - text-align: center; - font-size: 16px; - line-height: 28px; -} \ No newline at end of file +.contact-us-info { + width: 600px; + margin: 0 0 0 25px; + .contact-us-title { + font-size: 30px; + } + .contact-us-section { + font-size: 14px; + } +} + +.public-number-info { + width: 300px; + margin: 0 0 0 50px; + .public-number-title { + font-size: 18px; + } + .public-number-section { + text-align: center; + font-size: 14px; + img { + width: 200px; + height: 200px; + } + } +} diff --git a/res/sass/style/_show.scss b/res/sass/style/_show.scss index 20ed044..55f3a47 100644 --- a/res/sass/style/_show.scss +++ b/res/sass/style/_show.scss @@ -1,22 +1,36 @@ .show-title { line-height: 98px; - font-size: 32px; + font-size: 24px; color: #0099bb; text-align: center; } .show-wrap { + width: 1180px; + margin: 0 auto; padding-bottom: 50px; .layout-item { - height: 396px; + height: 450px; .image-box { - height: 308px; + height: 342px; overflow: visible; img { width: 100%; height: 100%; } } + .content { + p { + font-size: 20px; + font-weight: bold; + color: #282828; + } + .time { + font-size: 12px; + font-weight: normal; + color: #8c8c8c; + } + } } } @@ -48,7 +62,7 @@ font-weight: bold; box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.5); background: #fff\9; - filter: alpha(opacity = 90); + filter: alpha(opacity=90); white-space: nowrap; z-index: 1; cursor: default; @@ -70,4 +84,5 @@ height: 5px; top: 13px; left: -2px; -} \ No newline at end of file +} + diff --git a/res/sass/style/_submit.scss b/res/sass/style/_submit.scss new file mode 100644 index 0000000..501f8e8 --- /dev/null +++ b/res/sass/style/_submit.scss @@ -0,0 +1,490 @@ +@import "compass"; +.pull-left { + float: left; +} + +.pull-right { + float: right; +} + +.error { + color: #f00; +} + + +/*#w-submit { + padding: 0;*/ + +.yoho-banner-w { + width: 100%; + // height: 140px; + background: #f9f9f9; + // background: image-url('online-header.jpg') center top no-repeat; + overflow: hidden; +} + +.yoho-header-w { + width: 100%; + // height: 140px; + background: #f9f9f9; + // background: image-url('online-banner.jpg') center top no-repeat; + overflow: hidden; + position: relative; + text-align: center; +} + +.yoho-header-title { + display: inline-block; + // padding: 0 65px; + // height: 80px; + // line-height: 80px; + // top: 50%; + // margin-top: -40px; + // font-size: 40px; + font-weight: bold; + color: #fff; + position: relative; + vertical-align: middle; + text-align: center; + .main-header { + font-size: 18px; + color: #d41728; + } + .second-header { + font-size: 11px; + color: #000; + } + img { + width: 100%; + } +} + + +/*}*/ + +.submit-content { + width: 990px; + margin: 0 auto; + height: auto; + overflow: hidden; + .page-header { + margin-top: 45px; + height: auto; + overflow: hidden; + font-size: 28px; + font-weight: bold; + color: #000; + a { + padding: 0 30px; + text-decoration: none; + cursor: pointer; + color: #b0b0b0; + &.end { + border-left: 2px solid #7f7f7f; + } + &.active { + color: #000; + text-decoration: none; + span { + padding-bottom: 3px; + border-bottom: 2px solid #000; + } + } + } + } + + + .pull-left { + width: 340px; + padding-top: 50px; + } + .content-sub { + border: 1px solid #cfcfcf; + padding: 28px 29px; + line-height: 25px; + color: #000; + font-size: 14px; + span { + display: inline-block; + float: left; + text-align: justify; + text-justify: auto; + i:after { + content: "空"; + visibility: hidden; + } + } + p { + display: inline-block; + width: 200px; + } + } + .pull-right { + width: 648px; + padding-top: 50px; + h2.content-header { + text-indent: 100px; + font-size: 23px; + color: #000; + font-weight: bold; + margin-bottom: 38px; + a { + width: 150px; + height: 30px; + line-height: 30px; + color: #444; + border: 1px solid #444; + text-align: center; + float: right; + font-size: 12px; + text-indent: 0; + cursor: pointer; + } + } + ul {} + .form-leading { + float: left; + width: 210px; + text-align: right; + height: 30px; + line-height: 30px; + font-size: 14px; + color: #444; + b { + color: #ff2424; + } + } + .form-control { + float: left; + width: 438px; + line-height: 30px; + @include box-sizing(); + padding-left: 30px; + } + li { + margin-bottom: 18px; + height: auto; + overflow: hidden; + &.h-auto { + height: auto; + overflow: hidden; + } + input[type="text"] { + border: 1px solid #e8e8e8; + height: 28px; + background: none; + outline: none; + line-height: 28px; + display: block; + width: 405px; + @include box-sizing(); + &.pic-code { + width: 111px; + float: left; + } + } + textarea { + border: 1px solid #e8e8e8; + height: 100px; + outline: none; + display: block; + width: 405px; + max-width: 405px; + min-width: 405px; + padding: 15px; + @include box-sizing(); + } + .pic-code-text { + display: block; + width: 80px; + height: 30px; + border: 1px solid #f7f7f7; + background: #e8e8e8; + line-height: 30px; + text-align: center; + float: left; + margin-left: 20px; + } + input[type="file"] { + /*display: block; + height: 30px; + width: 69px; + outline: none; + margin-right: 20px; + overflow: hidden; + float: left; + + padding-top: 5px; + @include box-sizing();*/ + } + .upload-tips { + font-size: 12px; + color: #b0b0b0; + &.error { + color: red; + } + } + .has-upload { + margin: 10px 0; + height: auto; + overflow: hidden; + display: none; + span { + display: block; + float: left; + padding: 0 30px 0 15px; + text-align: center; + border: 1px solid #ededed; + @include border-radius(20px); + position: relative; + b { + text-indent: -100000px; + display: inline-block; + width: 20px; + height: 20px; + background: image-url('clo.png') center center no-repeat; + cursor: pointer; + position: absolute; + top: 50%; + margin-top: -10px; + right: 5px; + } + } + } + &.upload-list { + height: auto; + overflow: hidden; + } + } + .submit-w-btn { + border: none; + display: block; + width: 112px; + height: 40px; + line-height: 40px; + text-align: center; + font-size: 14px; + color: #fff; + background: #1a1a1a; + margin: 35px 145px 400px auto; + cursor: pointer; + &.dis { + background: #ccc; + } + } + } +} + +.dialog-w { + position: fixed; + width: 100%; + height: 100%; + display: block; + top: 0; + left: 0; + z-index: 1000; + background: image-url('op.png'); + .dia-content { + width: 600px; + height: 430px; + background: #fff; + position: absolute; + top: 50%; + left: 50%; + margin-left: -300px; + margin-top: -215px; + span { + position: absolute; + display: block; + width: 100%; + height: 100%; + background: image-url('submit-success.png') center center no-repeat; + top: 0; + left: 0; + } + } +} + +.apply-content { + width: 1080px; + margin: 0 auto; + margin-top: 45px; + .apply-enter { + width: 100%; + height: auto; + overflow: hidden; + li { + float: left; + width: 342px; + height: auto; + overflow: hidden; + position: relative; + text-align: center; + div.background { + height: 420px; + position: relative; + a { + display: block; + width: 100%; + height: 55px; + position: absolute; + bottom: 38px; + cursor: pointer; + } + } + &.apply-left { + .background { + background: image-url('czs.png') center center no-repeat; + } + } + &.apply-center { + margin: 0 27px; + .background { + background: image-url('mt.png') center center no-repeat; + } + } + &.apply-right { + .background { + background: image-url('zzs.png') center center no-repeat; + } + } + .apply-operate { + display: inline-block; + color: #444; + font-size: 16px; + margin-top: 30px; + margin-bottom: 80px; + a { + display: inline-block; + border: 1px solid #444; + width: 140px; + height: 40px; + line-height: 40px; + text-align: center; + margin: 0 5px; + cursor: pointer; + color: #444; + } + } + } + } +} + +.submit-content .pull-right .media-down li { + height: 95px; +} + +.media-down { + padding-left: 65px; + li { + position: relative; + border-bottom: 1px solid #cfcfcf; + h2 { + font-size: 18px; + font-weight: bold; + color: #000; + width: 465px; + } + div { + font-size: 14px; + color: #444; + margin-top: 12px; + font-weight: bold; + .media-date { + font-size: 12px; + font-weight: normal; + color: #a6a6a5; + } + } + .down-btn { + width: 112px; + height: 40px; + text-align: center; + line-height: 40px; + display: block; + position: absolute; + right: 0; + top: 50%; + margin-top: -20px; + color: #fff; + font-size: 14px; + background: #000; + cursor: pointer; + } + } +} + +#introduction-tips { + display: none; + span { + color: red; + } +} + +.submit-content .pull-right .exhibitor-down li { + height: auto; +} + +.exhibitor-down { + padding: 0 15px; + margin-bottom: 100px; + ul { + height: auto; + overflow: hidden; + li { + float: left; + margin: 0 15px; + text-align: center; + width: 279px; + img { + display: block; + overflow: hidden; + width: 279px; + height: 396px; + } + span { + display: block; + width: 100%; + height: 70px; + line-height: 70px; + text-align: center; + font-size: 14px; + color: #3f3f3f; + @include ellipsis(); + } + .exhibitor-btn { + width: 112px; + height: 40px; + text-align: center; + line-height: 40px; + display: inline-block; + color: #fff; + font-size: 14px; + background: #000; + cursor: pointer; + } + } + } +} + +#upload-file { + display: block; + float: left; + background: #ccc; + cursor: pointer; + text-align: center; + margin-right: 15px; + position: relative; + object { + display: block; + width: 100%; + height: 100%; + position: absolute; + top: 0; + left: 0; + } +} + +.uploadify-queue { + display: none; +} diff --git a/res/sass/style/_video.scss b/res/sass/style/_video.scss index a1fc747..bc51a87 100644 --- a/res/sass/style/_video.scss +++ b/res/sass/style/_video.scss @@ -1,3 +1,4 @@ -.video-list { - margin: 28px 0 50px; -} \ No newline at end of file +.video-wrap { + width: 1180px; + margin: 50px auto; +} diff --git a/res/swf/YohoodPlayer.swf b/res/swf/YohoodPlayer.swf index 3cc6996..2cb966d 100644 Binary files a/res/swf/YohoodPlayer.swf and b/res/swf/YohoodPlayer.swf differ diff --git a/util/common/Session.class.php b/util/common/Session.class.php index 0ce4653..6c8c9ed 100644 --- a/util/common/Session.class.php +++ b/util/common/Session.class.php @@ -1,253 +1,254 @@ -<?php -class Util_Common_Session implements Util_Session_SaveHandler_Interface -{ - const LIFETIME = 1800; - const DOMAIN = '.yoho.cn'; - - protected $prefix = 'yh_session_'; - - protected $domain = '.yoho.cn'; - - protected $_lifetime = false; - - protected $_overrideLifetime = false; - - protected $_sessionSavePath = ''; - - protected $_sessionName = ''; - - protected $mem = null; - - /** - * 初始化 - * - * @param array $options - */ - public function __construct(array $options = array()) - { - $this->domain = defined('SITE_DOMAIN') ? SITE_DOMAIN : self::DOMAIN; - - ini_set('session.cookie_domain', $this->domain); - // 使用 COOKIE 保存 SESSION ID 的方式 - ini_set('session.use_cookies', 1); - // 兼容使用 GET/POST 变量方式 - ini_set('session.use_trans_sid', 1); - // 设置垃圾收集的触发几率 - ini_set('session.gc_probability', 1); - // 设置垃圾收集的触发几率除数 - ini_set('session.gc_divisor', 100); - // 设置垃圾回收最大生存时间,浏览器生存周期 - ini_set('session.gc_maxlifetime', self::LIFETIME); - - ini_set('session.cookie_path', '/'); - - // 多主机共享保存 SESSION ID 的 COOKIE - // 将 session.save_handler 设置为 user - // session_module_name ( 'user' ); - // 定义 SESSION 各项操作所对应的方法名; - $this->createCacheObj(); - $this->setLifetime(self::LIFETIME); - $this->setOverrideLifetime(true); - } - - /** - * 析构函数 - * - * @return void - */ - public function __destruct() - { - session_write_close(); - - $this->mem = null; - } - - /** - * 创建Cache对象 - * - * @return Instance of cache | false - */ - private function createCacheObj() - { - $this->mem = Util_Cache::factory ( array ('domain' => 'www' . $this->domain, 'class' => 'session') ); - if (! isset ( $this->mem ) || ! $this->mem) - { - throw new Framework_YException ( 'All cache servers down.' ); - } - return $this->mem; - } - - /** - * Set session lifetime and optional whether or not the lifetime of an existing session should be overridden - * - * $lifetime === false resets lifetime to session.gc_maxlifetime - * - * @param int $lifetime - * @param boolean $overrideLifetime (optional) - * @return Zend_Session_SaveHandler_Memcached - */ - public function setLifetime($lifetime, $overrideLifetime = null) - { - if ($lifetime < 0) - { - throw new Framework_YException ( '生存周期不能设置为小于0!' ); - } - else if (empty ( $lifetime )) - { - $this->_lifetime = ( int ) ini_get ( 'session.gc_maxlifetime' ); - } - else - { - $this->_lifetime = ( int ) $lifetime; - } - if ($overrideLifetime != null) - { - $this->setOverrideLifetime ( $overrideLifetime ); - } - return $this; - } - - /** - * Retrieve session lifetime - * - * @return int - */ - public function getLifetime() - { - return $this->_lifetime; - } - - /** - * Set whether or not the lifetime of an existing session should be overridden - * - * @param boolean $overrideLifetime - * @return Zend_Session_SaveHandler_Memcached - */ - public function setOverrideLifetime($overrideLifetime) - { - $this->_overrideLifetime = ( boolean ) $overrideLifetime; - - return $this; - } - - public function getOverrideLifetime() - { - return $this->_overrideLifetime; - } - - /** - * Retrieve session lifetime considering - * - * @param array $value - * @return int - */ - public function open($save_path, $name) - { - $this->_sessionSavePath = $save_path; - $this->_sessionName = $name; - return true; - } - - /** - * Retrieve session expiration time - * - * @param * @param array $value - * @return int - */ - public function close() - { - return true; - } - - /** - * 读取接口 - * - * @param string $id - * @return mixed | false - */ - public function read($id) - { - $return = ''; - $value = $this->mem->get ( $this->prefix . $id ); //获取数据 - if ($value) - { - if ($this->_getExpirationTime ( $value ) > time ()) - { - $return = $value ['data']; - } - else - { - $this->destroy ( $id ); - } - } - return $return; - } - - /** - * 写入接口 - * - * @param string $id - * @param mixed $data - * @return boolean - */ - public function write($id, $data) - { - $return = false; - $insertDate = array ('modified' => time (), 'data' => ( string ) $data ); - $value = $this->mem->get ( $this->prefix . $id ); //获取数据 - if ($value) - { - $insertDate ['lifetime'] = $this->_getLifetime ( $value ); - $return = $this->_overrideLifetime ? $this->mem->set ( $this->prefix . $id, $insertDate, 0, $insertDate ['lifetime'] ) : $this->mem->set ( $this->prefix . $id, $insertDate ); - } - else - { - $insertDate ['lifetime'] = $this->_lifetime; - $return = $this->mem->set ( $this->prefix . $id, $insertDate, 0, $this->_lifetime ); - } - return $return; - } - - /** - * 摧毁ITEM - * - * @param string $id - * @return boolean - */ - public function destroy($id) - { - return $this->mem->delete ( $this->prefix . $id ); - } - - /** - * 垃圾收集 - * - * @param integer $maxlifetime - * @return true - */ - public function gc($maxlifetime) - { - return true; - } - - /** - * 获取生存时间 - * - * @param String $value - * @return Integer - */ - protected function _getLifetime($value) - { - $return = $this->_lifetime; - if (! $this->_overrideLifetime) - { - $return = ( int ) $value ['lifetime']; - } - return $return; - } - - protected function _getExpirationTime($value) - { - return ( int ) $value ['modified'] + $this->_getLifetime ( $value ); - } +<?php +class Util_Common_Session implements Util_Session_SaveHandler_Interface +{ + const LIFETIME = 1800; + const DOMAIN = '.yoho.cn'; + + protected $prefix = 'yh_session_'; + + protected $domain = '.yoho.cn'; + + protected $_lifetime = false; + + protected $_overrideLifetime = false; + + protected $_sessionSavePath = ''; + + protected $_sessionName = ''; + + protected $mem = null; + + /** + * 初始化 + * + * @param array $options + */ + public function __construct(array $options = array()) + { + $this->domain = defined('SITE_DOMAIN') ? SITE_DOMAIN : self::DOMAIN; + + ini_set('session.cookie_domain', $this->domain); + // 使用 COOKIE 保存 SESSION ID 的方式 + ini_set('session.use_cookies', 1); + // 兼容使用 GET/POST 变量方式 + ini_set('session.use_trans_sid', 1); + // 设置垃圾收集的触发几率 + ini_set('session.gc_probability', 1); + // 设置垃圾收集的触发几率除数 + ini_set('session.gc_divisor', 100); + // 设置垃圾回收最大生存时间,浏览器生存周期 + ini_set('session.gc_maxlifetime', self::LIFETIME); + + ini_set('session.cookie_path', '/'); + + // 多主机共享保存 SESSION ID 的 COOKIE + // 将 session.save_handler 设置为 user + // session_module_name ( 'user' ); + // 定义 SESSION 各项操作所对应的方法名; + $this->createCacheObj(); + $this->setLifetime(self::LIFETIME); + $this->setOverrideLifetime(true); + } + + /** + * 析构函数 + * + * @return void + */ + public function __destruct() + { + session_write_close(); + + $this->mem = null; + } + + /** + * 创建Cache对象 + * + * @return Instance of cache | false + */ + private function createCacheObj() + { + $this->mem = Util_Cache::factory ( array ('domain' => 'www' . $this->domain, 'class' => 'session') ); + if (! isset ( $this->mem ) || ! $this->mem) + { + throw new Framework_YException ( 'All cache servers down.' ); + } + return $this->mem; + } + + /** + * Set session lifetime and optional whether or not the lifetime of an existing session should be overridden + * + * $lifetime === false resets lifetime to session.gc_maxlifetime + * + * @param int $lifetime + * @param boolean $overrideLifetime (optional) + * @return Zend_Session_SaveHandler_Memcached + */ + public function setLifetime($lifetime, $overrideLifetime = null) + { + if ($lifetime < 0) + { + throw new Framework_YException ( '生存周期不能设置为小于0!' ); + } + else if (empty ( $lifetime )) + { + $this->_lifetime = ( int ) ini_get ( 'session.gc_maxlifetime' ); + } + else + { + $this->_lifetime = ( int ) $lifetime; + } + if ($overrideLifetime != null) + { + $this->setOverrideLifetime ( $overrideLifetime ); + } + return $this; + } + + /** + * Retrieve session lifetime + * + * @return int + */ + public function getLifetime() + { + return $this->_lifetime; + } + + /** + * Set whether or not the lifetime of an existing session should be overridden + * + * @param boolean $overrideLifetime + * @return Zend_Session_SaveHandler_Memcached + */ + public function setOverrideLifetime($overrideLifetime) + { + $this->_overrideLifetime = ( boolean ) $overrideLifetime; + + return $this; + } + + public function getOverrideLifetime() + { + return $this->_overrideLifetime; + } + + /** + * Retrieve session lifetime considering + * + * @param array $value + * @return int + */ + public function open($save_path, $name) + { + $this->_sessionSavePath = $save_path; + $this->_sessionName = $name; + return true; + } + + /** + * Retrieve session expiration time + * + * @param * @param array $value + * @return int + */ + public function close() + { + return true; + } + + /** + * 读取接口 + * + * @param string $id + * @return mixed | false + */ + public function read($id) + { + $return = ''; + $value = $this->mem->get ( $this->prefix . $id ); //获取数据 + if ($value) + { + if ($this->_getExpirationTime ( $value ) > time ()) + { + $return = $value ['data']; + } + else + { + $this->destroy ( $id ); + } + } + return $return; + } + + /** + * 写入接口 + * + * @param string $id + * @param mixed $data + * @return boolean + */ + public function write($id, $data) + { + $return = false; + $insertDate = array ('modified' => time (), 'data' => ( string ) $data ); + $value = $this->mem->get ( $this->prefix . $id ); //获取数据 + + if ($value) + { + $insertDate ['lifetime'] = $this->_getLifetime ( $value ); + $return = $this->_overrideLifetime ? $this->mem->set ( $this->prefix . $id, $insertDate, 0, $insertDate ['lifetime'] ) : $this->mem->set ( $this->prefix . $id, $insertDate ); + } + else + { + $insertDate ['lifetime'] = $this->_lifetime; + $return = $this->mem->set ( $this->prefix . $id, $insertDate, 0, $this->_lifetime ); + } + return $return; + } + + /** + * 摧毁ITEM + * + * @param string $id + * @return boolean + */ + public function destroy($id) + { + return $this->mem->delete ( $this->prefix . $id ); + } + + /** + * 垃圾收集 + * + * @param integer $maxlifetime + * @return true + */ + public function gc($maxlifetime) + { + return true; + } + + /** + * 获取生存时间 + * + * @param String $value + * @return Integer + */ + protected function _getLifetime($value) + { + $return = $this->_lifetime; + if (! $this->_overrideLifetime) + { + $return = ( int ) $value ['lifetime']; + } + return $return; + } + + protected function _getExpirationTime($value) + { + return ( int ) $value ['modified'] + $this->_getLifetime ( $value ); + } } \ No newline at end of file diff --git a/website/component/scripts/common/Pagination.class.php b/website/component/scripts/common/Pagination.class.php index 42ecc73..e43715a 100644 --- a/website/component/scripts/common/Pagination.class.php +++ b/website/component/scripts/common/Pagination.class.php @@ -266,7 +266,7 @@ EOT; $options = $pagination['options']; $udi = $options['udi']; $url_args = $pagination['parames']; - $length = $this->get('length', 5); + $length = $this->get('length', 4); $slider = $this->get('slider', 2); $prev_label = $this->get('prev_label', '<'); $next_label = $this->get('next_label', '>'); @@ -288,12 +288,12 @@ EOT; if ($pagination['current'] != $pagination['first']) { $url = $this->getUrl($pagination['prev']); - $out .= "<a href=\"{$url}\" class=\"$prev_class\" p='".$pagination['prev']."'>{$prev_label}</a>\n"; + $out .= "<a href=\"{$url}\" class=\"$prev_class\" p='".$pagination['prev']."' style=\"color:black\">{$prev_label}</a>\n"; } if ($pagination['current'] != $pagination['last']) { $url = $this->getUrl( $pagination['next']); - $out .= "<a href=\"{$url}\" class=\"$next_class\" p='".$pagination['next']."'>{$next_label}</a>\n"; + $out .= "<a href=\"{$url}\" class=\"$next_class\" p='".$pagination['next']."' style=\"color:black\">{$next_label}</a>\n"; } return $out."</div>\n"; } @@ -313,7 +313,7 @@ EOT; /*$url_args['page'] = $pagination['prev']; $url = url($udi, $url_args);*/ $url = $this->getUrl($pagination['prev']); - $out .= "<a href=\"{$url}\" class=\"$prev_class\" p='".$pagination['prev']."' >{$prev_label}</a>\n"; + $out .= "<a href=\"{$url}\" class=\"$prev_class\" p='".$pagination['prev']."' style=\"color:black\">{$prev_label}</a>\n"; } $base = $pagination['first']; $current = $pagination['current']; @@ -349,11 +349,11 @@ EOT; $in = $i + 1 - $base; //$url = url($udi, $url_args); $url = $this->getUrl( $i); - $out .= "<a href=\"{$url}\" class=\"$link_class\" p='{$i}'>{$in}</a>\n"; + $out .= "<a href=\"{$url}\" class=\"$link_class\" p='{$i}' style=\"color:black\">{$in}</a>\n"; } if ($i < $begin) { - $out .= "<a class=\"$link_class\" >...</a>\n"; + $out .= '<a style=\"border:0px\">...</a>'; } } for ($i = $begin; $i <= $end; $i ++) @@ -368,12 +368,12 @@ EOT; { //$url = url($udi, $url_args); $url = $this->getUrl( $i); - $out .= "<a href=\"{$url}\" class=\"$link_class\" p='$i'>{$in}</a>\n"; + $out .= "<a href=\"{$url}\" class=\"$link_class\" p='$i' style=\"color:black\">{$in}</a>\n"; } } if ($pagination['last'] - $end > $slider) { - $out .= "<a class=\"$link_class\" >...</a>\n"; + $out .= '<a style="border:0px">...</a>'; $end = $pagination['last'] - $slider; } for ($i = $end + 1; $i <= $pagination['last']; $i ++) @@ -382,7 +382,7 @@ EOT; $in = $i + 1 - $base; //$url = url($udi, $url_args); $url = $this->getUrl( $i); - $out .= "<a href=\"{$url}\" class=\"$link_class\" p='$i'>{$in}</a>\n"; + $out .= "<a href=\"{$url}\" class=\"$link_class\" p='$i' style=\"color:black\">{$in}</a>\n"; } // 2012/09/08 hf: 修改 bug #12470 最后一页不显示"下一页" if ($pagination['current'] != $pagination['last']) @@ -390,7 +390,7 @@ EOT; //$url_args['page'] = $pagination['next']; //$url = url($udi, $url_args); $url = $this->getUrl( $pagination['next']); - $out .= "<a href=\"{$url}\" class=\"$next_class\" p='".$pagination['next']."' >{$next_label}</a>\n"; + $out .= "<a href=\"{$url}\" class=\"$next_class\" p='".$pagination['next']."' style=\"color:black\">{$next_label}</a>\n"; } //检测是否需要增加 if ($this->get('form') && $pagination['options']['model'] == self::Model_Default) @@ -404,7 +404,7 @@ EOT; <div class='pagination-form'> <form action="{$formurl}" method="GET"> <span class="btn38_page">到</span> - <input type="text" class="btn39_inp" name="page" maxLength="10" + <input type="text" class="btn39_inp" name="page" maxLength="10" onKeypress="if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;" onblur="if(isNaN(this.value)) this.value='1'"> <span class="btn38_page1">页</span> diff --git a/website/config/Boot.inc.php b/website/config/Boot.inc.php index fd24968..f27139c 100644 --- a/website/config/Boot.inc.php +++ b/website/config/Boot.inc.php @@ -78,8 +78,8 @@ return array( 'combinePage'=> array( 'index_mobile.js', 'index_mobile.css', - 'index.js', - 'index.css' +// 'index.js', +// 'index.css' ), /** * 插件配置 diff --git a/website/config/core/cache.test.config.php b/website/config/core/cache.test.config.php index 9ce4fb1..e3692d3 100644 --- a/website/config/core/cache.test.config.php +++ b/website/config/core/cache.test.config.php @@ -1,6 +1,4 @@ -[memcache] -servers = 127.0.0.1:11212 -[redis-master] -servers = 192.168.0.39:6379 -[redis-slave-192.168.0.39-6379] -servers = 192.168.0.39:6380 \ No newline at end of file +[memcache] +servers = 127.0.0.1:11213 +[memcached] +servers = 127.0.0.1:11213 \ No newline at end of file diff --git a/website/config/core/db.test.config.php b/website/config/core/db.test.config.php index e35caf3..7b1d1b9 100644 --- a/website/config/core/db.test.config.php +++ b/website/config/core/db.test.config.php @@ -1,4 +1,4 @@ -[mysql] +[mysql] yohood.username = yohodb yohood.password = yohonj_9646_mysql yohood.writers = 127.0.0.1:3310 diff --git a/website/config/file/Upload.class.php b/website/config/file/Upload.class.php index 70c747a..18ac1ce 100644 --- a/website/config/file/Upload.class.php +++ b/website/config/file/Upload.class.php @@ -1,253 +1,265 @@ -<?php -/** - * 项目图片上传配置 - * - * 备注: 尺寸按照从大到小定义, 有利于切图处理 - */ -class Config_File_Upload -{ - /** - * 文件上传的密钥 - * - * @var string - */ - public static $key = 'yoho_upload_system'; - - /** - * 用户头像配置 - * - * @var array - */ - public static $headimg = array( - 'format' => '/^image\/(pjpeg|jpe?g|gif|png|bmp)$/', - 'path' => '/headimg', - 'upload_max_size' => 80000000, - 'defaultShow' => '0050x0050', - 'wh' => array( - '300x300' => '03000300', - '150x150' => '01500150', - '80x80' => '00800080', - '50x50' => '00500050', - '25x25' => '00250025', - ) - ); - - /** - * 用户头像数据 - * - * @var array - */ - public static $headimgData = array( - '_project' => 'headimg', - 'format_str' => array( - '03000300' => array( - 'w' => 300, - 'h' => 300, - 'mode' => 'thumbnail' - ), - '01500150' => array( - 'w' => 150, - 'h' => 150, - 'mode' => 'paste' - ), - '00800080' => array( - 'w' => 80, - 'h' => 80, - 'mode' => 'paste' - ), - '00500050' => array( - 'w' => 50, - 'h' => 50, - 'mode' => 'paste' - ), - '00250025' => array( - 'w' => 25, - 'h' => 25, - 'mode' => 'paste' - ), - ) - ); - - /** - * 碎片图片配置 - * - * @var array - */ - public static $fragmentimg = array( - 'format' => '/^image\/(pjpeg|jpe?g|gif|png|bmp)$/', - 'path' => '/blogimg', - 'upload_max_size' => 80000000, - 'defaultShow' => '0580x9999', - 'wh' => array( - '0580x9999' => '05809999', - '0200x9999' => '02009999', - ), - ); - - /** - * 碎片图片数据 - * - * @var array - */ - public static $fragmentimgData = array( - '_project' => 'fragmentimg', - 'format_str' => array( - '05809999' => array( - 'w' => 580, - 'h' => 9999, - 'mode' => 'thumbnail' - ), - '02009999' => array( - 'w' => 200, - 'h' => 9999, - 'mode' => 'thumbnail' - ), - ) - ); - - /** - * 空间封面背景图片配置 - * - * @var array - */ - public static $spacebgimg = array( - 'format' => '/^image\/(pjpeg|jpe?g|gif|png|bmp)$/', - 'path' => '/spacebgimg', - 'upload_max_size' => 80000000, - 'defaultShow' => '0960x0300', - 'wh' => array( - '0960x0300' => '09600300', - ), - ); - - /** - * 空间封面背景图片数据 - * - * @var array - */ - public static $spacebgimgData = array( - '_project' => 'spacebgimg', - 'format_str' => array( - '09600300' => array( - 'w' => 960, - 'h' => 300, - 'mode' => 'thumbnail' - ), - ) - ); - - /** - * 静态图片配置 - * - * @var array - */ - public static $staticimg = array( - 'format' => '/^image\/(pjpeg|jpe?g|gif|png|bmp)$/', - 'path' => '/staticimg', - 'upload_max_size' => 80000000, - 'defaultShow' => '0714x0394', - 'wh' => array( - '0714x0394' => '07140394', - '0100x0100' => '01000100', - '0050x0050' => '00500050' - ), - ); - - /** - * 静态图片数据 - * - * @var array - */ - public static $staticimgData = array( - '_project' => 'staticimg', - 'format_str' => array( - '07140394' => array( - 'w' => 714, - 'h' => 394, - 'mode' => 'thumbnail' - ), - '01000100' => array( - 'w' => 100, - 'h' => 100, - 'mode' => 'paste', - ), - '00500050' => array( - 'w' => 50, - 'h' => 50, - 'mode' => 'paste', - ), - ) - ); - - /** - * 潮流志图片配置 - * - * @var array - */ - public static $ezineimg = array( - 'format' => '/^image\/(pjpeg|jpe?g|gif|png|bmp)$/', - 'path' => '/ezineimg', - 'upload_max_size' => 80000000, - 'defaultShow' => '0300x0300', - 'wh' => array( - '0300x0300' => '03000300', - ), - ); - - /** - * 潮流志图片数据 - * - * @var array - */ - public static $ezineimgData = array( - '_project' => 'ezineimg', - 'format_str' => array(), - ); - - /** - * 活动图片配置 - * - * @var array - */ - public static $campimg = array( - 'format' => '/^image\/(pjpeg|jpe?g|gif|png|bmp)$/', - 'path' => '/campimg', - 'upload_max_size' => 80000000, - 'defaultShow' => '0300x0300', - 'wh' => array( - '0300x0300' => '03000300', - ), - ); - - /** - * 活动图片数据 - * - * @var array - */ - public static $campimgData = array( - '_project' => 'campimg', - 'format_str' => array(), - ); - - /** - * 音频配置 - * - * @var array - */ - public static $voice = array( - 'format' => '/^audio\/(mp3|m4a|amr|wav)$/', - 'path' => '/', - 'upload_max_size' => 80000000, - ); - /** - * 视频配置 - * - * @var array - */ - public static $video = array( - 'format' => '/^video\/(mp4|avi|rmb|rm|flv)$/', - 'path' => '/', - 'upload_max_size' => 80000000, - ); - public static $file_path = '/Data/code/www.test.yoho.cn/static/res/pm/att/'; +<?php +/** + * 项目图片上传配置 + * + * 备注: 尺寸按照从大到小定义, 有利于切图处理 + */ +class Config_File_Upload +{ + /** + * 文件上传的密钥 + * + * @var string + */ + public static $key = 'yoho_upload_system'; + + /** + * 用户头像配置 + * + * @var array + */ + public static $headimg = array( + 'format' => '/^image\/(pjpeg|jpe?g|gif|png|bmp)$/', + 'path' => '/headimg', + 'upload_max_size' => 80000000, + 'defaultShow' => '0050x0050', + 'wh' => array( + '300x300' => '03000300', + '150x150' => '01500150', + '80x80' => '00800080', + '50x50' => '00500050', + '25x25' => '00250025', + ) + ); + + /** + * 用户头像数据 + * + * @var array + */ + public static $headimgData = array( + '_project' => 'headimg', + 'format_str' => array( + '03000300' => array( + 'w' => 300, + 'h' => 300, + 'mode' => 'thumbnail' + ), + '01500150' => array( + 'w' => 150, + 'h' => 150, + 'mode' => 'paste' + ), + '00800080' => array( + 'w' => 80, + 'h' => 80, + 'mode' => 'paste' + ), + '00500050' => array( + 'w' => 50, + 'h' => 50, + 'mode' => 'paste' + ), + '00250025' => array( + 'w' => 25, + 'h' => 25, + 'mode' => 'paste' + ), + ) + ); + + /** + * 碎片图片配置 + * + * @var array + */ + public static $fragmentimg = array( + 'format' => '/^image\/(pjpeg|jpe?g|gif|png|bmp)$/', + 'path' => '/blogimg', + 'upload_max_size' => 80000000, + 'defaultShow' => '0580x9999', + 'wh' => array( + '0580x9999' => '05809999', + '0200x9999' => '02009999', + ), + ); + + /** + * 碎片图片数据 + * + * @var array + */ + public static $fragmentimgData = array( + '_project' => 'fragmentimg', + 'format_str' => array( + '05809999' => array( + 'w' => 580, + 'h' => 9999, + 'mode' => 'thumbnail' + ), + '02009999' => array( + 'w' => 200, + 'h' => 9999, + 'mode' => 'thumbnail' + ), + ) + ); + + /** + * 空间封面背景图片配置 + * + * @var array + */ + public static $spacebgimg = array( + 'format' => '/^image\/(pjpeg|jpe?g|gif|png|bmp)$/', + 'path' => '/spacebgimg', + 'upload_max_size' => 80000000, + 'defaultShow' => '0960x0300', + 'wh' => array( + '0960x0300' => '09600300', + ), + ); + + /** + * 空间封面背景图片数据 + * + * @var array + */ + public static $spacebgimgData = array( + '_project' => 'spacebgimg', + 'format_str' => array( + '09600300' => array( + 'w' => 960, + 'h' => 300, + 'mode' => 'thumbnail' + ), + ) + ); + + /** + * 静态图片配置 + * + * @var array + */ + public static $staticimg = array( + 'format' => '/^image\/(pjpeg|jpe?g|gif|png|bmp)$/', + 'path' => '/staticimg', + 'upload_max_size' => 80000000, + 'defaultShow' => '0714x0394', + 'wh' => array( + '0714x0394' => '07140394', + '0100x0100' => '01000100', + '0050x0050' => '00500050' + ), + ); + + /** + * 静态图片数据 + * + * @var array + */ + public static $staticimgData = array( + '_project' => 'staticimg', + 'format_str' => array( + '07140394' => array( + 'w' => 714, + 'h' => 394, + 'mode' => 'thumbnail' + ), + '01000100' => array( + 'w' => 100, + 'h' => 100, + 'mode' => 'paste', + ), + '00500050' => array( + 'w' => 50, + 'h' => 50, + 'mode' => 'paste', + ), + ) + ); + + /** + * 潮流志图片配置 + * + * @var array + */ + public static $ezineimg = array( + 'format' => '/^image\/(pjpeg|jpe?g|gif|png|bmp)$/', + 'path' => '/ezineimg', + 'upload_max_size' => 80000000, + 'defaultShow' => '0300x0300', + 'wh' => array( + '0300x0300' => '03000300', + ), + ); + + /** + * 潮流志图片数据 + * + * @var array + */ + public static $ezineimgData = array( + '_project' => 'ezineimg', + 'format_str' => array(), + ); + + /** + * 活动图片配置 + * + * @var array + */ + public static $campimg = array( + 'format' => '/^image\/(pjpeg|jpe?g|gif|png|bmp)$/', + 'path' => '/campimg', + 'upload_max_size' => 80000000, + 'defaultShow' => '0300x0300', + 'wh' => array( + '0300x0300' => '03000300', + ), + ); + + /** + * 活动图片数据 + * + * @var array + */ + public static $campimgData = array( + '_project' => 'campimg', + 'format_str' => array(), + ); + + /** + * 音频配置 + * + * @var array + */ + public static $voice = array( + 'format' => '/^audio\/(mp3|m4a|amr|wav)$/', + 'path' => '/', + 'upload_max_size' => 80000000, + ); + /** + * 视频配置 + * + * @var array + */ + public static $video = array( + 'format' => '/^video\/(mp4|avi|rmb|rm|flv)$/', + 'path' => '/', + 'upload_max_size' => 80000000, + ); + + /** + * 在线登记配置 + * + * @var array + */ + public static $onlinereg = array( + 'format' => '/^application\/(msword|pdf|msexcel|zip|octet-stream|vnd.openxmlformats-officedocument.*)$/', + 'path' => '/blogimg', + 'upload_max_size' => 80000000, + ); + + public static $file_path = '/Data/code/www.test.yoho.cn/static/res/pm/att/'; } \ No newline at end of file diff --git a/website/controller/Brand.class.php b/website/controller/Brand.class.php index 90a81eb..2df88ab 100644 --- a/website/controller/Brand.class.php +++ b/website/controller/Brand.class.php @@ -8,6 +8,8 @@ class Controller_Brand extends Controller_Abstract public function indexAction() { $banners = Facade_Index::getIndex(3); + $this->_view['partnerList'] = Facade_Partner::getPartner(); + $this->_view['partnerTypes'] = Facade_Partner::$types; $this->_view['banners'] = $banners; $this->_view['brandTotal'] = Facade_Brand::getBrandTotal(1); } diff --git a/website/controller/Default.class.php b/website/controller/Default.class.php index 3ba5bd9..3fd3437 100644 --- a/website/controller/Default.class.php +++ b/website/controller/Default.class.php @@ -11,7 +11,7 @@ class Controller_Default extends Controller_Abstract public function indexAction() { $total = Facade_News::getTotal(array(), array('手机视频')); - $page = new Lib_Helper_Pagination($total, 24); + $page = new Lib_Helper_Pagination($total, 96); $page->setOptions(array('afterAppend' => 'setLayout')); list($offset, $limit) = $page->getLimit(); $this->_view['banners'] = Facade_Index::getIndex(1); @@ -25,7 +25,8 @@ class Controller_Default extends Controller_Abstract $this->_view['partnerTypes'] = Facade_Partner::$types; $this->_view['pagination'] = $page->getPagination(); $this->_view['rightBanners'] = $rightBanners; - $this->_view['news'] = $list; + $data=array_slice($list,0,24); + $this->_view['news'] = $data; } /** @@ -85,4 +86,39 @@ class Controller_Default extends Controller_Abstract $this->_view['image'] = $dir.$val.'.jpg'; $this->_viewname = 'wallpaperimagemobile'; } + + + /** + * 首页加载资讯ajax接口 + * + */ + public function LoadNewsAction() + { + $total = Facade_News::getTotal(array(), array('手机视频')); + $page = new Lib_Helper_Pagination($total, 96); + $page->setOptions(array('afterAppend' => 'setLayout')); + list($offset, $limit) = $page->getLimit(); + $list = Facade_News::getList(array(), $offset, $limit, array('手机视频')); + $newtag=array("品牌资讯","活动介绍","亮点活动","限量商品"); + foreach($list as $key=>$news){ + $list[$key]['thumb']=Lib_Images::getImageUrl($news['thumb'], 'source','fragmentimg'); + if(!in_array($news['tag'],$newtag)){ + $list[$key]['tag']='品牌资讯'; + } + } + $type = $this->_request->query('type', null); + if($type==1){ + $data=array_slice($list,0,24); + }; + if($type==2){ + $data=array_slice($list,24,24); + } + if($type==3){ + $data=array_slice($list,48,24); + } + if($type==4){ + $data=array_slice($list,72,24); + } + return json_encode($data); + } } \ No newline at end of file diff --git a/website/controller/News.class.php b/website/controller/News.class.php index 5d7d627..ad689a8 100644 --- a/website/controller/News.class.php +++ b/website/controller/News.class.php @@ -33,6 +33,11 @@ class Controller_News extends Controller_Abstract $list = Facade_News::getList($tag, $page->getOffset(), $limit, $exceptTags); $this->_view['list'] = $list; $newTags = Facade_News::getTags(); + $nums=0; + foreach($newTags as $vo){ + $nums+=$vo['num']; + } + $this->_view['nums'] = $nums; $this->_view['total'] = 0; $tags = $temp = array(); foreach($newTags as $tag) @@ -123,7 +128,7 @@ class Controller_News extends Controller_Abstract $content = $this->_request->content; $pics = $this->_request->pics; $thumb = $this->_request->thumb; - $is_video = $this->_request->is_video; + $is_video = $this->_request->is_video?1:0; if(empty($title) || empty($content) || empty($thumb)) { return $this->returnJson(false, 403, '','参数不能为空'); @@ -133,10 +138,10 @@ class Controller_News extends Controller_Abstract list($width, $height, $type, $attr) = getimagesize($thumb); $thumb_size = json_encode(array('width'=> $width,'height'=> $height)); //是否存在视频 - if(!empty($is_video)) - { - $tag = '视频'; - } +// if($is_video==1) +// { +// $tag = '视频'; +// } /* $videos = array_filter(explode(',', $videos)); $html = ''; foreach($videos as $video) @@ -158,7 +163,7 @@ EOT; $content .= '<br/>'.$html; }*/ $data = array('title' => $title, 'content' => $content, 'pics' => implode('|', $pics),'tag'=> $tag, - 'thumb' => $thumb, 'thumb_size'=> $thumb_size); + 'thumb' => $thumb, 'thumb_size'=> $thumb_size,'is_video'=>$is_video); //新建 $id = Facade_News::setInfo($data); foreach($brand_ids as $brandID) @@ -197,12 +202,14 @@ EOT; public function detailAction() { $id = intval($this->_request->id); + $type = $this->_request->get('type',''); $news = array(); if (empty($id)) { return $this->_redirect('news/index'); } $info = Facade_News::getOneById($id); + $thumb= Lib_Images::getImageUrl($info['thumb'], 'source','fragmentimg'); if (!$info) { return $this->_redirect('news/index'); @@ -225,9 +232,12 @@ EOT; $info['thumb'] = Lib_Images::getImageUrl($info['thumb'], 'source','fragmentimg'); //增加浏览量 Facade_News::updateHits($id); + $info = str_replace('<embed align="middle"','<embed align="middle" allowfullscreen="true" ' , $info); $this->_view['info'] = $info; $this->_view['banners'] = Facade_Index::getIndex(4); $this->_view['news'] = $news; + $this->_view['type'] = $type; + $this->_view['thumb'] = $thumb; } /** @@ -238,7 +248,7 @@ EOT; public function getdetailnewsAction() { $id = intval($this->_request->id); - $list = array('recom'=> array(), 'hotVideo'=> array(), 'lastVideo' => array()); + $list = array('recom'=> array(), 'hotVideo'=> array(), 'lastNews' => array()); $tag = '视频'; $exceptTags = array('手机视频'); $recom = array(); @@ -251,10 +261,10 @@ EOT; } $recom = array_slice(array_filter($recom + $temp2), 0, 3); $hotVideo = array_values(Facade_News::getListByDateHits($tag, 0, 5, $exceptTags)); - $lastVideo = array_values(Facade_News::getLatestNews($tag, 0, 5, $exceptTags)); + $lastNews = array_values(Facade_News::getLatestNews('', 0, 5, $exceptTags)); $list['recom'] = $recom; $list['hotVideo'] = $hotVideo; - $list['lastVideo'] = $lastVideo; + $list['lastNews'] = $lastNews; foreach($list as $key => $listnews) { if(!empty($listnews)) diff --git a/website/controller/Onlinereg.class.php b/website/controller/Onlinereg.class.php new file mode 100644 index 0000000..2cf1b9a --- /dev/null +++ b/website/controller/Onlinereg.class.php @@ -0,0 +1,277 @@ +<?php +/** + * 在线登记 + */ +class Controller_Onlinereg extends Controller_Abstract +{ + /** + * 首页 + */ + public function indexAction() + { + $mediaTotal = Facade_Onlinereg::getDownloadTotalByType(Facade_Onlinereg::TYPE_ONLINE_SPONSOR); + $this->_view['mediaTotal'] = $mediaTotal; + } + + /** + * 赞助商 + */ + public function sponsorAction() + { + $this->_view['type'] = Facade_Onlinereg::TYPE_ONLINE_SPONSOR; + $this->setSession('yohood', 'type', Facade_Onlinereg::TYPE_ONLINE_SPONSOR); + } + + /** + * 赞助商英文 + */ + public function sponsorenAction() + { + $this->_view['type'] = Facade_Onlinereg::TYPE_ONLINE_SPONSOR; + $this->setSession('yohood', 'type', Facade_Onlinereg::TYPE_ONLINE_SPONSOR); + } + + /** + * 新闻稿 + */ + public function mediaAction() + { + $this->_view['type'] = Facade_Onlinereg::TYPE_ONLINE_MEDIA; + $mediaTotal = Facade_Onlinereg::getDownloadTotalByType(Facade_Onlinereg::TYPE_ONLINE_SPONSOR); + $this->_view['mediaTotal'] = $mediaTotal; + $this->setSession('yohood', 'type', Facade_Onlinereg::TYPE_ONLINE_MEDIA); + } + + /** + * 新闻稿英文 + */ + public function mediaenAction() + { + $this->_view['type'] = Facade_Onlinereg::TYPE_ONLINE_MEDIA; + $this->setSession('yohood', 'type', Facade_Onlinereg::TYPE_ONLINE_MEDIA); + } + + /** + * 参展商 + */ + public function exhibitorAction() + { + $this->_view['type'] = Facade_Onlinereg::TYPE_ONLINE_EXHIBITOR; + $this->setSession('yohood', 'type', Facade_Onlinereg::TYPE_ONLINE_EXHIBITOR); + } + + /** + * 参展商英文 + */ + public function exhibitorenAction() + { + $this->_view['type'] = Facade_Onlinereg::TYPE_ONLINE_EXHIBITOR; + $this->setSession('yohood', 'type', Facade_Onlinereg::TYPE_ONLINE_EXHIBITOR); + } + + /** + * 设置商家信息 + * + * @return json + */ + public function setsellerAction() + { + $code = $this->_request->post('code'); + $type = intval($this->_request->post('type')); + $status = false; + if($this->validate($code) && $type == $this->getSession('yohood','type')) + { + //清除验证码 + Util_Captcha::setToSession('passport_istration', ''); + $name = $this->_request->post('name'); + $is_enter_yohobuy = $this->_request->post('is_enter_yohobuy'); + $profession = $this->_request->post('profession'); + $sex = $this->_request->post('sex'); + $introduction = $this->_request->post('introduction'); + $brand_reg_type = $this->_request->post('brand_reg_type'); + $product_type = $this->_request->post('product_type'); + $country = $this->_request->post('country'); + $city = $this->_request->post('city'); + $company = $this->_request->post('company'); + $place = $this->_request->post('place'); + $contact = $this->_request->post('contact'); + $telphone = $this->_request->post('telphone'); + $mobile = $this->_request->post('mobile'); + $relation = $this->_request->post('relation'); + $email = $this->_request->post('email'); + $is_3c = $this->_request->post('is_3c'); + $website = $this->_request->post('website'); + $zipcode = $this->_request->post('zipcode'); + $files = trim($this->_request->post('files')); + if($type == Facade_Onlinereg::TYPE_ONLINE_SPONSOR)//赞助商 + { + if(empty($name) || empty($contact)|| empty($telphone)) + { + return $this->returnJson(false, 403,'','数据不能为空'); + } + } + else if($type == Facade_Onlinereg::TYPE_ONLINE_EXHIBITOR)//参展商 + { + if(empty($name) || empty($contact) || empty($telphone)) + { + return $this->returnJson(false, 403,'','数据不能为空'); + } + } + else if($type == Facade_Onlinereg::TYPE_ONLINE_MEDIA)//新闻稿 + { + if(empty($name) || empty($mobile) || empty($place)) + { + return $this->returnJson(false, 403,'','数据不能为空'); + } + } + if(in_array($type, array(Facade_Onlinereg::TYPE_ONLINE_SPONSOR, Facade_Onlinereg::TYPE_ONLINE_EXHIBITOR))) + { + $files = array($files); + } + else + { + $files = ''; + } + $status = Facade_Onlinereg::setSellerInfo($name, $type, $sex, $brand_reg_type, $is_enter_yohobuy, $profession, $product_type, + $country, $city,$company, $contact, $telphone, $mobile, $email, $relation, $website, $introduction, $is_3c, $place, $files, $zipcode); + } + else + { + return $this->returnJson(false, 403,'','验证失败'); + } + + if($status) + { + return $this->returnJson(true, 200); + } + else + { + return $this->returnJson(false, 403,'','操作失败'); + } + + } + + /** + * 上传文件 + */ + public function uploadfileAction() + { + if ($this->_request->isPost()) + { + $type = intval($this->_request->post('type')); + $path = Lib_Images::saveImage($_FILES, 'onlinereg'); + if(!empty($path)) + { + return $this->returnJson(true, 200, $path); + } + else + { + return $this->returnJson(false, 403,'','上传失败'); + } + } + else + { + return $this->returnJson(false, 403,'','失败'); + } + } + + /** + * 验证码 + */ + public function imagesAction() + { + $g = trim($this->_request->query('g')); + $len = intval($this->_request->query('len', 4)); + $namespace = !empty($g) ? $g : 'passport_istration'; + $imgCode = new Util_Captcha(); + $imgCode->setWidth(150)->setHeight(50)->setWordLen($len)->generate($namespace); + } + + /** + * 参展商下载 + */ + public function exhibitordownAction() + { + $list = Facade_Onlinereg::getDownloadListByType(Facade_Onlinereg::TYPE_ONLINE_DOWNLOAD_EXHIBITOR, 0, 100); + $this->_view['list'] = $list; + } + + /** + * 新闻稿下载 + */ + public function mediadownAction() + { + $list = Facade_Onlinereg::getDownloadListByType(Facade_Onlinereg::TYPE_ONLINE_DOWNLOAD_MEDIA, 0, 100); + $this->_view['list'] = $list; + } + + /** + * 验证code + * + * @return json + */ + public function validatecodeAction() + { + $code = $this->_request->query('code'); + $status = false; + if(!empty($code)) + { + $status = $this->validate($code); + } + if($status) + { + return $this->returnJson(true, 200); + } + else + { + return $this->returnJson(false, 403); + } + } + + /** + * 下载 + */ + public function downloadAction() + { + $id = intval($this->_request->query('id')); + if(!empty($id)) + { + $download = Facade_Onlinereg::getDownloadById($id); + if(!empty($download)) + { + $file = Lib_Images::getImageUrl($download['file'], 'source','fragmentimg'); + $extension = pathinfo($file, PATHINFO_EXTENSION); + header('Content-Type:'.Util_Common_Io_FileExt::getMine($extension)); + header('Content-Disposition: attachment;filename="'.$download['title'].'.'.$extension.'"'); + header('Cache-Control: max-age=0'); + readfile($file); + } + } + else + { + die(''); + } + + } + + /** + * 验证code + * + * @param string $code + * @return boolean + */ + private function validate($code) + { + $code = strtolower($code); + $namespace ='passport_istration'; + $sessionCode = strtolower(Util_Captcha::getFromSession($namespace)); + if($code == $sessionCode) + { + return true; + } + else + { + return false; + } + } +} \ No newline at end of file diff --git a/website/controller/Upload.class.php b/website/controller/Upload.class.php index b0a42ea..6ef5518 100644 --- a/website/controller/Upload.class.php +++ b/website/controller/Upload.class.php @@ -1,265 +1,273 @@ -<?php -/** - * 默认控制器 - */ -class Controller_Upload extends Controller_Abstract -{ - /** - * @var integer 上传成功返回的编码 - * @since 1.1 - */ - const SUCCESS_UPLOAD_CODE = 12; - - /** - * 后台插件上传图片首页 - * - */ - public function indexAction() - { - $data = array('error' => 0, 'url' => '', 'message'=> '', 'relaPath' => ''); - $dir = strtolower($this->_request->query('dir')); - if($dir == 'media' || isset($_FILES['video'])) //视频上传 - { - $video = json_decode(Lib_Video::saveVideo($_FILES), true); - $data['relaPath'] = $video['video_url']; - $data['url'] = Lib_Video::getVideoUrl($video['video_url']); - } - else - { - $url = Lib_Images::saveImage($_FILES); - if(empty($url)) - { - $data['error'] = 1; - $data['message'] = '上传文件失败'; - } - else - { - $data['relaPath'] = $url; - $data['url'] = Lib_Images::getImageUrl($url, 'source', 'fragmentimg'); - } - } - return json_encode($data); - } - - /** - * 后台插件上传视频处理 - * - * @return json - */ - public function videoAction() - { - $data = array('error' => 0, 'url' => '', 'message'=> '', 'relaPath' => ''); - if (isset($_GET["upload_ret"])) - { - $decodedRet = base64_decode( $_GET["upload_ret"]); - $retObj = json_decode($decodedRet, true); - $data['relaPath'] = $retObj['key']; - $data['url'] = VIDEO_SITE_DOMAIN.'/'.$retObj['key']; - } - if(isset($_GET['error'])) - { - $data['error'] = 1; - $data['message'] = '上传文件失败'; - } - return json_encode($data); - } - - - /** - * 上传文件[流] - * - * @param string key (密钥) - * @param string format (返回格式xml|json) - */ - public function upfileAction() - { - $format = $this->_request->query('format', 'xml'); - // 验证是否是post提交 - if (!$this->_request->isPost()) - { - return $this->_response($format, Config_Code_Upload::$errorPost['code'], Config_Code_Upload::$errorPost['msg']); - } - // 验证key密钥是否有效 - $key = $this->_request->query('key', ''); - if ($key === '' || !is_string($key)) - { - return $this->_response($format, Config_Code_Upload::$errorNoKey['code'], Config_Code_Upload::$errorNoKey['msg']); - } - $key = Util_Utils_Function::base64_str_decode($key); - - // 验证key密钥中是否存在项目 - $keyData = json_decode(Util_Utils_AuthCode::decode($key, Config_File_Upload::$key), true); - if (!array_key_exists('_project', $keyData)) - { - return $this->_response($format, Config_Code_Upload::$errorValidKey['code'], Config_Code_Upload::$errorValidKey['msg']); - } - - // 验证Key密钥中项目是否存在 - $project = $keyData['_project']; - $projectConfig = Lib_Images::genConfig($project); - if (array() === $projectConfig) - { - return $this->_response($format, Config_Code_Upload::$errorNoProject['code'], Config_Code_Upload::$errorNoProject['msg'] . $project); - } - $tag = $this->_request->query('tag', ''); - if($tag == 'flash') - { - //flash上传,type有问题 - foreach($_FILES as $key => $file) - { - if($file['type'] == 'application/octet-stream') - { - $_FILES[$key]['type'] = 'image/jpeg'; - } - } - } - // 上传文件[流]操作 - if (array() !== $_FILES) // 文件 - { - $upload = new Util_Upload_File($_FILES, $projectConfig['serverPath']); - $upload->setFormat($projectConfig['format']); - } - elseif (false !== ($file = $this->_request->requestRawBody())) // 文件流 - { - //读取头信息高位 - $fileExtCode = substr($file, 0, 2); - $format = ''; - if(strlen($fileExtCode)) - { - $fileExtCode = unpack('C2char',$fileExtCode); - $fileExtCode = intval(implode('',$fileExtCode)); - } - $format = Util_Common_Io_FileExt::getMine(Util_Common_Io_FileExt::getExtByCode($fileExtCode)); - if(!preg_match($projectConfig['format'], $format)) - { - return $this->_response($format, 10, '不支持上传的文件类型'); - } - $upload = new Util_Upload_FileStream($file, $projectConfig['serverPath']); - } - else // 文件[流]不存在 - { - return $this->_response($format, Config_Code_Upload::$errorNoUploadFile['code'], Config_Code_Upload::$errorNoUploadFile['msg']); - } - $upload->setMaxFileSize($projectConfig['upload_max_size']); - $upload->setPrefix($projectConfig['randNode']); - if (isset($keyData['file_path']) && is_string($keyData['file_path'])) - { - $upload->setNewFile($keyData['file_path']); - } - // 验证文件是否有效 - $check = $upload->check(); - if ($check['code'] !== 0) - { - return $this->_response($format, $check['code'], $check['mes']); - } - // 上传并构建返回结果, 同时检查上传文件是否有错 - $result = $this->genResult($format, $upload, $check['result'], $project, $projectConfig); - if (isset($result['hasError'])) - { - return $this->_response($format, Config_Code_Upload::$errorUploadFailed['code'], Config_Code_Upload::$errorUploadFailed['msg']); - } - return $this->_response($format, self::SUCCESS_UPLOAD_CODE, $check['mes'], $result); - } - - /** - * 上传并构建返回的结果 - * - * @param object $upload (上传类) - * @param array $files (文件列表) - * @return array - */ - protected function genResult($format, &$upload, $files, $project, &$projectConfig) - { - $result = array(); - - $file = null; - $writed = array(); - $isJson = strtolower($format) === 'json'; - foreach ($files as $id => $info) - { - $writed = $upload->writeOne($id); - if ($writed['code'] !== self::SUCCESS_UPLOAD_CODE) - { - $result['hasError'] = true; - break; - } - $file = $writed['result']['hit'][$id]; - $result[$id] = $this->_genJsonResult($file, $project, $projectConfig); - } - - return $result; - } - - /** - * 返回默认的图片信息 - * - * @return array - */ - private function _getDefaultMeta() - { - return array('width' => 200, 'height' => 300, 'size' => 200000, 'mine' => 'image/jpeg',); - } - - /** - * 构建JSON格式的返回结果 - * - * @param string $url (相对地址) - * @param string $project (项目名称) - * @param array $projectConfig (项目配置) - * @return void - */ - private function _genJsonResult($params, $project, &$projectConfig) - { - $result = array(); - // 预处理生成缩略图片 - $data = Lib_Images::getImageInfo($params['relaPath'], $project); - if (array() === $data) - { - $data = $this->_getDefaultMeta(); - } - $result['relaPath'] = $params['relaPath']; - $result['sourcePath'] = $projectConfig['sourceUrl'] . $params['relaPath']; - $result['absPath'] = $result['sourcePath']; - $result['width'] = $data['width']; - $result['height'] = $data['height']; - $result['size'] = $data['size']; - $result['mine'] = $data['mine']; - return $result; - } - - /** - * 构建返回结果 - * - * @param string $format (返回格式 xml|json) - * @param integer $code (错误编号) - * @param string $msg (错误提示) - * @param mixed $data (返回数据) - * @return string | void - */ - private function _response($format = 'xml', $code = 0, $msg = '', $data = '') - { - $response = ''; - - switch (strtolower($format)) - { - case 'json': - header('Content-Type: application/json; charset=utf-8'); - $response = Lib_Utils::result($code, $msg, $data); - break; - case 'xml': - default: - header('Content-Type: text/xml; charset=utf-8'); - $response = Util_Utils_Convert::array2xml(array('Code' => $code, 'Msg' => $msg, 'Data' => $data,), 'File'); - $response = <<<EOD -<?xml version="1.0" encoding="utf-8"?> -<Response xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> -{$response} -</Response> -EOD; - break; - } - header("Access-Control-Allow-Origin: *");//让html5支持跨域上传 - return $response; - } - +<?php +/** + * 默认控制器 + */ +class Controller_Upload extends Controller_Abstract +{ + /** + * @var integer 上传成功返回的编码 + * @since 1.1 + */ + const SUCCESS_UPLOAD_CODE = 12; + + public function init() + { + $admin = Util_Utils_SafeCookie::get('_admin'); + if(empty($admin)) + { + die('页面不存在'); + } + } + /** + * 后台插件上传图片首页 + * + */ + public function indexAction() + { + $data = array('error' => 0, 'url' => '', 'message'=> '', 'relaPath' => ''); + $dir = strtolower($this->_request->query('dir')); + if($dir == 'media' || isset($_FILES['video'])) //视频上传 + { + $video = json_decode(Lib_Video::saveVideo($_FILES), true); + $data['relaPath'] = $video['video_url']; + $data['url'] = Lib_Video::getVideoUrl($video['video_url']); + } + else + { + $url = Lib_Images::saveImage($_FILES); + if(empty($url)) + { + $data['error'] = 1; + $data['message'] = '上传文件失败'; + } + else + { + $data['relaPath'] = $url; + $data['url'] = Lib_Images::getImageUrl($url, 'source', 'fragmentimg'); + } + } + return json_encode($data); + } + + /** + * 后台插件上传视频处理 + * + * @return json + */ + public function videoAction() + { + $data = array('error' => 0, 'url' => '', 'message'=> '', 'relaPath' => ''); + if (isset($_GET["upload_ret"])) + { + $decodedRet = base64_decode( $_GET["upload_ret"]); + $retObj = json_decode($decodedRet, true); + $data['relaPath'] = $retObj['key']; + $data['url'] = VIDEO_SITE_DOMAIN.'/'.$retObj['key']; + } + if(isset($_GET['error'])) + { + $data['error'] = 1; + $data['message'] = '上传文件失败'; + } + return json_encode($data); + } + + + /** + * 上传文件[流] + * + * @param string key (密钥) + * @param string format (返回格式xml|json) + */ + public function upfileAction() + { + $format = $this->_request->query('format', 'json'); + // 验证是否是post提交 + if (!$this->_request->isPost()) + { + return $this->_response($format, Config_Code_Upload::$errorPost['code'], Config_Code_Upload::$errorPost['msg']); + } + // 验证key密钥是否有效 + $key = $this->_request->query('key', ''); + if ($key === '' || !is_string($key)) + { + return $this->_response($format, Config_Code_Upload::$errorNoKey['code'], Config_Code_Upload::$errorNoKey['msg']); + } + $key = Util_Utils_Function::base64_str_decode($key); + + // 验证key密钥中是否存在项目 + $keyData = json_decode(Util_Utils_AuthCode::decode($key, Config_File_Upload::$key), true); + if (!array_key_exists('_project', $keyData)) + { + return $this->_response($format, Config_Code_Upload::$errorValidKey['code'], Config_Code_Upload::$errorValidKey['msg']); + } + + // 验证Key密钥中项目是否存在 + $project = $keyData['_project']; + $projectConfig = Lib_Images::genConfig($project); + if (array() === $projectConfig) + { + return $this->_response($format, Config_Code_Upload::$errorNoProject['code'], Config_Code_Upload::$errorNoProject['msg'] . $project); + } + $tag = $this->_request->query('tag', ''); + if($tag == 'flash') + { + //flash上传,type有问题 + foreach($_FILES as $key => $file) + { + if($file['type'] == 'application/octet-stream') + { + $_FILES[$key]['type'] = 'image/jpeg'; + } + } + } + // 上传文件[流]操作 + if (array() !== $_FILES) // 文件 + { + $upload = new Util_Upload_File($_FILES, $projectConfig['serverPath']); + $upload->setFormat($projectConfig['format']); + } + elseif (false !== ($file = $this->_request->requestRawBody())) // 文件流 + { + //读取头信息高位 + $fileExtCode = substr($file, 0, 2); + $format = ''; + if(strlen($fileExtCode)) + { + $fileExtCode = unpack('C2char',$fileExtCode); + $fileExtCode = intval(implode('',$fileExtCode)); + } + $format = Util_Common_Io_FileExt::getMine(Util_Common_Io_FileExt::getExtByCode($fileExtCode)); + if(!preg_match($projectConfig['format'], $format)) + { + return $this->_response($format, 10, '不支持上传的文件类型'); + } + $upload = new Util_Upload_FileStream($file, $projectConfig['serverPath']); + } + else // 文件[流]不存在 + { + return $this->_response($format, Config_Code_Upload::$errorNoUploadFile['code'], Config_Code_Upload::$errorNoUploadFile['msg']); + } + $upload->setMaxFileSize($projectConfig['upload_max_size']); + $upload->setPrefix($projectConfig['randNode']); + if (isset($keyData['file_path']) && is_string($keyData['file_path'])) + { + $upload->setNewFile($keyData['file_path']); + } + // 验证文件是否有效 + $check = $upload->check(); + if ($check['code'] !== 0) + { + return $this->_response($format, $check['code'], $check['mes']); + } + // 上传并构建返回结果, 同时检查上传文件是否有错 + $result = $this->genResult($format, $upload, $check['result'], $project, $projectConfig); + if (isset($result['hasError'])) + { + return $this->_response($format, Config_Code_Upload::$errorUploadFailed['code'], Config_Code_Upload::$errorUploadFailed['msg']); + } + return $this->_response($format, self::SUCCESS_UPLOAD_CODE, $check['mes'], $result); + } + + /** + * 上传并构建返回的结果 + * + * @param object $upload (上传类) + * @param array $files (文件列表) + * @return array + */ + protected function genResult($format, &$upload, $files, $project, &$projectConfig) + { + $result = array(); + + $file = null; + $writed = array(); + $isJson = strtolower($format) === 'json'; + foreach ($files as $id => $info) + { + $writed = $upload->writeOne($id); + if ($writed['code'] !== self::SUCCESS_UPLOAD_CODE) + { + $result['hasError'] = true; + break; + } + $file = $writed['result']['hit'][$id]; + $result[$id] = $this->_genJsonResult($file, $project, $projectConfig); + } + + return $result; + } + + /** + * 返回默认的图片信息 + * + * @return array + */ + private function _getDefaultMeta() + { + return array('width' => 200, 'height' => 300, 'size' => 200000, 'mine' => 'image/jpeg',); + } + + /** + * 构建JSON格式的返回结果 + * + * @param string $url (相对地址) + * @param string $project (项目名称) + * @param array $projectConfig (项目配置) + * @return void + */ + private function _genJsonResult($params, $project, &$projectConfig) + { + $result = array(); + // 预处理生成缩略图片 + $data = Lib_Images::getImageInfo($params['relaPath'], $project); + if (array() === $data) + { + $data = $this->_getDefaultMeta(); + } + $result['relaPath'] = $params['relaPath']; + $result['sourcePath'] = $projectConfig['sourceUrl'] . $params['relaPath']; + $result['absPath'] = $result['sourcePath']; + $result['width'] = $data['width']; + $result['height'] = $data['height']; + $result['size'] = $data['size']; + $result['mine'] = $data['mine']; + return $result; + } + + /** + * 构建返回结果 + * + * @param string $format (返回格式 xml|json) + * @param integer $code (错误编号) + * @param string $msg (错误提示) + * @param mixed $data (返回数据) + * @return string | void + */ + private function _response($format = 'xml', $code = 0, $msg = '', $data = '') + { + $response = ''; + + switch (strtolower($format)) + { + case 'json': + header('Content-Type: application/json; charset=utf-8'); + $response = Lib_Utils::result($code, $msg, $data); + break; + case 'xml': + default: + header('Content-Type: text/xml; charset=utf-8'); + $response = Util_Utils_Convert::array2xml(array('Code' => $code, 'Msg' => $msg, 'Data' => $data,), 'File'); + $response = <<<EOD +<?xml version="1.0" encoding="utf-8"?> +<Response xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> +{$response} +</Response> +EOD; + break; + } + header("Access-Control-Allow-Origin: *");//让html5支持跨域上传 + return $response; + } + } \ No newline at end of file diff --git a/website/controller/Video.class.php b/website/controller/Video.class.php index 69cb41b..9b5c52b 100644 --- a/website/controller/Video.class.php +++ b/website/controller/Video.class.php @@ -10,7 +10,7 @@ class Controller_Video extends Controller_Abstract $total = Facade_News::getTotal($tag); $page = new Lib_Helper_Pagination($total, 24); list($offset, $limit) = $page->getLimit(); - $list = Facade_News::getList($tag, $offset, $limit); + $list = Facade_News::getVideoList($tag, $offset, $limit); $this->_view['pagination'] = $page->getPagination(); $this->_view['list'] = $list; } diff --git a/website/controller/admin/Index.class.php b/website/controller/admin/Index.class.php index df3f14b..dbbb106 100644 --- a/website/controller/admin/Index.class.php +++ b/website/controller/admin/Index.class.php @@ -15,7 +15,7 @@ class Controller_Admin_Index extends Controller_Admin_Base $this->_view['data'] = $info; $this->_view['type'] = $type; $this->_view['typeDescription'] = array( 1 =>'banner', 2 =>'广告', 3 =>'广告', 4=> '广告'); - $this->_view['sizeDescription'] = array( 1 =>'980x474 [移动端:320x155]', 2 =>'308x392', 3=>'980x474px[移动端:320x155]', 4 =>'280x357px'); + $this->_view['sizeDescription'] = array( 1 =>'980x474 [移动端:1180x500]', 2 =>'342x420', 3=>'1180x500px[移动端:320x155]', 4 =>'290x356px'); $this->_view['key'] = Lib_Images::genKey('fragmentimg'); } diff --git a/website/controller/admin/Onlinereg.class.php b/website/controller/admin/Onlinereg.class.php new file mode 100644 index 0000000..6be13e5 --- /dev/null +++ b/website/controller/admin/Onlinereg.class.php @@ -0,0 +1,267 @@ +<?php +class Controller_Admin_Onlinereg extends Controller_Admin_Base +{ + /** + * 参展商登记 + */ + public function indexAction() + { + $type = intval($this->_request->get('type', 0)); + $types = array( + Facade_Onlinereg::TYPE_ONLINE_EXHIBITOR =>'参展商', + Facade_Onlinereg::TYPE_ONLINE_SPONSOR =>'赞助商', + Facade_Onlinereg::TYPE_ONLINE_MEDIA =>'媒体'); + if(!in_array($type, array_keys($types))) { + $type = 0; + } + $limit = 15; + $total = Facade_Onlinereg::getSellerTotalByType($type); + $pagination = new Lib_Helper_Pagination($total, $limit); + $pagination->setParames(array('type' => $type)); + $list = Facade_Onlinereg::getSellerListByType($type, $pagination->getOffset(), $limit); + $this->_view['list'] = $list; + $this->_view['pagination'] = $pagination->getPagination(); + $this->_view['type'] = $type; + $this->_view['sellerTypes'] = $types; + + } + + /** + * 参展商手册 + */ + public function downloadAction() + { + $limit = 15; + $type = intval($this->_request->get('type', 0)); + if(!in_array($type, array(Facade_Onlinereg::TYPE_ONLINE_DOWNLOAD_EXHIBITOR, + Facade_Onlinereg::TYPE_ONLINE_DOWNLOAD_MEDIA))) + { + $type = 0; + } + $total = Facade_Onlinereg::getDownloadTotalByType($type); + $pagination = new Lib_Helper_Pagination($total, $limit); + $pagination->setParames(array('type' => $type)); + $list = Facade_Onlinereg::getDownloadListByType($type, $pagination->getOffset(), $limit); + foreach ($list as &$download) + { + $download['cover'] = Lib_Images::getImageUrl($download['cover'], 'source','fragmentimg'); + } + $this->_view['type'] = $type; + $this->_view['list'] = $list; + $this->_view['pagination'] = $pagination->getPagination(); + $this->_view['key'] = Lib_Images::genKey('fragmentimg'); + } + + /** + * 获取商家数据 + * + * @return array + */ + public function getsellerAction() + { + $sellerId = $this->_request->query('id'); + $seller = array(); + if(!empty($sellerId)) + { + $seller = Facade_Onlinereg::getSellerById($sellerId); + } + if(!empty($seller)) + { + return $this->returnJson(true, 200, $seller); + } + else + { + return $this->returnJson(false, 403); + } + } + + /** + * 设置商家数据 + * + * @return array + */ + public function setsellerAction() + { + $data = $_POST; + if(isset($data['id'])) + { + unset($data['files']); + $data = array_map('addslashes', $data); + $status = Facade_Onlinereg::setSeller($data); + if($status) + { + return $this->returnJson(true, 200); + } + else + { + return $this->returnJson(false, 403); + } + } + else + { + return $this->returnJson(false, 403); + } + } + + /** + * 获取下载相关 + */ + public function getdownloadAction() + { + $id = intval($this->_request->query('id')); + $download = Facade_Onlinereg::getDownloadById($id); + return $this->returnJson(true, 200, $download); + } + + /** + * 设置下载信息 + * + * @return json + */ + public function setdownloadAction() + { + $status = false; + $type = $this->_request->query('type', 0); + $id = $this->_request->query('id', 0); + $title = trim($this->_request->query('title', '')); + $cover = $this->_request->query('cover', ''); + $file = $this->_request->query('file', ''); + $source = $this->_request->query('source', ''); + $source_link = $this->_request->query('source_link', ''); + if(!empty($title) && !empty($id)) + { + //更新数据 + $status = Facade_Onlinereg::setDownloadInfoById($id, $title, $cover, $file, $source, $source_link); + } + else if(!empty($title) && in_array($type, array( + Facade_Onlinereg::TYPE_ONLINE_DOWNLOAD_EXHIBITOR, + Facade_Onlinereg::TYPE_ONLINE_DOWNLOAD_MEDIA))) + { + $status = Facade_Onlinereg::setDownloadInfo($title, $cover, $file, $source, $source_link, $type); + } + if($status) + { + return $this->returnJson(true, 200); + } + else + { + return $this->returnJson(false, 403); + } + } + + /** + * 删除下载数据 + * + */ + public function deldownloadAction() + { + $id = $this->_request->query('id'); + $status = Facade_Onlinereg::delDownload($id); + if($status) + { + return $this->returnJson(true, 200); + } + else + { + return $this->returnJson(false, 403); + } + } + + /** + * 导出excel + */ + public function exportAction() + { + $typeAttrs = array( + Facade_Onlinereg::TYPE_ONLINE_EXHIBITOR => array('ID','品牌名称','是否入驻有货','品牌注册','公司名称','联系人', + '电话','邮箱','公司与品牌关系','商品所在地','是否3C','官网','时间'), + Facade_Onlinereg::TYPE_ONLINE_SPONSOR => array('ID','品牌名称','是否入驻有货','产品类型','所属国家','公司名称','公司地址', + '联系人','电话','邮箱','品牌官网','时间'), + Facade_Onlinereg::TYPE_ONLINE_MEDIA => array('ID','姓名','职位','性别','媒体名/公司名','介绍','官网地址', + '所在城市','邮箱','手机','座机','固定地址','邮编','时间'), + ); + $typeDBKeys = array( + Facade_Onlinereg::TYPE_ONLINE_EXHIBITOR => array('id','name','is_enter_yohobuy', + 'brand_reg_type','company','contact','telphone','email','relation','place','is_3c','website','create_time'), + Facade_Onlinereg::TYPE_ONLINE_SPONSOR => array('id','name','is_enter_yohobuy','product_type','country', + 'company','place','contact','telphone','email','website','create_time'), + Facade_Onlinereg::TYPE_ONLINE_MEDIA => array('id','name','profession','sex','company','introduction','website', + 'city','email','mobile','telphone','place','zipcode','create_time'), + ); + $typeSaveNames = array( + Facade_Onlinereg::TYPE_ONLINE_EXHIBITOR => 'exhibitor', + Facade_Onlinereg::TYPE_ONLINE_SPONSOR => 'sponsor', + Facade_Onlinereg::TYPE_ONLINE_MEDIA => 'media', + ); + $type = 0; + $id = $this->_request->query('id'); + $sellerIds = array_filter(explode(',', $id),'is_numeric'); + $sellerList = array(); + foreach($sellerIds as $sellerId) + { + $sellerList[] = Facade_Onlinereg::getSellerById($sellerId); + } + if(!empty($sellerList)) + { + $excel = new Util_Excel_Excel(); + $excel->getProperties()->setCreator('yoho') + ->setTitle('yohood')->setSubject('yohood')->setDescription('yohood')->setKeywords('yohood'); + $excel->setActiveSheetIndex(0); + $type = $sellerList[0]['type']; + $attrs = $typeAttrs[$type]; + $indexs = range('A','Z'); + $brandRegTypes = array('未注册','已注册','已申请'); + $relationAttrs = array('品牌商','代理商','经销商','其他'); + $pos = 0; + $cellNum = 1; + foreach($attrs as $attr)//输出属性 + { + $cell = $indexs[$pos++]; + $excel->getActiveSheet()->getColumnDimension($cell)->setWidth(15); + $excel->getActiveSheet()->setCellValue($cell.$cellNum, $attr); + } + foreach($sellerList as $seller) + { + $cellNum ++; + $pos = 0; + for($i = 0; $i<count($attrs); $i++) + { + $key = $typeDBKeys[$type][$i]; + $cell = $indexs[$pos++].$cellNum; + $attr = $seller[$key]; + if($key == 'create_time') //时间属性 + { + $value = date('Y-m-d H:i:s', $attr); + } + else if(in_array($key, array('is_enter_yohobuy','is_3c')))//是否 + { + $value = empty($attr) ? '否':'是'; + } + else if($key == 'brand_reg_type')//品牌注册类型 + { + $value = $brandRegTypes[$attr]; + } + else if($key == 'relation')//公司与品牌关系 + { + $value = $relationAttrs[$attr]; + } + else + { + $value = $attr; + } + $excel->getActiveSheet()->setCellValue($cell, $value); + } + } + header('Content-Type: application/vnd.ms-excel'); + header('Content-Disposition: attachment;filename="'.$typeSaveNames[$type].'.xls"'); + header('Cache-Control: max-age=0'); + $excel->setActiveSheetIndex(0); + $objWriter = PHPExcel_IOFactory::createWriter($excel, 'Excel5'); + $objWriter->save('php://output'); + } + else + { + die('没有下载'); + } + } +} \ No newline at end of file diff --git a/website/facade/News.class.php b/website/facade/News.class.php index f21b9ed..02eecd5 100644 --- a/website/facade/News.class.php +++ b/website/facade/News.class.php @@ -17,15 +17,19 @@ class Facade_News */ public static $types = array ( +// 1 => '品牌资讯', +// 2 => '现场活动', +// 3 => '独家合作', +// 4 => '主理人', +// 5 => '明星', +// 6 =>'限量产品', +// 7 => '票务', +// 8 =>'视频', +// 9 =>'专题' 1 => '品牌资讯', - 2 => '现场活动', - 3 => '独家合作', - 4 => '主理人', - 5 => '明星', - 6 =>'限量产品', - 7 => '票务', - 8 =>'视频', - 9 =>'专题' + 2 => '活动介绍', + 3 => '亮点活动', + 4 => '限量商品' ); /** @@ -100,7 +104,20 @@ class Facade_News */ public static function getList($tag, $offset, $limit, $exceptTags = array()) { - return self::service()->getList($tag, $offset, $limit, $exceptTags); + return self::service()->getList($tag, $offset, $limit, $exceptTags,$type=0); + } + /** + * 获取视频信息 + * + * @param string $tag + * @param int $offset + * @param int $limit + * @param array $exceptTags + * @return array + */ + public static function getVideoList($tag, $offset, $limit, $exceptTags = array()) + { + return self::service()->getList($tag, $offset, $limit, $exceptTags,$type=1); } /** diff --git a/website/facade/Onlinereg.class.php b/website/facade/Onlinereg.class.php new file mode 100644 index 0000000..f3034ff --- /dev/null +++ b/website/facade/Onlinereg.class.php @@ -0,0 +1,224 @@ +<?php +/** + * 资讯业务处理 + * + */ +class Facade_Onlinereg +{ + //参展商 + const TYPE_ONLINE_EXHIBITOR = 0; + //赞助商 + const TYPE_ONLINE_SPONSOR = 1; + //媒体 + const TYPE_ONLINE_MEDIA = 2; + //手册参展商 + const TYPE_ONLINE_DOWNLOAD_EXHIBITOR = 0; + //手册媒体 + const TYPE_ONLINE_DOWNLOAD_MEDIA = 1; + + /** + * 服务 + */ + private static $service = null; + /** + * + * @return Service_Index + */ + private static function service () + { + if (! isset(self::$service)) + { + self::$service = new Service_Onlinereg(); + } + return self::$service; + } + + /** + * 设置商家信息 + * + * @param string $name + * @param string $type + * @param string $sex + * @param int $brand_reg_type + * @param int $is_enter_yohobuy + * @param int $profession + * @param string $product_type + * @param string $country + * @param string $city + * @param string $company + * @param string $contact + * @param string $telphone + * @param string $mobile + * @param string $email + * @param string $relation + * @param string $website + * @param string $introduction + * @param int $is_3c + * @param string $place + * @param string $files + * @param string $zipcode + * @return int + */ + public static function setSellerInfo($name, $type, $sex, $brand_reg_type, $is_enter_yohobuy, $profession, $product_type, $country, $city, + $company, $contact, $telphone, $mobile, $email, $relation, $website, $introduction, $is_3c, $place, $files, $zipcode) + { + $file = ''; + if(is_array($files)) + { + $file = implode('|', $files); + } else { + $file = $files; + } + return self::service()->setSellerInfo($name, $type, $sex, $brand_reg_type, $is_enter_yohobuy, $profession, $product_type, $country, $city, + $company, $contact, $telphone, $mobile, $email, $relation, $website, $introduction, $is_3c, $place, $file, $zipcode); + } + + /** + * 获取商家列表 + * + * @param int $type + * @param int $offset + * @param int $limit + * @return array + */ + public static function getSellerListByType($type, $offset = 1, $limit = 10) + { + return self::service()->getSellerListByType($type, $offset, $limit); + } + + /** + * 根据type获取总数 + * + * @param int $type + * @return array + */ + public static function getSellerTotalByType($type) + { + return self::service()->getSellerTotalByType($type); + } + + /** + * 根据ID获取商家 + * + * @param int $id + * @return array + */ + public static function getSellerById($id) + { + return self::service()->getSellerById($id); + } + + /** + * 设置媒体信息 + * + * @param string $name + * @param string $profession + * @param int $sex + * @param string $company + * @param string $introduction + * @param string $website + * @param string $city + * @param string $email + * @param string $mobile + * @param string $telphone + * @param string $address + * @param string $zipcode + * @return int + */ + public static function setMediaInfo($name, $profession, $sex, $company, $introduction, $website, $city, + $email, $mobile, $telphone, $address, $zipcode) + { + return self::service()->setMediaInfo($name, $profession, $sex, $company, $introduction, $website, $city, + $email, $mobile, $telphone, $address, $zipcode); + } + + + /** + * 获取下载列表 + * + * @param int $type + * @param int $offset + * @param int $limit + * @return array + */ + public static function getDownloadListByType($type, $offset, $limit) + { + return self::service()->getDownloadListByType($type, $offset, $limit); + } + + /** + * 获取下载总数 + * + * @param int $type + * @return array + */ + public static function getDownloadTotalByType($type) + { + return self::service()->getDownloadTotalByType($type); + } + + /** + * 根据ID设置下载信息 + * + * @param int $id + * @param string $title + * @param string $cover + * @param string $file + * @param string $source + * @param string $source_link + * @return boolean + */ + public static function setDownloadInfoById($id, $title, $cover, $file, $source, $source_link) + { + return self::service()->setDownloadInfoById($id, $title, $cover, $file, $source, $source_link); + } + + /** + * 设置下载信息 + * + * @param string $title + * @param string $cover + * @param string $file + * @param string $source + * @param string $source_link + * @param string $type + * @return boolean + */ + public static function setDownloadInfo($title, $cover, $file, $source, $source_link, $type) + { + return self::service()->setDownloadInfo($title, $cover, $file, $source, $source_link, $type); + } + + /** + * 获取下载信息 + * + * @param int $id + * @return array + */ + public static function getDownloadById($id) + { + return self::service()->getDownloadById($id); + } + + /** + * 删除下载信息 + * + * @param int $id + * @return boolean + */ + public static function delDownload($id) + { + return self::service()->delDownload($id); + } + + /** + * 设置商家信息 + * + * @param array $data + * @return boolean + */ + public static function setSeller(array $data) + { + return self::service()->setSeller($data); + } +} \ No newline at end of file diff --git a/website/facade/Partner.class.php b/website/facade/Partner.class.php index 0e7fd88..4d4bf49 100644 --- a/website/facade/Partner.class.php +++ b/website/facade/Partner.class.php @@ -13,10 +13,10 @@ class Facade_Partner */ public static $types = array ( - 0 => '特邀合作伙伴', - 1 => '特邀合作媒体', - 2 => '合作伙伴', - 3 => '合作媒体', + 0 => '主办方', + 1 => '合作媒体', + 2 => '赞助品牌', + 3 => '餐饮支持', ); /** diff --git a/website/lib/Images.class.php b/website/lib/Images.class.php index 4c81e0b..90a3d36 100644 --- a/website/lib/Images.class.php +++ b/website/lib/Images.class.php @@ -1,421 +1,421 @@ -<?php - -class Lib_Images -{ - /** - * 获取七牛尺寸 - * - * @param string $size - * @return string - */ - public static function getExistQiniuSize($size) - { - $qiniuKey = 'mem_qiniu_sizes'; - $sizes = Lib_Utils_Cache_Data::get($qiniuKey); - if(empty($sizes)) - { - $sizes = array(57600 =>'0240x0240', 102400 =>'0320x0320', 230400 =>'0480x0480',409600 => '0640x0640', - 5999400=>'0600x9999',3600 =>'0060x0060', 85264=>'0292x0292',79920=>'0296x0270',42632=>'0292x0146', - 21316=>'0146x0146', 30976 => '0176x0176',16936 =>'0146x0116',586240=>'0640x0916', 473600=>'0640x0740',10000 => '0100x0100', - 22500 =>'0150x0150',14400 => '0120x0120',5399460=>'0540x9999',900=>'0030x0030'); - asort($sizes); - Lib_Utils_Cache_Data::set($qiniuKey, $sizes); - } - $sizeKey = 'qiniu_sizes_'.$size; - $key = Lib_Utils_Cache_Data::get($sizeKey); - if(empty($key)) - { - $key = array_search($size, $sizes); - if($key === false) - { - //获取接近的尺寸 - $arr = explode('x', $size); - $pixel = intval($arr[0]) * intval($arr[1]); - foreach($sizes as $keyPixel => $size) - { - if($keyPixel > $pixel) - { - $key = $keyPixel; - break; - } - } - //都不存在,获取第一个 - if($key === false) - { - $key = current($sizes); - } - } - Lib_Utils_Cache_Data::set($sizeKey, $key); - } - return $sizes[$key]; - } - - /** - * 保存图片 - * - * @param mixed $file (文件或文件流) - * @param string $project (项目名称,默认为fragmentimg) - * @param boolean $preProcess (控制是否预先处理图片) @since 1.2.3 - * @return string (返回相对图片路径) - */ - public static function saveImage($file, $project = 'fragmentimg', $preProcess = false) - { - if (!isset(Config_File_Upload::${$project})) - { - return ''; - } - $_key_data = Config_File_Upload::${$project}; - $projectConfig = self::genConfig($project); - if (is_array($file)) - { - $up = new Util_Upload_File($file, $projectConfig['serverPath']); - $key = key($file); - } - elseif (@file_exists($file) && is_file($file))//文件 - { - $up = new Util_Upload_FileStream(@file_get_contents($file), $projectConfig['serverPath']); - $key = 0; - } - // 2014/01/07 hf: 修改抓取外网图片抓不了的问题 - elseif (is_string($file) && isset($file[0])) - { - $up = new Util_Upload_FileStream($file, $projectConfig['serverPath']); - $key = 0; - $file = null; - } - else - { - return ''; - } - $up->setFormat($projectConfig['format']); - $up->setMaxFileSize($projectConfig['upload_max_size']); - $up->setPrefix($projectConfig['randNode']); - if (isset($_key_data['file_path'])) - { - $up->setNewFileName($_key_data['file_path']); - } - $checkStatus = $up->check(); - if ($checkStatus['code'] == 0) - { - $checkStatus = $up->write(); - } - $imagePath = isset($checkStatus['result']['hit'][$key]['relaPath']) ? $checkStatus['result']['hit'][$key]['relaPath'] : ''; - return $imagePath; - } - - /** - * 获取图片地址 - * - * @param string $url 图片的相对地址 - * @param string $type 图片的类型 - * @param string $project 图片模块分类名 - * @param string $crop 切图方式 - * @param string $platform 默认:web - * @return string - */ - public static function getImageUrl($url = '', $type = null, $project = null, $crop = 'customCrop', $platform = 'web') - { - $qiniuUploadState = defined('QINIU_UPLOAD_STATE') ? QINIU_UPLOAD_STATE : false; - // 判断图片地址的有效性 - if ($url === null || $url === '' || $url === 'boy' || $url === 'girl' || ! is_string($url)) - { - // 地址: 新社区用户默认头像 - if ($project === 'headimg') - { - $finds = ($url === 'girl') ? Config_Static::$headImgGirl : Config_Static::$headImgBoy; - if (! array_key_exists($type, $finds)) - { - $type = key($finds); - } - return SITE_IMG . $finds[$type]; - } - return ''; - } - - // 地址: 站内站外的绝对地址 - if (0 === strpos($url, 'http://') || 0 === strpos($url, 'https://')) - { - if (($host = parse_url($url)) && isset($host['host'])) - { - return $url; - } - } - - // 地址: 老社区的图片 - if (0 === strpos($url, OLD_SITE_MAIN_I) || 0 === strpos($url, OLD_SITE_MAIN_P) || 0 === strpos($url, 'yohobuy.com')) - { - return $url; - } - - // 地址: 老社区用户的头像或用户相册的照片 - if (0 === stripos($url, '/user/') || 0 === stripos($url, '/photo/')) - { - return OLD_SITE_MAIN . $url; - } - - // 判断项目是否存在 - if (true !== property_exists('Config_File_Upload', $project)) - { - return ''; - } - - // 获取服务器域名 - $imageInfo = pathinfo($url); - $sysKey = self::getSysKey($imageInfo['basename']); - if (array_key_exists($sysKey, Config_File_Image::$imageServerUrl)) - { - $sourceUrl = Config_File_Image::$imageServerUrl[$sysKey]; - $targetUrl = Config_File_Image::$imageThumbUrl[$sysKey]; - } - else - { - return ''; - } - - $imageConfig = Config_File_Upload::${$project}; - - // 判断是否访问源图片文件 - if ($type == 'source') - { - $sourceUrl .= $imageConfig['path'] . $url; - if($qiniuUploadState && $platform != 'web')//七牛,移动版 - { - $sourceUrl = sprintf("%s_.%s", $sourceUrl, $imageInfo['extension']); - } - // 返回图片源地址 - return $sourceUrl; - } - // 格式化尺寸为"0000x0000"格式 - if (is_string($type) && strpos($type, 'x') !== false) - { - $finds = explode('x', $type); - $type = str_pad($finds[0], 4, '0', STR_PAD_LEFT) . 'x' . str_pad($finds[1], 4, '0', STR_PAD_LEFT); - } - $finds = Config_Static::$cropTypes; - if (! array_key_exists($crop, $finds)) - { - $crop = key($finds); - } - // 缩略剪切方式 - if($qiniuUploadState)//七牛 - { - if($platform != 'web')//移动版 - { - $finds = Config_Static::$qiniuCropTypes; - $type = self::getExistQiniuSize($type); - //_-宽x高-切图方式.图片后缀 - $rule = '_-' . $type . '-' . $finds[$crop] . '.' . $imageInfo['extension']; - } - else - { - //网页版使用参数规则 - $rule = str_replace('{size}', $type, Config_Static::$qiniuCropRules[$crop]); - } - } - else //原始版 - { - //-宽x高-切图方式.图片后缀 - $rule = '-' . $type . '-' . $finds[$crop] . '.' . $imageInfo['extension']; - } - if($qiniuUploadState) - { - //域名/项目名/年/月/日/时/{01|02}md5(32).图片后缀[_-宽x高-切图方式.图片后缀|?imageMogr2/thumbnail/xx/xxx] - $targetUrl .= $imageConfig['path'] . $imageInfo['dirname'] . '/' . basename($url, '.' . $imageInfo['extension']) . '.' . $imageInfo['extension'].$rule; - } - else - { - // 生成路径的格式: "域名/项目名/年/月/日/时/{01|02}md5(32)-宽x高-切图方式.图片后缀" - $targetUrl .= $imageConfig['path'] . $imageInfo['dirname'] . '/' . basename($url, '.' . $imageInfo['extension']) . $rule; - } - // 返回缩略图地址 - return $targetUrl; - } - - /** - * 预处理图片 - * - * @param string $imagePath (源图片相对路径) - * @param array $project (项目) - * @param array $projectConfig (项目配置) - * @param array $data (图片的信息) - * @return void - */ - public static function processImage($imagePath, $project, &$projectConfig, &$data) - { - return self::getImageInfo($imagePath, $project); - } - - /** - * 获取图片的信息 - * - * @param string $url (文件存放地址) - * @param string $project (文件项目名) - * @return false | array( - * width => 宽度, - * height => 高度, - * size => 大小, - * mine => 'MINE' - * ) - * - * @example - * Lib_Images::getImageInfo('/2013/03/06/17/019182a667143d313a18b16e4525235b4d.jpg', 'blogimg'); - * Lib_Images::getImageInfo('http://img03.res.yoho.cn/blogimg/2012/09/18/11/01167a11b8e7c0d913e789d75b2e52f433-0580x320-1.jpeg', 'blogimg'); - */ - public static function getImageInfo($url, $project) - { - $data = array('width' => 200, 'height' => 300, 'size' => 200000, 'mine' => 'image/jpeg',); - if ($project != '' && $url != '' && is_string($url)) - { - $source = self::getImageUrl($url, 'source', $project); - if(strpos($source,'_') !== false) - { - $imageUrl = strstr($source, '_', true) . '?imageInfo'; - } - else - { - $imageUrl = $source . '?imageInfo'; - } - // 设置一个超时时间,单位为秒 - $context = stream_context_create(array( - 'http' => array('timeout' => 3,), - )); - $temp = file_get_contents($imageUrl, false, $context); - if ($temp) - { - - $temp = json_decode($temp, true); - if (isset($temp['width'])) - { - $data['width'] = $temp['width']; - $data['height'] = $temp['height']; - $data['mine'] = $temp['format']; - $data['size'] = $temp['width'] * $data['height']; - } - } - } - return $data; - } - - /** - * 分隔文件路径地址 (以文件后缀名"."符号分隔) - * - * @param string $path (文件路径) - * @return array - */ - public static function partPath($path) - { - $pos = strrpos($path, '.'); - return array( - 'left' => substr($path, 0, $pos), - 'right' => substr($path, $pos), - ); - } - - /** - * 创建文件夹 - * - * @param string $path (文件路径) - * @return void - */ - public static function createFolder($path) - { - if (!file_exists($path)) - { - $path = dirname($path); - self::createFolder($path); - @mkdir($path, 0755); - } - } - - /** - * 发送指令处理图片 (通过服务器调度, 进行图片处理. 此方法已不再使用) - * - * @param string $source 源文件地址 - * @param string $size 需要的尺寸 - * @param string $crop 切图方式 - * @param string $target 目标文件地址 - * @return void - */ - public static function makeImage($source, $size, $crop, $target) - { - list($w, $h) = explode('x', $size); - $size = array('w' => $w, 'h' => $h ); - $data = array( - 'source' => $source, - 'target' => $target, - 'size' => $size, - 'mode' => $crop - ); - $c = Util_Gearman::client(); - $c->d(IMAGE_GMAGICK_FUNC, json_encode($data)); - $c->clones(); - } - - /** - * 获取文件存放的节点 - * - * @return string ('01' | '02') - */ - public static function getRandNode() - { - $randNum = time() % 2; - $randNum = ($randNum) ? $randNum : 2; - return sprintf('%02d', $randNum); - } - - /** - * 获取图片系统键名 - * - * @param string $basename (文件名) - * @return string ('img01' | 'img02') - */ - public static function getSysKey($basename) - { - return 'img' . substr($basename, 0, 2); - } - - /** - * 生成上传密钥 - * - * @param string $porject (项目模块名称) - * @return string | false - */ - public static function genKey($porject) - { - $projectData = $porject . 'Data'; - if (property_exists('Config_File_Upload', $projectData) === true) - { - $uploadConfig = Config_File_Upload::${$projectData}; - return Util_Utils_Function::base64_str_encode( - Util_Utils_AuthCode::encode( - json_encode($uploadConfig), Config_File_Upload::$key - ) - ); - } - return false; - } - - /** - * 获取上传的配置 - * - * @param string $project (项目模块名称) - * @return array - */ - public static function genConfig($project) - { - if (property_exists('Config_File_Upload', $project) === true) - { - $config = (array) Config_File_Upload::${$project}; - $config['randNode'] = Lib_Images::getRandNode(); - $config['serverNode'] = 'img' . $config['randNode']; - $config['serverPath'] = Config_File_Image::$imageServer[$config['serverNode']] . $config['path']; - $config['thumbPath'] = Config_File_Image::$thumbPath[$config['serverNode']] . $config['path']; - $config['sourceUrl'] = Config_File_Image::$imageServerUrl[$config['serverNode']] . $config['path']; - $config['thumbUrl'] = Config_File_Image::$imageThumbUrl[$config['serverNode']] . $config['path']; - - return $config; - } - return array(); - } - -} +<?php + +class Lib_Images +{ + /** + * 获取七牛尺寸 + * + * @param string $size + * @return string + */ + public static function getExistQiniuSize($size) + { + $qiniuKey = 'mem_qiniu_sizes'; + $sizes = Lib_Utils_Cache_Data::get($qiniuKey); + if(empty($sizes)) + { + $sizes = array(57600 =>'0240x0240', 102400 =>'0320x0320', 230400 =>'0480x0480',409600 => '0640x0640', + 5999400=>'0600x9999',3600 =>'0060x0060', 85264=>'0292x0292',79920=>'0296x0270',42632=>'0292x0146', + 21316=>'0146x0146', 30976 => '0176x0176',16936 =>'0146x0116',586240=>'0640x0916', 473600=>'0640x0740',10000 => '0100x0100', + 22500 =>'0150x0150',14400 => '0120x0120',5399460=>'0540x9999',900=>'0030x0030'); + asort($sizes); + Lib_Utils_Cache_Data::set($qiniuKey, $sizes); + } + $sizeKey = 'qiniu_sizes_'.$size; + $key = Lib_Utils_Cache_Data::get($sizeKey); + if(empty($key)) + { + $key = array_search($size, $sizes); + if($key === false) + { + //获取接近的尺寸 + $arr = explode('x', $size); + $pixel = intval($arr[0]) * intval($arr[1]); + foreach($sizes as $keyPixel => $size) + { + if($keyPixel > $pixel) + { + $key = $keyPixel; + break; + } + } + //都不存在,获取第一个 + if($key === false) + { + $key = current($sizes); + } + } + Lib_Utils_Cache_Data::set($sizeKey, $key); + } + return $sizes[$key]; + } + + /** + * 保存图片 + * + * @param mixed $file (文件或文件流) + * @param string $project (项目名称,默认为fragmentimg) + * @param boolean $preProcess (控制是否预先处理图片) @since 1.2.3 + * @return string (返回相对图片路径) + */ + public static function saveImage($file, $project = 'fragmentimg', $preProcess = false) + { + if (!isset(Config_File_Upload::${$project})) + { + return ''; + } + $_key_data = Config_File_Upload::${$project}; + $projectConfig = self::genConfig($project); + if (is_array($file)) + { + $up = new Util_Upload_File($file, $projectConfig['serverPath']); + $key = key($file); + } + elseif (@file_exists($file) && is_file($file))//文件 + { + $up = new Util_Upload_FileStream(@file_get_contents($file), $projectConfig['serverPath']); + $key = 0; + } + // 2014/01/07 hf: 修改抓取外网图片抓不了的问题 + elseif (is_string($file) && isset($file[0])) + { + $up = new Util_Upload_FileStream($file, $projectConfig['serverPath']); + $key = 0; + $file = null; + } + else + { + return ''; + } + $up->setFormat($projectConfig['format']); + $up->setMaxFileSize($projectConfig['upload_max_size']); + $up->setPrefix($projectConfig['randNode']); + if (isset($_key_data['file_path'])) + { + $up->setNewFileName($_key_data['file_path']); + } + $checkStatus = $up->check(); + if ($checkStatus['code'] == 0) + { + $checkStatus = $up->write(); + } + $imagePath = isset($checkStatus['result']['hit'][$key]['relaPath']) ? $checkStatus['result']['hit'][$key]['relaPath'] : ''; + return $imagePath; + } + + /** + * 获取图片地址 + * + * @param string $url 图片的相对地址 + * @param string $type 图片的类型 + * @param string $project 图片模块分类名 + * @param string $crop 切图方式 + * @param string $platform 默认:web + * @return string + */ + public static function getImageUrl($url = '', $type = null, $project = null, $crop = 'customCrop', $platform = 'web') + { + $qiniuUploadState = defined('QINIU_UPLOAD_STATE') ? QINIU_UPLOAD_STATE : false; + // 判断图片地址的有效性 + if ($url === null || $url === '' || $url === 'boy' || $url === 'girl' || ! is_string($url)) + { + // 地址: 新社区用户默认头像 + if ($project === 'headimg') + { + $finds = ($url === 'girl') ? Config_Static::$headImgGirl : Config_Static::$headImgBoy; + if (! array_key_exists($type, $finds)) + { + $type = key($finds); + } + return SITE_IMG . $finds[$type]; + } + return ''; + } + + // 地址: 站内站外的绝对地址 + if (0 === strpos($url, 'http://') || 0 === strpos($url, 'https://')) + { + if (($host = parse_url($url)) && isset($host['host'])) + { + return $url; + } + } + + // 地址: 老社区的图片 + if (0 === strpos($url, OLD_SITE_MAIN_I) || 0 === strpos($url, OLD_SITE_MAIN_P) || 0 === strpos($url, 'yohobuy.com')) + { + return $url; + } + + // 地址: 老社区用户的头像或用户相册的照片 + if (0 === stripos($url, '/user/') || 0 === stripos($url, '/photo/')) + { + return OLD_SITE_MAIN . $url; + } + + // 判断项目是否存在 + if (true !== property_exists('Config_File_Upload', $project)) + { + return ''; + } + + // 获取服务器域名 + $imageInfo = pathinfo($url); + $sysKey = self::getSysKey($imageInfo['basename']); + if (array_key_exists($sysKey, Config_File_Image::$imageServerUrl)) + { + $sourceUrl = Config_File_Image::$imageServerUrl[$sysKey]; + $targetUrl = Config_File_Image::$imageThumbUrl[$sysKey]; + } + else + { + return ''; + } + + $imageConfig = Config_File_Upload::${$project}; + + // 判断是否访问源图片文件 + if ($type == 'source') + { + $sourceUrl .= $imageConfig['path'] . $url; + if($qiniuUploadState && $platform != 'web')//七牛,移动版 + { + $sourceUrl = sprintf("%s_.%s", $sourceUrl, $imageInfo['extension']); + } + // 返回图片源地址 + return $sourceUrl; + } + // 格式化尺寸为"0000x0000"格式 + if (is_string($type) && strpos($type, 'x') !== false) + { + $finds = explode('x', $type); + $type = str_pad($finds[0], 4, '0', STR_PAD_LEFT) . 'x' . str_pad($finds[1], 4, '0', STR_PAD_LEFT); + } + $finds = Config_Static::$cropTypes; + if (! array_key_exists($crop, $finds)) + { + $crop = key($finds); + } + // 缩略剪切方式 + if($qiniuUploadState)//七牛 + { + if($platform != 'web')//移动版 + { + $finds = Config_Static::$qiniuCropTypes; + $type = self::getExistQiniuSize($type); + //_-宽x高-切图方式.图片后缀 + $rule = '_-' . $type . '-' . $finds[$crop] . '.' . $imageInfo['extension']; + } + else + { + //网页版使用参数规则 + $rule = str_replace('{size}', $type, Config_Static::$qiniuCropRules[$crop]); + } + } + else //原始版 + { + //-宽x高-切图方式.图片后缀 + $rule = '-' . $type . '-' . $finds[$crop] . '.' . $imageInfo['extension']; + } + if($qiniuUploadState) + { + //域名/项目名/年/月/日/时/{01|02}md5(32).图片后缀[_-宽x高-切图方式.图片后缀|?imageMogr2/thumbnail/xx/xxx] + $targetUrl .= $imageConfig['path'] . $imageInfo['dirname'] . '/' . basename($url, '.' . $imageInfo['extension']) . '.' . $imageInfo['extension'].$rule; + } + else + { + // 生成路径的格式: "域名/项目名/年/月/日/时/{01|02}md5(32)-宽x高-切图方式.图片后缀" + $targetUrl .= $imageConfig['path'] . $imageInfo['dirname'] . '/' . basename($url, '.' . $imageInfo['extension']) . $rule; + } + // 返回缩略图地址 + return $targetUrl; + } + + /** + * 预处理图片 + * + * @param string $imagePath (源图片相对路径) + * @param array $project (项目) + * @param array $projectConfig (项目配置) + * @param array $data (图片的信息) + * @return void + */ + public static function processImage($imagePath, $project, &$projectConfig, &$data) + { + return self::getImageInfo($imagePath, $project); + } + + /** + * 获取图片的信息 + * + * @param string $url (文件存放地址) + * @param string $project (文件项目名) + * @return false | array( + * width => 宽度, + * height => 高度, + * size => 大小, + * mine => 'MINE' + * ) + * + * @example + * Lib_Images::getImageInfo('/2013/03/06/17/019182a667143d313a18b16e4525235b4d.jpg', 'blogimg'); + * Lib_Images::getImageInfo('http://img03.res.yoho.cn/blogimg/2012/09/18/11/01167a11b8e7c0d913e789d75b2e52f433-0580x320-1.jpeg', 'blogimg'); + */ + public static function getImageInfo($url, $project) + { + $data = array('width' => 200, 'height' => 300, 'size' => 200000, 'mine' => 'image/jpeg',); + if ($project != '' && $url != '' && is_string($url)) + { + $source = self::getImageUrl($url, 'source', $project); + if(strpos($source,'_') !== false) + { + $imageUrl = strstr($source, '_', true) . '?imageInfo'; + } + else + { + $imageUrl = $source . '?imageInfo'; + } + // 设置一个超时时间,单位为秒 + $context = stream_context_create(array( + 'http' => array('timeout' => 3,), + )); + $temp = @file_get_contents($imageUrl, false, $context); + if ($temp) + { + + $temp = json_decode($temp, true); + if (isset($temp['width'])) + { + $data['width'] = $temp['width']; + $data['height'] = $temp['height']; + $data['mine'] = $temp['format']; + $data['size'] = $temp['width'] * $data['height']; + } + } + } + return $data; + } + + /** + * 分隔文件路径地址 (以文件后缀名"."符号分隔) + * + * @param string $path (文件路径) + * @return array + */ + public static function partPath($path) + { + $pos = strrpos($path, '.'); + return array( + 'left' => substr($path, 0, $pos), + 'right' => substr($path, $pos), + ); + } + + /** + * 创建文件夹 + * + * @param string $path (文件路径) + * @return void + */ + public static function createFolder($path) + { + if (!file_exists($path)) + { + $path = dirname($path); + self::createFolder($path); + @mkdir($path, 0755); + } + } + + /** + * 发送指令处理图片 (通过服务器调度, 进行图片处理. 此方法已不再使用) + * + * @param string $source 源文件地址 + * @param string $size 需要的尺寸 + * @param string $crop 切图方式 + * @param string $target 目标文件地址 + * @return void + */ + public static function makeImage($source, $size, $crop, $target) + { + list($w, $h) = explode('x', $size); + $size = array('w' => $w, 'h' => $h ); + $data = array( + 'source' => $source, + 'target' => $target, + 'size' => $size, + 'mode' => $crop + ); + $c = Util_Gearman::client(); + $c->d(IMAGE_GMAGICK_FUNC, json_encode($data)); + $c->clones(); + } + + /** + * 获取文件存放的节点 + * + * @return string ('01' | '02') + */ + public static function getRandNode() + { + $randNum = time() % 2; + $randNum = ($randNum) ? $randNum : 2; + return sprintf('%02d', $randNum); + } + + /** + * 获取图片系统键名 + * + * @param string $basename (文件名) + * @return string ('img01' | 'img02') + */ + public static function getSysKey($basename) + { + return 'img' . substr($basename, 0, 2); + } + + /** + * 生成上传密钥 + * + * @param string $porject (项目模块名称) + * @return string | false + */ + public static function genKey($porject) + { + $projectData = $porject . 'Data'; + if (property_exists('Config_File_Upload', $projectData) === true) + { + $uploadConfig = Config_File_Upload::${$projectData}; + return Util_Utils_Function::base64_str_encode( + Util_Utils_AuthCode::encode( + json_encode($uploadConfig), Config_File_Upload::$key + ) + ); + } + return false; + } + + /** + * 获取上传的配置 + * + * @param string $project (项目模块名称) + * @return array + */ + public static function genConfig($project) + { + if (property_exists('Config_File_Upload', $project) === true) + { + $config = (array) Config_File_Upload::${$project}; + $config['randNode'] = Lib_Images::getRandNode(); + $config['serverNode'] = 'img' . $config['randNode']; + $config['serverPath'] = Config_File_Image::$imageServer[$config['serverNode']] . $config['path']; + $config['thumbPath'] = Config_File_Image::$thumbPath[$config['serverNode']] . $config['path']; + $config['sourceUrl'] = Config_File_Image::$imageServerUrl[$config['serverNode']] . $config['path']; + $config['thumbUrl'] = Config_File_Image::$imageThumbUrl[$config['serverNode']] . $config['path']; + + return $config; + } + return array(); + } + +} diff --git a/website/public/index.php b/website/public/index.php index eb573ce..5693d14 100644 --- a/website/public/index.php +++ b/website/public/index.php @@ -31,7 +31,5 @@ $config = include(dirname(dirname(__FILE__)) . '/config/Boot.inc.php'); include($config['Framework_Dir'] . '/Y.class.php'); // 实例化APP应用 $y = Framework_Y::instance($config); -//设置保存session - Util_Session::setSaveHandler ( new Util_Common_Session () ); // 执行请求派遣 $y->dispatch(); diff --git a/website/public/uploadify.swf b/website/public/uploadify.swf new file mode 100644 index 0000000..1090a0e Binary files /dev/null and b/website/public/uploadify.swf differ diff --git a/website/service/News.class.php b/website/service/News.class.php index 63604c3..ee46d00 100644 --- a/website/service/News.class.php +++ b/website/service/News.class.php @@ -77,7 +77,7 @@ class Service_News extends Lib_Service * @param array $exceptTags * @return array */ - public function getList($tag, $offset, $limit, $exceptTags) + public function getList($tag, $offset, $limit, $exceptTags,$type) { $where = '1' ; $exceptWhere = '1'; @@ -92,7 +92,11 @@ class Service_News extends Lib_Service $tag = addslashes($tag); $where = '`tag` like ("'.$tag.'%")' ; } - $where = ' WHERE '.$where .' AND '.$exceptWhere; + if($type==1) { + $where = ' WHERE ' . $where . ' or is_video=1 AND ' . $exceptWhere; + }else{ + $where = ' WHERE ' . $where . ' AND ' . $exceptWhere; + } return self::service(self::ROUTER)->tag(self::$_tag)->fetchAssoc('getList', array('offset' => intval($offset), 'limit' => intval($limit)), array('where' => $where)); } diff --git a/website/service/Onlinereg.class.php b/website/service/Onlinereg.class.php new file mode 100644 index 0000000..2934723 --- /dev/null +++ b/website/service/Onlinereg.class.php @@ -0,0 +1,219 @@ +<?php +class Service_Onlinereg extends Lib_Service +{ + const ROUTER = 'onlinereg.yohood.onlinereg'; + private static $_seller_tag = 'tag_yohood_seller_'; + private static $_seller_key = 'key_yohood_seller_'; + private static $_download_tag = 'tag_yohood_download_'; + private static $_download_key = 'key_yohood_download_'; + + /** + * 设置商家信息 + * + * @param string $name + * @param string $type + * @param string $sex + * @param int $brand_reg_type + * @param int $is_enter_yohobuy + * @param int $profession + * @param string $product_type + * @param string $country + * @param string $city + * @param string $company + * @param string $contact + * @param string $telphone + * @param string $mobile + * @param string $email + * @param string $relation + * @param string $website + * @param string $introduction + * @param int $is_3c + * @param string $place + * @param string $files + * @param string $zipcode + * @return int + */ + public function setSellerInfo($name, $type, $sex, $brand_reg_type, $is_enter_yohobuy, $profession, $product_type, $country, $city, + $company, $contact, $telphone, $mobile, $email, $relation, $website, $introduction, $is_3c, $place, $files, $zipcode) + { + $params = array( + 'name' => $name, 'type' => intval($type),'brand_reg_type'=> intval($brand_reg_type), 'is_enter_yohobuy'=> intval($is_enter_yohobuy), + 'product_type'=> $product_type,'company'=> addslashes($company),'contact'=> $contact,'telphone' => $telphone,'email'=> $email, + 'country'=>$country,'relation'=> intval($relation),'website' => $website,'is_3c'=> intval($is_3c), 'place' => addslashes($place), + 'files'=> $files, 'profession' => addslashes($profession),'sex'=> $sex,'introduction'=> addslashes($introduction),'city'=> $city, + 'mobile' =>addslashes($mobile),'zipcode' => $zipcode + ); + return self::service(self::ROUTER)->tag(self::$_seller_tag)->insert('setSellerInfo', $params)->lastInsertId(); + } + + /** + * 根据type获取商家列表 + * + * @param int $type + * @param int $offset + * @param int $limit + * @return array + */ + public function getSellerListByType($type, $offset, $limit) + { + $params = array('type' => intval($type),'offset' => intval($offset), 'limit' => intval($limit)); + $key = sprintf("%s_%s_%s_%s", self::$_seller_key, $type, $offset, $limit); + return self::service(self::ROUTER)->tag(self::$_seller_tag)->key($key)->fetchAssoc('getSellerListByType', $params); + } + + /** + * 根据type获取总数 + * + * @param int $type + * @return array + */ + public function getSellerTotalByType($type) + { + $params = array('type' => intval($type)); + return self::service(self::ROUTER)->cache(false)->fetchOne('getSellerTotalByType', $params); + } + + /** + * 根据ID获取商家 + * + * @param int $id + * @return array + */ + public function getSellerById($id) + { + $params = array('id'=> $id); + $key = self::$_seller_key . $id; + return self::service(self::ROUTER)->tag(self::$_seller_tag)->key($key)->fetchRow('getSellerById', $params); + } + + /** + * 设置媒体信息 + * + * @param string $name + * @param int $type + * @param string $profession + * @param int $sex + * @param string $company + * @param string $introduction + * @param string $website + * @param string $city + * @param string $email + * @param string $mobile + * @param string $telphone + * @param string $address + * @param string $zipcode + * @return int + */ + public function setMediaInfo($name, $type, $profession, $sex, $company, $introduction, $website, $city, + $email, $mobile, $telphone, $address, $zipcode) + { + $params = array( + 'name' => addslashes($name),'type'=>$type, 'profession' => addslashes($profession),'sex'=> $sex, 'company'=> addslashes($company), + 'introduction'=> addslashes($introduction),'website' => $website,'city'=> $city, + 'email'=> addslashes($email),'mobile' =>addslashes($mobile), 'telphone'=> $telphone,'address' => addslashes($address), + 'zipcode' => $zipcode); + return self::service(self::ROUTER)->tag(self::$_seller_tag)->insert('setMediaInfo', $params)->status(); + } + + /** + * 设置下载信息 + * + * @param string $title + * @param string $cover + * @param string $file + * @param string $source + * @param string $source_link + * @param string $type + * @return boolean + */ + public function setDownloadInfo($title, $cover, $file, $source, $source_link, $type) + { + $params = array('title'=> addslashes($title), 'cover' => $cover, 'file'=> $file, 'source' => addslashes($source), + 'source_link' => addslashes($source_link), 'type' => intval($type)); + return self::service(self::ROUTER)->tag(self::$_download_tag)->insert('setDownloadInfo', $params)->status(); + } + + /** + * 根据ID设置下载信息 + * + * @param int $id + * @param string $title + * @param string $cover + * @param string $file + * @param string $source + * @param string $source_link + * @return boolean + */ + public function setDownloadInfoById($id, $title, $cover, $file, $source, $source_link) + { + $params = array('title'=> addslashes($title), 'cover' => $cover, 'file'=> $file, 'source' => addslashes($source), + 'source_link' => addslashes($source_link),'id'=> intval($id)); + return self::service(self::ROUTER)->tag(self::$_download_tag)->update('setDownloadInfoById', $params)->status(); + } + + /** + * 获取下载列表 + * + * @param int $type + * @param int $offset + * @param int $limit + * @return array + */ + public function getDownloadListByType($type, $offset, $limit) + { + $params = array('type' => intval($type),'offset' => intval($offset), 'limit' => intval($limit)); + $key = sprintf("%s_%s_%s_%s", self::$_download_key, $type, $offset, $limit); + return self::service(self::ROUTER)->tag(self::$_download_tag)->fetchAssoc('getDownloadListByType', $params); + } + + /** + * 获取下载总数 + * + * @param int $type + * @return array + */ + public function getDownloadTotalByType($type) + { + $params = array('type' => intval($type)); + return self::service(self::ROUTER)->tag(self::$_download_tag)->fetchOne('getDownloadTotalByType', $params); + } + + /** + * 获取下载信息 + * + * @param int $id + * @return array + */ + public function getDownloadById($id) + { + $params = array('id' => intval($id)); + return self::service(self::ROUTER)->tag(self::$_download_tag)->fetchRow('getDownloadById', $params); + } + + /** + * 删除下载信息 + * + * @param int $id + * @return boolean + */ + public function delDownload($id) + { + $params = array('id' => intval($id)); + return self::service(self::ROUTER)->tag(self::$_download_tag)->delete('delDownload', $params); + } + + /** + * 设置商家信息 + * + * @param array $data + * @return boolean + */ + public function setSeller(array $data) + { + $up = Util_Utils_SqlString::mergeSqlUpstring($data); + $replaces = array('up' => $up); + return self::service(self::ROUTER)->tag(self::$_seller_tag)->update('setSeller', $data, $replaces)->status(); + } +} + +?> \ No newline at end of file diff --git a/website/sqlmap/index/sqlmap-index.xml b/website/sqlmap/index/sqlmap-index.xml index 511841e..66f21b0 100644 --- a/website/sqlmap/index/sqlmap-index.xml +++ b/website/sqlmap/index/sqlmap-index.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <sqlMap namespace="index"> <select id="getBannerByType"> - SELECT * FROM tbl_index where type = :type order by sort desc, id desc + SELECT * FROM tbl_index where type = :type order by sort desc, id desc </select> <update id="updateBanner"> UPDATE tbl_index SET type =:type, url=:url,res= :res, text=:text, sort=:sort, res_size=:res_size WHERE id = :id diff --git a/website/sqlmap/news/sqlmap-news.xml b/website/sqlmap/news/sqlmap-news.xml index a15eea2..1e10dd5 100644 --- a/website/sqlmap/news/sqlmap-news.xml +++ b/website/sqlmap/news/sqlmap-news.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <sqlMap namespace="news"> <select id="getList"> - SELECT * FROM `tbl_news` #where# order by `sort` DESC , create_time desc limit :offset, :limit + SELECT * FROM `tbl_news` #where# order by create_time desc limit :offset, :limit </select> <select id="getOneById"> SELECT * FROM `tbl_news` where `id`=:id @@ -52,6 +52,7 @@ SELECT * FROM `tbl_news` #where# order by create_time DESC LIMIT :offset, :limit </select> <select id="getListByDateHits"> - SELECT * FROM tbl_news WHERE `tag` = :tag AND #where# ORDER BY UNIX_TIMESTAMP(FROM_UNIXTIME(create_time,'%Y-%m-%d')) DESC, hits DESC LIMIT :offset, :limit + <!--SELECT * FROM tbl_news WHERE `tag` = :tag AND #where# ORDER BY UNIX_TIMESTAMP(FROM_UNIXTIME(create_time,'%Y-%m-%d')) DESC, hits DESC LIMIT :offset, :limit--> + SELECT * FROM tbl_news WHERE `tag` = :tag AND #where# or is_video=1 ORDER BY hits DESC LIMIT :offset, :limit </select> </sqlMap> \ No newline at end of file diff --git a/website/sqlmap/onlinereg/sqlmap-onlinereg.xml b/website/sqlmap/onlinereg/sqlmap-onlinereg.xml new file mode 100644 index 0000000..9f4bc36 --- /dev/null +++ b/website/sqlmap/onlinereg/sqlmap-onlinereg.xml @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sqlMap namespace="onlinereg"> + <insert id="setSellerInfo"> + INSERT INTO tbl_online_seller(`name`, `type`, profession, sex, introduction, brand_reg_type, is_enter_yohobuy, product_type, + country,city,company,contact,telphone,mobile,email,relation,website,is_3c,place, zipcode, files,create_time) + VALUES(:name,:type,:profession, :sex, :introduction,:brand_reg_type, :is_enter_yohobuy, :product_type, + :country,:city, :company,:contact,:telphone,:mobile,:email,:relation,:website,:is_3c,:place,:zipcode, :files,UNIX_TIMESTAMP()) + </insert> + <select id="getSellerListByType"> + SELECT * FROM tbl_online_seller where `type`= :type ORDER BY create_time DESC LIMIT :offset, :limit + </select> + <select id="getSellerTotalByType"> + SELECT COUNT(*) FROM tbl_online_seller where `type`= :type + </select> + <select id="getSellerById"> + SELECT * FROM tbl_online_seller WHERE id = :id + </select> + <insert id="setMediaInfo"> + INSERT INTO tbl_online_seller(`name`, `type`, profession, sex, company, introduction, website, + city, email, mobile, telphone,address, zipcode,create_time) + VALUES(:name,:type, :profession,:sex, :company, :introduction, :website, :city, + :email,:mobile,:telphone,:address,:zipcode,UNIX_TIMESTAMP()) + </insert> + <insert id="setDownloadInfo"> + INSERT INTO tbl_online_download(title, cover, file, source, source_link, `type`, create_time) VALUES(:title,:cover,:file,:source, + :source_link, :type, UNIX_TIMESTAMP()) + </insert> + <update id="setDownloadInfoById"> + UPDATE tbl_online_download SET title = :title, cover =:cover, file =:file, source = :source, source_link = :source_link WHERE id = :id + </update> + <select id="getDownloadListByType"> + SELECT * FROM tbl_online_download WHERE `type` = :type ORDER BY create_time DESC LIMIT :offset, :limit + </select> + <select id="getDownloadTotalByType"> + SELECT COUNT(*) FROM tbl_online_download WHERE `type` = :type + </select> + <select id="getDownloadById"> + SELECT * FROM tbl_online_download WHERE id = :id + </select> + <delete id="delDownload"> + DELETE FROM tbl_online_download WHERE id = :id + </delete> + <update id="setSeller"> + UPDATE tbl_online_seller SET #up# WHERE id = :id + </update> +</sqlMap> \ No newline at end of file diff --git a/website/view/layout/admin_layout.php b/website/view/layout/admin_layout.php index 0d4834e..7dd0f3c 100644 --- a/website/view/layout/admin_layout.php +++ b/website/view/layout/admin_layout.php @@ -1,83 +1,81 @@ -<!DOCTYPE html> -<html> -<head> -<link rel="shortcut icon" href="favicon.ico" /> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<title>YOHO!- YOHOOD</title> -<meta name="Author" content="YOHO.CN" /> -<?php $this->_block('css');?> -<?php $this->_css('admin.css', array( - SITE_CSS . '/common/bootstrap.min.css', -));?> -<?php $this->_endblock();?> -</head> -<?php $_ctx = Framework_YHttpRequest::instance();?> -<body style="padding-bottom: 40px;"> -<div class="navbar navbar-inverse"> - <div class="navbar-inner"> - <div class="container-fluid"> - <a class="brand" href="<?php echo SITE_MAIN;?>"> - YO'HOOD - </a> - <div class="nav-collapse collapse"> - <ul class="nav"> - <li <?php if ($_ctx->controller_name == 'mobile'):?>class="active"<?php endif;?>><a href="<?php echo url('mobile/index')?>" >客户端模块</a></li> - <li <?php if ($_ctx->controller_name == 'index'):?>class="active"<?php endif;?>><a href="<?php echo url('index/index')?>" >首页</a></li> - <li <?php if ($_ctx->controller_name == 'activity' && in_array($_ctx->action_name, array('index','create')) ):?>class="active"<?php endif;?>><a href="<?php echo url('activity/index')?>" >活动介绍</a></li> - <li <?php if ($_ctx->controller_name == 'news'):?>class="active"<?php endif;?>><a href="<?php echo url('news/index')?>">资讯</a></li> - <li <?php if ($_ctx->controller_name == 'brand' && $_ctx->action_name != 'booth' || ($_ctx->controller_name == 'prod' && !isset($_REQUEST['status'])) ):?>class="active" <?php endif;?>><a href="<?php echo url('brand/index')?>" >品牌</a></li> - <li <?php if ($_ctx->controller_name == 'prod' && isset($_REQUEST['status']) ):?> <?php echo $_REQUEST['status'] == 1 ? 'class="active"':''; endif;?>><a href="<?php echo url('prod/index', array('status'=> 1))?>">限量商品</a></li> - <li <?php if ($_ctx->controller_name == 'activity' && in_array($_ctx->action_name, array('plantopic','plan'))):?>class="active"<?php endif;?>><a href="<?php echo url('activity/plantopic')?>">现场活动</a></li> - <li <?php if ($_ctx->controller_name == 'partner' && $_ctx->action_name == 'index'):?>class="active"<?php endif;?>><a href="/admin/partner/index">合作伙伴</a></li> - <li <?php if ($_ctx->controller_name == 'brand' && $_ctx->action_name == 'booth'):?>class="active"<?php endif;?>><a href="/admin/brand/booth">booth坐标</a></li> - <li <?php if ($_ctx->controller_name == 'invitation' && $_ctx->action_name == 'index'):?>class="active"<?php endif;?>><a href="/admin/invitation/index">邀请函</a></li> - </ul> - <span style="float: right;font-size: 16px;padding-top: 10px;"> - <a href="<?php echo url('admin::default/logout')?>" style='color:white;'>退出</a> - </span> - </div> - </div> - </div> -</div> - -<div class="container-fluid"> - <div class="row-fluid"> - <?php $this->_block('main');$this->_endblock();?> - </div> -</div> - -<!-- 弹窗 --> -<!-- ALERT窗口 --> -<div class="modal hide fade" id='box_alert' style="width: 350px;"> - <div class="modal-header"> - <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> - <h4>系统提示</h4> - </div> - <div class="modal-body"> - <p id="alert_message"></p> - <p style="float:right;"><a href="javascript:void(0);" class="btn btn-primary" data-dismiss="modal" aria-hidden="true">确定</a></p> - </div> -</div> - -<!-- CONFIRM窗口 --> -<div class="modal hide fade" id='box_confirm' style="width: 350px;"> - <div class="modal-header"> - <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> - <h4>系统提示</h4> - </div> - <div class="modal-body"> - <p id="confirm_message"></p> - </div> - <div class="modal-footer"> - <button class="btn" data-dismiss="modal" aria-hidden="true">取消</button> - <button class="btn btn-primary" id='box_confirm_ok'>确定</button> - </div> -</div> - -<?php $this->_block('js');?> -<?php $this->_js('seajs.js', array( - SITE_JS . '/lib/seajs.js' -));?> -<?php $this->_endblock();?> -</body> +<!DOCTYPE html> +<html> +<head> +<link rel="shortcut icon" href="favicon.ico" /> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> +<title>YOHO!- YOHOOD</title> +<meta name="Author" content="YOHO.CN" /> +<?php $this->_block('css');?> +<?php $this->_css('admin.css', array( + SITE_CSS . '/common/bootstrap.min.css', +));?> +<?php $this->_endblock();?> +</head> +<?php $_ctx = Framework_YHttpRequest::instance();?> +<body style="padding-bottom: 40px;"> +<div class="navbar navbar-inverse"> + <div class="navbar-inner"> + <div class="container-fluid"> + <a class="brand" href="<?php echo SITE_MAIN;?>"> + YO'HOOD + </a> + <div class="nav-collapse collapse"> + <ul class="nav"> + <li <?php if ($_ctx->controller_name == 'mobile'):?>class="active"<?php endif;?>><a href="<?php echo url('mobile/index')?>" >客户端模块</a></li> + <li <?php if ($_ctx->controller_name == 'index'):?>class="active"<?php endif;?>><a href="<?php echo url('index/index')?>" >首页</a></li> + <li <?php if ($_ctx->controller_name == 'news'):?>class="active"<?php endif;?>><a href="<?php echo url('news/index')?>">资讯</a></li> + <li <?php if ($_ctx->controller_name == 'brand' && $_ctx->action_name != 'booth' || ($_ctx->controller_name == 'prod' && !isset($_REQUEST['status'])) ):?>class="active" <?php endif;?>><a href="<?php echo url('brand/index')?>" >品牌</a></li> + <li <?php if ($_ctx->controller_name == 'partner' && $_ctx->action_name == 'index'):?>class="active"<?php endif;?>><a href="/admin/partner/index">合作伙伴</a></li> + <li <?php if ($_ctx->controller_name == 'brand' && $_ctx->action_name == 'booth'):?>class="active"<?php endif;?>><a href="/admin/brand/booth">booth坐标</a></li> + <li <?php if ($_ctx->controller_name == 'invitation' && $_ctx->action_name == 'index'):?>class="active"<?php endif;?>><a href="/admin/invitation/index">邀请函</a></li> + <li <?php if ($_ctx->controller_name == 'onlinereg'):?>class="active"<?php endif;?>><a href="/admin/onlinereg/index">在线登记</a></li> + </ul> + <span style="float: right;font-size: 16px;padding-top: 10px;"> + <a href="<?php echo url('admin::default/logout')?>" style='color:white;'>退出</a> + </span> + </div> + </div> + </div> +</div> + +<div class="container-fluid"> + <div class="row-fluid"> + <?php $this->_block('main');$this->_endblock();?> + </div> +</div> + +<!-- 弹窗 --> +<!-- ALERT窗口 --> +<div class="modal hide fade" id='box_alert' style="width: 350px;"> + <div class="modal-header"> + <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> + <h4>系统提示</h4> + </div> + <div class="modal-body"> + <p id="alert_message"></p> + <p style="float:right;"><a href="javascript:void(0);" class="btn btn-primary" data-dismiss="modal" aria-hidden="true">确定</a></p> + </div> +</div> + +<!-- CONFIRM窗口 --> +<div class="modal hide fade" id='box_confirm' style="width: 350px;"> + <div class="modal-header"> + <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> + <h4>系统提示</h4> + </div> + <div class="modal-body"> + <p id="confirm_message"></p> + </div> + <div class="modal-footer"> + <button class="btn" data-dismiss="modal" aria-hidden="true">取消</button> + <button class="btn btn-primary" id='box_confirm_ok'>确定</button> + </div> +</div> + +<?php $this->_block('js');?> +<?php $this->_js('seajs.js', array( + SITE_JS . '/lib/seajs.js' +));?> +<?php $this->_endblock();?> +</body> </html> \ No newline at end of file diff --git a/website/view/layout/default_layout.php b/website/view/layout/default_layout.php index f9fdc0e..4d2eeb7 100644 --- a/website/view/layout/default_layout.php +++ b/website/view/layout/default_layout.php @@ -5,7 +5,7 @@ <meta name="viewport" content="width=device-width, initial-scale = 1.0, maximum-scale=1.0, minimum-scale=1.0,user-scalable = no" /> <title>YO'HOOD | 全球潮流新品嘉年华</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> - <meta http-equiv="Cache-Control" content="no-siteapp"/> + <meta http-equiv="Cache-Control" content="no-siteapp"/> <meta name="renderer" content="webkit"> <link rel="dns-prefetch" href="<?php echo SITE_RES;?>"> <?php $this->_css('index.css', array( @@ -23,7 +23,7 @@ <a href="http://www.yoho.cn" target="_blank">集团官网</a> </li> <li> - <span>YOHO!BUY</span> + <span>YOHO!有货</span> <a href="http://www.yohobuy.com" target="_blank">潮流购物</a> </li> <li> @@ -39,23 +39,24 @@ <a href="http://www.yohoshow.com" target="_blank">物趣分享</a> </li> <li class="current"> - <span>YOHOOD</span> + <span>YO'HOOD</span> <a href="javascript:;" target="_blank">潮流嘉年华</a> </li> </ul> - <a class="contact-btn" href="/default/contactus">contact</a> + <a class="contact-btn" href="/default/contactus">CONTACT</a> </div> - <?php + <?php $_ctx = Framework_YHttpRequest::instance(); $controller_name = $_ctx->controller_name; $action_name = $_ctx->action_name; ?> <div class="header"> <a href="<?php echo SITE_MAIN;?>"> - <h1 class="logo"></h1> + <h1 class="logo"><img src='<?php echo SITE_RES."/images/yohood/logo3.0.png"?>'></h1> </a> <div class="nav"> <ul class="clearfix"> + <!-- 单个菜单标签 start --> <li <?php echo ($controller_name == 'default') ? 'class="current"':''; ?>> <a href="/default/index"> <em>HOME</em> @@ -63,21 +64,46 @@ <i></i> </a> </li> - <li <?php echo ($controller_name == 'activity' && - in_array($action_name, array('index','video','partner'))) ? 'class="current"':''; ?>> - <a href="/activity/index"> - <em>ACTIVITY</em> - <span>活动详情</span> - <i></i> - </a> - </li> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> <li <?php echo ($controller_name == 'news') ? 'class="current"':''; ?>> <a href="/news/index"> - <em>COUNSEL</em> - <span>最新资讯</span> + <em>ACTIVITY</em> + <span>活动资讯</span> <i></i> </a> + <hr class="second-menu-hr"> + <!-- 二级菜单 start --> + <div class="second-menu"> + <a href="/news/index"> + <em>全部资讯</em> + <i></i> + </a> + <hr> + <a href="/news/index/tag/品牌资讯"> + <em>品牌资讯</em> + <i></i> + </a> + <hr> + <a href="/news/index/tag/活动介绍"> + <em>活动介绍</em> + <i></i> + </a> + <hr> + <a href="/news/index/tag/亮点活动"> + <em>亮点活动</em> + <i></i> + </a> + <hr> + <a href="/news/index/tag/限量商品"> + <em>限量商品</em> + <i></i> + </a> + </div> + <!-- 二级菜单 end --> </li> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> <li <?php echo ($controller_name == 'brand') ? 'class="current"':''; ?>> <a href="/brand/index"> <em>BRAND</em> @@ -85,6 +111,8 @@ <i></i> </a> </li> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> <li <?php echo ($controller_name == 'video') ? 'class="current"':''; ?>> <a href="/video/index"> <em>VIDEO</em> @@ -92,20 +120,33 @@ <i></i> </a> </li> - <li <?php echo ($controller_name == 'product' && $action_name == 'recommend') ? 'class="current"':''; ?>> - <a href="/product/recommend"> - <em>RECOMMEND</em> - <span>限量推荐</span> - <i></i> - </a> - </li> - <li <?php echo ($controller_name == 'activity' && $action_name == 'plan') ? 'class="current"':''; ?>> - <a href="/activity/plan"> - <em>SCENE</em> - <span>现场活动</span> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> + <li <?php echo ($controller_name == 'onlinereg') ? 'class="current"':''; ?>> + <a href="/onlinereg/index"> + <em>REGISTRATION</em> + <span>在线登记</span> <i></i> </a> + <!-- 二级菜单 start --> + <div class="second-menu"> + <a href="/onlinereg/exhibitor"> + <em>参展商登记</em> + <i></i> + </a> + <a href="/onlinereg/media"> + <em>媒体登记</em> + <i></i> + </a> + <a href="/onlinereg/sponsor"> + <em>赞助商登记</em> + <i></i> + </a> + </div> + <!-- 二级菜单 end --> </li> + <!-- 单个菜单标签 end --> + <!-- 单个菜单标签 start --> <li <?php echo ($controller_name == 'show') ? 'class="current"':''; ?>> <a href="/show/index"> <em>SHOW</em> @@ -113,47 +154,46 @@ <i></i> </a> </li> + <!-- 单个菜单标签 end --> </ul> </div> </div> - <div class="bd clearfix"> - <div class="wrapper"> + <div class="bd"> <?php $this->_block('main'); $this->_endblock();?> - </div> </div> - <?php if($this->view->recom_product_total):?> - <div class="ft"> <!-- 限量推荐 --> - <div class="limited-goods"> - <h2>限量商品</h2> - <div class="limited-slide-box"> - <div class="slide-wrap clearfix" id="product_list" offset="0"> - </div> - </div> - <div class="limited-slide-control"> - <a class="limited-slide-prev iconfont" href="javascript:void(0);"></a> - <a class="limited-slide-next iconfont" href="javascript:void(0);"></a> - </div> - </div> - </div> - <?php endif;?> <div class="return-top" style="display:none;"> <a href="javascript:void(0);" id="toTop" class="ifont" style="display: inline;"> - <span class="iconfont"></span> - TOP + <span class="iconfont-new"></span> </a> </div> - <div class="ft-bd" style="line-height: 20px;text-align: center;color: #c0c0c0;font-family: helveticaneue,'helveticaneue','microsoft yahei'"> - <div class="ft-line"></div> - <p>CopyRight © 2007-2016 南京新与力文化传播有限公司 <a href="http://www.miibeian.gov.cn" target="_blank" style="color:#c0c0c0;">苏ICP备09011225号-11</a></p> + + <div class="dialog-w" style="display: none;"> + <div class="dia-content"> + <span></span> + </div> + </div> + <!-- 页脚 start --> + <div class="ft"> + <hr> + <p class="copyright"> + CopyRight © 2007-2016 南京新与力文化传播有限公司苏ICP备09011225号-11 + </p> </div> + <!-- 页脚 end -->l + <?php $this->_js('index.js', array( SITE_JS . '/lib/seajs.js', ));?> + <script type="text/javascript" src='<?php echo SITE_RES."/js/lib/seajs.js"?>'></script> <script type="text/javascript"> seajs.use('yohood',function(yohood){ yohood.layout(); }); +seajs.use(['jquery', 'channel'], function($, channel) { + channel.common(); + channel.index(); +}) </script> <?php $this->_block('js');?> <?php $this->_endblock();?> @@ -174,7 +214,6 @@ seajs.use('yohood',function(yohood){ } )(window,document,'script','//cdn.yoho.cn/yas-jssdk/1.0.6/yas.js','_yas');//第一个参数是版本,第二个参数是appkey,第三个是用户ID,第四个是是否获取地理位置传空就是不获取地理位置。 _yas(1*new Date(),'1.0','yohood_web','','geo'); -</script> +</script> </body> </html> - diff --git a/website/view/script/admin/activity/plan.php b/website/view/script/admin/activity/plan.php index 06fcad2..c9efa8c 100644 --- a/website/view/script/admin/activity/plan.php +++ b/website/view/script/admin/activity/plan.php @@ -1,81 +1,81 @@ -<?php $this->_extends('layout/admin_layout');?> -<?php $this->_block('main');?> -<h4><?php echo $this->view->topicInfo['title'];?>现场活动</h4> - -<table class="table"> -<caption style="text-align:left; padding-bottom:5px;"> - <button class="btn" id="create_activity_plan" style="float:left;" parent_id="<?php echo $this->view->topicInfo['id'];?>" - start_time="<?php echo $this->view->topicInfo['start_time'];?>" end_time="<?php echo $this->view->topicInfo['end_time'];?>"> - 添加现场活动 - </button> - </caption> - <thead> - <td>编号</td> - <td width="10%">活动时间</td> - <td>标题</td> - <td>图片</td> - <td width="15%">内容</td> - <td>操作</td> - </thead> - <?php foreach($this->view->plans as $plan):?> - <tr> - <td><?php echo $plan['id'];?></td> - <td><?php echo date('Y-m-d H:i:s', $plan['start_time']);?></td> - <td><?php echo $plan['title'];?></td> - <td><img src="<?php echo Lib_Images::getImageUrl($plan['pic'], '0200x0150','fragmentimg');?>" width="100" height="100" pic="<?php echo $plan['pic'];?>"/></td> - <td><?php echo $plan['content'];?></td> - <td> - <button class="btn edit_activity_plan">编辑</button> - <button class="btn btn-danger del_activity_plan" plan_id="<?php echo $plan['id'];?>">删除</button> - </td> - </tr> - <?php endforeach;?> -</table> - <div id="form_pan" admin="" style="display:none;"> - <table class="table table-bordered"> - <tbody> - <tr> - <td>标题 <span class="text-error"> * </span></td> - <td colspan="3"> - <input type="text" id="title" name="title"/> - <input type="hidden" id="id" name="id" value=""/> - </td> - </tr> - <tr> - <td>内容 <span class="text-error"> * </span</td> - <td> - <textarea rows="3" style="margin-left: 0px; margin-right: 0px; width:300px;" id="content" name="content"></textarea> - </td> - <td>图片(640xN)<span class="text-error"> * </span</td> - <td> - <span id="upload_pic" key="<?php echo $this->view->key?>"></span> - <button class="btn btn-info" type="button">上传</button> - <input type="hidden" id="pic_val" name="pic_val" /> - <img src="" id="img" width="100" height="100" /> - </td> - </tr> - <tr> - <td>活动时间<span class="text-error"> * </span></td> - <td colspan="3"> - <input value="" type="text" class="Wdate" name="start_time" id="start_time" title="点击选择时间"> - <span class="text-error"> - (<?php echo date('Y-m-d H:i:s', $this->view->topicInfo['start_time']).' -- '.date('Y-m-d H:i:s', $this->view->topicInfo['end_time']);?> ) - </span> - </td> - </tr> - </tbody> - </table> -</div> -<?php $this->_endblock();?> -<?php $this->_block('js');?> - -<?php $this->_js('feedback.js', array( - SITE_JS . '/lib/seajs.js', - SITE_JS . '/lib/ui/date/WdatePicker.js', -));?> -<script type="text/javascript"> -seajs.use('admin/activity',function(activity){ - activity.plan(); -}); -</script> +<?php $this->_extends('layout/admin_layout');?> +<?php $this->_block('main');?> +<h4><?php echo $this->view->topicInfo['title'];?>现场活动</h4> + +<table class="table"> +<caption style="text-align:left; padding-bottom:5px;"> + <button class="btn" id="create_activity_plan" style="float:left;" parent_id="<?php echo $this->view->topicInfo['id'];?>" + start_time="<?php echo $this->view->topicInfo['start_time'];?>" end_time="<?php echo $this->view->topicInfo['end_time'];?>"> + 添加现场活动 + </button> + </caption> + <thead> + <td>编号</td> + <td width="10%">活动时间</td> + <td>标题</td> + <td>图片</td> + <td width="15%">内容</td> + <td>操作</td> + </thead> + <?php foreach($this->view->plans as $plan):?> + <tr> + <td><?php echo $plan['id'];?></td> + <td><?php echo date('Y-m-d H:i:s', $plan['start_time']);?></td> + <td><?php echo $plan['title'];?></td> + <td><img src="<?php echo Lib_Images::getImageUrl($plan['pic'], '0200x0150','fragmentimg');?>" width="100" height="100" pic="<?php echo $plan['pic'];?>"/></td> + <td><?php echo $plan['content'];?></td> + <td> + <button class="btn edit_activity_plan">编辑</button> + <button class="btn btn-danger del_activity_plan" plan_id="<?php echo $plan['id'];?>">删除</button> + </td> + </tr> + <?php endforeach;?> +</table> + <div id="form_pan" admin="" style="display:none;"> + <table class="table table-bordered"> + <tbody> + <tr> + <td>标题 <span class="text-error"> * </span></td> + <td colspan="3"> + <input type="text" id="title" name="title"/> + <input type="hidden" id="id" name="id" value=""/> + </td> + </tr> + <tr> + <td>内容 <span class="text-error"> * </span></td> + <td> + <textarea rows="3" style="margin-left: 0px; margin-right: 0px; width:300px;" id="content" name="content"></textarea> + </td> + <td>图片(640xN)<span class="text-error"> * </span></td> + <td> + <span id="upload_pic" key="<?php echo $this->view->key?>"></span> + <button class="btn btn-info" type="button">上传</button> + <input type="hidden" id="pic_val" name="pic_val" /> + <img src="" id="img" width="100" height="100" /> + </td> + </tr> + <tr> + <td>活动时间<span class="text-error"> * </span></td> + <td colspan="3"> + <input value="" type="text" class="Wdate" name="start_time" id="start_time" title="点击选择时间"> + <span class="text-error"> + (<?php echo date('Y-m-d H:i:s', $this->view->topicInfo['start_time']).' -- '.date('Y-m-d H:i:s', $this->view->topicInfo['end_time']);?> ) + </span> + </td> + </tr> + </tbody> + </table> +</div> +<?php $this->_endblock();?> +<?php $this->_block('js');?> + +<?php $this->_js('feedback.js', array( + SITE_JS . '/lib/seajs.js', + SITE_JS . '/lib/ui/date/WdatePicker.js', +));?> +<script type="text/javascript"> +seajs.use('admin/activity',function(activity){ + activity.plan(); +}); +</script> <?php $this->_endblock();?> \ No newline at end of file diff --git a/website/view/script/admin/activity/plantopic.php b/website/view/script/admin/activity/plantopic.php index 7e9114a..2471710 100644 --- a/website/view/script/admin/activity/plantopic.php +++ b/website/view/script/admin/activity/plantopic.php @@ -1,77 +1,77 @@ -<?php $this->_extends('layout/admin_layout');?> -<?php $this->_block('main');?> -<h4>现场主题</h4> - -<table class="table"> -<caption style="text-align:left; padding-bottom:5px;"> - <button class="btn" id="create_activity_topic" style="float:left;"> - 添加现场主题 - </button> - </caption> - <thead> - <td>编号</td> - <td width="10%">开始时间</td> - <td width="10%">结束时间</td> - <td width="10%">区域</td> - <td>标题</td> - <td>操作</td> - </thead> - <?php foreach($this->view->topics as $topic):?> - <tr> - <td><?php echo $topic['id'];?></td> - <td><?php echo date('Y-m-d H:i:s', $topic['start_time']);?></td> - <td><?php echo date('Y-m-d H:i:s', $topic['end_time']);?></td> - <td><?php echo $topic['place'];?></td> - <td><?php echo $topic['title'];?></td> - <td> - <button class="btn edit_activity_topic">编辑</button> - <button class="btn join_activity_plan" topic_id="<?php echo $topic['id'];?>">添加现场活动</button> - <button class="btn btn-danger del_activity_topic" topic_id="<?php echo $topic['id'];?>">删除</button> - </td> - </tr> - <?php endforeach;?> - </table> -<?php $this->_component('Common_Pagination',array( - 'pagination' => $this->view->pagination,'show_count' =>true, - ));?> - - <div id="form_pan" admin="" style="display:none;"> - <table class="table table-bordered"> - <tbody> - <tr> - <td>标题 <span class="text-error"> * </span></td> - <td> - <input type="text" id="title" name="title"/> - <input type="hidden" id="id" name="id" value=""/> - </td> - <td>区域<span class="text-error"> * </span></td> - <td> - <input type="text" id="place" name="place"/> - </td> - </tr> - <tr> - <td>开始时间<span class="text-error"> * </span</td> - <td> - <input value="" type="text" class="Wdate" name="start_time" id="start_time" title="点击选择时间"> - </td> - <td>结束时间<span class="text-error"> * </span</td> - <td> - <input value="" type="text" class="Wdate" name="end_time" id="end_time" title="点击选择时间"> - </td> - </tr> - </tbody> - </table> -</div> -<?php $this->_endblock();?> -<?php $this->_block('js');?> - -<?php $this->_js('feedback.js', array( - SITE_JS . '/lib/seajs.js', - SITE_JS . '/lib/ui/date/WdatePicker.js', -));?> -<script type="text/javascript"> -seajs.use('admin/activity',function(activity){ - activity.topic(); -}); -</script> +<?php $this->_extends('layout/admin_layout');?> +<?php $this->_block('main');?> +<h4>现场主题</h4> + +<table class="table"> +<caption style="text-align:left; padding-bottom:5px;"> + <button class="btn" id="create_activity_topic" style="float:left;"> + 添加现场主题 + </button> + </caption> + <thead> + <td>编号</td> + <td width="10%">开始时间</td> + <td width="10%">结束时间</td> + <td width="10%">区域</td> + <td>标题</td> + <td>操作</td> + </thead> + <?php foreach($this->view->topics as $topic):?> + <tr> + <td><?php echo $topic['id'];?></td> + <td><?php echo date('Y-m-d H:i:s', $topic['start_time']);?></td> + <td><?php echo date('Y-m-d H:i:s', $topic['end_time']);?></td> + <td><?php echo $topic['place'];?></td> + <td><?php echo $topic['title'];?></td> + <td> + <button class="btn edit_activity_topic">编辑</button> + <button class="btn join_activity_plan" topic_id="<?php echo $topic['id'];?>">添加现场活动</button> + <button class="btn btn-danger del_activity_topic" topic_id="<?php echo $topic['id'];?>">删除</button> + </td> + </tr> + <?php endforeach;?> + </table> +<?php $this->_component('Common_Pagination',array( + 'pagination' => $this->view->pagination,'show_count' =>true, + ));?> + + <div id="form_pan" admin="" style="display:none;"> + <table class="table table-bordered"> + <tbody> + <tr> + <td>标题 <span class="text-error"> * </span></td> + <td> + <input type="text" id="title" name="title"/> + <input type="hidden" id="id" name="id" value=""/> + </td> + <td>区域<span class="text-error"> * </span></td> + <td> + <input type="text" id="place" name="place"/> + </td> + </tr> + <tr> + <td>开始时间<span class="text-error"> * </span></td> + <td> + <input value="" type="text" class="Wdate" name="start_time" id="start_time" title="点击选择时间"> + </td> + <td>结束时间<span class="text-error"> * </span></td> + <td> + <input value="" type="text" class="Wdate" name="end_time" id="end_time" title="点击选择时间"> + </td> + </tr> + </tbody> + </table> +</div> +<?php $this->_endblock();?> +<?php $this->_block('js');?> + +<?php $this->_js('feedback.js', array( + SITE_JS . '/lib/seajs.js', + SITE_JS . '/lib/ui/date/WdatePicker.js', +));?> +<script type="text/javascript"> +seajs.use('admin/activity',function(activity){ + activity.topic(); +}); +</script> <?php $this->_endblock();?> \ No newline at end of file diff --git a/website/view/script/admin/brand/index.php b/website/view/script/admin/brand/index.php index b855101..233e6dc 100644 --- a/website/view/script/admin/brand/index.php +++ b/website/view/script/admin/brand/index.php @@ -8,7 +8,7 @@ <a href="/admin/prod">商品列表</a> </li> </ul> -<table class="table"> +<table class="table" style="table-layout:fixed;"> <caption style="text-align:left; padding-bottom:5px;"> <button class="btn" style="float:left;" id="add_brand" href="javascript:void(0)">添加品牌</button> <form method="post" class="form-search search_panel" style="text-align:right;"> @@ -42,7 +42,7 @@ <td><?php echo $brand['id']?></td> <td><?php echo $brand['name'];?></td> <td title="<?php echo $brand['logo'];?>"><img width=40 height=30 src="<?php echo Lib_Images::getImageUrl($brand['logo'],'0200x0150','fragmentimg');?>" /></td> - <td><?php echo $brand['description'];?></td> + <td style="word-wrap:break-word;"><?php echo $brand['description'];?></td> <td title='<?php echo $brand['pics']?>'> <?php @@ -65,7 +65,7 @@ ?> </td> <td><?php echo $brand['booth_id'];?></td> - <td><?php echo isset($this->view->brandRelas[$id]) ? $this->view->brandRelas[$id]:'';?></td> + <td style="word-wrap:break-word;"><?php echo isset($this->view->brandRelas[$id]) ? $this->view->brandRelas[$id]:'';?></td> <td><a href="<?php echo $brand['link'];?>" target="_blank">前往</a></td> <td><?php echo $brand['seq'];?></td> <td> diff --git a/website/view/script/admin/news/create.php b/website/view/script/admin/news/create.php index e22c77d..c769711 100644 --- a/website/view/script/admin/news/create.php +++ b/website/view/script/admin/news/create.php @@ -26,13 +26,15 @@ a.btn <td colspan="2"> <select id="tag" name="tag"> <?php - $tags = array('品牌资讯', '现场活动','独家合作','主理人','明星','限量产品','票务','视频','专题');//'手机视频' + $tags = array('品牌资讯','活动介绍','亮点活动','限量商品');//'手机视频' foreach($tags as $tag) { echo sprintf('<option value="%s" %s>%s</option>', $tag, $tag == $this->view->info['tag'] ? 'selected':'', $tag); } ?> </select> + <input type="radio" name="is_video" value="0" checked>不包含视频 + <input type="radio" name="is_video" value="1" <?php if(isset($this->view->info['is_video'])&&$this->view->info['is_video']==1){echo "checked";}else{echo "";}?> >包含视频 </td> </tr> <tr> @@ -58,7 +60,7 @@ a.btn <div> <span id="upload_pic_list" key="<?php echo $this->view->key?>"></span> <button class="btn btn-info" type="button">上传多图</button> - <span class="text-error"> 标准尺寸:644x415[ 图片可以拖放顺序 ]</span> + <span class="text-error"> 标准尺寸:738*424px[ 图片可以拖放顺序 ]</span> </div> <div id="pic_list" style="padding-top:10px;"> <?php foreach($this->view->info['pics'] as $key => $pic):?> @@ -82,7 +84,7 @@ a.btn <td>网页版缩图</td> <td colspan="2"> <span id="upload_pic" key="<?php echo $this->view->key?>"></span> - <button class="btn btn-info" type="button">上传</button> (图片尺寸:308 x N) + <button class="btn btn-info" type="button">上传</button> (图片尺寸:342*218px) <input type="hidden" id="thumb" name="thumb" value="<?php echo $this->view->info['thumb']?>" /> <div id='picdiv'> <?php if ($this->view->info['thumb']):?> @@ -95,7 +97,7 @@ a.btn <td>客户端缩图</td> <td colspan="2"> <span id="client_upload_pic" key="<?php echo $this->view->key?>"></span> - <button class="btn btn-info" type="button">上传</button> (图片尺寸:640 x 400) + <button class="btn btn-info" type="button">上传</button> (图片尺寸:680*434px) <input type="hidden" id="client_thumb" name="client_thumb" value="<?php echo $this->view->info['client_thumb']?>" /> <div id='clientpicdiv'> <?php if ($this->view->info['client_thumb']):?> diff --git a/website/view/script/admin/news/index.php b/website/view/script/admin/news/index.php index 9b20594..83db3f0 100644 --- a/website/view/script/admin/news/index.php +++ b/website/view/script/admin/news/index.php @@ -1,91 +1,89 @@ -<?php $this->_extends('layout/admin_layout');?> -<?php $this->_block('main');?> -<div> -<h4 style="float: left;">资讯列表</h4> -<select name="tag" style="margin-left: 20px;margin-top:10px;width:150px;" id="choose_tag"> - <option value="" <?php '' == $this->view->tag ? 'selected':''?>>全部资讯</option> - <?php - $tags = array('品牌资讯', '现场活动','独家合作','主理人','明星','限量产品','票务','视频','专题');//'手机视频' - foreach($tags as $tag) - { - echo sprintf('<option value="%s" %s>%s</option>', $tag, $tag == $this->view->tag ? 'selected':'', $tag); - } - ?> - -</div> -</select> -<table class="table"> -<caption style="text-align:left; padding-bottom:5px;"> - <button class="btn" style="float:left;" onclick="location.href='<?php echo url('news/create',array('type' => $this->view->currentType))?>'"> - 添加资讯 - </button> - </caption> - <thead> - <td>资讯ID</td> - <td>标签</td> - <td>标题</td> - <td>内容</td> - <td>缩略图</td> - <td>客户端缩略图</td> - <td>浏览量</td> - <td>排序(值越大,排序越靠前)</td> - <td>创建时间</td> - <td>操作</td> - </thead> - <?php if (empty($this->view->list)) :?> - <tr><td colspan="10" style="text-align: center">无记录</td></tr> - <?php else :?> - - <?php foreach ($this->view->list as $feedback) :?> - <tr> - <td><?php echo $feedback['id'];?></td> - <td><?php echo $feedback['tag']?></td> - <td title="<?php echo $feedback['title'];?>"><?php echo trim($feedback['title']);?></td> - <td title="<?php echo $feedback['content'];?>"><?php echo $feedback['content']?></td> - <td> - <?php if ($feedback['thumb']):?> - <img width="80" height="60" src="<?php echo $feedback['thumb']?>"/> - <?php else:?> - 暂无缩略图 - <?php endif ;?> - - </td> - <td> - <?php if ($feedback['client_thumb']):?> - <img width="80" height="60" src="<?php echo $feedback['client_thumb']?>"/> - <?php else:?> - 暂无缩略图 - <?php endif ;?> - </td> - <td><?php echo $feedback['hits']?></td> - <td><?php echo $feedback['sort'];?></td> - <td><?php echo date('Y-m-d H:i:s', $feedback['create_time']);?></td> - <td> - <button class="btn look" onclick="location.href='<?php echo url('news/create',array('id' => $feedback['id']))?>'" >查看</button> - <button type="submit" class="btn btn-danger del" href="<?php echo url('news/del',array('id' => $feedback['id']))?>">删除</button> - </td> - </tr> - <?php endforeach;?> - <?php endif;?> -</table> -<?php $this->_component('Common_Pagination',array( - 'pagination' => $this->view->pagination,'show_count' =>true, - ));?> - - -<div> - - -<?php $this->_endblock();?> - -<?php $this->_block('js');?> -<?php $this->_js('feedback.js', array( - SITE_JS . '/lib/seajs.js', -));?> - -<script type="text/javascript" src="<?php echo SITE_JS?>/lib/ui/date/WdatePicker.js"></script> - -<script type="text/javascript"> -seajs.use('admin/news'); -</script> -<?php $this->_endblock();?> +<?php $this->_extends('layout/admin_layout');?> +<?php $this->_block('main');?> +<div> +<h4 style="float: left;">资讯列表</h4> +<select name="tag" style="margin-left: 20px;margin-top:10px;width:150px;" id="choose_tag"> + <option value="" <?php '' == $this->view->tag ? 'selected':''?>>全部资讯</option> + <?php + $tags = array('品牌资讯', '活动介绍','亮点活动','限量商品');//'手机视频' + foreach($tags as $tag) + { + echo sprintf('<option value="%s" %s>%s</option>', $tag, $tag == $this->view->tag ? 'selected':'', $tag); + } + ?> + +</div> +</select> +<table class="table"> +<caption style="text-align:left; padding-bottom:5px;"> + <button class="btn" style="float:left;" onclick="location.href='<?php echo url('news/create',array('type' => $this->view->currentType))?>'"> + 添加资讯 + </button> + </caption> + <thead> + <td>资讯ID</td> + <td>标签</td> + <td>标题</td> + <td>内容</td> + <td>缩略图</td> + <td>客户端缩略图</td> + <td>浏览量</td> + <td>排序(值越大,排序越靠前)</td> + <td>创建时间</td> + <td>操作</td> + </thead> + <?php if (empty($this->view->list)) :?> + <tr><td colspan="10" style="text-align: center">无记录</td></tr> + <?php else :?> + + <?php foreach ($this->view->list as $feedback) :?> + <tr> + <td><?php echo $feedback['id'];?></td> + <td><?php echo $feedback['tag']?></td> + <td title="<?php echo $feedback['title'];?>"><?php echo trim($feedback['title']);?></td> + <td title="<?php echo $feedback['content'];?>"><?php echo $feedback['content']?></td> + <td> + <?php if ($feedback['thumb']):?> + <img width="80" height="60" src="<?php echo $feedback['thumb']?>"/> + <?php else:?> + 暂无缩略图 + <?php endif ;?> + + </td> + <td> + <?php if ($feedback['client_thumb']):?> + <img width="80" height="60" src="<?php echo $feedback['client_thumb']?>"/> + <?php else:?> + 暂无缩略图 + <?php endif ;?> + </td> + <td><?php echo $feedback['hits']?></td> + <td><?php echo $feedback['sort'];?></td> + <td><?php echo date('Y-m-d H:i:s', $feedback['create_time']);?></td> + <td> + <button class="btn look" onclick="location.href='<?php echo url('news/create',array('id' => $feedback['id']))?>'" >查看</button> + <button type="submit" class="btn btn-danger del" href="<?php echo url('news/del',array('id' => $feedback['id']))?>">删除</button> + </td> + </tr> + <?php endforeach;?> + <?php endif;?> +</table> +<?php $this->_component('Common_Pagination',array( + 'pagination' => $this->view->pagination,'show_count' =>true, + ));?> + + + +<?php $this->_endblock();?> + +<?php $this->_block('js');?> +<?php $this->_js('feedback.js', array( + SITE_JS . '/lib/seajs.js', +));?> + +<script type="text/javascript" src="<?php echo SITE_JS?>/lib/ui/date/WdatePicker.js"></script> + +<script type="text/javascript"> +seajs.use('admin/news'); +</script> +<?php $this->_endblock();?> diff --git a/website/view/script/admin/onlinereg/download.php b/website/view/script/admin/onlinereg/download.php new file mode 100644 index 0000000..0138d6d --- /dev/null +++ b/website/view/script/admin/onlinereg/download.php @@ -0,0 +1,138 @@ +<?php $this->_extends('layout/admin_layout');?> +<?php $this->_block('main');?> +<?php if($this->view->type == 0):?> +<h4>参展商手册</h4> +<table class="table" type="<?php echo $this->view->type;?>"> +<caption style="text-align:left; padding-bottom:5px;"> + <button class="btn" id="create_download_info" style="float:left;"> + 添加参展商手册 + </button> + </caption> + <thead> + <td width="10%">编号</td> + <td width="10%">参展商名称</td> + <td width="20%">图片</td> + <td width="20%">日期</td> + <td>操作</td> + </thead> + <?php foreach ($this->view->list as $download):?> + <tr> + <td><?php echo $download['id']?></td> + <td><?php echo $download['title']?></td> + <td><img alt="" src="<?php echo $download['cover']?>" width="200" height="200"></td> + <td><?php echo date('Y-m-d H:i:s', $download['create_time']);?></td> + <td> + <button class="btn btn-success modify" download_id="<?php echo $download['id']?>">修改</button> + <button class="btn btn-danger del" download_id="<?php echo $download['id']?>">删除</button> + </td> + </tr> + <?php endforeach;?> +</table> + <div id="form_pan" admin="" style="display:none;"> + <table class="table table-bordered"> + <tbody> + <tr> + <td>名称<span class="text-error"> * </span></td> + <td colspan="3"> + <input type="text" id="title" name="title"/> + <input type="hidden" name="download_id" id="download_id" value="0"/> + </td> + </tr> + <tr> + <td>封面图(279x396)<span class="text-error"> * </span></td> + <td> + <span id="upload_pic" key="<?php echo $this->view->key?>"></span> + <button class="btn btn-info" type="button">上传</button> + <div id="picdiv"></div> + </td> + </tr> + <tr> + <td>文件上传<span class="text-error"> * </span></td> + <td> + <span id="upload_file" key="<?php echo $this->view->key?>"></span> + <button class="btn btn-info" type="button">上传</button> + <div id="filediv"></div> + </td> + </tr> + </tbody> + </table> +</div> + +<?php else:?> + +<table class="table" type="<?php echo $this->view->type;?>"> +<caption style="text-align:left; padding-bottom:5px;"> + <button class="btn" id="create_download_info" style="float:left;"> + 添加新闻稿 + </button> + </caption> + <thead> + <td width="10%">编号</td> + <td width="10%">媒体稿</td> + <td width="20%">来源</td> + <td width="20%">日期</td> + <td>操作</td> + </thead> + <?php foreach ($this->view->list as $download):?> + <tr> + <td><?php echo $download['id']?></td> + <td><?php echo $download['title']?></td> + <td><?php echo $download['source']?></td> + <td><?php echo date('Y-m-d H:i:s', $download['create_time']);?></td> + <td> + <button class="btn btn-success modify" download_id="<?php echo $download['id']?>">修改</button> + <button class="btn btn-danger del" download_id="<?php echo $download['id']?>">删除</button> + </td> + </tr> + <?php endforeach;?> +</table> + <div id="form_pan" admin="" style="display:none;"> + <table class="table table-bordered"> + <tbody> + <tr> + <td>名称<span class="text-error"> * </span></td> + <td colspan="3"> + <input type="text" id="title" name="title"/> + <input type="hidden" id="download_id" name="download_id" value="0"/> + </td> + </tr> + <tr> + <td>来源<span class="text-error"> * </span></td> + <td colspan="3"> + <input type="text" id="source" name="source"/> + </td> + </tr> + <tr> + <td>来源链接:<span class="text-error"> * </span></td> + <td colspan="3"> + <input type="text" id="source_link" name="source_link"/> + </td> + </tr> + <tr> + <td>文件上传<span class="text-error"> * </span></td> + <td> + <span id="upload_file" key="<?php echo $this->view->key?>"></span> + <button class="btn btn-info" type="button">上传</button> + <div id="filediv"></div> + </td> + </tr> + </tbody> + </table> +</div> +<?php endif;?> + +<?php $this->_component('Common_Pagination',array( + 'pagination' => $this->view->pagination,'show_count' =>true, + ));?> +<?php $this->_endblock();?> +<?php $this->_block('js');?> + +<?php $this->_js('feedback.js', array( + SITE_JS . '/lib/seajs.js', +));?> +<script type="text/javascript"> +seajs.use('admin/onlinereg',function(onlinereg){ + onlinereg.download(); +}); +</script> +<?php $this->_endblock();?> \ No newline at end of file diff --git a/website/view/script/admin/onlinereg/index.php b/website/view/script/admin/onlinereg/index.php new file mode 100644 index 0000000..5f4577c --- /dev/null +++ b/website/view/script/admin/onlinereg/index.php @@ -0,0 +1,335 @@ +<?php $this->_extends('layout/admin_layout');?> +<?php $this->_block('main');?> +<ul class="nav nav-tabs" type="<?php echo $this->view->type;?>"> + <li <?php echo $this->view->type == 0 ? 'class="active"' :''; ?> > + <a href="/admin/onlinereg/index">参展商登记</a> + </li> + <li <?php echo $this->view->type == 1 ? 'class="active"' :''; ?>> + <a href="/admin/onlinereg/index/type/1">赞助商登记</a> + </li> + <li <?php echo $this->view->type == 2 ? 'class="active"' :''; ?>> + <a href="/admin/onlinereg/index/type/2">媒体登记</a> + </li> +</ul> +<?php if($this->view->type == 0)://参展商登记?> + +<table class="table"> +<caption style="text-align:left; padding-bottom:5px;"> + <button class="btn" style="float:left;" onclick="location.href='/admin/onlinereg/download/type/0';">查看参展商手册</button> + <button class="btn batch_export" style="margin-left:100px">批量导出</button> +</caption> + <thead> + <td width="5%"> <input type="checkbox" id="all_check" /> 选择</td> + <td width="5%">ID</td> + <td width="5%">品牌名称</td> + <td width="5%">类型</td> + <td width="5%">联系人</td> + <td width="5%">电话</td> + <td width="5%">创建时间</td> + <td width="10%">操作</td> + </thead> + <?php foreach($this->view->list as $seller):?> + <tr> + <td><input type="checkbox" seller_id="<?php echo $seller['id']?>"></td> + <td><?php echo $seller['id']?></td> + <td><?php echo $seller['name']?></td> + <td><?php echo $this->view->sellerTypes[$this->view->type];?></td> + <td><?php echo $seller['contact']?></td> + <td><?php echo $seller['telphone']?></td> + <td><?php echo date('Y-m-d H:i:s', $seller['create_time']);?></td> + <td> + <button class="btn look" seller_id="<?php echo $seller['id']?>">查看</button> + <button class="btn btn-danger export" onclick="location.href='/admin/onlinereg/export?id=<?php echo $seller['id']?>';">导出</button> + </td> + </tr> + <?php endforeach;?> +</table> + + <div id="form_pan" admin="" style="display:none;"> + <table class="table table-bordered"> + <tbody> + <tr> + <td>品牌名称<span class="text-error"> * </span></td> + <td><input type="text" name="name"/></td> + </tr> + <tr> + <td>是否品牌入驻有货<span class="text-error"> * </span></td> + <td> + <select id="is_enter_yohobuy" name="is_enter_yohobuy"> + <option value="0">否</option> + <option value="1">是</option> + </select> + </td> + </tr> + <tr> + <td>品牌注册<span class="text-error"> * </span></td> + <td> + <select id="brand_reg_type" name="brand_reg_type"> + <option value="0">未注册</option> + <option value="1">已注册</option> + <option value="2">已申请</option> + </select> + </td> + </tr> + <tr> + <td>公司名称</td> + <td><input type="text" name="company" /></td> + </tr> + <tr> + <td>联系人<span class="text-error"> * </span></td> + <td><input type="text" name="contact" /></td> + </tr> + <tr> + <td>电话<span class="text-error"> * </span></td> + <td><input type="text" name="telphone" /></td> + </tr> + <tr> + <td>邮箱</td> + <td><input type="text" name="email" /></td> + </tr> + <tr> + <td>公司与品牌关系<span class="text-error"> * </span></td> + <td> + <select id="relation" name="relation"> + <option value="0">品牌商</option> + <option value="1">代理商</option> + <option value="2">经销商</option> + <option value="3">其他</option> + </select> + </td> + </tr> + <tr> + <td>商品所在地<span class="text-error"> * </span></td> + <td><input type="text" name="place" /></td> + </tr> + <tr> + <td>是否具有3C凭证<span class="text-error"> * </span></td> + <td> + <select id="is_3c" name="is_3c"> + <option value="0">否</option> + <option value="1">是</option> + </select> + </td> + </tr> + <tr> + <td>品牌官网</td> + <td><input type="text" name="website" /></td> + </tr> + <tr> + <td>品牌资料</td> + <td> + <div id="download_list"></div> + </td> + </tr> + </tbody> + </table> +</div> + + +<?php elseif($this->view->type == 1)://赞助商登记?> + +<table class="table"> + <caption style="text-align:left; padding-bottom:5px;"> + <button class="btn batch_export" style="float:left;">批量导出</button> + </caption> + <thead> + <td width="5%"> <input type="checkbox" id="all_check" /> 选择</td> + <td width="5%">ID</td> + <td width="5%">品牌名称</td> + <td width="5%">产品类型</td> + <td width="5%">类型</td> + <td width="5%">联系人</td> + <td width="5%">电话</td> + <td width="5%">时间</td> + <td width="10%">操作</td> + </thead> + <?php foreach($this->view->list as $seller):?> + <tr> + <td><input type="checkbox" seller_id="<?php echo $seller['id']?>"></td> + <td><?php echo $seller['id']?></td> + <td><?php echo $seller['name']?></td> + <td width="15%"><?php echo $seller['product_type']?></td> + <td><?php echo $this->view->sellerTypes[$this->view->type];?></td> + <td><?php echo $seller['contact']?></td> + <td><?php echo $seller['telphone']?></td> + <td><?php echo date('Y-m-d H:i:s', $seller['create_time']);?></td> + <td> + <button class="btn look" seller_id="<?php echo $seller['id']?>">查看</button> + <button class="btn btn-danger export" onclick="location.href='/admin/onlinereg/export?id=<?php echo $seller['id']?>';">导出</button> + </td> + </tr> + <?php endforeach;?> +</table> + + <div id="form_pan" admin="" style="display:none;"> + <table class="table table-bordered"> + <tbody> + <tr> + <td>品牌名称<span class="text-error"> * </span></td> + <td><input type="text" name="name"/></td> + </tr> + <tr> + <td>是否品牌入驻有货<span class="text-error"> * </span></td> + <td> + <select id="is_enter_yohobuy" name="is_enter_yohobuy"> + <option value="0">否</option> + <option value="1">是</option> + </select> + </td> + </tr> + <tr> + <td>产品类型</td> + <td><input type="text" name="product_type" /></td> + </tr> + <tr> + <td>所属国家</td> + <td><input type="text" name="country" /></td> + </tr> + <tr> + <td>公司名称</td> + <td><input type="text" name="company" /></td> + </tr> + <tr> + <td>公司地址</td> + <td><input type="text" name="place" /></td> + </tr> + <tr> + <td>联系人<span class="text-error"> * </span></td> + <td><input type="text" name="contact" /></td> + </tr> + <tr> + <td>电话<span class="text-error"> * </span></td> + <td><input type="text" name="telphone" /></td> + </tr> + <tr> + <td>邮箱</td> + <td><input type="text" name="email" /></td> + </tr> + <tr> + <td>品牌官网</td> + <td><input type="text" name="website" /></td> + </tr> + <tr> + <td>品牌资料</td> + <td> + <div id="download_list"></div> + </td> + </tr> + </tbody> + </table> +</div> + + + +<?php elseif($this->view->type == 2)://媒体登记?> + +<table class="table"> +<caption style="text-align:left; padding-bottom:5px;"> + <button class="btn" style="float:left;" onclick="location.href='/admin/onlinereg/download/type/1';">查看新闻稿</button> + <button class="btn batch_export" style="margin-left:100px">批量导出</button> +</caption> + <thead> + <td width="5%"><input type="checkbox" id="all_check" /> 选择</td> + <td width="5%">ID</td> + <td width="5%">姓名</td> + <td width="5%">类型</td> + <td width="6%">手机号</td> + <td width="6%">媒体名</td> + <td width="7%">创建时间</td> + <td width="12%">操作</td> + </thead> + <?php foreach($this->view->list as $seller):?> + <tr> + <td><input type="checkbox" seller_id="<?php echo $seller['id']?>"></td> + <td><?php echo $seller['id']?></td> + <td><?php echo $seller['name']?></td> + <td><?php echo $this->view->sellerTypes[$this->view->type];?></td> + <td><?php echo $seller['mobile']?></td> + <td><?php echo $seller['company']?></td> + <td><?php echo date('Y-m-d H:i:s', $seller['create_time']);?></td> + <td> + <button class="btn look" seller_id="<?php echo $seller['id']?>">查看</button> + <button class="btn btn-danger export" onclick="location.href='/admin/onlinereg/export?id=<?php echo $seller['id']?>';">导出</button> + </td> + </tr> + <?php endforeach;?> +</table> + + <div id="form_pan" admin="" style="display:none;"> + <table class="table table-bordered"> + <tbody> + <tr> + <td>姓名<span class="text-error"> * </span></td> + <td><input type="text" name="name"/></td> + </tr> + <tr> + <td>职位</td> + <td><input type="text" name="profession" /></td> + </tr> + <tr> + <td>性别</td> + <td> + <select id="sex" name="sex"> + <option value="1">男</option> + <option value="0">女</option> + </select> + </td> + </tr> + <tr> + <td>媒体名/公司名</td> + <td><input type="text" name="company" /></td> + </tr> + <tr> + <td>介绍</td> + <td><input type="text" name="introduction" /></td> + </tr> + <tr> + <td>官网地址</td> + <td><input type="text" name="website" /></td> + </tr> + <tr> + <td>所在城市</td> + <td><input type="text" name="city" /></td> + </tr> + <tr> + <td>邮箱</td> + <td><input type="text" name="email" /></td> + </tr> + <tr> + <td>手机<span class="text-error"> * </span></td> + <td><input type="text" name="mobile" /></td> + </tr> + <tr> + <td>座机</td> + <td><input type="text" name="telphone" /></td> + </tr> + <tr> + <td>固定地址</td> + <td><input type="text" name="place" /></td> + </tr> + <tr> + <td>邮编</td> + <td><input type="text" name="zipcode" /></td> + </tr> + </tbody> + </table> +</div> + +<?php endif;?> +<?php $this->_component('Common_Pagination',array( + 'pagination' => $this->view->pagination,'show_count' =>true, + ));?> + +<?php $this->_endblock();?> +<?php $this->_block('js');?> + +<?php $this->_js('feedback.js', array( + SITE_JS . '/lib/seajs.js', +));?> + +<script type="text/javascript"> +seajs.use('admin/onlinereg',function(onlinereg){ + onlinereg.index(); +}); +</script> +<?php $this->_endblock();?> \ No newline at end of file diff --git a/website/view/script/brand/detail.php b/website/view/script/brand/detail.php index cbe5b93..c087a01 100644 --- a/website/view/script/brand/detail.php +++ b/website/view/script/brand/detail.php @@ -8,16 +8,19 @@ <p> <?php echo $this->view->info['description'];?> </p> + + </div> + <div> <a href="<?php echo $this->view->info['link'];?>" target="_blank">进入品牌店铺</a> </div> </div> <a href="javascript:;" class="brand-close-btn iconfont"></a> <?php if(!empty($this->view->news)):?> - <div class="related-post"> + <div class="related-post brand-related-post"> <h3>相关资讯</h3> - <?php foreach($this->view->news as $val):?> - <div class="post-list main-layout"> - <div class="layout-item tiled"> + <div class="post-list main-layout clearfix"> + <?php foreach($this->view->news as $val):?> + <div class="layout-item tiled clearfix"> <div class="image-box"> <a href="<?php echo url('news/detail',array('id' => $val['id']))?>" title="<?php echo Lib_Utils_StringHelper::stripTags($val['title']);?>" target="_blank"> <img src="<?php echo Lib_Images::getImageUrl($val['thumb'],'0230x0130','fragmentimg', 'thumbnail');?>" alt=""> @@ -27,15 +30,16 @@ </a> </div> <div class="content"> - <h2 <?php echo $val['main_title_type'] == 1 ? 'class="volupia"':'';?>> + <h2 class="volupia"> <a href="<?php echo url('news/detail',array('id' => $val['id']))?>" target="_blank"> <?php echo Util_StringHelper::substr_cn($val['title'], 46);?> </a> </h2> + <p class="time" style="font-style:italic;margin-top:5px"><?php $en = array('01'=>'January','02'=>'February','03'=>'March','04'=>'April','05'=>'May','06'=>'June','07'=>'July','08'=>'August','09'=>'September','10'=>'October','11'=>'November','12'=>'December');$m=date('m', $val['create_time']);echo $en[$m]?> <?php ECHO $m=date('d.Y', $val['create_time'])?></p> </div> </div> + <?php endforeach;?> </div> - <?php endforeach;?> </div> <?php endif;?> </div> \ No newline at end of file diff --git a/website/view/script/brand/index.php b/website/view/script/brand/index.php index 627d7ad..284559d 100644 --- a/website/view/script/brand/index.php +++ b/website/view/script/brand/index.php @@ -1,30 +1,33 @@ <?php $this->_extends('layout/default_layout');?> <?php $this->_block('main');?> <?php if(!empty($this->view->banners)):?> - <div class="slide-main brand-slide"> - <div class="slide-box"> - <div class="slide-wrap clearfix"> - <?php foreach($this->view->banners as $banner):?> - <div class="box"> - <a href="<?php echo $banner['url'];?>" target="_blank" title="<?php echo $banner['text'];?>"> - <img src="<?php echo Lib_Images::getImageUrl($banner['res'],'0980x0474','fragmentimg');?>" alt=""/> - </a> - </div> - <?php endforeach;?> - </div> - </div> - <div class="slide-navigator"> - <div class="dib clearfix"> - <?php if (count($this->view->banners)> 0):?> - <?php echo '<a href="javascript:;" class="on"></a>'.str_repeat('<a href="javascript:;"></a>', count($this->view->banners) - 1);?> - <?php endif;?> - </div> - </div> - <div class="slide-control"> - <a class="slide-prev iconfont" href="javascript:void(0);"></a> - <a class="slide-next iconfont" href="javascript:void(0);"></a> - </div> - </div> +<div class="bd"> + <div class="slide-main clearfix"> + <div class="left-overlay"></div> + <div class="slide-box-warp"> + <div class="slide-box"> + <div class="slide-wrap clearfix"> + <?php foreach($this->view->banners as $banner):?> + <div class="box"> + <a href="<?php echo $banner['url'];?>" target="_blank" title="<?php echo $banner['text'];?>"> + <img src="<?php echo Lib_Images::getImageUrl($banner['res'],'1180x0580','fragmentimg');?>" alt=""/> + </a> + </div> + <?php endforeach;?> + </div> + </div> + <div class="slide-navigator"> + <div class="dib clearfix"> + <?php echo '<a href="javascript:;" class="on"></a>'.str_repeat('<a href="javascript:;"></a>', count($this->view->banners) - 1);?> + </div> + </div> + <div class="slide-control"> + <a class="slide-prev iconfont-new" href="javascript:void(0);"></a> + <a class="slide-next iconfont-new" href="javascript:void(0);"></a> + </div> + </div> + <div class="right-overlay"></div> + </div> <?php endif;?> <div class="brand-main"> <?php if($this->view->brandTotal):?> @@ -38,18 +41,18 @@ </ul> </div> <?php else: //不存在,显示coming soon?> - <img src="<?php echo SITE_RES.'/images/yohood/comingsoon.jpg';?>" style="width:100%;"/> + <img src="<?php echo SITE_RES.'/images/yohood/comingsoon.jpg';?>" style="width:100%;"/> <?php endif;?> </div> <div id="brand_detail"> </div> -<div class="overlay"></div> +<div class="overlay"></div> <?php $this->_endblock();?> <?php $this->_block('js');?> <script type="text/javascript"> seajs.use('yohood',function(yohood){ yohood.brand(); - }) + }); </script> <?php $this->_endblock();?> diff --git a/website/view/script/default/contactus.php b/website/view/script/default/contactus.php index 25db7a8..c9aea3a 100644 --- a/website/view/script/default/contactus.php +++ b/website/view/script/default/contactus.php @@ -1,40 +1,86 @@ <?php $this->_extends('layout/default_layout');?> <?php $this->_block('main');?> -<div class="contact-us"> - <div class="contact-us-section"> - <h2>客户服务:</h2> - <p>Email:wen@yoho.cn</p> - </div> - <div class="contact-us-section"> - <p>-</p> - <h2>广告服务:</h2> - <p>北京:010-85253558-814</p> - <p>上海:021-51001909-8005</p> - <p>广州:020-83831060/83777600-811</p> - <p>Email:niki.li@yoho.cn</p> - </div> - <div class="contact-us-section"> - <p>-</p> - <h2>市场合作:</h2> - <p>上海:021-51001909-8013</p> - <p>Email:marketing@yoho.cn</p> - </div> - <div class="contact-us-section"> - <p>-</p> - <h2>网站合作:</h2> - <p>Email:community@yoho.cn</p> - </div> - <div class="contact-us-section"> - <p>-</p> - <h2>有货品牌合作:</h2> - <p>上海:021-51001909-8007</p> - <p>广州:020-83831060/83777600</p> - <p>Email:yhpp@yoho.cn</p> - </div> - <div class="contact-us-section"> - <p>-</p> - <h2>有货市场推广:</h2> - <p>Email:haizheng.zhao@yoho.cn</p> - </div> - </div> + <div class="bd"> + <div class="contact-us-wrap clearfix"> + <!-- 联系我们 start --> + <div class="info-list contact-us-info"> + <h1 class="info-title contact-us-title">联系我们</h1> + <div class="info-section contact-us-section"> + <h2>客户服务:</h2> + <p>电话:4008899646(工作日9:00-22:30)</p> + <p>EMAIL:service@yoho.cn</p> + </div> + <div class="info-section contact-us-section"> + <h2>广告服务:</h2> + <p>北京:(+86)10 56312657</p> + <p>上海:(+86)21 51698833*8005</p> + <p>广州:(+86)83831060</p> + <p>EMAIL:advertising@yoho.cn</p> + </div> + <div class="info-section contact-us-section"> + <h2>市场合作:</h2> + <p>北京:(+86)10 56312548</p> + <p>上海:(+86)21 51698833*8013</p> + <p>EMAIL:marketing@yoho.cn</p> + </div> + <div class="info-section contact-us-section"> + <h2>网站合作:</h2> + <p>EMAIL:community@yoho.cn</p> + </div> + <div class="info-section contact-us-section"> + <h2>有货品牌合作:</h2> + <p>上海:(+86)21 51698833*8007</p> + <p>广州:(+86)20 83831060</p> + <p>EMAIL:brands@yoho.cn</p> + </div> + <div class="info-section contact-us-section"> + <h2>有货市场推广:</h2> + <p>EMAIL:haizheng.zhao@yoho.cn</p> + </div> + <div class="info-section contact-us-section"> + <h2>南京新与力文化传播有限公司:</h2> + <p>地址:南京市建邺区嘉陵江东街18号国家广告产业园5栋17,18楼</p> + <p>邮编:210017</p> + <p>电话:(+86)25 87781000</p> + <p>传真:(+86)25 87781155</p> + </div> + <div class="info-section contact-us-section"> + <h2>南京新与力文化传播有限公司北京分公司:</h2> + <p>地址:北京市朝阳区朝阳门外大街16号中国人寿大厦901室</p> + <p>邮编:100020</p> + <p>电话:(+86)10 56312400</p> + </div> + <div class="info-section contact-us-section"> + <h2>南京新与力文化传播有限公司上海分公司:</h2> + <p>地址:上海市徐汇区富民路291号悟锦世纪大厦801室</p> + <p>邮编:200040</p> + <p>电话:(+86)21 51698833</p> + </div> + <div class="info-section contact-us-section"> + <h2>南京新与力文化传播有限公司广州分公司:</h2> + <p>地址:广州市天河区林和西路157号保利中汇大厦A座602室</p> + <p>邮编:510610</p> + <p>电话:(+86)20 83777600</p> + </div> + </div> + <!-- 联系我们 end --> + <!-- 公众号信息 start --> + <div class="info-list public-number-info"> + <h1 class="info-title public-number-title">在这可以找到我们</h1> + <div class="info-section public-number-section"> + <h2>新浪微博</h2> + <p>@YOHO有货</p> + </div> + <div class="info-section public-number-section"> + <h2>微信公众平台</h2> + <p>"yohobuy4008899646"</p> + </div> + <div class="info-section public-number-section"> + <h2>或者扫描下面的二维码</h2> + <img src="http://img01.yohoboys.com/contentimg/2016/04/14/14/01ec39b105d11227f87311782c2795ede9.jpg" src="http://cmsimg01.qiniudn.com/contentimg/2015/05/04/10/014aba20f78c3417e86b1b83b894a13f53.jpg" alt="微信公众号二维码"> + </div> + </div> + <!-- 公众号信息 end --> + </div> + </div> <?php $this->_endblock();?> \ No newline at end of file diff --git a/website/view/script/default/index.php b/website/view/script/default/index.php index f30654d..bb566ee 100644 --- a/website/view/script/default/index.php +++ b/website/view/script/default/index.php @@ -1,57 +1,69 @@ <?php $this->_extends('layout/default_layout');?> <?php $this->_block('main');?> - <div class="slide-main"> - <div class="slide-box"> + <div class="slide-main clearfix"> + <div class="left-overlay"></div> + <div class="slide-box-warp"> + <div class="slide-box"> <div class="slide-wrap clearfix"> <?php foreach($this->view->banners as $banner):?> <div class="box"> <a href="<?php echo $banner['url'];?>" target="_blank" title="<?php echo $banner['text'];?>"> - <img src="<?php echo Lib_Images::getImageUrl($banner['res'],'0980x0474','fragmentimg');?>" alt=""/> + <img src="<?php echo Lib_Images::getImageUrl($banner['res'],'1180x0500','fragmentimg');?>" alt=""/> </a> </div> <?php endforeach;?> </div> - </div> - <div class="slide-navigator"> - <div class="dib clearfix"> - <?php echo '<a href="javascript:;" class="on"></a>'.str_repeat('<a href="javascript:;"></a>', count($this->view->banners) - 1);?> + </div> + <?php if(count($this->view->banners)>1){?> + <div class="slide-navigator"> + <div class="dib clearfix"> + <?php echo '<a href="javascript:;" class="on"></a>'.str_repeat('<a href="javascript:;"></a>', count($this->view->banners) - 1);?> + </div> + </div> + <?php }?> + <div class="slide-control"> + <a class="slide-prev iconfont-new" href="javascript:void(0);"></a> + <a class="slide-next iconfont-new" href="javascript:void(0);"></a> </div> </div> - <div class="slide-control"> - <a class="slide-prev iconfont" href="javascript:void(0);"></a> - <a class="slide-next iconfont" href="javascript:void(0);"></a> - </div> + <div class="right-overlay"></div> </div> <div class="content-wrap clearfix"> <div class="fluid-list"> - <div class="fluid-list-inner main-layout clearfix" id="img_flow"> - <?php + <div id="index_content" class="fluid-list-inner main-layout clearfix" id="img_flow"> + <?php $this->_widget('news_list', array('list'=> $this->view->news)); - ?> + ?> </div> <div id="pageContent" style="text-align: center;" class="pagination"> <?php $this->_component('Common_Pagination',array( - 'pagination' => $this->view->pagination,'next_label' => '>>','prev_label' => '<<','current_class' => 'current', + 'pagination' => $this->view->pagination,'next_label' => 'NEXT >','next_class' => 'next','prev_label' => 'PREV <','prev_class' => 'prev','current_class' => 'current', 'page_class'=>'pagination-inner', 'id'=>'img_page' ));?> </div> </div> </div> <?php if(count($this->view->partnerList)):?> - <div class="cooperation clearfix"> - <div class="cooperation-slide-box"> - <div class="slide-wrap clearfix"> - <?php +<!-- 合作商等信息滑动条 start --> +<div class="cooperation clearfix"> + <div class="cooperation-slide-warp"> + <div class="cooperation-slide-box"> + <div class="slide-wrap clearfix"> + <?php $partnerGroups = array(); foreach($this->view->partnerList as $partner) { - foreach($this->view->partnerTypes as $key => $type) - { - if($partner['type'] == $key) - { - $partnerGroups[$type][] = $partner; - } - } + foreach($this->view->partnerTypes as $key => $type) + { + // echo $key; + // echo $type; + // echo $partner['type']; + if($partner['type'] == $key) + { + $partnerGroups[$type][] = $partner; + // echo $partner; + } + } } $groupNum = 0; $groupLen = 0; @@ -61,94 +73,129 @@ { foreach ($group as $key => $partner) { + // echo $partner['name']; $pic = Lib_Images::getImageUrl($partner['pic'], 'source','fragmentimg'); - $html.= <<<EOL + $html.= <<<EOL <li> <a href="{$partner['url']}" title="{$partner['name']}" target="_blank"> - <img src="{$pic}" alt="" style="width:70px;"/> + <img src="{$pic}" alt=""/> </a> - </li> + </li> EOL; - $groupLen ++; - if($groupLen>= 6) - { - $templates[] ='<div class="{class}"><h2>'.$type.'</h2><ul class="clearfix">'.$html.'</ul></div>'; - $html = ''; - $groupLen = 0; - $groupNum = 0; - } - } - if(!empty($html)) - { - $templates[] ='<div class="{class}"><h2>'.$type.'</h2><ul class="clearfix">'.$html.'</ul></div>'; - $html = ''; - } - $groupNum ++; - if($groupNum == 2 && !empty($html)) - { - $templates[] ='<div class="{class}"><h2>'.$type.'</h2><ul class="clearfix">'.$html.'</ul></div>'; - $html = ''; - $groupNum = 0; - $groupLen = 0; - } - } - $pos = 0; - foreach($templates as $temp) - { - if($pos % 2 == 0) - { - $temp = str_replace('{class}','partner', $temp); - } - else - { - $temp = str_replace('{class}','media', $temp); - } - preg_match_all("/<li>/i", $temp, $liLen, PREG_SET_ORDER); - if(count($liLen) >= 6) - { - $temp = preg_replace('@<div class="(\w+)">(.+)<\/div>@isU', "\\2", $temp); - $template .='<div class="box clearfix">'.$temp.'</div>'; - $pos = -1; + $groupLen ++; + if($groupLen>=16) + { + $templates[] ='<div class="box big-size clearfix"><h2>'.$type.'</h2><hr><ul class="clearfix">'.$html.'</ul></div>'; + $html = ''; + $groupLen = 0; + $groupNum = 0; + } + } + if(!empty($html)) + { + $templates[] ='<div class="box clearfix"><h2>'.$type.'</h2><hr><ul class="clearfix">'.$html.'</ul></div>'; + $html = ''; + } + $groupNum ++; + if($groupNum == 2 && !empty($html)) + { + $templates[] ='<div class="box clearfix"><h2>'.$type.'</h2><hr><ul class="clearfix">'.$html.'</ul></div>'; + $html = ''; + $groupNum = 0; + $groupLen = 0; + } } - else - { - if($pos % 2 == 0) + + foreach ($templates as $temp) { + preg_match_all("/<li>/i", $temp, $liLen, PREG_SET_ORDER); + if(count($liLen) >= 8) { - $template .='<div class="box clearfix">'; + $temp = preg_replace('@<div class="(.*)">(.+)<\/div>@isU', "\\2", $temp); + $template .='<div class="box big-size clearfix">'.$temp.'</div>'; } - $template .= $temp; - if(($pos+1) % 2 == 0) + else { - $template .='</div>'; + $temp = preg_replace('@<div class="(.*)">(.+)<\/div>@isU', "\\2", $temp); + $template .='<div class="box big-size clearfix">'.$temp.'</div>'; } + } - $pos++; - } - if($pos % 2 == 1) - { - $template .='</div>'; - } - echo $template; - ?> - </div> - </div> - <div class="cooperation-slide-control"> - <a class="cooperation-slide-prev iconfont" href="javascript:void(0);"></a> - <a class="cooperation-slide-next iconfont" href="javascript:void(0);"></a> - </div> - </div> - <?php endif;?> - - <div id="right_banner" style="display:none;" num="<?php echo count($this->view->rightBanners);?>"> - <div class="fluid-item layout-item tiled"> + + // $pos = 0; + // foreach($templates as $temp) + // { + // if($pos % 2 == 0) + // { + // $temp = str_replace('{class}','partner', $temp); + // } + // else + // { + // $temp = str_replace('{class}','media', $temp); + // } + // preg_match_all("/<li>/i", $temp, $liLen, PREG_SET_ORDER); + // // echo '111'; + // // echo $temp; + // // echo '2222'; + // if(count($liLen) > 8) + // { + // $temp = preg_replace('@<div class="(\w+)">(.+)<\/div>@isU', "\\2", $temp); + // // echo '111'; + // // echo $temp; + // // echo '222'; + // $template .='<div class="box big-size clearfix">'.$temp.'</div>'; + // $pos = -1; + // } + // else + // { + // if($pos % 2 == 0) + // { + // $template .='<div class="box clearfix">'; + // } + // $template .= $temp; + // if(($pos+1) % 2 == 0) + // { + // $template .='</div>'; + // } + // } + // $pos++; + // } + // if($pos % 2 == 1) + // { + // $template .='</div>'; + // } + + echo $template; + ?> + </div> + </div> + <div class="cooperation-slide-control"> + <a class="cooperation-slide-prev iconfont" href="javascript:void(0);"></a> + <a class="cooperation-slide-next iconfont" href="javascript:void(0);"></a> + </div> + </div> +</div> +<?php endif;?> +<!-- 合作商等信息滑动条 end --> + + <div id="right_banner" class="right-banner-warp" num="<?php echo count($this->view->rightBanners);?>"> + <div class="right-banner fluid-item layout-item tiled"> <?php $banners = $this->view->rightBanners; $temp = array(); $len = count($banners); - if($len >=3) + if($len >3 && is_numeric($len)&(!($len&1))) { - $temp = array_slice($banners, 0, 1); - $pos = rand(1, $len - 1); + //随机选择出两个元素 + $temp=array_rand($banners,2); + foreach($temp as $val){ + $mergebanners[]=$banners[$val]; + } + $banners=array(); + $banners=$mergebanners; + } + if($len >=3 && is_numeric($len)&($len&1)){ + $temp = array_slice($banners, 0,1); + $pos = rand(1, $len-1); $banners = array_merge($temp, array_slice($banners, $pos, 1)); } foreach($banners as $banner): @@ -163,7 +210,7 @@ EOL; } $width = 308; ?> - <div class="image-box" style="padding-bottom: 30px;"> + <div class="image-box"> <a href="<?php echo $banner['url']?>" target="_blank" style="<?php echo sprintf("height:%spx;width:%spx;overflow:hidden;", $height, $width);?>"> <img disopen="1" src="<?php echo Lib_Images::getImageUrl($banner['res'], 'source','fragmentimg');?>" style="<?php echo sprintf("height:%spx;width:%spx;", $height, $width);?>"/> </a> @@ -171,7 +218,7 @@ EOL; <?php endforeach;?> </div> </div> - + <?php $this->_endblock();?> <?php $this->_block('js');?> <script type="text/javascript"> diff --git a/website/view/script/news/detail.php b/website/view/script/news/detail.php index 7ab868f..df5e441 100644 --- a/website/view/script/news/detail.php +++ b/website/view/script/news/detail.php @@ -1,18 +1,37 @@ <?php $this->_extends('layout/default_layout');?> <?php $this->_block('main');?> -<div class="detail-wrap clearfix"> - <div class="detail-title"> +<div class="page-detail-wrap clearfix"> + <div class="page-detail-title"> <h2><?php echo $this->view->info['title']?></h2> <!-- <h3>潮流嘉年华</h3> --> - <p class="time"><?php echo date('Y.m.d', $this->view->info['create_time']);?></p> + <div class="item-info"> + <a class="fluid-tag item-tag brand-info + <?php + if($this->view->info['tag']=="品牌资讯"){ + echo "brand-info"; + } + elseif($this->view->info['tag']=="活动介绍"){ + echo "activity-intro"; + } + elseif($this->view->info['tag']=="亮点活动"){ + echo "spotlight-activity"; + } + elseif($this->view->info['tag']=="限量商品"){ + echo "limited-edition"; + }else{ + echo "brand-info"; + } + ?>" href="/news/index/tag/<?php echo $this->view->info['tag']?>"><?php echo $this->view->info['tag']?></a> + <span class="item-time"><?php $en = array('01'=>'January','02'=>'February','03'=>'March','04'=>'April','05'=>'May','06'=>'June','07'=>'July','08'=>'August','09'=>'September','10'=>'October','11'=>'November','12'=>'December');$m=date('m', $this->view->info['create_time']);echo $en[$m]?> <?php ECHO $m=date('d,Y', $this->view->info['create_time'])?></span></span> + </div> </div> - <div class="detail-body"> + <div class="page-detail-body"> <?php if(!empty($this->view->info['pics'])):?> <div class="detail-slide"> <div class="detail-slide-body"> <ul class="detail-slide-piclist clearfix"> <?php foreach($this->view->info['pics'] as $pic):?> - <li class="box"><img alt="" src="<?php echo Lib_Images::getImageUrl($pic, 'source','fragmentimg');?>"></li> + <li class="box"><img alt="" data-original="<?php echo Lib_Images::getImageUrl($pic, 'source','fragmentimg');?>" src="<?php echo Lib_Images::getImageUrl($pic, 'source','fragmentimg');?>"></li> <?php endforeach;?> </ul> <div class="slide-shadow"> @@ -27,11 +46,10 @@ <div class="detail-slide-ctrl"> <ul class="detail-slide-ctrl-tabs clearfix"> <?php foreach($this->view->info['pics'] as $pic):?> - <li> + <li class="box"> <a href="javascript:;"> - <span class="border"></span> - <span class="arrow"></span> - <img class="lazy" data-original="<?php echo Lib_Images::getImageUrl($pic, 'source','fragmentimg');?>" alt="" + <span class="cover"></span> + <img class="lazy" data-original="<?php echo Lib_Images::getImageUrl($pic, 'source','fragmentimg');?>" alt="" src="<?php echo Lib_Images::getImageUrl($pic, 'source','fragmentimg');?>?imageMogr2/thumbnail/!0100x0065r/crop/0100x0065/strip/quality/100" style="display: block;"> </a> </li> @@ -107,11 +125,12 @@ </div> <div class="related-post detail-related-post"> <h3>相关推荐</h3> + <hr> <div class="post-list main-layout clearfix"> </div> </div> </div> - <div class="detail-side"> + <div class="page-detail-side"> <?php if(!empty($this->view->banners)):?> <div class="detail-ad"> <ul> @@ -137,8 +156,9 @@ </div> <div class="side-related-post"> <div class="side-related-tab clearfix"> - <a class="current" href="javascript:;">最热视频</a> - <a href="javascript:;">最新宣传片</a> + <span>/</span> + <a class="current" href="javascript:;">最新资讯</a> + <a href="javascript:;">最热视频</a> </div> <div class="side-related-wrap"> <div class="side-related-list main-layout current"> @@ -150,9 +170,8 @@ </div> </div> <div class="share" data-link="<?php echo SITE_MAIN;?>/news/detail/id/<?php echo $this->view->info['id'];?>" cover-url="<?php echo $this->view->info['thumb'];?>"> - <h4>share</h4> + <!-- <h4>share</h4> --> <ul> - <li class="yohoo-share-button-sina"><a href="javascript:;"><img src="<?php echo SITE_IMG;?>/yohood/share-sina-btn.png" alt="Share to sina"></a></li> <li class="yohoo-share-button-wx"> <a href="javascript:;"> <img src="<?php echo SITE_IMG;?>/yohood/share-wx-btn.png" alt="Share to weixin"> @@ -162,11 +181,12 @@ <span>分享到微信朋友圈</span> </div> <div class="wx-popup-bd"> - <img src="http://qr.liantu.com/api.php?text=<?php echo SITE_MAIN;?>/news/detail/id/<?php echo $this->view->info['id'];?>"> + <img src="http://qr.liantu.com/api.php?text=<?php echo SITE_MAIN;?>/news/detail/id/<?php echo $this->view->info['id'];?>/type/1"> </div> <div class="wx-popup-ft">点击底部的“发现”,使用<br>“扫一扫”即可分享。</div> </div> </li> + <li class="yohoo-share-button-sina"><a href="javascript:;"><img src="<?php echo SITE_IMG;?>/yohood/share-sina-btn.png" alt="Share to sina"></a></li> <li class="yohoo-share-button-qq"><a href="javascript:;"> <img src="<?php echo SITE_IMG;?>/yohood/share-qq-btn.png" alt="Share to qZone"> </a></li> @@ -177,6 +197,17 @@ </li> </ul> </div> +<!-- 点击图片显示大图 start --> +<div class="detial-img-zoom"> + <div class="img-zoom "> + <img src=""> + <a href="javascript:;" class="close-btn"></a> + <a href="javascript:;" class="img-zoom-ctrl-prev iconfont"></a> + <a href="javascript:;" class="img-zoom-ctrl-next iconfont"></a> + </div> + <div class="overlay"></div> +</div> +<!-- 点击图片显示大图 end --> <?php $this->_endblock();?> <?php $this->_block('js');?> <script type="text/javascript"> diff --git a/website/view/script/news/detailmobile.php b/website/view/script/news/detailmobile.php index 6192b3d..3182762 100644 --- a/website/view/script/news/detailmobile.php +++ b/website/view/script/news/detailmobile.php @@ -172,18 +172,43 @@ } }); + + //截取字符串 + function cutString(str, len) { + //length属性读出来的汉字长度为1 + if (str.length * 2 <= len) { + return str; + } + var strlen = 0; + var s = ""; + for (var i = 0; i < str.length; i++) { + s = s + str.charAt(i); + if (str.charCodeAt(i) > 128) { + strlen = strlen + 2; + if (strlen >= len) { + return s.substring(0, s.length - 1) + "..."; + } + } else { + strlen = strlen + 1; + if (strlen >= len) { + return s.substring(0, s.length - 2) + "..."; + } + } + } + return s; + } //构造分享信息 var shareTitle = $('.title').text(); var shareImg = $(".share").attr("cover-url"); - var shareDesc = $(".share").attr("desc"); + var shareDesc = cutString($(".share").attr("desc"),53); var shareLink = $(".share").attr("data-link"); /* * 微信分享 */ wx.ready(function () { var shareData = { - title: shareTitle, + title: '【YO’HOOD 2016】' +shareTitle, desc: shareDesc, imgUrl: shareImg, link: shareLink diff --git a/website/view/script/news/index.php b/website/view/script/news/index.php index fa15888..48c4cdc 100644 --- a/website/view/script/news/index.php +++ b/website/view/script/news/index.php @@ -1,17 +1,22 @@ <?php $this->_extends('layout/default_layout');?> <?php $this->_block('main');?> + <div class="bd"> + <div class="news-wrap"> <div class="content-tab news-tab"> <ul class="clearfix"> - <?php + <?php array_unshift($this->view->tags, array('tag' => '', 'num'=> $this->view->total)); foreach ($this->view->tags as $tag): if(empty($tag['num'])) continue; ?> <li <?php echo ($this->view->current_tag == $tag['tag']) ?'class="current"':''?>> <a href="<?php echo url('news/index',array('tag' => $tag['tag']))?>"> + <?php if($tag['tag'] == ''){?> + <?php echo sprintf("%s(%s)", $tag['tag'] == '' ? '全部资讯': $tag['tag'], $this->view->nums); ?> + <?php }else{?> <?php echo sprintf("%s(%s)", $tag['tag'] == '' ? '全部资讯': $tag['tag'], $tag['num']); ?> + <?php }?> </a> - </li> <?php endforeach;?> </ul> @@ -23,12 +28,14 @@ </div> <div id="pageContent" style="text-align: center;" class="pagination"> <?php $this->_component('Common_Pagination',array( - 'pagination' => $this->view->pagination,'next_label' => '>>','prev_label' => '<<','current_class' => 'current', - 'page_class'=>'pagination-inner', 'id'=>'img_page' + 'pagination' => $this->view->pagination,'next_label' => 'NEXT>>','next_class' => 'next','prev_label' => 'PREV<<','prev_class' => 'prev','current_class' => 'current', + 'page_class'=>'pagination-inner', 'id'=>'img_page' ));?> </div> </div> </div> + </div> + </div> <?php $this->_endblock();?> <?php $this->_block('js');?> <script type="text/javascript"> diff --git a/website/view/script/onlinereg/exhibitor.php b/website/view/script/onlinereg/exhibitor.php new file mode 100644 index 0000000..fe31369 --- /dev/null +++ b/website/view/script/onlinereg/exhibitor.php @@ -0,0 +1,142 @@ +<?php $this->_extends('layout/default_layout');?> +<?php $this->_block('main');?> +<div class="yoho-header-w"> + <span class="yoho-header-title"> + <img src="<?php echo SITE_RES."/images/yohood/czs-header.png"?>"> + </span> +</div> +<div class="submit-content"> + <div class="page-header"> + <a href="/onlinereg/exhibitor" class="active"> + <span>在线登记</span> + </a> + <a href="/onlinereg/exhibitordown" class="end"><span>参展商手册下载</span></a> + </div> + <div class="pull-left"> + <div class="content-sub"> + <ul> + <li><span>联系人:</span><p>Elsie.Shen</p></li> + <li><span>邮<i></i>箱:</span><p>elsie.shen@yoho.cn</p></li> + <li><span>电<i></i>话:</span><p>+86 13120777613</p></li> + </ul> + </div> + </div> + <form method="post" action="/onlinereg/setseller" id="exhibitor-form" enctype="multipart/form-data"> + <div class="pull-right"> + <h2 class="content-header" id="chinese">填写报名信息 <a href="/onlinereg/exhibitoren">Switch to English</a></h2> + <ul> + <li> + <div class="form-leading"><b>*</b><span>品牌名称:</span></div> + <div class="form-control"><input type="text" name="name"/></div> + </li> + <li> + <div class="form-leading"><b>*</b><span>是否入驻有货:</span></div> + <div class="form-control"> + <input type="radio" name="is_enter_yohobuy" id="yoho-yes" value="1"/> + <label for="yoho-yes">是</label> + <input type="radio" name="is_enter_yohobuy" id="yoho-no" value="0"/> + <label for="yoho-no">否</label> + </div> + </li> + <li> + <div class="form-leading"><b>*</b><span>品牌注册情况:</span></div> + <div class="form-control"> + <input type="radio" name="brand_reg_type" value="2"/> + <label>已申请</label> + + <input type="radio" name="brand_reg_type" value="1"/> + <label>已注册</label> + + <input type="radio" name="brand_reg_type" value="0"/> + <label>未注册</label> + </div> + </li> + <li> + <div class="form-leading"><span>公司名称:</span></div> + <div class="form-control"><input type="text" name="company"/></div> + </li> + <li> + <div class="form-leading"><b>*</b><span>联系人:</span></div> + <div class="form-control"><input type="text" name="contact"/></div> + </li> + <li> + <div class="form-leading"><b>*</b><span>电话:</span></div> + <div class="form-control"><input type="text" name="telphone"/></div> + </li> + <li> + <div class="form-leading"><span>邮箱:</span></div> + <div class="form-control"><input type="text" name="email"/></div> + </li> + <li> + <div class="form-leading"><b>*</b><span>公司与品牌关系:</span></div> + <div class="form-control"> + <input type="radio" name="relation" value="0"/> + <label>品牌商</label> + + <input type="radio" name="relation" value="1"/> + <label>代理商</label> + + <input type="radio" name="relation" value="2"/> + <label>经销商</label> + + <input type="radio" name="relation" value="3"/> + <label>其他</label> + </div> + </li> + <li> + <div class="form-leading"><b>*</b><span>商品所在地:</span></div> + <div class="form-control"><input type="text" name="place"/></div> + </li> + <li> + <div class="form-leading"><b>*</b><span>是否具有3C凭证:</span></div> + <div class="form-control"> + <input type="radio" name="is_3c" value="1"/> + <label>是</label> + <input type="radio" name="is_3c" value="0"/> + <label>否</label> + </div> + </li> + <li> + <div class="form-leading"><span>品牌官网:</span></div> + <div class="form-control"><input type="text" name="website"/></div> + </li> + <li class="upload-list"> + <div class="form-leading"><span>品牌资料上传:</span></div> + <div class="form-control"> + <input type="file" name="upload-file" id="upload-file"/> + <span class="upload-tips">大小不超过10M</span> + <div class="has-upload" style="display: none;"> + <span></span> + </div> + </div> + </li> + <li> + <div class="form-leading"><span>验证码:</span></div> + <div class="form-control"> + <input type="text" name="code" class="pic-code"/> + <!-- + <span class="pic-code-text">图形验证码</span> + --> + <img alt="" src="/onlinereg/images" class="pic-code-text" /> + </div> + </li> + </ul> + <input type="hidden" value="<?php echo $this->view->type?>" name="type" /> + <input type="hidden" value="" name="files" id="file-url"/> + <input type="submit" class="submit-w-btn dis" value="提交" disabled="disabled" lang="cn"/> + + </div> + </form> + +</div> + + +<?php $this->_endblock();?> +<?php $this->_block('js');?> +<script type="text/javascript"> +seajs.use('yohood',function(yohood) +{ + yohood.onlinereg(); +}); +</script> +<?php $this->_endblock();?> \ No newline at end of file diff --git a/website/view/script/onlinereg/exhibitordown.php b/website/view/script/onlinereg/exhibitordown.php new file mode 100644 index 0000000..8cfd78a --- /dev/null +++ b/website/view/script/onlinereg/exhibitordown.php @@ -0,0 +1,45 @@ +<?php $this->_extends('layout/default_layout');?> +<?php $this->_block('main');?> +<div class="yoho-header-w"> + <span class="yoho-header-title"> + <img src="<?php echo SITE_RES."/images/yohood/czs-header.png"?>"> + </span> +</div> +<div class="submit-content"> + <div class="page-header"> + <a href="/onlinereg/exhibitor"><span>在线登记</span></a> + <a href="/onlinereg/exhibitordown" class="end active"><span>参展商手册下载</span></a> + </div> + <div class="pull-left"> + <div class="content-sub"> + <ul> + <li><span>联系人:</span><p>Elsie.Shen</p></li> + <li><span>邮<i></i>箱:</span><p>elsie.shen@yoho.cn</p></li> + <li><span>电<i></i>话:</span><p>+86 13120777613</p></li> + </ul> + </div> + </div> + <div class="pull-right"> + <div class="exhibitor-down"> + <ul> + <?php foreach($this->view->list as $download):?> + <li> + <img src="<?php echo Lib_Images::getImageUrl($download['cover'], 'source','fragmentimg');?>" alt=""/> + <span><?php echo $download['title'];?></span> + <a class="exhibitor-btn" href="/onlinereg/download?id=<?php echo $download['id']?>">下载</a> + </li> + <?php endforeach;?> + </ul> + </div> + </div> +</div> + +<?php $this->_endblock();?> +<?php $this->_block('js');?> +<script type="text/javascript"> +seajs.use('yohood',function(yohood) +{ + yohood.onlinereg(); +}); +</script> +<?php $this->_endblock();?> \ No newline at end of file diff --git a/website/view/script/onlinereg/exhibitoren.php b/website/view/script/onlinereg/exhibitoren.php new file mode 100644 index 0000000..b740e22 --- /dev/null +++ b/website/view/script/onlinereg/exhibitoren.php @@ -0,0 +1,143 @@ +<?php $this->_extends('layout/default_layout');?> +<?php $this->_block('main');?> +<div class="yoho-header-w"> + <span class="yoho-header-title"> + <img src="<?php echo SITE_RES."/images/yohood/czs-header.png"?>"> + </span> +</div> +<div class="submit-content"> + <div class="page-header"> + <a href="/onlinereg/exhibitor" class="active"> + <span>在线登记</span> + </a> + <a href="/onlinereg/exhibitordown" class="end"><span>参展商手册下载</span></a> + </div> + <div class="pull-left"> + <div class="content-sub"> + <ul> + <li><span>联系人:</span><p>Elsie.Shen</p></li> + <li><span>邮<i></i>箱:</span><p>elsie.shen@yoho.cn</p></li> + <li><span>电<i></i>话:</span><p>+86 13120777613</p></li> + </ul> + </div> + </div> + <form method="post" action="/onlinereg/setseller" id="exhibitor-form" enctype="multipart/form-data"> + <div class="pull-right"> + <h2 class="content-header" id="english">Exhibitor Brand Application Form <a href="/onlinereg/exhibitor">切换中文</a></h2> + <ul> + <li> + <div class="form-leading"><b>*</b><span>Application:</span></div> + <div class="form-control"><input type="text" name="name"/></div> + </li> + <li> + <div class="form-leading"><b>*</b><span>Whether settled in YOHO!BUY:</span></div> + <div class="form-control"> + <input type="radio" name="is_enter_yohobuy" id="yoho-yes" value="1"/> + <label for="yoho-yes">Yes</label> + + <input type="radio" name="is_enter_yohobuy" id="yoho-no" value="0"/> + <label for="yoho-no">No</label> + </div> + </li> + <li> + <div class="form-leading"><b>*</b><span>Register Condition:</span></div> + <div class="form-control"> + <input type="radio" name="brand_reg_type" value="2" /> + <label>Applied</label> + + <input type="radio" name="brand_reg_type" value="1"/> + <label>Registered</label> + + <input type="radio" name="brand_reg_type" value="0"/> + <label>unregistered</label> + </div> + </li> + <li> + <div class="form-leading"><span>Company Name:</span></div> + <div class="form-control"><input type="text" name="company"/></div> + </li> + <li> + <div class="form-leading"><b>*</b><span>Contact Person:</span></div> + <div class="form-control"><input type="text" name="contact"/></div> + </li> + <li> + <div class="form-leading"><b>*</b><span>Telephone:</span></div> + <div class="form-control"><input type="text" name="telphone"/></div> + </li> + <li> + <div class="form-leading"><span>Email:</span></div> + <div class="form-control"><input type="text" name="email"/></div> + </li> + <li> + <div class="form-leading" style="word-break: normal;word-wrap:break-word;height:50px;"><b>*</b><span>Relationship between company and brand:</span></div> + <div class="form-control"> + <input type="radio" name="relation" value="0" /> + <label>Brand</label> + + <input type="radio" name="relation" value="1"/> + <label>Agent</label> + + <input type="radio" name="relation" value="2"/> + <label>Distributor</label> + + <input type="radio" name="relation" value="3"/> + <label>Others</label> + </div> + </li> + <li> + <div class="form-leading"><b>*</b><span>Product Location:</span></div> + <div class="form-control"><input type="text" name="place"/></div> + </li> + <li> + <div class="form-leading"><b>*</b><span>Whether have 3C certificate:</span></div> + <div class="form-control"> + <input type="radio" name="is_3c" value="1"/> + <label>Yes</label> + <input type="radio" name="is_3c" value="0"/> + <label>No</label> + </div> + </li> + <li> + <div class="form-leading"><span>Official Website:</span></div> + <div class="form-control"><input type="text" name="website"/></div> + </li> + <li class="upload-list"> + <div class="form-leading"><span>Upload Brand Information:</span></div> + <div class="form-control"> + <input type="file" name="upload-file" id="upload-file" lang="en"/> + <span class="upload-tips">File size can not exceed 10M</span> + <div class="has-upload" style="display: none;"> + <span></span> + </div> + </div> + </li> + <li> + <div class="form-leading"><span>code:</span></div> + <div class="form-control"> + <input type="text" name="code" class="pic-code"/> + <!-- + <span class="pic-code-text">图形验证码</span> + --> + <img alt="" src="/onlinereg/images" class="pic-code-text" /> + </div> + </li> + </ul> + <input type="hidden" value="<?php echo $this->view->type?>" name="type" /> + <input type="hidden" value="" name="files" id="file-url"/> + <input type="submit" class="submit-w-btn dis" value="submit" disabled="disabled" lang="en"/> + + </div> + </form> + +</div> + + +<?php $this->_endblock();?> +<?php $this->_block('js');?> +<script type="text/javascript"> +seajs.use('yohood',function(yohood) +{ + yohood.onlinereg(); +}); +</script> +<?php $this->_endblock();?> \ No newline at end of file diff --git a/website/view/script/onlinereg/index.php b/website/view/script/onlinereg/index.php new file mode 100644 index 0000000..c91706f --- /dev/null +++ b/website/view/script/onlinereg/index.php @@ -0,0 +1,37 @@ +<?php $this->_extends('layout/default_layout');?> +<?php $this->_block('main');?> +<div class="apply-content"> + <ul class="apply-enter"> + <li class="apply-left"> + <div class="background"><a href="/onlinereg/exhibitor"></a></div> + <div class="apply-operate"> + <a href="/onlinereg/exhibitor">在线登记</a> + <a href="/onlinereg/exhibitordown">参展商手册下载</a> + </div> + </li> + <li class="apply-center"> + <div class="background"><a href="/onlinereg/media"></a></div> + <div class="apply-operate"> + <a href="/onlinereg/media">在线登记</a> + <?php if($this->view->mediaTotal !=0):?> + <a href="/onlinereg/mediadown">新闻稿下载</a> + <?php endif;?> + </div> + </li> + <li class="apply-right"> + <div class="background"><a href="/onlinereg/sponsor"></a></div> + <div class="apply-operate"> + <a href="/onlinereg/sponsor">在线登记</a> + </div> + </li> + </ul> +</div> +<?php $this->_endblock();?> +<?php $this->_block('js');?> +<script type="text/javascript"> +seajs.use('yohood',function(yohood) +{ + //yohood.onlinereg(); +}); +</script> +<?php $this->_endblock();?> \ No newline at end of file diff --git a/website/view/script/onlinereg/media.php b/website/view/script/onlinereg/media.php new file mode 100644 index 0000000..a1c9b42 --- /dev/null +++ b/website/view/script/onlinereg/media.php @@ -0,0 +1,109 @@ +<?php $this->_extends('layout/default_layout');?> +<?php $this->_block('main');?> +<div class="yoho-header-w"> + <span class="yoho-header-title"> + <img src="<?php echo SITE_RES."/images/yohood/mt-header.png"?>"> + </span> +</div> + +<div class="submit-content"> + <div class="page-header"> + <a href="/onlinereg/media" class="active"><span>在线登记</span></a> + <?php if($this->view->mediaTotal !=0):?> + <a href="/onlinereg/mediadown" class="end"><span>新闻稿下载</span></a> + <?php endif;?> + </div> + <div class="pull-left"> + <div class="content-sub"> + <ul> + <li><span>联系人:</span><p>Wendy.Wei</p></li> + <li><span>邮<i></i>箱:</span><p>wendy.wei@yoho.cn</p></li> + <li><span>电<i></i>话:</span><p>+86 15201967253</p></li> + </ul> + </div> + </div> + <div class="pull-right"> + <h2 class="content-header" id="chinese">填写报名信息 <a href="/onlinereg/mediaen">Switch to English</a></h2> + <form method="post" id="media-form" enctype="multipart/form-data"> + <ul> + <li> + <div class="form-leading"><span>姓名:</span></div> + <div class="form-control"><input type="text" name="name"/></div> + </li> + <li> + <div class="form-leading"><span>职位:</span></div> + <div class="form-control"><input type="text" name="profession"/></div> + </li> + <li> + <div class="form-leading">性别:</div> + <div class="form-control"> + <input type="radio" name="sex" id="yoho-yes" value="1"/> + <label for="yoho-yes">男</label> + + <input type="radio" name="sex" id="yoho-no" value="0"/> + <label for="yoho-no">女</label> + </div> + </li> + <li> + <div class="form-leading">媒体名/公司名:</div> + <div class="form-control"><input type="text" name="company"/></div> + </li> + <li class="h-auto"> + <div class="form-leading">介绍:</div> + <div class="form-control"><textarea name="introduction" placeholder="200字以内"></textarea> + <span id="introduction-tips">已超出 <span>xx</span> 字</span></div> + </li> + <li> + <div class="form-leading"><span>官网地址:</span></div> + <div class="form-control"><input type="text" name="website"/></div> + </li> + <li> + <div class="form-leading"><span>所在城市:</span></div> + <div class="form-control"><input type="text" name="city"/></div> + </li> + <li> + <div class="form-leading"><span>邮箱:</span></div> + <div class="form-control"><input type="text" name="email"/></div> + </li> + <li> + <div class="form-leading"><span>手机:</span></div> + <div class="form-control"><input type="text" name="mobile"/></div> + </li> + <li> + <div class="form-leading"><span>座机:</span></div> + <div class="form-control"><input type="text" name="telphone"/></div> + </li> + <li> + <div class="form-leading"><span>固定地址:</span></div> + <div class="form-control"><input type="text" name="place"/></div> + </li> + <li> + <div class="form-leading"><span>邮编:</span></div> + <div class="form-control"><input type="text" name="zipcode"/></div> + </li> + + <li> + <div class="form-leading"><span>验证码:</span></div> + <div class="form-control"> + <input type="text" name="code" class="pic-code"/> + <!-- <span class="pic-code-text">图形验证码</span> --> + <img alt="" src="/onlinereg/images" class="pic-code-text" /> + </div> + </li> + </ul> + <input type="hidden" value="<?php echo $this->view->type?>" name="type" /> + <input type="submit" class="submit-w-btn dis" value="提交" disabled="disabled" lang="cn"/> + </form> + </div> +</div> + + +<?php $this->_endblock();?> +<?php $this->_block('js');?> +<script type="text/javascript"> +seajs.use('yohood',function(yohood) +{ + yohood.onlinereg(); +}); +</script> +<?php $this->_endblock();?> \ No newline at end of file diff --git a/website/view/script/onlinereg/mediadown.php b/website/view/script/onlinereg/mediadown.php new file mode 100644 index 0000000..73a426d --- /dev/null +++ b/website/view/script/onlinereg/mediadown.php @@ -0,0 +1,49 @@ +<?php $this->_extends('layout/default_layout');?> +<?php $this->_block('main');?> +<div class="yoho-header-w"> + <span class="yoho-header-title"> + <img src="<?php echo SITE_RES."/images/yohood/mt-header.png"?>"> + </span> +</div> + +<div class="submit-content"> + <div class="page-header"> + <a href="/onlinereg/media"><span>在线登记</span></a> + <a href="/onlinereg/mediadown" class="end active"><span>新闻稿下载</span></a> + </div> + <div class="pull-left"> + <div class="content-sub"> + <ul> + <li><span>联系人:</span><p>Wendy.Wei</p></li> + <li><span>邮<i></i>箱:</span><p>wendy.wei@yoho.cn</p></li> + <li><span>电<i></i>话:</span><p>+86 15201967253</p></li> + </ul> + </div> + </div> + <div class="pull-right"> + <div class="media-down"> + <ul> + <?php foreach($this->view->list as $download):?> + <li> + <h2><?php echo $download['title']?></h2> + <div> + <span><?php echo $download['source']?></span> + <span class="media-date"><?php echo date('F j.Y', $download['create_time'])?></span> + </div> + <a class="down-btn" href="/onlinereg/download?id=<?php echo $download['id']?>">下载</a> + </li> + <?php endforeach;?> + </ul> + </div> + </div> +</div> + +<?php $this->_endblock();?> +<?php $this->_block('js');?> +<script type="text/javascript"> +seajs.use('yohood',function(yohood) +{ + yohood.onlinereg(); +}); +</script> +<?php $this->_endblock();?> \ No newline at end of file diff --git a/website/view/script/onlinereg/mediaen.php b/website/view/script/onlinereg/mediaen.php new file mode 100644 index 0000000..dc6e4df --- /dev/null +++ b/website/view/script/onlinereg/mediaen.php @@ -0,0 +1,108 @@ +<?php $this->_extends('layout/default_layout');?> +<?php $this->_block('main');?> +<div class="yoho-header-w"> + <span class="yoho-header-title"> + <img src="<?php echo SITE_RES."/images/yohood/mt-header.png"?>"> + </span> +</div> + +<div class="submit-content"> + <div class="page-header"> + <a href="/onlinereg/media" class="active"> + <span>在线登记</span> + </a> + <a href="/onlinereg/mediadown" class="end"><span>新闻稿下载</span></a> + </div> + <div class="pull-left"> + <div class="content-sub"> + <ul> + <li><span>联系人:</span><p>Wendy.Wei</p></li> + <li><span>邮<i></i>箱:</span><p>wendy.wei@yoho.cn</p></li> + <li><span>电<i></i>话:</span><p>+86 15201967253</p></li> + </ul> + </div> + </div> + <div class="pull-right"> + <h2 class="content-header" id="english">Media Online Registration <a href="/onlinereg/media">切换中文</a></h2> + <form method="post" id="media-form" enctype="multipart/form-data"> + <ul> + <li> + <div class="form-leading"><span>Name:</span></div> + <div class="form-control"><input type="text" name="name"/></div> + </li> + <li> + <div class="form-leading"><span>Position:</span></div> + <div class="form-control"><input type="text" name="profession"/></div> + </li> + <li> + <div class="form-leading">Gender:</div> + <div class="form-control"> + <input type="radio" name="sex" id="yoho-yes" value="1"/> + <label for="yoho-yes">Male</label> + + <input type="radio" name="sex" id="yoho-no" value="0"/> + <label for="yoho-no">Female</label> + </div> + </li> + <li> + <div class="form-leading">Media/Company:</div> + <div class="form-control"><input type="text" name="company"/></div> + </li> + <li class="h-auto"> + <div class="form-leading">Profile(within 200 words):</div> + <div class="form-control"><textarea name="introduction"></textarea></div> + </li> + <li> + <div class="form-leading"><span>Official Website:</span></div> + <div class="form-control"><input type="text" name="website"/></div> + </li> + <li> + <div class="form-leading"><span>City:</span></div> + <div class="form-control"><input type="text" name="city"/></div> + </li> + <li> + <div class="form-leading"><span>Mail:</span></div> + <div class="form-control"><input type="text" name="email"/></div> + </li> + <li> + <div class="form-leading"><span>Mobile:</span></div> + <div class="form-control"><input type="text" name="mobile"/></div> + </li> + <li> + <div class="form-leading"><span>Telephone:</span></div> + <div class="form-control"><input type="text" name="telphone"/></div> + </li> + <li> + <div class="form-leading"><span>Address:</span></div> + <div class="form-control"><input type="text" name="place"/></div> + </li> + <li> + <div class="form-leading"><span>Zip Code:</span></div> + <div class="form-control"><input type="text" name="zipcode"/></div> + </li> + + <li> + <div class="form-leading"><span>code:</span></div> + <div class="form-control"> + <input type="text" name="code" class="pic-code"/> + <!-- <span class="pic-code-text">图形验证码</span> --> + <img alt="" src="/onlinereg/images" class="pic-code-text" /> + </div> + </li> + </ul> + <input type="hidden" value="<?php echo $this->view->type?>" name="type" /> + <input type="submit" class="submit-w-btn dis" value="submit" disabled="disabled" lang="en"/> + </form> + </div> +</div> + + +<?php $this->_endblock();?> +<?php $this->_block('js');?> +<script type="text/javascript"> +seajs.use('yohood',function(yohood) +{ + yohood.onlinereg(); +}); +</script> +<?php $this->_endblock();?> \ No newline at end of file diff --git a/website/view/script/onlinereg/sponsor.php b/website/view/script/onlinereg/sponsor.php new file mode 100644 index 0000000..20dbc8d --- /dev/null +++ b/website/view/script/onlinereg/sponsor.php @@ -0,0 +1,105 @@ +<?php $this->_extends('layout/default_layout');?> +<?php $this->_block('main');?> +<div class="yoho-header-w"> + <span class="yoho-header-title"> + <img src="<?php echo SITE_RES."/images/yohood/zzs-header.png"?>"> + </span> +</div> +<div class="submit-content"> + <div class="pull-left"> + <div class="content-sub"> + <ul> + <li><span>联系人:</span><p>Cherry.Wu</p></li> + <li><span>邮<i></i>箱:</span><p>cherry.wu@yoho.cn</p></li> + <li><span>电<i></i>话:</span><p>+86 18810361483</p></li> + </ul> + </div> + </div> + <div class="pull-right"> + <h2 class="content-header" id="chinese">填写报名信息 <a href="/onlinereg/sponsoren">Switch to English</a></h2> + <form method="post" enctype="multipart/form-data" id="sponsor-form"> + <ul> + <li> + <div class="form-leading"><b>*</b><span>品牌名称:</span></div> + <div class="form-control"><input type="text" name="name"/></div> + </li> + <li> + <div class="form-leading"><b>*</b><span>是否入驻有货:</span></div> + <div class="form-control"> + <input type="radio" name="is_enter_yohobuy" id="yoho-yes" value="1"/> + <label for="yoho-yes">是</label> + + <input type="radio" name="is_enter_yohobuy" id="yoho-no" value="0"/> + <label for="yoho-no">否</label> + </div> + </li> + <li> + <div class="form-leading"><b></b><span>产品类型:</span></div> + <div class="form-control"><input type="text" name="product_type"/></div> + </li> + <li> + <div class="form-leading">所属国家:</div> + <div class="form-control"><input type="text" name="country"/></div> + </li> + <li> + <div class="form-leading">公司名称:</div> + <div class="form-control"><input type="text" name="company"/></div> + </li> + <li> + <div class="form-leading">公司地址:</div> + <div class="form-control"><input type="text" name="place"/></div> + </li> + <li> + <div class="form-leading"><b>*</b><span>联系人:</span></div> + <div class="form-control"><input type="text" name="contact"/></div> + </li> + <li> + <div class="form-leading"><b>*</b><span>电话:</span></div> + <div class="form-control"><input type="text" name="telphone"/></div> + </li> + <li> + <div class="form-leading"><span>邮箱:</span></div> + <div class="form-control"><input type="text" name="email"/></div> + </li> + <li> + <div class="form-leading"><span>品牌官网:</span></div> + <div class="form-control"><input type="text" name="website"/></div> + </li> + <li class="upload-list"> + <div class="form-leading"><span>品牌资料上传:</span></div> + <div class="form-control"> + <input type="file" name="upload-file" id="upload-file"/> + <span class="upload-tips">大小不超过10M</span> + <div class="has-upload"> + <span></span> + </div> + </div> + </li> + <li> + <div class="form-leading"><span>验证码:</span></div> + <div class="form-control"> + + <input type="text" name="code" class="pic-code"/> + <!-- + <span class="pic-code-text">图形验证码</span> + --> + <img alt="" src="/onlinereg/images" class="pic-code-text" /> + </div> + </li> + </ul> + <input type="hidden" value="<?php echo $this->view->type?>" name="type" /> + <!-- <span class="submit-w-btn">提交</span>--> + <input type="hidden" value="" name="files" id="file-url"/> + <input type="submit" value="提交" class="submit-w-btn dis" disabled="disabled" lang="cn"> + </form> + </div> +</div> +<?php $this->_endblock();?> +<?php $this->_block('js');?> +<script type="text/javascript"> +seajs.use('yohood',function(yohood) +{ + yohood.onlinereg(); +}); +</script> +<?php $this->_endblock();?> \ No newline at end of file diff --git a/website/view/script/onlinereg/sponsoren.php b/website/view/script/onlinereg/sponsoren.php new file mode 100644 index 0000000..9a8b42c --- /dev/null +++ b/website/view/script/onlinereg/sponsoren.php @@ -0,0 +1,105 @@ +<?php $this->_extends('layout/default_layout');?> +<?php $this->_block('main');?> +<div class="yoho-header-w"> + <span class="yoho-header-title"> + <img src="<?php echo SITE_RES."/images/yohood/zzs-header.png"?>"> + </span> +</div> +<div class="submit-content"> + <div class="pull-left"> + <div class="content-sub"> + <ul> + <li><span>联系人:</span><p>Cherry.Wu</p></li> + <li><span>邮<i></i>箱:</span><p>cherry.wu@yoho.cn</p></li> + <li><span>电<i></i>话:</span><p>+86 18810361483</p></li> + </ul> + </div> + </div> + <div class="pull-right"> + <h2 class="content-header" id="english">Sponsor Brand Application Form <a href="/onlinereg/sponsor">切换中文</a></h2> + <form method="post" enctype="multipart/form-data" id="sponsor-form"> + <ul> + <li> + <div class="form-leading"><b>*</b><span>Application:</span></div> + <div class="form-control"><input type="text" name="name"/></div> + </li> + <li> + <div class="form-leading" style="width:250px"><b>*</b><span>Whether settled in Yoho!Buy:</span></div> + <div style="float:left;margin-top:6px"> + <input type="radio" name="is_enter_yohobuy" id="yoho-yes" value="1"/> + <label for="yoho-yes">Yes</label> + + <input type="radio" name="is_enter_yohobuy" id="yoho-no" value="0"/> + <label for="yoho-no">No</label> + </div> + </li> + <li> + <div class="form-leading"><b></b><span>Product Type:</span></div> + <div class="form-control"><input type="text" name="product_type"/></div> + </li> + <li> + <div class="form-leading">Country:</div> + <div class="form-control"><input type="text" name="country"/></div> + </li> + <li> + <div class="form-leading">Company Name:</div> + <div class="form-control"><input type="text" name="company"/></div> + </li> + <li> + <div class="form-leading">Company Address:</div> + <div class="form-control"><input type="text" name="place"/></div> + </li> + <li> + <div class="form-leading"><b>*</b><span>Contact Person:</span></div> + <div class="form-control"><input type="text" name="contact"/></div> + </li> + <li> + <div class="form-leading"><b>*</b><span>Telephone:</span></div> + <div class="form-control"><input type="text" name="telphone"/></div> + </li> + <li> + <div class="form-leading"><span>Email:</span></div> + <div class="form-control"><input type="text" name="email"/></div> + </li> + <li> + <div class="form-leading"><span>Official Website:</span></div> + <div class="form-control"><input type="text" name="website"/></div> + </li> + <li class="upload-list"> + <div class="form-leading"><span>Upload Brand Information:</span></div> + <div class="form-control"> + <input type="file" name="upload-file" id="upload-file" lang="en"/> + <span class="upload-tips">File size can not exceed 10M</span> + <div class="has-upload"> + <span></span> + </div> + </div> + </li> + <li> + <div class="form-leading"><span>code:</span></div> + <div class="form-control"> + + <input type="text" name="code" class="pic-code"/> + <!-- + <span class="pic-code-text">图形验证码</span> + --> + <img alt="" src="/onlinereg/images" class="pic-code-text" /> + </div> + </li> + </ul> + <input type="hidden" value="<?php echo $this->view->type?>" name="type" /> + <!-- <span class="submit-w-btn">提交</span>--> + <input type="hidden" value="" name="files" id="file-url"/> + <input type="submit" class="submit-w-btn dis" value="submit" disabled="disabled" lang="en"/> + </form> + </div> +</div> +<?php $this->_endblock();?> +<?php $this->_block('js');?> +<script type="text/javascript"> +seajs.use('yohood',function(yohood) +{ + yohood.onlinereg(); +}); +</script> +<?php $this->_endblock();?> \ No newline at end of file diff --git a/website/view/script/show/index.php b/website/view/script/show/index.php index feeec95..89c9906 100644 --- a/website/view/script/show/index.php +++ b/website/view/script/show/index.php @@ -19,16 +19,16 @@ <?php endforeach;?> </div> <div class="content"> - <p><?php echo Lib_Helper_Emoji::convert_view($title);?></p> - <p class="time"><?php echo date('Y.m.d', $fragment['publishTime'])?></p> + <p><?php echo Lib_Helper_Emoji::convert_view(Lib_Utils_StringHelper::substr_full_en($title,60));?></p> + <p class="time" style="font-style:italic"><?php $en = array('01'=>'January','02'=>'February','03'=>'March','04'=>'April','05'=>'May','06'=>'June','07'=>'July','08'=>'August','09'=>'September','10'=>'October','11'=>'November','12'=>'December');$m=date('m', $fragment['publishTime']);echo $en[$m]?> <?php ECHO $m=date('d,Y', $fragment['publishTime'])?></p> </div> </div> <?php endforeach;?> </div> <div id="pageContent" style="text-align: center;" class="pagination"> - <?php $this->_component('Common_Pagination',array( - 'pagination' => $this->view->pagination,'next_label' => '>>','prev_label' => '<<','current_class' => 'current', - 'page_class'=>'pagination-inner', 'id'=>'img_page' + <?php $this->_component('Common_Pagination',array( + 'pagination' => $this->view->pagination,'next_label' => 'NEXT>>','next_class' => 'next','prev_label' => 'PREV<<','prev_class' => 'prev','current_class' => 'current', + 'page_class'=>'pagination-inner', 'id'=>'img_page' ));?> </div> </div> diff --git a/website/view/script/video/index.php b/website/view/script/video/index.php index 7293a5e..d082574 100644 --- a/website/view/script/video/index.php +++ b/website/view/script/video/index.php @@ -5,10 +5,10 @@ <?php $this->_widget('news_list', array('list'=> $this->view->list,'video' => 1));?> </div> <div id="pageContent" style="text-align: center;" class="pagination"> - <?php $this->_component('Common_Pagination',array( - 'pagination' => $this->view->pagination,'next_label' => '>>','prev_label' => '<<','current_class' => 'current', - 'page_class'=>'pagination-inner', 'id'=>'img_page' - ));?> + <?php $this->_component('Common_Pagination',array( + 'pagination' => $this->view->pagination,'next_label' => 'NEXT>>','next_class' => 'next','prev_label' => 'PREV<<','prev_class' => 'prev','current_class' => 'current', + 'page_class'=>'pagination-inner', 'id'=>'img_page' + ));?> </div> </div> <?php $this->_endblock();?> diff --git a/website/view/widget/news/list.php b/website/view/widget/news/list.php index c1b2cd7..effa078 100644 --- a/website/view/widget/news/list.php +++ b/website/view/widget/news/list.php @@ -1,6 +1,6 @@ +<?php if(!empty($list)):?> <?php foreach($list as $news): -$title = Util_StringHelper::substr_cn($news['title'], 90); -$description = Lib_Utils_StringHelper::substr_full_en(Lib_Utils_StringHelper::stripTags($news['content']), 80); +$description = Lib_Utils_StringHelper::substr_full_en(Lib_Utils_StringHelper::stripTags($news['content']), 300); $height = $width = 0; $thumb_size = json_decode($news['thumb_size'], true); $video = isset($video)? $video : 0; @@ -12,30 +12,60 @@ else { $thumb = SITE_IMG.'/pic01.png'; } -$height = ceil($thumb_size['height'] * (308 / $thumb_size['width'])); -$width = 308; +// if($thumb_size['height']!=0 && $thumb_size['width']!=0) { +// $height = ceil($thumb_size['height'] * (308 / $thumb_size['width'])); +// } + $height=218; +$width = 342; ?> -<div class="<?php !isset($video) ?'fluid-item':'';?>layout-item tiled"> + <div class="fluid-item layout-item tiled"> <div class="image-box"> - <a href="<?php echo url('news/detail' ,array('id' => $news['id']))?>" target="_blank" title="<?php echo Lib_Utils_StringHelper::stripTags($news['title']);?>" - <?php echo $video !=1 ? sprintf("style=\"height:%spx;width:%spx;overflow: hidden;\"", $height, $width):''; ?>> + <a href="<?php echo url('news/detail' ,array('id' => $news['id']))?>" target="_blank" title="<?php echo Lib_Utils_StringHelper::stripTags($news['title']);?>" + <?php echo $video !=1 ? sprintf("style=\"height:%spx;width:%spx;overflow: hidden;\"", $height, $width):''; ?>> <img src="<?php echo $thumb;?>" alt="" <?php echo $video !=1 ? sprintf("style=\"height:%spx;width:%spx;\"", $height, $width):''; ?>> - <?php if(trim($news['tag']) == '视频'):?> - <i class="play-icon"></i> + <?php if(trim($news['tag']) == '视频' || trim($news['is_video'])==1):?> + <i class="play-icon"></i> <?php endif;?> </a> - <a class="item-tag" href="<?php echo url('news/index',array('tag' => $news['tag']))?>"><?php echo $news['tag'];?></a> </div> + <div class="item-info"> + <a class="fluid-tag item-tag <?php + if($news['tag']=="品牌资讯"){ + echo "brand-info"; + } + elseif($news['tag']=="活动介绍"){ + echo "activity-intro"; + } + elseif($news['tag']=="亮点活动"){ + echo "spotlight-activity"; + } + elseif($news['tag']=="限量商品"){ + echo "limited-edition"; + }else{ + echo "brand-info"; + } + ?>" href="/news/index/tag/<?php echo $news['tag']?>"> + <?php + $newtag=array("品牌资讯","活动介绍","亮点活动","限量商品"); + if(!in_array($news['tag'],$newtag)){ + $news['tag']='品牌资讯'; + } + echo $news['tag']; + ?> + </a> + <span class="item-time" style="margin-right:10px"><?php $en = array('01'=>'January','02'=>'February','03'=>'March','04'=>'April','05'=>'May','06'=>'June','07'=>'July','08'=>'August','09'=>'September','10'=>'October','11'=>'November','12'=>'December');$m=date('m', $news['create_time']);echo $en[$m]?> <?php ECHO $m=date('d,Y', $news['create_time'])?></span> + </div> <div class="content"> <h2 <?php echo $news['main_title_type'] == 1 ? 'class="volupia"':'';?>> <a href="<?php echo url('news/detail' ,array('id' => $news['id']))?>" target="_blank"> - <?php - echo $video ? Lib_Utils_StringHelper::substr_full_en($news['title'], 88) : $news['title']; - ?> + <?php + echo $news['title']; + ?> </a> </h2> <p class="text-content"><a href="<?php echo url('news/detail' ,array('id' => $news['id']))?>" target="_blank"><?php echo $description;?></a></p> - <p class="time"><?php echo date('Y.m.d', $news['create_time']);?></p> </div> </div> <?php endforeach;?> +<?php endif;?> +