Reg.php 1.74 KB
<?php
use Action\AbstractAction;

class RegController extends AbstractAction
{
    public function indexAction()
    {
        $data = array(
            'showGoBack' => true,
            'backUrl' => '',
            'showHeaderText' => true,
            'headerText' => '注册',
            'isPassportPage' => true,
            'modulePath' => 'passport/register/register',
            'countrys' => array(
                array(
                    'areaCode' => '+86',
                    'selected' => true,
                    'name' => '中国'
                ),
                array(
                    'areaCode' => '+864',
                    'name' => '中国香港'
                )
            ),
            'countryCode' => '+86'
        );

        $this->_view->assign('title', '注册');
        $this->_view->display('index', $data);
    }

    public function codeAction()
    {
        $data = array(
            'showGoBack' => true,
            'backUrl' => '',
            'showHeaderText' => true,
            'headerText' => '注册',
            'isPassportPage' => true,
            'modulePath' => 'passport/register/code',
            'areaCode' => '+86',
            'phoneNum' => '15895869035'
        );

        $this->_view->assign('title', '注册-验证码');
        $this->_view->display('code', $data);
    }

    public function passwordAction()
    {
        $data = array(
            'showGoBack' => true,
            'backUrl' => '',
            'showHeaderText' => true,
            'headerText' => '注册',
            'isPassportPage' => true,
            'modulePath' => 'passport/register/password'
        );

        $this->_view->assign('title', '注册-密码');
        $this->_view->display('password', $data);
    }
}