Authored by hf

Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop

framework @ 119c247f
Subproject commit 75bbc3b075de19f239532f60c5995d06c5f814e2
Subproject commit 119c247f5cf929aa1e059e40609bb16dd6b58f05
... ...
... ... @@ -975,3 +975,50 @@
127.0.0.1 - - [16/Oct/2015:09:24:06 +0800] "GET /product/newsale/index HTTP/1.1" 200 5335 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:09:24:06 +0800] "GET /css/index.css HTTP/1.1" 200 60066 "http://m.dev.yohobuy.com/product/newsale/index" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:09:24:06 +0800] "GET /favicon.ico HTTP/1.1" 200 1150 "http://m.dev.yohobuy.com/product/newsale/index" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:09:32:16 +0800] "GET /product/newsale/index HTTP/1.1" 200 5335 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:09:32:16 +0800] "GET /css/index.css HTTP/1.1" 200 60066 "http://m.dev.yohobuy.com/product/newsale/index" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:09:32:17 +0800] "GET /favicon.ico HTTP/1.1" 200 1150 "http://m.dev.yohobuy.com/product/newsale/index" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:06:09 +0800] "GET /product/newsale/index HTTP/1.1" 200 15630 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:06:09 +0800] "GET /css/index.css HTTP/1.1" 200 60066 "http://m.dev.yohobuy.com/product/newsale/index" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:06:10 +0800] "GET /favicon.ico HTTP/1.1" 200 1150 "http://m.dev.yohobuy.com/product/newsale/index" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:09:12 +0800] "GET /product/newsale/index HTTP/1.1" 200 15620 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:09:12 +0800] "GET /css/index.css HTTP/1.1" 200 60066 "http://m.dev.yohobuy.com/product/newsale/index" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:09:32 +0800] "-" 400 0 "-" "-"
127.0.0.1 - - [16/Oct/2015:10:09:42 +0800] "GET /favicon.ico HTTP/1.1" 200 1150 "http://m.dev.yohobuy.com/product/newsale/index" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:23:45 +0800] "GET /product/newsale/index HTTP/1.1" 200 15627 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:23:45 +0800] "GET /css/index.css HTTP/1.1" 200 60066 "http://m.dev.yohobuy.com/product/newsale/index" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:23:45 +0800] "GET /favicon.ico HTTP/1.1" 200 1150 "http://m.dev.yohobuy.com/product/newsale/index" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:35:33 +0800] "GET /product/newsale/index HTTP/1.1" 200 15627 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:35:33 +0800] "GET /css/index.css HTTP/1.1" 200 60066 "http://m.dev.yohobuy.com/product/newsale/index" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:35:33 +0800] "GET /favicon.ico HTTP/1.1" 200 1150 "http://m.dev.yohobuy.com/product/newsale/index" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:36:38 +0800] "GET /product/newsale/index HTTP/1.1" 200 15632 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:36:38 +0800] "GET /css/index.css HTTP/1.1" 200 60066 "http://m.dev.yohobuy.com/product/newsale/index" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:36:38 +0800] "GET /favicon.ico HTTP/1.1" 200 1150 "http://m.dev.yohobuy.com/product/newsale/index" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:36:41 +0800] "GET /product/newsale/index HTTP/1.1" 200 15632 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:36:41 +0800] "GET /css/index.css HTTP/1.1" 200 60066 "http://m.dev.yohobuy.com/product/newsale/index" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:36:41 +0800] "GET /favicon.ico HTTP/1.1" 200 1150 "http://m.dev.yohobuy.com/product/newsale/index" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:37:40 +0800] "GET /product/newsale/index HTTP/1.1" 200 15632 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:37:40 +0800] "GET /css/index.css HTTP/1.1" 200 60066 "http://m.dev.yohobuy.com/product/newsale/index" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:37:40 +0800] "GET /favicon.ico HTTP/1.1" 200 1150 "http://m.dev.yohobuy.com/product/newsale/index" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:38:26 +0800] "GET /product/newsale/index HTTP/1.1" 200 15632 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:38:26 +0800] "GET /css/index.css HTTP/1.1" 200 60066 "http://m.dev.yohobuy.com/product/newsale/index" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:38:26 +0800] "GET /favicon.ico HTTP/1.1" 200 1150 "http://m.dev.yohobuy.com/product/newsale/index" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:38:34 +0800] "GET /product/newsale/index HTTP/1.1" 200 15632 "http://m.dev.yohobuy.com/product/newsale/index" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:38:35 +0800] "GET /css/index.css HTTP/1.1" 200 60066 "http://m.dev.yohobuy.com/product/newsale/index" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:38:52 +0800] "GET /product/newsale/index HTTP/1.1" 200 15632 "http://m.dev.yohobuy.com/product/newsale/index" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:38:52 +0800] "GET /css/index.css HTTP/1.1" 200 60066 "http://m.dev.yohobuy.com/product/newsale/index" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:38:52 +0800] "GET /favicon.ico HTTP/1.1" 200 1150 "http://m.dev.yohobuy.com/product/newsale/index" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:39:04 +0800] "-" 400 0 "-" "-"
127.0.0.1 - - [16/Oct/2015:10:39:40 +0800] "GET /product/newsale/index HTTP/1.1" 200 15632 "http://m.dev.yohobuy.com/product/newsale/index" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:39:40 +0800] "GET /css/index.css HTTP/1.1" 200 60066 "http://m.dev.yohobuy.com/product/newsale/index" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:39:40 +0800] "GET /favicon.ico HTTP/1.1" 200 1150 "http://m.dev.yohobuy.com/product/newsale/index" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:40:31 +0800] "GET /product/newsale/index HTTP/1.1" 499 0 "http://m.dev.yohobuy.com/product/newsale/index" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:40:31 +0800] "GET /favicon.ico HTTP/1.1" 200 1150 "http://m.dev.yohobuy.com/product/newsale/index" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:40:31 +0800] "GET /product/newsale/index HTTP/1.1" 200 15632 "http://m.dev.yohobuy.com/product/newsale/index" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:40:31 +0800] "GET /css/index.css HTTP/1.1" 200 60066 "http://m.dev.yohobuy.com/product/newsale/index" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:40:35 +0800] "GET /product/newsale/index HTTP/1.1" 200 15632 "http://m.dev.yohobuy.com/product/newsale/index" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:40:35 +0800] "GET /css/index.css HTTP/1.1" 200 60066 "http://m.dev.yohobuy.com/product/newsale/index" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:43:09 +0800] "GET /favicon.ico HTTP/1.1" 200 1150 "http://m.dev.yohobuy.com/product/newsale/index" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:43:30 +0800] "GET /product/newsale/index HTTP/1.1" 200 15665 "http://m.dev.yohobuy.com/product/newsale/index" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:43:30 +0800] "GET /css/index.css HTTP/1.1" 200 60066 "http://m.dev.yohobuy.com/product/newsale/index" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
127.0.0.1 - - [16/Oct/2015:10:43:32 +0800] "GET /favicon.ico HTTP/1.1" 200 1150 "http://m.dev.yohobuy.com/product/newsale/index" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
... ...
... ... @@ -31,10 +31,16 @@ function setLazyLoadAndMellipsis($infos) {
lazyLoad($infos.find('img.lazy'));
$infos.each(function() {
var $this = $(this);
var $this = $(this),
$title = $this.find('.info-title'),
$text = $this.find('.info-text');
$this.find('.info-title')[0].mlellipsis(2);
$this.find('.info-text')[0].mlellipsis(2);
//减少重复调用
if ($title.attr('title') && $text.attr('title')) {
return;
}
$title[0].mlellipsis(2);
$text[0].mlellipsis(2);
});
}
... ... @@ -75,8 +81,6 @@ function initInfosEvt($container) {
* 资讯LoadMore
*/
function loadMore($container, opt) {
var infosNum = $container.find('.guang-info').length;
if (loading) {
return;
}
... ... @@ -87,13 +91,10 @@ function loadMore($container, opt) {
loading = true;
$.ajax({
type: 'POST',
type: 'GET',
url: ' /guang/list/page',
data: opt,
success: function(data) {
var $newInfos;
//请求结束
if (data === ' ') {
opt.end = true;
loading = false;
... ... @@ -104,10 +105,9 @@ function loadMore($container, opt) {
return;
}
$container.append(data);
$newInfos = $container.find('.guang-info:gt(' + (infosNum - 1) + ')');
setLazyLoadAndMellipsis($newInfos);
setLazyLoadAndMellipsis($container.find('.guang-info'));
opt.page++;
... ...
... ... @@ -2,27 +2,32 @@ var $ = require('yoho.zepto'),
lazyLoad = require('yoho.lazyload');
var $curNav,
$navs = $('#newarrival-nav > li'),
$navList = $('#newarrival-nav ');
//$contents = $('#ps-content > .content');
$navList = $('#newarrival-nav'),
$newArrivalList = $('#newarrival-list'),
$goods = $newArrivalList.children('.newarrival-goods-list');
lazyLoad($('img.lazy'));
$navs.first().addClass('focus');
$curNav = $navList.children('.focus');
$('#newarrival-nav').delegate('li', 'touchstart', function() {
if ($(this).hasClass('focus')) {
var $this = $(this),
$content,
index;
if ($this.hasClass('focus')) {
return;
}
$(this).addClass('focus');
index = $this.index();
$this.addClass('focus');
$curNav.removeClass('focus');
$curNav = $(this);
$goods.not('.hide').addClass('hide');
$content = $goods.eq(index);
$content.removeClass('hide');
//$navs.toggleClass('focus');
//$contents.toggleClass('hide');
$curNav = $this;
$(document).trigger('scroll'); //Trigger lazyLoad
});
\ No newline at end of file
... ...
@import "goods-nav";
\ No newline at end of file
@import "new-arrival";
\ No newline at end of file
... ...
{{>layout/header}}
<div class="newarrival-page yoho-page">
{{# headerBanner}}
<ul id="newarrival-nav" class="newarrival-nav clearfix">
{{# tabs}}
<li class="newarrival-nav-item">{{title}}</li>
{{/ tabs}}
</ul>
{{/ headerBanner}}
{{> newsale/header_banner}}
{{# goodsContainer}}
<div class="goods-list clearfix">
{{# goods}}
{{> good}}
{{/ goods}}
</div>
{{/ goodsContainer}}
<ul id="newarrival-nav" class="newarrival-nav clearfix">
{{# tabs}}
<li class="newarrival-nav-item {{#focus}}focus{{/focus}}">{{title}}</li>
{{/ tabs}}
</ul>
<div id="newarrival-list">
{{# goodsContainer}}
<div class="newarrival-goods-list {{^show}}hide{{/show}}">
{{# goods}}
{{> good}}
{{/ goods}}
</div>
{{/ goodsContainer}}
</div>
</div>
{{>layout/footer}}
... ...
... ... @@ -110,6 +110,12 @@
seajs.use('js/product/newsale/newarrival');
</script>
{{/if}}
{{!-- 折扣专区 --}}
{{#if discount}}
<script>
seajs.use('js/product/newsale/discount');
</script>
{{/if}}
{{!-- 品类 --}}
{{#if categoryPage}}
... ...
<div class="floor-header">
<h2>{{name}}</h2>
</div>
\ No newline at end of file
<div id="goods-content" class="goods-content clearfix" style="padding-left:10px;margin-top: 9px;">
<div class="new-patterns-container"></div>
<div class="sales-volume-container hide"></div>
<div class="price-container hide"></div>
<div id="screen-mask" class="screen-mask hide"></div>
<div id="screen-content" class="screen-content hide">
<ul class="classify">
<li class="gender c-item active">
性别:
<h1 id="show-gender" class="chosed">BOYS</h1>
</li>
<li class="brand c-item">
品牌:
<h1 id="show-brand" class="chosed default">全部品牌</h1>
</li>
<li class="msort c-item">
品类:
<h1 id="show-msort" class="chosed default">全部品类</h1>
</li>
<li class="color c-item">
颜色:
<h1 id="show-color" class="chosed default">全部颜色</h1>
</li>
<li class="size c-item">
尺码:
<h1 id="show-size" class="chosed default">全部尺码</h1>
</li>
<li class="price c-item">
价格:
<h1 id="show-price" class="chosed default">全部价格</h1>
</li>
<li class="discount c-item">
折扣:
<h1 id="show-discount" class="chosed default">全部折扣</h1>
</li>
</ul>
<div class="sub-classify-container">
<ul id="sub-gender" class="sub-classify" data-type="gender"></ul>
<ul id="sub-brand" class="sub-classify hide" data-type="brand"></ul>
<ul id="sub-msort" class="sub-classify hide" data-type="msort"></ul>
<ul id="sub-color" class="sub-classify hide" data-type="color"></ul>
<ul id="sub-size" class="sub-classify hide" data-type="size"></ul>
<ul id="sub-price" class="sub-classify hide" data-type="price"></ul>
<ul id="sub-discount" class="sub-classify hide" data-type="discount"></ul>
</div>
</div>
</div>
\ No newline at end of file
<li class="goods-item">
<a href="{{url}}">
<img class="lazy" data-original="{{img}}" alt="">
<div class="goods-title">{{title}}</div>
<div class="price">
<i class="vip-card hide"></i>
<span class="sale-price {{^price}}no-price{{/price}}">{{# salePrice}}¥{{/ salePrice}}{{salePrice}}</span>
{{#price}}
<span class="market-price">¥{{.}}</span>
{{/price}}
</div>
<div class="vip-cheap hide">
<i class="icon vip-icon"></i> 更优惠
</div>
</a>
</li>
\ No newline at end of file
<script id="goods-tpl" type="x-tmpl-mustache">
<div class="good-info" data-id="\{{id}}">
<div class="tag-container clearfix">
\{{# tags}}
\{{# isNew}}
<p class="good-tag new-tag">NEW</p>
\{{/ isNew}}
\{{# isReNew}}
<p class="good-tag renew-tag">再到着</p>
\{{/ isReNew}}
\{{# isSale}}
<p class="good-tag sale-tag">SALE</p>
\{{/ isSale}}
\{{# isYohood}}
<div class="good-tag yohood-tag"></div>
\{{/ isYohood}}
\{{# isLimit}}
<p class="good-tag limit-tag">限量商品</p>
\{{/ isLimit}}
\{{/ tags}}
</div>
<div class="good-detail-img">
<a class="good-thumb" href="\{{url}}">
<img class="lazy" data-original="\{{thumb}}">
</a>
\{{# isFew}}
<p class="few-tag">即将售罄</p>
\{{/ isFew}}
</div>
<div class="good-detail-text">
<div class="name">
<a href="\{{url}}">\{{name}}</a>
</div>
<div class="price">
<span class="sale-price \{{^price}}no-price\{{/price}}">¥\{{salePrice}}</span>
\{{#price}}
<span class="market-price">¥\{{.}}</span>
\{{/price}}
</div>
</div>
</div>
</script>
\ No newline at end of file
{{# listNav}}
<div class="s-goods-nav goods-nav">
<ul class="swiper-wrapper clearfix">
{{# list}}
<li class="swiper-slide nav-item" data-sort="{{sort}}">
<span>{{textCn}}</span>
</li>
{{/ list}}
</ul>
</div>
{{/ listNav}}
... ... @@ -45,6 +45,7 @@ class NewsaleController extends AbstractAction
'tabs' => array(
array(
'title' => '10月15日',
'focus' => true
),
array(
'title' => '本周上新'
... ... @@ -54,56 +55,170 @@ class NewsaleController extends AbstractAction
)
),
'goodsContainer' => array(
'goods' => array(
array(
'id' => '',
'thumb' => 'http://img12.static.yhbimg.com/adpic/2015/08/14/12/0205a06e86edb30a7d1833477a9e886577.jpg?imageView/2/w/640/h/480',
'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',
'isLike' => false,
'price' => 1268,
'salePrice' => 589,
'isSale' => true,
'isFew' => true,
'isNew' => false,
'url' => ''
),
array(
'id' => '',
'thumb' => 'http://img12.static.yhbimg.com/adpic/2015/08/14/12/0205a06e86edb30a7d1833477a9e886577.jpg?imageView/2/w/640/h/480',
'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',
'isLike' => false,
'price' => 1268,
'salePrice' => 589,
'isSale' => true,
'isFew' => true,
'isNew' => false,
'url' => ''
),
array(
'id' => '',
'thumb' => 'http://img12.static.yhbimg.com/adpic/2015/08/14/12/0205a06e86edb30a7d1833477a9e886577.jpg?imageView/2/w/640/h/480',
'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',
'isLike' => false,
'price' => 1268,
'salePrice' => 589,
'isSale' => true,
'isFew' => true,
'isNew' => false,
'url' => ''
),
array(
'id' => '',
'thumb' => 'http://img12.static.yhbimg.com/adpic/2015/08/14/12/0205a06e86edb30a7d1833477a9e886577.jpg?imageView/2/w/640/h/480',
'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',
'isLike' => false,
'price' => 1268,
'salePrice' => 589,
'isSale' => true,
'isFew' => true,
'isNew' => false,
'url' => ''
)
array(
'show' => 'true',
'goods' => array(
array(
'id' => '',
'thumb' => 'http://img12.static.yhbimg.com/adpic/2015/08/14/12/0205a06e86edb30a7d1833477a9e886577.jpg?imageView/2/w/640/h/480',
'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',
'isLike' => false,
'price' => 1268,
'salePrice' => 589,
'isSale' => true,
'isFew' => true,
'isNew' => false,
'url' => ''
),
array(
'id' => '',
'thumb' => 'http://img12.static.yhbimg.com/adpic/2015/08/14/12/0205a06e86edb30a7d1833477a9e886577.jpg?imageView/2/w/640/h/480',
'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',
'isLike' => false,
'price' => 1268,
'salePrice' => 589,
'isSale' => true,
'isFew' => true,
'isNew' => false,
'url' => ''
),
array(
'id' => '',
'thumb' => 'http://img12.static.yhbimg.com/adpic/2015/08/14/12/0205a06e86edb30a7d1833477a9e886577.jpg?imageView/2/w/640/h/480',
'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',
'isLike' => false,
'price' => 1268,
'salePrice' => 589,
'isSale' => true,
'isFew' => true,
'isNew' => false,
'url' => ''
),
array(
'id' => '',
'thumb' => 'http://img12.static.yhbimg.com/adpic/2015/08/14/12/0205a06e86edb30a7d1833477a9e886577.jpg?imageView/2/w/640/h/480',
'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',
'isLike' => false,
'price' => 1268,
'salePrice' => 589,
'isSale' => true,
'isFew' => true,
'isNew' => false,
'url' => ''
)
)
),
array(
'goods' => array(
array(
'id' => '',
'thumb' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',
'isLike' => false,
'price' => 1268,
'salePrice' => 589,
'isSale' => true,
'isFew' => true,
'isNew' => false,
'url' => ''
),
array(
'id' => '',
'thumb' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',
'isLike' => false,
'price' => 1268,
'salePrice' => 589,
'isSale' => true,
'isFew' => true,
'isNew' => false,
'url' => ''
),
array(
'id' => '',
'thumb' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',
'isLike' => false,
'price' => 1268,
'salePrice' => 589,
'isSale' => true,
'isFew' => true,
'isNew' => false,
'url' => ''
),
array(
'id' => '',
'thumb' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',
'isLike' => false,
'price' => 1268,
'salePrice' => 589,
'isSale' => true,
'isFew' => true,
'isNew' => false,
'url' => ''
)
)
),
array(
'goods' => array(
array(
'id' => '',
'thumb' => 'http://img11.static.yhbimg.com/yhb-img01/2015/09/17/09/015e14c53a41c7adf0bd039f6493b5a700.jpg?imageView/2/w/140/h/140',
'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',
'isLike' => false,
'price' => 1268,
'salePrice' => 589,
'isSale' => true,
'isFew' => true,
'isNew' => false,
'url' => ''
),
array(
'id' => '',
'thumb' => 'http://img11.static.yhbimg.com/yhb-img01/2015/09/17/09/015e14c53a41c7adf0bd039f6493b5a700.jpg?imageView/2/w/140/h/140',
'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',
'isLike' => false,
'price' => 1268,
'salePrice' => 589,
'isSale' => true,
'isFew' => true,
'isNew' => false,
'url' => ''
),
array(
'id' => '',
'thumb' => 'http://img11.static.yhbimg.com/yhb-img01/2015/09/17/09/015e14c53a41c7adf0bd039f6493b5a700.jpg?imageView/2/w/140/h/140',
'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',
'isLike' => false,
'price' => 1268,
'salePrice' => 589,
'isSale' => true,
'isFew' => true,
'isNew' => false,
'url' => ''
),
array(
'id' => '',
'thumb' => 'http://img11.static.yhbimg.com/yhb-img01/2015/09/17/09/015e14c53a41c7adf0bd039f6493b5a700.jpg?imageView/2/w/140/h/140',
'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',
'isLike' => false,
'price' => 1268,
'salePrice' => 589,
'isSale' => true,
'isFew' => true,
'isNew' => false,
'url' => ''
)
)
)
)
);
... ...