Authored by Rock Zhang

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

Conflicts:
	yohobuy/m.yohobuy.com/application/controllers/Girls.php
@@ -628,3 +628,29 @@ @@ -628,3 +628,29 @@
628 areaCode: '', 628 areaCode: '',
629 phoneNum: '' 629 phoneNum: ''
630 } 630 }
  631 +
  632 +## 分类
  633 +
  634 + {
  635 + searchUrl: '',
  636 + class: [
  637 + {
  638 + name: 'BOY',
  639 + focus: true, //默认选中
  640 + ca: [
  641 + {
  642 + name: '上衣',
  643 + sub: [
  644 + {
  645 + name: '全部分类',
  646 + url: ''
  647 + },
  648 + ...
  649 + ]
  650 + },
  651 + ...
  652 + ]
  653 + },
  654 + ...
  655 + ]
  656 + }
  1 +/**
  2 + * 分类
  3 + * @author: xuqi<qi.xu@yoho.cn>
  4 + * @date: 2015/10/14
  5 + */
  6 +
  7 +var $ = require('yoho.zepto');
  8 +
  9 +var $nav = $('.category-nav'),
  10 + $contents = $('.category-container > .content');
  11 +
  12 +var $curContent = $contents.not('.hide');
  13 +
  14 +$('#search-input').focus(function() {
  15 + $(this).blur();
  16 +});
  17 +
  18 +$nav.delegate('li', 'touchstart', function() {
  19 + var $this = $(this),
  20 + index = $this.index();
  21 +
  22 + if ($this.hasClass('focus')) {
  23 + return;
  24 + }
  25 +
  26 + $nav.find('li.focus').removeClass('focus');
  27 + $this.addClass('focus');
  28 +
  29 + $curContent.addClass('hide');
  30 + $curContent = $contents.eq(index).removeClass('hide');
  31 +});
  32 +
  33 +$('.primary-level').delegate('li', 'touchstart', function() {
  34 + var $this = $(this),
  35 + index = $this.index();
  36 +
  37 + var $subLevel = $this.closest('.content').find('.sub-level');
  38 +
  39 + if ($this.hasClass('focus')) {
  40 + return;
  41 + }
  42 +
  43 + $this.closest('.primary-level').children('.focus').removeClass('focus');
  44 + $this.addClass('focus');
  45 +
  46 + $subLevel.not('.hide').addClass('hide');
  47 + $subLevel.eq(index).removeClass('hide');
  48 +});
  1 +.category-page {
  2 + font-size: 30rem / $pxConvertRem;
  3 +
  4 + .search-input {
  5 + position: relative;
  6 + background-color: #f8f8f8;
  7 + padding: 13rem / $pxConvertRem 20rem / $pxConvertRem;
  8 +
  9 + p {
  10 + box-sizing: border-box;
  11 + width: 100%;
  12 + height: 60rem / $pxConvertRem;
  13 + line-height: 60rem / $pxConvertRem;
  14 + border: none;
  15 + padding-left: 53rem / $pxConvertRem;
  16 + border-radius: 60rem / $pxConvertRem;
  17 + font-size: 30rem / $pxConvertRem;
  18 + background: #fff;
  19 + color: #999;
  20 + }
  21 + }
  22 +
  23 + .search-icon {
  24 + position: absolute;
  25 + top: 0;
  26 + bottom: 0;
  27 + left: 43rem / $pxConvertRem;
  28 + line-height: 86rem / $pxConvertRem;
  29 + color: #999;
  30 + }
  31 +
  32 + .category-nav {
  33 + height: 71rem / $pxConvertRem;
  34 + border-bottom: 1px solid #e6e6e6;
  35 +
  36 + li {
  37 + display: block;
  38 + float: left;
  39 + height: 100%;
  40 + line-height: 71rem / $pxConvertRem;
  41 + width: 25%;
  42 + text-align: center;
  43 + border-right: 1px solid #e6e6e6;
  44 + color: #999;
  45 +
  46 + &:last-child {
  47 + border-right: none;
  48 + }
  49 +
  50 + &.focus {
  51 + color: #000;
  52 + }
  53 + }
  54 + }
  55 +
  56 + .content.hide {
  57 + display: none;
  58 + }
  59 +
  60 + .primary-level {
  61 + float: left;
  62 + box-sizing: border-box;
  63 + width: 40%;
  64 + background: #f8f8f8;
  65 +
  66 + > li {
  67 + height: 69rem / $pxConvertRem;
  68 + line-height: 69rem / $pxConvertRem;
  69 + padding-left: 32rem / $pxConvertRem;
  70 +
  71 + &.focus {
  72 + background-color: #fff;
  73 + }
  74 + }
  75 + }
  76 +
  77 + .sub-level-container {
  78 + float: left;
  79 + box-sizing: border-box;
  80 + padding-left: 20rem / $pxConvertRem;
  81 + background: #fff;
  82 + width: 60%;
  83 + }
  84 +
  85 + .sub-level {
  86 + width: 100%;
  87 +
  88 + &.hide {
  89 + display: none;
  90 + }
  91 +
  92 + > li {
  93 + height: 71rem / $pxConvertRem;
  94 + line-height: 71rem / $pxConvertRem;
  95 + border-bottom: 1px solid #e6e6e6;
  96 +
  97 + &:last-child {
  98 + border-bottom: none;
  99 + }
  100 + }
  101 + }
  102 +}
@@ -88,4 +88,4 @@ a { @@ -88,4 +88,4 @@ a {
88 @include border-radius(10px); 88 @include border-radius(10px);
89 } 89 }
90 90
91 -@import "layout/header", "layout/footer", "good", "passport/index", "guang/index", "homepage/index";  
  91 +@import "layout/header", "layout/footer", "good", "passport/index", "guang/index", "homepage/index", "category/index";
  1 +{{> layout/header}}
  2 +<div class="category-page yoho-page">
  3 + {{# category}}
  4 + <div id="search-input" class="search-input">
  5 + <a href={{searchUrl}}>
  6 + <i class="search-icon iconfont">&#xe60f;</i>
  7 + <p>搜索商品</p>
  8 + </a>
  9 + </div>
  10 + <div class="category-nav clearfix">
  11 + {{# class}}
  12 + <li class={{#if focus}}focus{{/if}}>
  13 + {{name}}
  14 + </li>
  15 + {{/ class}}
  16 + </div>
  17 + <div class="category-container clearfix">
  18 + {{# class}}
  19 + <div class="content {{#unless focus}}hide{{/if}}">
  20 + <ul class="primary-level">
  21 + {{# ca}}
  22 + <li class={{#if @first}}focus{{/if}}>{{name}}</li>
  23 + {{/ ca}}
  24 + </ul>
  25 + <div class="sub-level-container">
  26 + {{# ca}}
  27 + <ul class="sub-level {{#unless @first}}hide{{/if}}">
  28 + {{# sub}}
  29 + <li>
  30 + <a href={{url}}>
  31 + {{name}}
  32 + </a>
  33 + </li>
  34 + {{/ sub}}
  35 + </ul>
  36 + {{/ ca}}
  37 + </div>
  38 + </div>
  39 + {{/ class}}
  40 + </div>
  41 + {{/ category}}
  42 +</div>
  43 +{{> layout/footer}}
1 -<div class="banner-top">  
2 - <div class="banner-swiper swiper-container">  
3 - <ul class="swiper-wrapper">  
4 - {{# list}}  
5 - <li class="swiper-slide">  
6 - <a href="{{url}}">  
7 - <img src="{{img}}" alt="">  
8 - </a>  
9 - </li>  
10 - {{/ list}}  
11 - </ul>  
12 - </div>  
13 - <div class="swiper-pagination">  
14 - <div class="pagination-inner">  
15 - </div>  
16 - </div>  
17 -</div>  
@@ -10,10 +10,6 @@ @@ -10,10 +10,6 @@
10 {{> common/icons_enter}} 10 {{> common/icons_enter}}
11 {{/ iconsEnter}} 11 {{/ iconsEnter}}
12 12
13 - {{# bannerCategory}}  
14 - {{> common/banner_category}}  
15 - {{/ bannerCategory}}  
16 -  
17 {{! 热门品类}} 13 {{! 热门品类}}
18 {{# hotCategory}} 14 {{# hotCategory}}
19 {{> girls/hot_category}} 15 {{> girls/hot_category}}
@@ -34,7 +30,7 @@ @@ -34,7 +30,7 @@
34 {{> common/trend_topics}} 30 {{> common/trend_topics}}
35 {{/ trendTopics}} 31 {{/ trendTopics}}
36 32
37 - {{! 潮流时装}} 33 + {{! 潮流时装/经典裤裙/时尚靴履/潮人配饰}}
38 {{# goodsCategory}} 34 {{# goodsCategory}}
39 {{> common/goods_category}} 35 {{> common/goods_category}}
40 {{/ goodsCategory}} 36 {{/ goodsCategory}}
1 -<div class="good-info" data-id="{{id}}">  
2 - <div class="tag-container clearfix">  
3 - {{# tags}}  
4 - {{# is_new}}  
5 - <p class="good-tag new-tag">NEW</p>  
6 - {{/ is_new}}  
7 - {{# is_advance}}  
8 - <p class="good-tag renew-tag">再到着</p>  
9 - {{/ is_advance}}  
10 - {{# is_discount}}  
11 - <p class="good-tag sale-tag">SALE</p>  
12 - {{/ is_discount}}  
13 - {{# is_yohoood}}  
14 - <div class="good-tag yohood-tag"></div>  
15 - {{/ is_yohoood}}  
16 - {{# is_limited}}  
17 - <p class="good-tag limit-tag">限量商品</p>  
18 - {{/ is_limited}}  
19 - {{/ tags}}  
20 - </div>  
21 - <div class="good-detail-img">  
22 - <a class="good-islike {{# is_like}}good-like{{/ is_like}} iconfont" href="{{likeUrl}}">&#xe605;</a>  
23 - <a class="good-thumb" href="{{url}}">  
24 - <img class="lazy" data-original="{{thumb}}">  
25 - </a>  
26 - {{# is_soon_sold_out}}  
27 - <p class="few-tag">即将售罄</p>  
28 - {{/ is_soon_sold_out}}  
29 - </div>  
30 - <div class="good-detail-text">  
31 - <div class="name">  
32 - <a href="{{url}}">{{product_name}}</a>  
33 - </div>  
34 - <div class="price">  
35 - <span class="sale-price {{^market_price}}no-price{{/market_price}}">¥{{sales_price}}</span>  
36 - {{#market_price}}  
37 - <span class="market-price">¥{{.}}</span>  
38 - {{/market_price}}  
39 - </div>  
40 - </div>  
41 -</div>  
@@ -89,7 +89,9 @@ @@ -89,7 +89,9 @@
89 </script> 89 </script>
90 {{/if}} 90 {{/if}}
91 91
92 - 92 +{{!-- 品类 --}}
  93 +{{#if categoryPage}}
93 <script> 94 <script>
94 - seajs.use('js/homePage/girls');  
95 -</script>  
  95 + seajs.use('js/category/index');
  96 + </script>
  97 +{{/if}}
@@ -39,6 +39,447 @@ class GirlsController extends AbstractAction @@ -39,6 +39,447 @@ class GirlsController extends AbstractAction
39 $data['content'][] = array('maybeLike' =>$maybeLike); 39 $data['content'][] = array('maybeLike' =>$maybeLike);
40 }*/ 40 }*/
41 41
  42 + $data = array(
  43 + 'headerDownload' => array(
  44 + 'img' => 'http://img11.static.yhbimg.com/adpic/2015/02/28/18/01d83bfad41c8fca8fd1ad334216d7d733.jpg?imageView/2/w/640/h/480',
  45 + 'url' => 'http://www.baidu.com'
  46 + ),
  47 + 'homeHeader' => array(
  48 + 'bgColor' => '#FF88AE',
  49 + 'searchUrl' => ''
  50 + ),
  51 + 'sideNav' => array(
  52 + array(
  53 + 'textCn' => '男生',
  54 + 'textEn' => 'Boys',
  55 + 'styleClass' => 'boys',
  56 + 'url' => ''
  57 + ),
  58 + array(
  59 + 'textCn' => '女生',
  60 + 'textEn' => 'GIRLS',
  61 + 'styleClass' => 'girls',
  62 + 'url' => ''
  63 + ),
  64 + array(
  65 + 'textCn' => '潮童',
  66 + 'textEn' => 'KIDS',
  67 + 'styleClass' => 'kids',
  68 + 'url' => ''
  69 + ),
  70 + array(
  71 + 'textCn' => '创意生活',
  72 + 'textEn' => 'LIFE STYLE',
  73 + 'styleClass' => 'life',
  74 + 'url' => ''
  75 + ),
  76 + array(
  77 + 'textCn' => '逛',
  78 + 'textEn' => 'TRENDFINDER',
  79 + 'styleClass' => 'guang',
  80 + 'subNav' => array(
  81 + 'list' => array(
  82 + array(
  83 + 'textCn' => '逛',
  84 + 'textEn' => 'TrendFinder',
  85 + 'back' => true,
  86 + 'bgColor' => '#fd307f'
  87 + ),
  88 + array(
  89 + 'textCn' => '查看全部',
  90 + 'url' => ''
  91 + ),
  92 + array(
  93 + 'textCn' => '只看男生',
  94 + 'textEn' => 'Boys',
  95 + 'url' => ''
  96 + ),
  97 + array(
  98 + 'textCn' => '只看女生',
  99 + 'textEn' => 'Girls',
  100 + 'url' => '',
  101 + 'isSelect' => true
  102 + )
  103 + )
  104 + )
  105 + )
  106 + ),
  107 + 'content' => array(
  108 + 'bannerTop' => array(
  109 + 'list' => array(
  110 + array(
  111 + 'url' => '',
  112 + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
  113 + ),
  114 + array(
  115 + 'url' => '',
  116 + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
  117 + ),
  118 + array(
  119 + 'url' => '',
  120 + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
  121 + )
  122 + )
  123 + ),
  124 + 'iconsEnter' => array(
  125 + 'list' => array(
  126 + array(
  127 + 'url' => '',
  128 + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
  129 + 'text' => '新品到着'
  130 + ),
  131 + array(
  132 + 'url' => '',
  133 + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
  134 + 'text' => '全球优选'
  135 + ),
  136 + array(
  137 + 'url' => '',
  138 + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
  139 + 'text' => '明星潮牌'
  140 + ),
  141 + array(
  142 + 'url' => '',
  143 + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
  144 + 'text' => '全部品类'
  145 + ),
  146 + array(
  147 + 'url' => '',
  148 + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
  149 + 'text' => '逛'
  150 + ),
  151 + array(
  152 + 'url' => '',
  153 + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
  154 + 'text' => '搭配指南'
  155 + ),
  156 + array(
  157 + 'url' => '',
  158 + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
  159 + 'text' => '潮品推荐'
  160 + ),
  161 + array(
  162 + 'url' => '',
  163 + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
  164 + 'text' => '折扣精选'
  165 + )
  166 + )
  167 + ),
  168 + 'hotCategory' => array(
  169 + 'title' => array(
  170 + 'name' => '热门品类'
  171 + ),
  172 + 'list' => array(
  173 + array(
  174 + 'textCn' => '卫衣',
  175 + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
  176 + 'url' => ''
  177 + ),
  178 + array(
  179 + 'textCn' => 'T恤',
  180 + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
  181 + 'url' => ''
  182 + ),
  183 + array(
  184 + 'textCn' => '打底衫',
  185 + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
  186 + 'url' => ''
  187 + ),
  188 + array(
  189 + 'textCn' => '打底衫',
  190 + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
  191 + 'url' => ''
  192 + ),
  193 + array(
  194 + 'textCn' => '打底衫',
  195 + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
  196 + 'url' => ''
  197 + ),
  198 + array(
  199 + 'textCn' => '打底衫',
  200 + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
  201 + 'url' => ''
  202 + ),
  203 + array(
  204 + 'textCn' => '打底衫',
  205 + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
  206 + 'url' => ''
  207 + ),
  208 + array(
  209 + 'textCn' => '打底衫',
  210 + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
  211 + 'url' => ''
  212 + )
  213 + )
  214 + ),
  215 + 'hotBrands' => array(
  216 + 'title' => array(
  217 + 'name' => '热门品牌'
  218 + ),
  219 + 'list' => array(
  220 + array(
  221 + 'textCn' => 'Moussy',
  222 + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
  223 + 'url' => ''
  224 + ),
  225 + array(
  226 + 'textCn' => 'Moussy',
  227 + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
  228 + 'url' => ''
  229 + ),
  230 + array(
  231 + 'textCn' => 'Moussy',
  232 + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
  233 + 'url' => ''
  234 + ),
  235 + array(
  236 + 'textCn' => 'Moussy',
  237 + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
  238 + 'url' => ''
  239 + ),
  240 + array(
  241 + 'textCn' => 'Moussy',
  242 + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
  243 + 'url' => ''
  244 + ),
  245 + array(
  246 + 'textCn' => 'Moussy',
  247 + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
  248 + 'url' => ''
  249 + )
  250 + )
  251 + ),
  252 +
  253 + 'trendColloaction' => array(
  254 + 'title' => array(
  255 + 'title' => '潮人 ▪ 搭配',
  256 + 'more_name' => '...',
  257 + 'more_url' => 'http://www.yohobuy.com?openby:yohobuy={"action":"go.guangchannel","params":{"id":3,"name":"\u6f6e\u4eba"}}'
  258 + ),
  259 + 'article' => array(
  260 + array(
  261 + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
  262 + 'url' => ''
  263 + ),
  264 + array(
  265 + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
  266 + 'url' => ''
  267 + )
  268 + ),
  269 +
  270 + 'recommend_collocation' => array(
  271 + array(
  272 + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
  273 + 'url' => ''
  274 + ),
  275 + array(
  276 + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
  277 + 'url' => ''
  278 + ),
  279 + array(
  280 + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
  281 + 'url' => ''
  282 + ),
  283 + array(
  284 + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
  285 + 'url' => ''
  286 + ),
  287 + array(
  288 + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
  289 + 'url' => ''
  290 + )
  291 + )
  292 + ),
  293 + 'trendTopics' => array(
  294 + 'title' => array(
  295 + 'title' => '潮品 ▪ 话题',
  296 + 'more_name' => '...',
  297 + 'more_url' => 'http://www.yohobuy.com?openby:yohobuy={"action":"go.guangchannel","params":{"id":3,"name":"\u6f6e\u4eba"}}'
  298 + ),
  299 + 'list' => array(
  300 + array(
  301 + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
  302 + 'url' => '',
  303 + 'title' => '现代裁剪',
  304 + 'time' => '2月13日 12:34'
  305 + ),
  306 + array(
  307 + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
  308 + 'url' => '',
  309 + 'title' => '现代裁剪',
  310 + 'time' => '2月13日 12:34'
  311 + ),
  312 + array(
  313 + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
  314 + 'url' => '',
  315 + 'title' => '现代裁剪',
  316 + 'time' => '2月13日 12:34'
  317 + )
  318 + )
  319 + ),
  320 + 'goodsCategory' => array(
  321 + 'title' => array(
  322 + 'title' => '潮流时装',
  323 + 'more_name' => '...',
  324 + 'more_url' => 'http://www.yohobuy.com?openby:yohobuy={"action":"go.guangchannel","params":{"id":3,"name":"\u6f6e\u4eba"}}'
  325 + ),
  326 + 'big_image' => array(
  327 + 'list' => array(
  328 + array(
  329 + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
  330 + 'url' => ''
  331 + )
  332 + )
  333 + ),
  334 + 'list' => array(
  335 + array(
  336 + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
  337 + 'url' => '',
  338 + 'textCn' => '手表'
  339 + ),
  340 + array(
  341 + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
  342 + 'url' => '',
  343 + 'textCn' => '烛台'
  344 + ),
  345 + array(
  346 + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
  347 + 'url' => '',
  348 + 'textCn' => '围巾'
  349 + ),
  350 + array(
  351 + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
  352 + 'url' => '',
  353 + 'textCn' => '盘子'
  354 + ),
  355 + array(
  356 + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
  357 + 'url' => '',
  358 + 'textCn' => '耳机'
  359 + )
  360 + )
  361 + ),
  362 +
  363 +
  364 +
  365 + 'bannerCenter' => array(
  366 + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/24/16/02ee02f1dd11c9103f7cf7995eafdaa605.jpg',
  367 + 'url' => ''
  368 + ),
  369 +
  370 + 'creativeLife' => array(
  371 + 'name' => '创意生活',
  372 + 'more' => '',
  373 + 'url' => '',
  374 + 'banner' => 'http://img10.static.yhbimg.com/yhb-img01/2015/07/09/18/0119ffceddb0819d36d74b408bd743b4a9.jpg?imageView/2/w/640/h/640',
  375 + 'classify' => array(
  376 + array(
  377 + 'url' => '',
  378 + 'img' => 'http://img13.static.yhbimg.com/goodsimg/2015/04/10/05/029bef1041343ea2e31dc0423f2f176589.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
  379 + 'name' => '手表'
  380 + ), array(
  381 + 'url' => '',
  382 + 'img' => 'http://img12.static.yhbimg.com/goodsimg/2015/07/07/09/02271a775d17649860abec4387b4559e26.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
  383 + 'name' => '烛台'
  384 + ), array(
  385 + 'url' => '',
  386 + 'img' => 'http://img12.static.yhbimg.com/goodsimg/2015/05/19/07/02a269d20ed44803eee33e255fe88d7873.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
  387 + 'name' => '围巾'
  388 + ), array(
  389 + 'url' => '',
  390 + 'img' => 'http://img13.static.yhbimg.com/goodsimg/2015/06/01/07/02fe94083352435ce53b5d90812cc5bdbd.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
  391 + 'name' => '盘子'
  392 + ), array(
  393 + 'url' => '',
  394 + 'img' => 'http://img12.static.yhbimg.com/goodsimg/2015/07/08/07/028db8a2afbe4ecbf37bebc7e98e8e1e80.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
  395 + 'name' => '耳机'
  396 + ), array(
  397 + 'url' => '',
  398 + 'img' => 'http://img13.static.yhbimg.com/goodsimg/2015/04/22/02/02a1b688b6dafd786f391e0624aea1e93b.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
  399 + 'name' => '生活'
  400 + )
  401 + )
  402 + ),
  403 +
  404 +
  405 + 'plusStar' => array(
  406 + 'name' => 'PLUS 全球优选',
  407 + 'url' => '',
  408 + 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/07/13/15/014f7ba48071160053ac3b8f045b9fc264.jpg?imageView/2/w/640/h/640'
  409 + ),
  410 +
  411 + 'bannerCenter' => array(
  412 + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/24/16/02ee02f1dd11c9103f7cf7995eafdaa605.jpg',
  413 + 'url' => ''
  414 + ),
  415 +
  416 + 'plusStar' => array(
  417 + 'name' => 'STAR 明星潮牌',
  418 + 'url' => '',
  419 + 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/07/13/15/014f7ba48071160053ac3b8f045b9fc264.jpg?imageView/2/w/640/h/640'
  420 +
  421 + ),
  422 + 'bannerCenter' => array(
  423 + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/24/16/02ee02f1dd11c9103f7cf7995eafdaa605.jpg',
  424 + 'url' => ''
  425 + ),
  426 +
  427 + 'maybeLike' => array(
  428 + 'goods' => array(
  429 + array(
  430 + 'id' => 1,
  431 + 'thumb' => 'http://img11.static.yhbimg.com/goodsimg/2015/03/02/07/01ebfb219e22770ffb0c2c3a2cbb2b4bef.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
  432 + 'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',
  433 + 'isLike' => false,
  434 + 'price' => 1268,
  435 + 'salePrice' => 589,
  436 + 'isSale' => true,
  437 + 'isFew' => true,
  438 + 'isNew' => false,
  439 + 'url' => ''
  440 + ), array(
  441 + 'id' => 2,
  442 + 'thumb' => 'http://img13.static.yhbimg.com/goodsimg/2015/03/03/08/023d70c59e81ccbfb39404487aaf642da2.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
  443 + 'name' => 'CLOTtee 撞色连帽外套',
  444 + 'isLike' => false,
  445 + 'price' => 488,
  446 + 'salePrice' => 139,
  447 + 'isSale' => true,
  448 + 'isFew' => true,
  449 + 'isNew' => false,
  450 + 'url' => ''
  451 + ), array(
  452 + 'id' => 3,
  453 + 'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/03/02/08/02e2d44125e95495e3152aa459fa6b9b0c.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
  454 + 'name' => 'HALFGIRL 插肩棒球服短裙套装',
  455 + 'isLike' => true,
  456 + 'price' => 478,
  457 + 'salePrice' => 208,
  458 + 'isSale' => true,
  459 + 'isFew' => true,
  460 + 'isNew' => false,
  461 + 'url' => ''
  462 + ), array(
  463 + 'id' => 4,
  464 + 'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/03/03/08/022f25fbe177ee12803c522f04fcce06d0.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
  465 + 'name' => '黄伟文Wyman X yohood联名商品YYYOHOOD连帽卫衣',
  466 + 'isLike' => false,
  467 + 'salePrice' => 148,
  468 + 'isSale' => false,
  469 + 'isFew' => false,
  470 + 'isNew' => true,
  471 + 'url' => ''
  472 + )
  473 + )
  474 + ),
  475 +
  476 + 'bannerBottom' => array(
  477 + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/24/16/02ee02f1dd11c9103f7cf7995eafdaa605.jpg',
  478 + 'url' => ''
  479 + )
  480 +
  481 + ));
  482 +
42 $this->_view->assign('title', 'YOHO!有货'); 483 $this->_view->assign('title', 'YOHO!有货');
43 $this->_view->display('index', $data); 484 $this->_view->display('index', $data);
44 } 485 }
1 <?php 1 <?php
2 use Action\AbstractAction; 2 use Action\AbstractAction;
3 -use LibModels\Wap\Category\ClassData; 3 +// use LibModels\Wap\Category\ClassData;
4 4
5 /** 5 /**
6 * 品牌 6 * 品牌
@@ -9,18 +9,89 @@ class ClassController extends AbstractAction @@ -9,18 +9,89 @@ class ClassController extends AbstractAction
9 { 9 {
10 public function indexAction() 10 public function indexAction()
11 { 11 {
12 - $brandsData = ClassData::getClassesData(); 12 + // $brandsData = ClassData::getClassesData();
13 13
14 - $classes = array();  
15 - if($brandsData['code'] == 200)  
16 - {  
17 - $classes = $brandsData['data'];  
18 - } 14 + // $classes = array();
  15 + // if($brandsData['code'] == 200)
  16 + // {
  17 + // $classes = $brandsData['data'];
  18 + // }
  19 +
  20 + // echo '<pre>';
  21 + // var_dump($classes);exit;
19 22
20 - echo '<pre>';  
21 - var_dump($classes);exit; 23 + // $this->_view->assign('title', 'YOHO!有货');
  24 + // $this->_view->display('class', compact('classes'));
  25 + $data = array(
  26 + "searchUrl" => "",
  27 + "class" => array(
  28 + array(
  29 + "name" => "Boy",
  30 + "focus" => true,
  31 + "ca" => array(
  32 + array(
  33 + "name" => "上衣",
  34 + "sub" => array(
  35 + array(
  36 + "name" => "全部上衣",
  37 + "url" => ""
  38 + ),
  39 + array(
  40 + "name" => "卫衣",
  41 + "url" => ""
  42 + )
  43 + )
  44 + ),
  45 + array(
  46 + "name" => "裤装",
  47 + "sub" => array(
  48 + array(
  49 + "name" => "全部裤装",
  50 + "url" => ""
  51 + ),
  52 + array(
  53 + "name" => "牛仔裤",
  54 + "url" => ""
  55 + )
  56 + )
  57 + )
  58 + )
  59 + ),
  60 + array(
  61 + "name" => "Girl",
  62 + "ca" => array(
  63 + array(
  64 + "name" => "裙装",
  65 + "sub" => array(
  66 + array(
  67 + "name" => "全部裙装",
  68 + "url" => ""
  69 + ),
  70 + array(
  71 + "name" => "短裙",
  72 + "url" => ""
  73 + )
  74 + )
  75 + ),
  76 + array(
  77 + "name" => "鞋靴",
  78 + "sub" => array(
  79 + array(
  80 + "name" => "全部鞋靴",
  81 + "url" => ""
  82 + ),
  83 + array(
  84 + "name" => "休闲鞋",
  85 + "url" => ""
  86 + )
  87 + )
  88 + )
  89 + )
  90 + )
  91 + )
  92 + );
22 93
23 $this->_view->assign('title', 'YOHO!有货'); 94 $this->_view->assign('title', 'YOHO!有货');
24 - $this->_view->display('class', compact('classes')); 95 + $this->_view->display('index', array('categoryPage' => true, 'category' => $data));
25 } 96 }
26 } 97 }