Register.php 2.22 KB
<?php

use Action\AbstractAction;

class RegisterController extends AbstractAction
{
    /**
     * 登录页
     */
    public function indexAction()
    {
        $data = array(
            'registerPage' => true,
            'passport' => array(
                'actionUrl' => '/passport/register/mobileregister',
                'region' => array(
                    array(
                        'id' => 86,
                        'name' => '中国',
                        'selected' => true
                    ),
                    array(
                        'id' => 853,
                        'name' => '中国澳门',
                        'selected' => false
                    ),
                    array(
                        'id' => 886,
                        'name' => '中国台湾',
                        'selected' => false
                    ),
                    array(
                        'id' => 65,
                        'name' => '中国香港',
                        'selected' => false
                    ),
                    array(
                        'id' => 60,
                        'name' => '马来西亚',
                        'selected' => false
                    ),
                ),
                'location' => '+86',
                'captchaUrl' => 'http://www.yohobuy.com/passport/images?t=1449799445',
                'itemUrl' => '##',
                'refUrl' => 'http://www.yohobuy.com/',
                'loginUrl' => '/signin.html?refer=http://www.yohobuy.com/',
                'coverHref' => '/passport',
                'coverImg' => 'http://img12.static.yhbimg.com/yhb-img01/2015/12/01/07/020a0b6e7ff908d0c2bc4045b4fef42b9f.png?imageView/2/w/252/h/190'
            )
        );
        $this->_view->display('index', $data);
    }

    public function checkmobileAction()
    {
        $data = array(
            'code' => 404
        );

        $this -> echoJson($data);

    }

    public function piccaptchaAction()
    {
        $data = array(
            'code' => 404
        );

        $this -> echoJson($data);

    }

    public function msgcaptchaAction()
    {
        $data = array(
            'code' => 404
        );

        $this -> echoJson($data);

    }
}