Message.php 6.34 KB
<?php

use Action\WebAction;

/**
 * 个人中心
 */
class messageController 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' => '/',
                            'active' => true
                        ),
                        array(
                            'name' => '我的评论',
                            'href' => '/'
                        ),
                        array(
                            'name' => '我的投诉',
                            'href' => '/'
                        ),
                        array(
                            'name' => '我的信息',
                            'href' => '/'
                        ),
                        array(
                            'name' => '在线客服',
                            'href' => '/'
                        )
                    )
                )
            ),
            'messages' => array(
                array(
                    'href' => '#',
                    'sender' => 'YOHO!有货官方消息',
                    'title' => '您有一张优惠券即将过期',
                    'time' => '2016-02-24 08:16:09',
                    'id' => '3123'
                ),
                array(
                    'href' => '#',
                    'sender' => 'YOHO!有货官方消息',
                    'title' => '您有一张优惠券即将过期',
                    'time' => '2016-02-24 08:16:09',
                    'id' => '3123'
                ),
                array(
                    'href' => '#',
                    'sender' => 'YOHO!有货官方消息',
                    'title' => '您有一张优惠券即将过期',
                    'time' => '2016-02-24 08:16:09',
                    'id' => '3123'
                ),
                array(
                    'href' => '#',
                    'sender' => 'YOHO!有货官方消息',
                    'title' => '您有一张优惠券即将过期',
                    'time' => '2016-02-24 08:16:09',
                    'id' => '3123'
                )
            ),
            'pager' => array(
                'hasCheckAll' => false,
                '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('message', array('meMessagePage' => true, 'message' => $data));
    }
    //我的信息详情假数据
    public function contentAction()
    {
        $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' => '/',
                            'active' => true
                        ),
                        array(
                            'name' => '我的评论',
                            'href' => '/'
                        ),
                        array(
                            'name' => '我的投诉',
                            'href' => '/'
                        ),
                        array(
                            'name' => '我的信息',
                            'href' => '/'
                        ),
                        array(
                            'name' => '在线客服',
                            'href' => '/'
                        )
                    )
                )
            ),
            'message' => array(
                'sender' => 'YOHO!有货官方消息',
                'title' => '您有一张优惠券即将过期',
                'time' => '2016-02-24 08:16:09',
                'content' => '您有一张优惠券即将到期,请至【我的优惠券】查看。'
            ),
            'pager' => array(
                'hasCheckAll' => false,
                '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('message-content', array('meMessagePage' => true, 'message' => $data));
    }
}