Detail.php 7.16 KB
<?php
use Action\AbstractAction;

/**
 * 商品详情的控制器
 */
class DetailController extends AbstractAction
{
    /**
     * 商品详情
     * 
     * @param  
     */
    public function indexAction()
    {     
        $data = array (
            'goodsDetailPage' => true,
            'pageHeader' => array (
                'navBack' => 'sss ',
                'navHome' => 'sss ',
                'navTitle' => '商品详情TEST'
            ),
            'bannerTop' => array (
                'list' => array (
                    array ( 
                        'url' => '',
                        'img' => 'http://img13.static.yhbimg.com/goodsimg/2015/10/18/03/0250c3935f86dbd2baa7d45603d19fd637.jpg?imageMogr2/thumbnail/450x600/extent/450x600/background/d2hpdGU=/position/center/quality/90'
                    ),
                    array (
                        'url' => '',
                        'img' => 'http://img11.static.yhbimg.com/goodsimg/2015/10/12/03/01bf4cf4444035a1930d33a9d0f8bff4fa.jpg?imageMogr2/thumbnail/450x600/extent/450x600/background/d2hpdGU=/position/center/quality/90'
                    ),
                    array (
                        'url' => '',
                        'img' => 'http://img11.static.yhbimg.com/goodsimg/2015/10/12/03/01d7ef2f624eeea15e80bb374607aea317.jpg?imageMogr2/thumbnail/450x600/extent/450x600/background/d2hpdGU=/position/center/quality/90'
                    )
                )
            ),
            'goodsName' => 'Stussy No. 4 BOX TEE  DC SPAR  HIGH WC 
SHOE BQT KEN BLOCK',
           'goodsSubtitle'=>'【全民拼抢购】经典印花T恤,满4件免一件!全场低至
9.9元,拼购时代High起来。',

            'goodsPrice' =>array(
                    'currentPrice'=>'¥298.00',
                    'previousPrice'=>'¥598.00'
                ),
            'periodOfMarket'=>'11月',
            'goodsTitle' => '¥298.00',
            'vipLevel' => array (
                'list' => array (
                    array (
                        'img'=>'http://static.dev.yohobuy.com/img/product/silver.png',
                        'text' => '¥284.00'
                    ),
                    array (
                        'img'=>'http://static.dev.yohobuy.com/img/product/golden.png',
                        'text' => '¥269.00'
                    ),
                    array (
                        'img'=>'http://static.dev.yohobuy.com/img/product/platinum.png',
                        'text' => '¥263.00'
                    )
                )
            ),
            'goodsDiscount'=>'【summer final sale】满¥499立享6.8折',
            'feedbacks'=>array(
                'commentName'=>'商品评价(15)',
                'consultName' =>'购买咨询(2)',
                'moreComments'=>'http://www.baidu.com',
                'comments'=>array(

                     array(
                        'userName'=>'Lynnic',
                        'desc'=>'购买了白色Mate7',
                        'content'=>'活动时买的,挺超值。上身效果也不错。质量
很好,买送人的,很满意。而且物流相当给...',
                        'time'=>'2014-08-12 10:24:26'
                        )
                    ),
                'consults'=>array(
                    )
                ),
            'enterStore'=>array(
                'img'=>'http://static.dev.yohobuy.com/img/product/store.png',
                'storeName'=>'Stussy',
                'url'=>'http://stussy.m.yohobuy.com/'
            ),

            'goodsDescription'=>array(
                  'title' =>'商品描述',
                  'enTitle'=>'DESCRIPTON',

                  'detail'=>array(
                         'nubmer' =>'51018059',
                          'color'      =>'黑',
                          'type'      =>'帽子',
                          'gender'  =>'女款',
                          'hatType' =>'棒球帽',
                          'bongrace' =>'平檐款式',
                          'goodsDetail'=>'字母图案',
                          'style'=>'街头'
                  )
            ),

            'sizeInfo'=>array(
                  'title' => '尺码信息',
                  'enTitle' =>'SIZE INFO',

                  'detail' =>array(
                     'list'=>array(
                         array(
                            'size'=>'M',
                            'shoulderWidth'=>'43',
                            'bodyLength'=>'102',
                            'sleevesLength'=>'65',
                            'chestMeasurement'=>'90'
                            ),
                         array(
                            'size'=>'XL',
                            'shoulderWidth'=>'46',
                            'bodyLength'=>'106',
                            'sleevesLength'=>'69',
                            'chestMeasurement'=>'96'
                            )
                         )
                  )
            ),
             
            'measurementMethod'=>array(
                  'title' => '测量方式',
                  'enTitle' =>'SIZE INFO',

                  'detail'=>array(
                         'kind' =>'上衣' ,
                         'enKind'=>'TOPS',

                         'img' =>''
                    )
                ),
            
            'reference' => array(
                  'title' => '模特试穿',
                  'enTitle' =>'REFERENCE',

                  'detail'=>array(
                       'list' => array(
                              array(
                                    'avatar' =>'',
                                    'name' =>'Oliver',
                                    'height' => '170',
                                    'weight' =>'55',
                                    'BWH' =>'78/70/87',
                                    'size'  =>'S'
                                ),
                               array(
                                    'avatar' =>'',
                                    'name' =>'Jvly',
                                    'height' => '170',
                                    'weight' =>'59',
                                    'BWH' =>'78/70/87',
                                    'size'  =>'L'
                                )
                        )
                    )
                ),
            
            'meterials' => array(
                    'img' => '',
                    'desc' =>'用各种洗涤剂,可手洗机洗,但不宜氯漂,宜阴干,避免曝晒,以免深色衣物褪色,在日光下晾晒时,将里面朝外。浸泡时间不能太长,避免褪色,深色与浅色衣服最好请分开洗涤,避免染色。'
                ),

            'productDetail' =>array(
                    'desc' => 'Married to the MOB是由Leah McSweeney创立的女装品牌,一向标榜不羁、大胆的女性streetwear设计。喜欢恶搞的女生们,赶紧入手吧。',
                    'img'  =>''
                )

        );
   
        $this->_view->assign('title', '商品详情');
        //$this->_view->display('brand', compact('brands'));

        // 渲染模板
        $this->_view->display('index', $data);
    }
}