Authored by happyhour7

2015-4-15日下班代码提交

{
"tvs": [
{
"img": "http://img02.yohoboys.com/contentimg/2015/02/12/09/02cdeedce63d09965f48244ef7e3961448.jpg?imageMogr2/thumbnail/738x424",
"link": "http://www.baidu.com"
}, {
"img": "http://img02.yohoboys.com/contentimg/2015/02/12/09/02cdeedce63d09965f48244ef7e3961448.jpg?imageMogr2/thumbnail/738x424",
"link": "http://www.baidu.com"
}, {
"img": "http://img02.yohoboys.com/contentimg/2015/02/12/09/02cdeedce63d09965f48244ef7e3961448.jpg?imageMogr2/thumbnail/738x424",
"link": "http://www.baidu.com"
}
],
"topItems": [
{
"channel": "Fashion",
"channelClass": "fashion",
"borderClass": "home-item-border",
"img": "http://img02.yohoboys.com/contentimg/2015/02/12/09/02cdeedce63d09965f48244ef7e3961448.jpg?imageMogr2/thumbnail/738x424",
"link": "http://www.baidu.com",
"date": "2 days ago",
"channelURL": "http://www.baidu.com",
"title": "这是主标题",
"subtitle": "这是副标题",
"content": "这是模拟的内容,这是模拟的内容,这是模拟的内容,这是模拟的内容,这是模拟的内容,这是模拟的内容,这是模拟的内容,这是模拟的内容,这是模拟的内容,这是模拟的内容,这是模拟的内容,这是模拟的内容,这是模拟的内容"
}, {
"channel": "Vedio",
"borderClass": "home-item-border",
"channelClass": "vedio",
"img": "http://img02.yohoboys.com/contentimg/2015/02/12/09/02cdeedce63d09965f48244ef7e3961448.jpg?imageMogr2/thumbnail/738x424",
"link": "http://www.baidu.com",
"date": "2 days ago",
"channelURL": "http://www.baidu.com",
"title": "这是主标题",
"subtitle": "这是副标题",
"content": "这是模拟的内容,这是模拟的内容,这是模拟的内容,这是模拟的内容,这是模拟的内容,这是模拟的内容,这是模拟的内容,这是模拟的内容,这是模拟的内容,这是模拟的内容,这是模拟的内容,这是模拟的内容,这是模拟的内容"
}, {
"channel": "LifeStyle",
"channelClass": "lifestyle",
"img": "http://img02.yohoboys.com/contentimg/2015/02/12/09/02cdeedce63d09965f48244ef7e3961448.jpg?imageMogr2/thumbnail/738x424",
"link": "http://www.baidu.com",
"date": "2 days ago",
"channelURL": "http://www.baidu.com",
"title": "这是主标题",
"subtitle": "这是副标题",
"content": "这是模拟的内容,这是模拟的内容,这是模拟的内容,这是模拟的内容,这是模拟的内容,这是模拟的内容,这是模拟的内容,这是模拟的内容,这是模拟的内容,这是模拟的内容,这是模拟的内容,这是模拟的内容,这是模拟的内容"
}
]
}
\ No newline at end of file
... ...
... ... @@ -15,14 +15,9 @@
"two": "two",
"three": "three"
}
],
"css": "这里头是mustache模板除模板参数外其他的参数"
]
},
"default":{"tvs":[{"img":"http://img02.yohoboys.com/contentimg/2015/02/12/09/02cdeedce63d09965f48244ef7e3961448.jpg?imageMogr2/thumbnail/738x424","link":"http://www.baidu.com"},
{"img":"http://img02.yohoboys.com/contentimg/2015/02/12/09/02cdeedce63d09965f48244ef7e3961448.jpg?imageMogr2/thumbnail/738x424","link":"http://www.baidu.com"},
{"img":"http://img02.yohoboys.com/contentimg/2015/02/12/09/02cdeedce63d09965f48244ef7e3961448.jpg?imageMogr2/thumbnail/738x424","link":"http://www.baidu.com"}],
"ys":{"one":"lifestyle"}
}
"default": "mvc-config-wangwei.json"
},
"ajax": {
"todolist/getlist": ["这是我的list", "这是我的list", "这是我的list", "这是我的list", "这是我的list", "这是我的list", "这是我的list", "这是我的list"],
... ... @@ -33,26 +28,6 @@
"two": "two",
"three": "three"
}
},
"haha3": [1, 2, 3, 4, 5, 6, 7, 8, 9, 0],
"hah4": [1, 2, 3, 4, 5, 6, 7, 8, 8, 7, 6, 5, 4, 32, 1],
"haha/haha": [1, 2, 3, 4, 5, 6, 7, 8, 8, 7, 6, 5, 4, 32, 1],
"haha/haha2": [1, 2, 3, 4, 5, 6, 7, 8, 8, 7, 6, 5, 4, 32, 1],
"login/issuccess": true,
"login/issuccess2": false,
"login/issuccess3": false,
"login/issuccess4": {
"ajaxRepeat": 10,
"ajaxData": {
"one": "one,^_^",
"two": "two^_^",
"three": "three^_^"
}
},
"test/test/test3": {
"one": 1,
"two": 2,
"three": 3
}
}
}
... ...
... ... @@ -6,7 +6,7 @@
"start": "node ./bin/www"
},
"dependencies": {
"YJS": "^0.1.8",
"YJS": "^0.2.0",
"body-parser": "^1.12.2",
"cookie-parser": "~1.3.4",
"debug": "~2.1.1",
... ... @@ -14,7 +14,7 @@
"express-pjax": "0.0.1",
"hbs": "^3.0.1",
"jade": "~1.9.2",
"morgan": "~1.5.1",
"morgan": "^1.5.2",
"path": "^0.11.14",
"serve-favicon": "~2.2.0"
}
... ...
... ... @@ -9,15 +9,42 @@
</div>
<div class="content">
<div class="home-item-public home-item-border">
<a href='http://www.baidu.com' target="_blank" class="img-link">
<img class='img' src='http://img02.yohoboys.com/contentimg/2015/02/12/09/02cdeedce63d09965f48244ef7e3961448.jpg?imageMogr2/thumbnail/738x424'/>
<span class='girl-jb girl-jb-fashion' href=''></span>
{{# topItems}}
<div class="home-item-public {{borderClass}}">
<a href='{{link}}' target="_blank" class="img-link">
<img class='img' src='{{img}}'/>
<span class='girl-jb girl-jb-{{channelClass}}'></span>
</a>
<div class="item-text-area">
<span class='item-date'>Fashion / 7 hours ago</span>
<span class='item-title'>Girl Meets Sports Liu Xiao</span>
<span class='item-title'>Ready To Run</span>
<span class='item-date'><a class='channel' href='{{channelURL}}'>{{channel}}</a> / {{date}}</span>
<a class='item-title' href='{{link}}' target="_blank" >{{title}}</a>
<a class='item-title' href='{{link}}' target="_blank" >{{subtitle}}</a>
<a class='item-detail' href='{{link}}' target="_blank" >{{content}}</a>
</div>
</div>
{{/ topItems}}
<div class='right-advt'>
<a class='link'>
<img src='http://img02.yohoboys.com/staticimg/2015/04/15/09/02272ce1267b46280b7ea71d4b879cb592.jpg'/>
</a>
<div class="follow-us-default">
<div class="title">关注我们</div>
<ul class="icons-content">
<li><a href="http://app.yohoshow.com" target="_blank" class="icons show"></a></li>
<li><a href="http://weibo.com/yohomedia" target="_blank" class="icons sina"></a></li>
<li class="li-weixin">
<a class="icons weixin"></a>
<a class="pop" style="display: none;"><img class="lazy bitmap" src="http://rescdn.yohoboys.com/res/new/boys/images/webxin_followus.jpg" data-original="http://rescdn.yohoboys.com/res/new/boys/images/webxin_followus.jpg" alt="follow yoho!boys" style="display: block;"></a>
</li>
<li><a href="http://facebook.com/YOHOBOY" target="_blank" class="icons facebook"></a></li>
<li><a href="http://instagram.com/YOHOBOY" target="_blank" class="icons inst"></a></li>
</ul>
<div class="follow-us-input-content">
<input type="text" value="" class="followus-input" placeholder="me@email.com">
<button class="button followus-button">订阅</button>
</div>
</div>
</div>
</div>
... ...
<div class="advert-area">
<div class="swiper-container2">
<div class="swiper-wrapper" style="width: 7560px; height: 140px; transform: translate3d(-2160px, 0px, 0px); -webkit-transform: translate3d(-2160px, 0px, 0px); transition: 0.3s; -webkit-transition: 0.3s; background-color: rgb(255, 255, 255);"><div class="swiper-slide swiper-slide-duplicate" style="width: 1080px; height: 140px;">
<a href="/go?url=http%3A%2F%2Fpreviewboys.yoho.cn%2Fnews%2Ffashion-1242-0-0.html" target="_blank" class="img-a">
<img class="lazy" src="data:image/gif;base64,R0lGODlhAQABAJEAAAAAAP///93d3f///yH5BAEAAAMALAAAAAABAAEAAAICVAEAOw==" data-original="http://img02.yohoboys.com/staticimg/2014/12/24/15/02397d38384102b86f13892d7ad2dcd9e2.jpg" alt="" width="100%" height="100%">
</a>
</div>
<div class="swiper-slide" style="width: 1080px; height: 140px;">
<a href="/go?url=http%3A%2F%2Fpreviewboys.yoho.cn%2Fnews%2Ffashion-1242-0-0.html" target="_blank" class="img-a">
<img src="http://img02.yohoboys.com/staticimg/2014/12/24/16/02ebc866b56398fb25aae7c841f1be7456.jpg" alt="" width="100%" height="100%">
</a>
</div>
<div class="swiper-slide swiper-slide-visible swiper-slide-active" style="width: 1080px; height: 140px;">
<a href="/go?url=http%3A%2F%2Fpreviewboys.yoho.cn%2Fnews%2Ffashion-1242-0-0.html" target="_blank" class="img-a">
<img class="lazy" src="http://img02.yohoboys.com/staticimg/2014/12/24/16/0278a8c531c6bc6ffb1fedead55689a29c.jpg" data-original="http://img02.yohoboys.com/staticimg/2014/12/24/16/0278a8c531c6bc6ffb1fedead55689a29c.jpg" alt="" width="100%" height="100%" style="display: inline;">
</a>
</div>
<div class="swiper-slide" style="width: 1080px; height: 140px;">
<a href="/go?url=http%3A%2F%2Fpreviewboys.yoho.cn%2Fnews%2Ffashion-1242-0-0.html" target="_blank" class="img-a">
<img class="lazy" src="http://img02.yohoboys.com/staticimg/2014/12/24/16/02930347ca227e52bf3d948eca3e86e6ea.jpg" data-original="http://img02.yohoboys.com/staticimg/2014/12/24/16/02930347ca227e52bf3d948eca3e86e6ea.jpg" alt="" width="100%" height="100%" style="display: inline;">
</a>
</div>
<div class="swiper-slide" style="width: 1080px; height: 140px;">
<a href="/go?url=http%3A%2F%2Fpreviewboys.yoho.cn%2Fnews%2Ffashion-1242-0-0.html" target="_blank" class="img-a">
<img class="lazy" src="http://img02.yohoboys.com/staticimg/2014/12/24/15/0204012456d2da6fe62a10d577ac473ef5.jpg" data-original="http://img02.yohoboys.com/staticimg/2014/12/24/15/0204012456d2da6fe62a10d577ac473ef5.jpg" alt="" width="100%" height="100%" style="display: inline;">
</a>
</div>
<div class="swiper-slide" style="width: 1080px; height: 140px;">
<a href="/go?url=http%3A%2F%2Fpreviewboys.yoho.cn%2Fnews%2Ffashion-1242-0-0.html" target="_blank" class="img-a">
<img class="lazy" src="http://img02.yohoboys.com/staticimg/2014/12/24/15/02397d38384102b86f13892d7ad2dcd9e2.jpg" data-original="http://img02.yohoboys.com/staticimg/2014/12/24/15/02397d38384102b86f13892d7ad2dcd9e2.jpg" alt="" width="100%" height="100%" style="display: inline;">
</a>
</div>
<div class="swiper-slide swiper-slide-duplicate" style="width: 1080px; height: 140px;">
<a href="/go?url=http%3A%2F%2Fpreviewboys.yoho.cn%2Fnews%2Ffashion-1242-0-0.html" target="_blank" class="img-a">
<img src="http://img02.yohoboys.com/staticimg/2014/12/24/16/02ebc866b56398fb25aae7c841f1be7456.jpg" alt="" width="100%" height="100%">
</a>
</div></div>
</div>
<div class="pagination-content">
<div class="pagination pagination-adv"><span class="swiper-pagination-switch"></span><span class="swiper-pagination-switch swiper-visible-switch swiper-active-switch"></span><span class="swiper-pagination-switch"></span><span class="swiper-pagination-switch"></span><span class="swiper-pagination-switch"></span></div>
</div>
</div>
\ No newline at end of file
... ...
default_test
\ No newline at end of file