Back.php 2.74 KB
<?php
use Action\AbstractAction;
/**
 * 频道选择
 */
class BackController extends AbstractAction
{
    public function indexAction()
    {
        echo '密码找回';
    }

    public function emailAction()
    {
        $data = array(
            'showGoBack' => true,
            'backUrl' => '',
            'showHeaderText' => true,
            'headerText' => '找回密码',
            'isPassportPage' => true,
            'modulePath' => 'passport/back/email'
        );

        $this->_view->assign('title', 'YOHO!有货');
        $this->_view->display('email', $data);
    }

    public function successAction()
    {
        $data = array(
            'showGoBack' => true,
            'backUrl' => '',
            'showHeaderText' => true,
            'headerText' => '找回密码',
            'isPassportPage' => true,
            'modulePath' => 'passport/back/email-success',
            'goEmail' => '',
            'resendUrl' => ''
        );

        $this->_view->assign('title', 'YOHO!有货');
        $this->_view->display('email-success', $data);
    }

    public function mobileAction()
    {
        $data = array(
            'showGoBack' => true,
            'backUrl' => '',
            'showHeaderText' => true,
            'headerText' => '找回密码',
            'isPassportPage' => true,
            'modulePath' => 'passport/back/mobile',
            'countrys' => array(
                array(
                    'areaCode' => '+86',
                    'selected' => true,
                    'name' => '中国'
                ),
                array(
                    'areaCode' => '+864',
                    'name' => '中国香港'
                )
            ),
            'countryCode' => '+86'
        );

        $this->_view->assign('title', 'YOHO!有货');
        $this->_view->display('mobile', $data);
    }

    public function codeAction()
    {
        $data = array(
            'showGoBack' => true,
            'backUrl' => '',
            'showHeaderText' => true,
            'headerText' => '找回密码',
            'isPassportPage' => true,
            'modulePath' => 'passport/back/code',
            'areaCode' => '+86',
            'phoneNum' => '15895869035'
        );

        $this->_view->assign('title', 'YOHO!有货');
        $this->_view->display('mobile-code', $data);
    }

    public function passwordAction()
    {
        $data = array(
            'showGoBack' => true,
            'backUrl' => '',
            'showHeaderText' => true,
            'headerText' => '找回密码',
            'isPassportPage' => true,
            'modulePath' => 'passport/back/new-password'
        );

        $this->_view->assign('title', 'YOHO!有货');
        $this->_view->display('new-password', $data);
    }
}