Refund.php 7.22 KB
<?php

use Action\WebAction;
use WebPlugin\Helpers;
use Home\UserModel;
use Home\AddressModel;
use Home\ReturnsModel;
use LibModels\Web\Home\UserData;
use LibModels\Web\Home\AddressData;

/**
 * 个人中心
 */
class RefundController extends WebAction
{




    //退货保存页
    public function saveAction()
    {
        $data = array(
            'path' => array(
                array(
                    'href' => '//www.yohobuy.com',
                    'name' => 'YOHO!BUY 有货首页'
                ),
                array(
                    'href' => '//www.yohobuy.com/home',
                    'name' => '个人中心'
                ),
                array(
                    'name' => '订单中心'
                )
            ),
            'userThumb' => '//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' => '/'
                        )
                    )
                )
            ),
            'save' => array(
                'type' => '退货',
                'ordersHref' => '#',
                'returnsHref' => '#',
                'refund' => array(  // 退货时传退货收件地址
                    'address' => '南京市江宁区江宁经济技术开发区苏源大道87号YOHO!BUY 有货物流中心东一楼',
                    'name' => 'YOHO!BUY 有货',
                    'phone' => '400-889-9646',
                    'postcode' => '211106'
                )
            ),
            '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('../../index/home/returns-save', array('meReturnsPage' => false, 'returns' => $data));
    }






    //退换货详情假数据
    public function detail2Action()
    {
        $data = array(
            'path' => array(
                array(
                    'href' => '//www.yohobuy.com',
                    'name' => 'YOHO!BUY 有货首页'
                ),
                array(
                    'href' => '//www.yohobuy.com/home',
                    'name' => '个人中心'
                ),
                array(
                    'name' => '订单中心'
                )
            ),
            'userThumb' => '//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' => '/'
                        )
                    )
                )
            ),
            'detail' => array(
                'isChange' => false,
                'returnId' => '934997',
                'orderNum' => '508649457',
                'nowStatus' => '完成',
                'applyTime' => '2015/08/04 19:50:13',
                'express' => array(
                    'id' => '12',
                    'company' => '顺丰速递',
                    'number' => '201830213271',
                ),
                'goods' => array(
                    array(
                        'name' => 'MACROPUS PU简约系列双肩包',
                        'reason' => '尺寸不合适'
                    ),
                    array(
                        'name' => 'Daniel Wellington Cl',
                        'reason' => '尺寸不合适'
                    ),
                    array(
                        'name' => 'YOHO!限量版2016猴年利是封',
                        'reason' => '尺寸不合适'
                    )
                ),
                'payMode' => '在线支付',
                'backMode' => '原卡返还',
            ),
            '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('../../index/home/returns-detail', array('homeRefundPage' => false, 'returns' => $data));
    }



}