Back.php 12.5 KB
<?php

use Action\AbstractAction;

class BackController extends AbstractAction
{
    /**
     * 找回密码
     */
    public function indexAction()
    {

        $simpleHeader = array(
            'logo' => array(
                'img' => 'http://static.yohobuy.com/newheader/img/logo_e.png',
                'url' => 'http://www.yohobuy.com'
            ),
            'tool' => array(
                array(
                    'title' => 'Hi~',
                    'loginInfo' => array(
                        array(
                            'textCn' => '2586****@qq.com',
                            'url' => ''
                        ),
                        array(
                            'textCn' => '[请登录]',
                            'url' => ''
                        ),
                        array(
                            'textCn' => '[免费注册]',
                            'url' => ''
                        ),
                        array(
                            'textCn' => '[退出]',
                            'url' => ''
                        )
                    )
                ),
                array(
                    'title' => 'MY有货',
                    'options' => array(
                        array(
                            'textCn' => '我的收藏',
                            'url' => ''
                        ),
                        array(
                            'textCn' => '优惠券',
                            'url' => ''
                        ),
                    )
                ),
                array(
                    'title' => '订单中心',
                    'url' => 'http://www.yohobuy.com/home/orders?t=1449801433.5294'
                ),
                array(
                    'title' => '帮助中心',
                    'url' => 'http://www.yohobuy.com/help'
                ),
                array(
                    'title' => '400-9889-9646',
                    'tell' => true
                )
            )
        );
        $data = array(
            'simpleHeader' => $simpleHeader,
            'backPage' => true,
            'back' => array(
                'coverHref' => '/passport',
                'coverImg' => 'http://img12.static.yhbimg.com/yhb-img01/2015/12/01/07/020a0b6e7ff908d0c2bc4045b4fef42b9f.png?imageView/2/w/252/h/190',
                'countryCode' => '86',
                'countryName' => '中国',
                'countryList' => array(
                    array(
                        'code' => '61',
                        'name' => '澳大利亚'
                    ),
                    array(
                        'code' => '82',
                        'name' => '韩国'
                    ),
                    array(
                        'code' => '1',
                        'name' => '加拿大'
                    ),
                    array(
                        'code' => '86',
                        'name' => '中国'
                    )
                )
            )
        );
        $this->_view->display('index', $data);
    }

    /**
     * 发送邮件
     */
    public function sendemailAction() {
        $simpleHeader = array(
            'logo' => array(
                'img' => 'http://static.yohobuy.com/newheader/img/logo_e.png',
                'url' => 'http://www.yohobuy.com'
            ),
            'tool' => array(
                array(
                    'title' => 'Hi~',
                    'loginInfo' => array(
                        array(
                            'textCn' => '2586****@qq.com',
                            'url' => ''
                        ),
                        array(
                            'textCn' => '[请登录]',
                            'url' => ''
                        ),
                        array(
                            'textCn' => '[免费注册]',
                            'url' => ''
                        ),
                        array(
                            'textCn' => '[退出]',
                            'url' => ''
                        )
                    )
                ),
                array(
                    'title' => 'MY有货',
                    'options' => array(
                        array(
                            'textCn' => '我的收藏',
                            'url' => ''
                        ),
                        array(
                            'textCn' => '优惠券',
                            'url' => ''
                        ),
                    )
                ),
                array(
                    'title' => '订单中心',
                    'url' => 'http://www.yohobuy.com/home/orders?t=1449801433.5294'
                ),
                array(
                    'title' => '帮助中心',
                    'url' => 'http://www.yohobuy.com/help'
                ),
                array(
                    'title' => '400-9889-9646',
                    'tell' => true
                )
            )
        );
        $data = array(
            'simpleHeader' => $simpleHeader,
            'sendEmail' => array(
                'coverHref' => '/passport',
                'coverImg' => 'http://img12.static.yhbimg.com/yhb-img01/2015/12/01/07/020a0b6e7ff908d0c2bc4045b4fef42b9f.png?imageView/2/w/252/h/190',
                'countrys' => array()
            )
        );
        $this->_view->display('send-email', $data);
    }

    /**
     * 重置密码
     */
    public function resetPwdAction() {
        $simpleHeader = array(
            'logo' => array(
                'img' => 'http://static.yohobuy.com/newheader/img/logo_e.png',
                'url' => 'http://www.yohobuy.com'
            ),
            'tool' => array(
                array(
                    'title' => 'Hi~',
                    'loginInfo' => array(
                        array(
                            'textCn' => '2586****@qq.com',
                            'url' => ''
                        ),
                        array(
                            'textCn' => '[请登录]',
                            'url' => ''
                        ),
                        array(
                            'textCn' => '[免费注册]',
                            'url' => ''
                        ),
                        array(
                            'textCn' => '[退出]',
                            'url' => ''
                        )
                    )
                ),
                array(
                    'title' => 'MY有货',
                    'options' => array(
                        array(
                            'textCn' => '我的收藏',
                            'url' => ''
                        ),
                        array(
                            'textCn' => '优惠券',
                            'url' => ''
                        ),
                    )
                ),
                array(
                    'title' => '订单中心',
                    'url' => 'http://www.yohobuy.com/home/orders?t=1449801433.5294'
                ),
                array(
                    'title' => '帮助中心',
                    'url' => 'http://www.yohobuy.com/help'
                ),
                array(
                    'title' => '400-9889-9646',
                    'tell' => true
                )
            )
        );
        $data = array(
            'simpleHeader' => $simpleHeader,
            'resetPage' => true,
            'resetPwd' => array(
                'coverHref' => '/passport',
                'coverImg' => 'http://img12.static.yhbimg.com/yhb-img01/2015/12/01/07/020a0b6e7ff908d0c2bc4045b4fef42b9f.png?imageView/2/w/252/h/190',
                'countrys' => array()
            )
        );
        $this->_view->display('reset-pwd', $data);
    }

    public function resetSuccessAction() {
        $simpleHeader = array(
            'logo' => array(
                'img' => 'http://static.yohobuy.com/newheader/img/logo_e.png',
                'url' => 'http://www.yohobuy.com'
            ),
            'tool' => array(
                array(
                    'title' => 'Hi~',
                    'loginInfo' => array(
                        array(
                            'textCn' => '2586****@qq.com',
                            'url' => ''
                        ),
                        array(
                            'textCn' => '[请登录]',
                            'url' => ''
                        ),
                        array(
                            'textCn' => '[免费注册]',
                            'url' => ''
                        ),
                        array(
                            'textCn' => '[退出]',
                            'url' => ''
                        )
                    )
                ),
                array(
                    'title' => 'MY有货',
                    'options' => array(
                        array(
                            'textCn' => '我的收藏',
                            'url' => ''
                        ),
                        array(
                            'textCn' => '优惠券',
                            'url' => ''
                        ),
                    )
                ),
                array(
                    'title' => '订单中心',
                    'url' => 'http://www.yohobuy.com/home/orders?t=1449801433.5294'
                ),
                array(
                    'title' => '帮助中心',
                    'url' => 'http://www.yohobuy.com/help'
                ),
                array(
                    'title' => '400-9889-9646',
                    'tell' => true
                )
            )
        );
        $data = array(
            'simpleHeader' => $simpleHeader,
            'resetSuccess' => array(
                'coverHref' => '/passport',
                'coverImg' => 'http://img12.static.yhbimg.com/yhb-img01/2015/12/01/07/020a0b6e7ff908d0c2bc4045b4fef42b9f.png?imageView/2/w/252/h/190',
                'countrys' => array()
            )
        );
        $this->_view->display('reset-success', $data);
    }

    public function verificationAction() {
        $simpleHeader = array(
            'logo' => array(
                'img' => 'http://static.yohobuy.com/newheader/img/logo_e.png',
                'url' => 'http://www.yohobuy.com'
            ),
            'tool' => array(
                array(
                    'title' => 'Hi~',
                    'loginInfo' => array(
                        array(
                            'textCn' => '2586****@qq.com',
                            'url' => ''
                        ),
                        array(
                            'textCn' => '[请登录]',
                            'url' => ''
                        ),
                        array(
                            'textCn' => '[免费注册]',
                            'url' => ''
                        ),
                        array(
                            'textCn' => '[退出]',
                            'url' => ''
                        )
                    )
                ),
                array(
                    'title' => 'MY有货',
                    'options' => array(
                        array(
                            'textCn' => '我的收藏',
                            'url' => ''
                        ),
                        array(
                            'textCn' => '优惠券',
                            'url' => ''
                        ),
                    )
                ),
                array(
                    'title' => '订单中心',
                    'url' => 'http://www.yohobuy.com/home/orders?t=1449801433.5294'
                ),
                array(
                    'title' => '帮助中心',
                    'url' => 'http://www.yohobuy.com/help'
                ),
                array(
                    'title' => '400-9889-9646',
                    'tell' => true
                )
            )
        );
        $data = array(
            'simpleHeader' => $simpleHeader,
            'vertificationPage' => true,
            'verification' => array(
                'coverHref' => '/passport',
                'coverImg' => 'http://img12.static.yhbimg.com/yhb-img01/2015/12/01/07/020a0b6e7ff908d0c2bc4045b4fef42b9f.png?imageView/2/w/252/h/190',
                'countrys' => array()
            )
        );
        $this->_view->display('verification', $data);
    }
}