Girls.php 28.9 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657
<?php

use Action\AbstractAction;
use LibModels\Wap\Home\IndexData;
use Plugin\Helpers;
/**
 * 女生首页
 */
class GirlsController extends AbstractAction
{

    public function indexAction()
    {
 
        // 显示侧边栏
        $this->setNavSide();
        
 
      $data = array(
        'headerDownload' => $this->getHeaderDownload(),
        'homeHeader' => array(
            'bgColor' => '#FF88AE',
            'searchUrl' =>  ''
        ),
        'searchUrl' => '',
        'sideNav' => array(),
        'content' => array()
      );

      $sideDatas = IndexData::getHomeChannels();
      if($sideDatas['code'] == 200)
      {
        $data['sideNav'] = $sideDatas['data'];
      }

      // 频道数据
      $channelData = IndexData::getUserChannelData(0, '2,3', '201504091403002');
      $channels = array();
      if($channelData['code'] == 200)
      {
        $content = array();
        $bannerTop = array();
        $iconsEnter = array();
        $singleImage = array();
        $hotCategory = array();
        $hotBrandsScroll = array();
        $trendColloaction = array();
        $trendTopics = array();
        $goodsCategory = array();
        $recommend_content_two = array();
        $small_pic = array();

        foreach ($channelData['data']['list'] as $key => $val) {
          switch ($val['template_name']) {
            case 'focus': // 焦点图
              $oneFocus = array();
              foreach ($val['data'] as &$one) {
                $one['img'] = Helpers::getImageUrl($one['src'], 750, 364, 1);
              }
              $oneFocus['list'] = $val['data'];
              $bannerTop[] = $oneFocus;
              break;
            case 'app_icon_list': // 图标列表
              $oneIcon = array();
              foreach ($val['data'] as &$one) {
                $one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1);
              }
              $oneIcon['list'] = $val['data'];
              $iconsEnter[] = $oneIcon;
              break;
            case 'single_image': // 单图片
              $oneImage = array();
              foreach ($val['data'] as &$one) {
                $one['img'] = Helpers::getImageUrl($one['src'], 750, 364, 1);
              }
              $oneImage['list'] = $val['data'];
              $singleImage[] = $oneImage;
              break;
            case 'recommend_content_five': // 带标题的12个小图推荐
              $oneHot = array();
              foreach ($val['data']['list'] as &$one) {
                $one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1);
              }
              $oneHot = $val['data'];
              $hotCategory[] = $oneHot;
              break;
            case 'app_hot_brands': // 推荐品牌
              $oneHotBrand = array();
              foreach ($val['data']['list'] as &$one) {
                $one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1);
              }
              $oneHotBrand = $val['data'];
              $hotBrandsScroll[] = $oneHotBrand;
              break;
            case 'trendsetter_collocation': // 潮人·搭配
              $oneTrendSetter = array();
              foreach ($val['data']['article'] as &$one) {
                $one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1);
              }
              foreach ($val['data']['recommend_collocation'] as &$one) {
                $one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1);
              }
              $oneTrendSetter = $val['data'];
              $trendColloaction[] = $oneTrendSetter;
              break;
            case 'trendgoods_topic': // 潮品·话题
              $oneTopic = array();
              foreach ($val['data']['list'] as &$one) {
                $one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1);
              }
              $oneTopic = $val['data'];
              $trendTopics[] = $oneTopic;
              break;
            case 'recommend_content_one': // 一张大图一个大的推荐和4个小图推荐
              $oneGoodCategory = array();
              foreach ($val['data']['big_image'] as &$one) {
                $one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1);
              }
              foreach ($val['data']['list'] as &$one) {
                $one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1);
              }
              $oneGoodCategory = $val['data'];
              $goodsCategory[] = $oneGoodCategory;
              break;
            case 'recommend_content_two': // 一张大图和6个小图推荐
              $oneRecoContTwo = array();
              foreach ($val['data']['big_image'] as &$one) {
                $one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1);
              }
              foreach ($val['data']['list'] as &$one) {
                $one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1);
              }
              $oneRecoContTwo = $val['data'];
              $recommend_content_two[] = $oneRecoContTwo;
              break;
            case 'small_pic': // 小图片
              $oneSmallPic = array();
              foreach ($val['data'] as &$one) {
                $one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1);
              }
              $oneSmallPic = $val['data'];
              $small_pic[] = $oneSmallPic;
              break;
            default:
              break;
          }
 

          $content[$key] = array(
            'bannerTop' => $bannerTop,
            'iconsEnter' => $iconsEnter,
            'hotCategory' => $hotCategory,
            'hotBrandsScroll' => $hotBrandsScroll,
            'trendColloaction' => $trendColloaction,
            'trendTopics' => $trendTopics,
            'goodsCategory' => $goodsCategory
          );
        }

        $data['content'] = $content;
      }

      $this->_view->assign('title', 'YOHO!有货');
      $this->_view->display('index', $data);

      // 显示侧边栏
      $this->setNavSide();
        
      $data = array(
            'headerDownload' => array(
                'img' => 'http://img11.static.yhbimg.com/adpic/2015/02/28/18/01d83bfad41c8fca8fd1ad334216d7d733.jpg?imageView/2/w/640/h/480',
                'url' => 'http://www.baidu.com'
            ),
            'homeHeader' => array(
                'bgColor' => '#FF88AE',
                'searchUrl' => ''
            ),
            'sideNav' => array(
                array(
                    'textCn' => '男生',
                    'textEn' => 'Boys',
                    'styleClass' => 'boys',
                    'url' => ''
                ),
                array(
                    'textCn' => '女生',
                    'textEn' => 'GIRLS',
                    'styleClass' => 'girls',
                    'url' => ''
                ),
                array(
                    'textCn' => '潮童',
                    'textEn' => 'KIDS',
                    'styleClass' => 'kids',
                    'url' => ''
                ),
                array(
                    'textCn' => '创意生活',
                    'textEn' => 'LIFE STYLE',
                    'styleClass' => 'life',
                    'url' => ''
                ),
                array(
                    'textCn' => '逛',
                    'textEn' => 'TRENDFINDER',
                    'styleClass' => 'guang',
                    'subNav' => array(
                        'list' => array(
                            array(
                                'textCn' => '逛',
                                'textEn' => 'TrendFinder',
                                'back' => true,
                                'bgColor' => '#fd307f'
                            ),
                            array(
                                'textCn' => '查看全部',
                                'url' => ''
                            ),
                            array(
                                'textCn' => '只看男生',
                                'textEn' => 'Boys',
                                'url' => ''
                            ),
                            array(
                                'textCn' => '只看女生',
                                'textEn' => 'Girls',
                                'url' => '',
                                'isSelect' => true
                            )
                        )
                    )
                )
            ),
            'content' => array(
                'bannerTop' => array(
                    'list' => array(
                        array(
                            'url' => '',
                            'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
                        ),
                        array(
                            'url' => '',
                            'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
                        ),
                        array(
                            'url' => '',
                            'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
                        )
                    )
                ),
                'iconsEnter' => array(
                    'list' => array(
                        array(
                            'url' => '',
                            'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
                            'text' => '新品到着'
                        ),
                        array(
                            'url' => '',
                            'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
                            'text' => '全球优选'
                        ),
                        array(
                            'url' => '',
                            'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
                            'text' => '明星潮牌'
                        ),
                        array(
                            'url' => '',
                            'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
                            'text' => '全部品类'
                        ),
                        array(
                            'url' => '',
                            'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
                            'text' => '逛'
                        ),
                        array(
                            'url' => '',
                            'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
                            'text' => '搭配指南'
                        ),
                        array(
                            'url' => '',
                            'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
                            'text' => '潮品推荐'
                        ),
                        array(
                            'url' => '',
                            'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
                            'text' => '折扣精选'
                        )
                    )
                ),
                'hotCategory' => array(
                    'img' => 'http://img11.static.yhbimg.com/adpic/2015/02/28/18/01d83bfad41c8fca8fd1ad334216d7d733.jpg?imageView/2/w/640/h/480',
                    'url' => 'http://www.baidu.com',
                    'list' => array(
                        array(
                            'textCn' => '打底衫',
                            'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
                            'url' => ''
                        ),
                        array(
                            'textCn' => '打底衫',
                            'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
                            'url' => ''
                        ),
                        array(
                            'textCn' => '打底衫',
                            'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
                            'url' => ''
                        ),
                        array(
                            'textCn' => '打底衫',
                            'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
                            'url' => ''
                        ),
                        array(
                            'textCn' => '打底衫',
                            'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
                            'url' => ''
                        ),
                        array(
                            'textCn' => '打底衫',
                            'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
                            'url' => ''
                        ),
                        array(
                            'textCn' => '打底衫',
                            'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
                            'url' => ''
                        ),
                        array(
                            'textCn' => '打底衫',
                            'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
                            'url' => ''
                        ),
                        array(
                            'textCn' => '打底衫',
                            'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
                            'url' => ''
                        )
                    )
                ),
                'hotBrandsScroll' => array(
                    'name' => '热门品牌',
                    'list' => array(
                        array(
                            'textCn' => 'Moussy',
                            'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
                            'url' => ''
                        ),
                        array(
                            'textCn' => 'Moussy',
                            'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
                            'url' => ''
                        ),
                        array(
                            'textCn' => 'Moussy',
                            'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
                            'url' => ''
                        ),
                        array(
                            'textCn' => 'Moussy',
                            'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
                            'url' => ''
                        ),
                        array(
                            'textCn' => 'Moussy',
                            'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
                            'url' => ''
                        ),
                        array(
                            'textCn' => 'Moussy',
                            'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
                            'url' => ''
                        ),
                        array(
                            'textCn' => 'Moussy',
                            'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
                            'url' => ''
                        ),
                        array(
                            'textCn' => 'Moussy',
                            'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
                            'url' => ''
                        ),
                        array(
                            'textCn' => 'Moussy',
                            'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
                            'url' => ''
                        )
                    )
                ),
                'hotBrands' => array(
                    'name' => '热门品牌',
                    'more' => 'www.baidu.com',
                    'brands' => array(
                        array(
                            'name' => 'Front Row Shop',
                            'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
                            'url' => ''
                        ),
                        array(
                            'name' => 'dress lab',
                            'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
                            'url' => ''
                        ),
                        array(
                            'name' => 'DEVIL NUT',
                            'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
                            'url' => ''
                        ),
                        array(
                            'name' => 'casselini',
                            'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
                            'url' => ''
                        ),
                        array(
                            'name' => 'haso',
                            'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
                            'url' => ''
                        ),
                        array(
                            'name' => 'EVISU',
                            'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
                            'url' => ''
                        )
                    )
                ),
                'trendColloaction' => array(
                    'name' => '潮人  ▪  搭配',
                    'more' => '',
                    'leftspan' => array(
                        'url' => '',
                        'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
                    ),
                    'rightspan' => array(
                        'url' => '',
                        'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
                    ),
                    'recommendlist' => array(
                        array(
                            'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
                            'url' => ''
                        ),
                        array(
                            'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
                            'url' => ''
                        ),
                        array(
                            'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
                            'url' => ''
                        ),
                        array(
                            'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
                            'url' => ''
                        ),
                        array(
                            'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
                            'url' => ''
                        )
                    )
                ),
                'trendTopics' => array(
                    'name' => '潮品  ▪  话题',
                    'more' => '',
                    'list' => array(
                        array(
                            'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
                            'url' => '',
                            'title' => '现代裁剪',
                            'time' => '2月13日 12:34'
                        ),
                        array(
                            'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
                            'url' => '',
                            'title' => '现代裁剪',
                            'time' => '2月13日 12:34'
                        ),
                        array(
                            'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
                            'url' => '',
                            'title' => '现代裁剪',
                            'time' => '2月13日 12:34'
                        )
                    )
                ),
                'goodsCategory' => array(
                    'name' => '经典裤装',
                    'more' => '',
                    'banner' => array(
                        'list' => array(
                            array(
                                'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
                                'url' => ''
                            )
                        )
                    ),
                    'list' => array(
                        array(
                            'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
                            'url' => '',
                            'textCn' => '手表'
                        ),
                        array(
                            'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
                            'url' => '',
                            'textCn' => '烛台'
                        ),
                        array(
                            'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
                            'url' => '',
                            'textCn' => '围巾'
                        ),
                        array(
                            'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
                            'url' => '',
                            'textCn' => '盘子'
                        ),
                        array(
                            'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
                            'url' => '',
                            'textCn' => '耳机'
                        )
                    )
                ),


'bannerCenter' => array(
            'img' => 'http://img02.yohoboys.com/staticimg/2015/06/24/16/02ee02f1dd11c9103f7cf7995eafdaa605.jpg',
            'url' => ''
        ),

 'creativeLife' => array(
            'name' => '创意生活',
            'more' => '',
            'url' => '',
            'banner' => 'http://img10.static.yhbimg.com/yhb-img01/2015/07/09/18/0119ffceddb0819d36d74b408bd743b4a9.jpg?imageView/2/w/640/h/640',
            'classify' => array(
             array(   
                'url' => '',
                'img' => 'http://img13.static.yhbimg.com/goodsimg/2015/04/10/05/029bef1041343ea2e31dc0423f2f176589.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
                'name' => '手表'
            ), array(
                'url' => '',
                'img' => 'http://img12.static.yhbimg.com/goodsimg/2015/07/07/09/02271a775d17649860abec4387b4559e26.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
                'name' => '烛台'
            ), array(
                'url' => '',
                'img' => 'http://img12.static.yhbimg.com/goodsimg/2015/05/19/07/02a269d20ed44803eee33e255fe88d7873.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
                'name' => '围巾'
            ), array(
                'url' => '',
                'img' => 'http://img13.static.yhbimg.com/goodsimg/2015/06/01/07/02fe94083352435ce53b5d90812cc5bdbd.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
                'name' => '盘子'
            ), array(
                'url' => '',
                'img' => 'http://img12.static.yhbimg.com/goodsimg/2015/07/08/07/028db8a2afbe4ecbf37bebc7e98e8e1e80.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
                'name' => '耳机'
            ), array(
                'url' => '',
                'img' => 'http://img13.static.yhbimg.com/goodsimg/2015/04/22/02/02a1b688b6dafd786f391e0624aea1e93b.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
                'name' => '生活'
            )
        )
    ), 


'plusStar' => array(
            'name' => 'PLUS 全球优选',
            'url' => '',
            'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/07/13/15/014f7ba48071160053ac3b8f045b9fc264.jpg?imageView/2/w/640/h/640'
        
    ),

    'bannerCenter' => array(
            'img' => 'http://img02.yohoboys.com/staticimg/2015/06/24/16/02ee02f1dd11c9103f7cf7995eafdaa605.jpg',
            'url' => ''
    ),

  'plusStar' => array(
            'name' => 'STAR 明星潮牌',
            'url' => '',
            'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/07/13/15/014f7ba48071160053ac3b8f045b9fc264.jpg?imageView/2/w/640/h/640'
     
    ),
   'bannerCenter' => array(
            'img' => 'http://img02.yohoboys.com/staticimg/2015/06/24/16/02ee02f1dd11c9103f7cf7995eafdaa605.jpg',
            'url' => ''
    ),

'maybeLike' => array(
        'goods' => array(
         array(   
            'id' => 1,
            'thumb' => 'http://img11.static.yhbimg.com/goodsimg/2015/03/02/07/01ebfb219e22770ffb0c2c3a2cbb2b4bef.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
            'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',
            'isLike' => false,
            'price' => 1268,
            'salePrice' => 589,
            'isSale' => true,
            'isFew' => true,
            'isNew' => false,
            'url' => ''
        ), array(
            'id' => 2,
            'thumb' => 'http://img13.static.yhbimg.com/goodsimg/2015/03/03/08/023d70c59e81ccbfb39404487aaf642da2.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
            'name' => 'CLOTtee 撞色连帽外套',
            'isLike' => false,
            'price' => 488,
            'salePrice' => 139,
            'isSale' => true,
            'isFew' => true,
            'isNew' => false,
            'url' => ''
        ), array(
            'id' => 3,
            'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/03/02/08/02e2d44125e95495e3152aa459fa6b9b0c.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
            'name' => 'HALFGIRL 插肩棒球服短裙套装',
            'isLike' => true,
            'price' => 478,
            'salePrice' => 208,
            'isSale' => true,
            'isFew' => true,
            'isNew' => false,
            'url' => ''
        ), array(
            'id' => 4,
            'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/03/03/08/022f25fbe177ee12803c522f04fcce06d0.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
            'name' => '黄伟文Wyman X yohood联名商品YYYOHOOD连帽卫衣',
            'isLike' => false,
            'salePrice' => 148,
            'isSale' => false,
            'isFew' => false,
            'isNew' => true,
            'url' => ''
        )
    )
),

'bannerBottom' => array(
        'img' => 'http://img02.yohoboys.com/staticimg/2015/06/24/16/02ee02f1dd11c9103f7cf7995eafdaa605.jpg',
        'url' => ''
    )



        ));
 

      $this->_view->assign('title', 'YOHO!有货');
      $this->_view->display('index', $data);
    }

}