Register1.php 2.44 KB
<?php

use Action\AbstractAction;

class Register1Controller 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://web.dev.yohobuy.com/passport/images?t=1449799445',
                'itemUrl' => '##',
                'referUrl' => '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('../register/index', $data);
    }

    public function checkmobileAction()
    {
        $mobile = trim($this->get('mobile'), ' ');
        $area = intval(trim($this->get('area'), ' '));
        
        $data = array(
            'code' => 200
        );

        $this -> echoJson($data);

    }

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

        $this -> echoJson($data);

    }

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

        $this -> echoJson($data);

    }
}