Consult.php 6.32 KB
<?php

use Action\WebAction;

/**
 * 个人中心
 */
class consultController extends WebAction
{
    /**
     * 我的咨询
     */
    public function indexAction()
    {
        $data = array(
            'path' => array(
                array(
                    'href' => 'www.yohobuy.com',
                    'name' => 'YOHO!有货首页'
                ),
                array(
                    'href' => 'www.yohobuy.com/home',
                    'name' => '个人中心'
                ),
                array(
                    'name' => '订单中心'
                )
            ),
            'userThumb' => 'http://img10.static.yhbimg.com/headimg/2013/11/28/09/01cae078abe5fe320c88cdf4c220212688.gif?imageView/2/w/100/h/100',
            'homeNav' => array(
                array(
                    'title' => '交易管理',
                    'subNav' => array(
                        array(
                            'name' => '我的订单',
                            'href' => '/'
                        ),
                        array(
                            'name' => '我的收藏',
                            'href' => '/'
                        ),
                        array(
                            'name' => '我的YOHO币',
                            'href' => '/'
                        ),
                        array(
                            'name' => '我的红包',
                            'href' => '/'
                        ),
                        array(
                            'name' => '我的优惠券',
                            'href' => '/'
                        ),
                        array(
                            'name' => '我的VIP',
                            'href' => '/'
                        )
                    )
                ),
                array(
                    'title' => '服务中心',
                    'subNav' => array(
                        array(
                            'name' => '我的退/换货',
                            'href' => '/'
                        ),
                        array(
                            'name' => '我的咨询',
                            'href' => '/',
                            'active' => true
                        ),
                        array(
                            'name' => '我的评论',
                            'href' => '/'
                        ),
                        array(
                            'name' => '我的投诉',
                            'href' => '/'
                        ),
                        array(
                            'name' => '我的信息',
                            'href' => '/'
                        ),
                        array(
                            'name' => '在线客服',
                            'href' => '/'
                        )
                    )
                )
            ),
            'consults' => array(
                array(
                    'href' => '',
                    'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/06/08/02107c4a7aed6d189584116c6f1fa7ec03.jpg?imageMogr2/thumbnail/60x60/extent/60x60/background/d2hpdGU=/position/center/quality/90',
                    'name' => 'MACROPUS PU简约系列双肩包',
                    'question' => '170, 65应该穿多大号',
                    'reply' => '向您推荐L号供参考,由于版型和个人穿衣风格不同,建议您参照此款商品“尺码信息”。
                        感谢您对Yoho!Buy有货的支持,祝您购物愉快!',
                    'consultTime' => '2015-12-01 22:08:19'
                ),
                array(
                    'href' => '',
                    'thumb' => 'http://img11.static.yhbimg.com/goodsimg/2015/11/17/08/0107ba4a348463e8d0a5898a45ac986c1e.jpg?imageMogr2/thumbnail/60x60/extent/60x60/background/d2hpdGU=/position/center/quality/90',
                    'name' => 'Daniel Wellington Cl',
                    'question' => '表盘直径多少',
                    'consultTime' => '2015-12-01 22:08:19'
                ),
                array(
                    'href' => '',
                    'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/06/08/02107c4a7aed6d189584116c6f1fa7ec03.jpg?imageMogr2/thumbnail/60x60/extent/60x60/background/d2hpdGU=/position/center/quality/90',
                    'name' => 'MACROPUS PU简约系列双肩包',
                    'question' => '170, 65应该穿多大号',
                    'reply' => '您的问题太多,不想回答。',
                    'consultTime' => '2015-12-01 22:08:19'
                ),
                array(
                    'href' => '',
                    'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/06/08/02107c4a7aed6d189584116c6f1fa7ec03.jpg?imageMogr2/thumbnail/60x60/extent/60x60/background/d2hpdGU=/position/center/quality/90',
                    'name' => 'MACROPUS PU简约系列双肩包',
                    'question' => '170, 65应该穿多大号',
                    'reply' => '您的问题太多,不想回答。',
                    'consultTime' => '2015-12-01 22:08:19'
                ),
                array(
                    'href' => '',
                    'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/06/08/02107c4a7aed6d189584116c6f1fa7ec03.jpg?imageMogr2/thumbnail/60x60/extent/60x60/background/d2hpdGU=/position/center/quality/90',
                    'name' => 'MACROPUS PU简约系列双肩包',
                    'question' => '170, 65应该穿多大号',
                    'reply' => '您的问题太多,不想回答。',
                    'consultTime' => '2015-12-01 22:08:19'
                )
            ),
            'pager' => array(
                'hasCheckAll' => true,
                'count' => 24,
                'curPage' => 1,
                'totalPages' => 4,
                'pagerHtml' => '<a href="?page=2&amp;type=3"><span class="iconfont">&#xe634;</span>上一页</a><a href="?page=1&amp;type=3">1</a><a class="cur" href="?page=2&amp;type=3">2</a><a href="?page=3&amp;type=3">3</a><a href="?page=2&amp;type=3">下一页<span class="iconfont">&#xe601;</span></a>'
            )
        );

        $this->_view->display('consult', array('homeConsultPage' => false, 'consult' => $data));
    }
}