Authored by xuqi

page render with fake data

... ... @@ -515,6 +515,8 @@
## 登录、注册、找回密码
### TIP:登录注册找回密码页面body有特有样式,因为数据中需要传一个isPassportPage为body添加一个class
### 通用头部(包含在每个页面中)
{
... ...
<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
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);
}
}
\ No newline at end of file
... ...
<?php
use Action\AbstractAction;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
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);
}
}
\ No newline at end of file
... ...
<?php
use Action\AbstractAction;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
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);
}
}
\ No newline at end of file
... ...