Login.php 1.23 KB
<?php
use Action\AbstractAction;

class LoginController extends AbstractAction
{
    public function indexAction()
    {
        $data = array(
            'showGoBack' => true,
            'backUrl' => '',
            'showHeaderImg' => true,
            'isPassportPage' => true,
            'modulePath' => 'passport/login/login'
        );

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

    public function interationalAction()
    {
        $data = array(
            'showGoBack' => true,
            'backUrl' => '',
            'showHeaderText' => true,
            'headerText' => '登录',
            'isPassportPage' => true,
            'modulePath' => 'passport/login/interational',
            'countrys' => array(
                array(
                    'areaCode' => '+86',
                    'selected' => true,
                    'name' => '中国'
                ),
                array(
                    'areaCode' => '+864',
                    'name' => '中国香港'
                )
            ),
            'countryCode' => '+86'
        );

        $this->_view->assign('title', '国际账号登录');
        $this->_view->display('interational', $data);
    }
}