Authored by xuqi

page render with fake data

@@ -515,6 +515,8 @@ @@ -515,6 +515,8 @@
515 515
516 ## 登录、注册、找回密码 516 ## 登录、注册、找回密码
517 517
  518 +### TIP:登录注册找回密码页面body有特有样式,因为数据中需要传一个isPassportPage为body添加一个class
  519 +
518 ### 通用头部(包含在每个页面中) 520 ### 通用头部(包含在每个页面中)
519 521
520 { 522 {
1 <?php 1 <?php
2 -  
3 -/*  
4 - * To change this license header, choose License Headers in Project Properties.  
5 - * To change this template file, choose Tools | Templates  
6 - * and open the template in the editor. 2 +use Action\AbstractAction;
  3 +/**
  4 + * 频道选择
7 */ 5 */
  6 +class BackController extends AbstractAction
  7 +{
  8 + public function indexAction()
  9 + {
  10 + echo '密码找回';
  11 + }
  12 +
  13 + public function emailAction()
  14 + {
  15 + $data = array(
  16 + 'showGoBack' => true,
  17 + 'backUrl' => '',
  18 + 'showHeaderText' => true,
  19 + 'headerText' => '找回密码',
  20 + 'isPassportPage' => true,
  21 + 'modulePath' => 'passport/back/email'
  22 + );
  23 +
  24 + $this->_view->assign('title', 'YOHO!有货');
  25 + $this->_view->display('email', $data);
  26 + }
  27 +
  28 + public function successAction()
  29 + {
  30 + $data = array(
  31 + 'showGoBack' => true,
  32 + 'backUrl' => '',
  33 + 'showHeaderText' => true,
  34 + 'headerText' => '找回密码',
  35 + 'isPassportPage' => true,
  36 + 'modulePath' => 'passport/back/email-success',
  37 + 'goEmail' => '',
  38 + 'resendUrl' => ''
  39 + );
  40 +
  41 + $this->_view->assign('title', 'YOHO!有货');
  42 + $this->_view->display('email-success', $data);
  43 + }
  44 +
  45 + public function mobileAction()
  46 + {
  47 + $data = array(
  48 + 'showGoBack' => true,
  49 + 'backUrl' => '',
  50 + 'showHeaderText' => true,
  51 + 'headerText' => '找回密码',
  52 + 'isPassportPage' => true,
  53 + 'modulePath' => 'passport/back/mobile',
  54 + 'countrys' => array(
  55 + array(
  56 + 'areaCode' => '+86',
  57 + 'selected' => true,
  58 + 'name' => '中国'
  59 + ),
  60 + array(
  61 + 'areaCode' => '+864',
  62 + 'name' => '中国香港'
  63 + )
  64 + ),
  65 + 'countryCode' => '+86'
  66 + );
  67 +
  68 + $this->_view->assign('title', 'YOHO!有货');
  69 + $this->_view->display('mobile', $data);
  70 + }
  71 +
  72 + public function codeAction()
  73 + {
  74 + $data = array(
  75 + 'showGoBack' => true,
  76 + 'backUrl' => '',
  77 + 'showHeaderText' => true,
  78 + 'headerText' => '找回密码',
  79 + 'isPassportPage' => true,
  80 + 'modulePath' => 'passport/back/code',
  81 + 'areaCode' => '+86',
  82 + 'phoneNum' => '15895869035'
  83 + );
  84 +
  85 + $this->_view->assign('title', 'YOHO!有货');
  86 + $this->_view->display('mobile-code', $data);
  87 + }
  88 +
  89 + public function passwordAction()
  90 + {
  91 + $data = array(
  92 + 'showGoBack' => true,
  93 + 'backUrl' => '',
  94 + 'showHeaderText' => true,
  95 + 'headerText' => '找回密码',
  96 + 'isPassportPage' => true,
  97 + 'modulePath' => 'passport/back/new-password'
  98 + );
8 99
  100 + $this->_view->assign('title', 'YOHO!有货');
  101 + $this->_view->display('new-password', $data);
  102 + }
  103 +}
1 <?php 1 <?php
  2 +use Action\AbstractAction;
2 3
3 -/*  
4 - * To change this license header, choose License Headers in Project Properties.  
5 - * To change this template file, choose Tools | Templates  
6 - * and open the template in the editor.  
7 - */ 4 +class LoginController extends AbstractAction
  5 +{
  6 + public function indexAction()
  7 + {
  8 + $data = array(
  9 + 'showGoBack' => true,
  10 + 'backUrl' => '',
  11 + 'showHeaderImg' => true,
  12 + 'isPassportPage' => true,
  13 + 'modulePath' => 'passport/login/login'
  14 + );
8 15
  16 + $this->_view->assign('title', '登录');
  17 + $this->_view->display('index', $data);
  18 + }
  19 +
  20 + public function interationalAction()
  21 + {
  22 + $data = array(
  23 + 'showGoBack' => true,
  24 + 'backUrl' => '',
  25 + 'showHeaderText' => true,
  26 + 'headerText' => '登录',
  27 + 'isPassportPage' => true,
  28 + 'modulePath' => 'passport/login/interational',
  29 + 'countrys' => array(
  30 + array(
  31 + 'areaCode' => '+86',
  32 + 'selected' => true,
  33 + 'name' => '中国'
  34 + ),
  35 + array(
  36 + 'areaCode' => '+864',
  37 + 'name' => '中国香港'
  38 + )
  39 + ),
  40 + 'countryCode' => '+86'
  41 + );
  42 +
  43 + $this->_view->assign('title', '国际账号登录');
  44 + $this->_view->display('interational', $data);
  45 + }
  46 +}
1 <?php 1 <?php
  2 +use Action\AbstractAction;
2 3
3 -/*  
4 - * To change this license header, choose License Headers in Project Properties.  
5 - * To change this template file, choose Tools | Templates  
6 - * and open the template in the editor.  
7 - */ 4 +class RegController extends AbstractAction
  5 +{
  6 + public function indexAction()
  7 + {
  8 + $data = array(
  9 + 'showGoBack' => true,
  10 + 'backUrl' => '',
  11 + 'showHeaderText' => true,
  12 + 'headerText' => '注册',
  13 + 'isPassportPage' => true,
  14 + 'modulePath' => 'passport/register/register',
  15 + 'countrys' => array(
  16 + array(
  17 + 'areaCode' => '+86',
  18 + 'selected' => true,
  19 + 'name' => '中国'
  20 + ),
  21 + array(
  22 + 'areaCode' => '+864',
  23 + 'name' => '中国香港'
  24 + )
  25 + ),
  26 + 'countryCode' => '+86'
  27 + );
8 28
  29 + $this->_view->assign('title', '注册');
  30 + $this->_view->display('index', $data);
  31 + }
  32 +
  33 + public function codeAction()
  34 + {
  35 + $data = array(
  36 + 'showGoBack' => true,
  37 + 'backUrl' => '',
  38 + 'showHeaderText' => true,
  39 + 'headerText' => '注册',
  40 + 'isPassportPage' => true,
  41 + 'modulePath' => 'passport/register/code',
  42 + 'areaCode' => '+86',
  43 + 'phoneNum' => '15895869035'
  44 + );
  45 +
  46 + $this->_view->assign('title', '注册-验证码');
  47 + $this->_view->display('code', $data);
  48 + }
  49 +
  50 + public function passwordAction()
  51 + {
  52 + $data = array(
  53 + 'showGoBack' => true,
  54 + 'backUrl' => '',
  55 + 'showHeaderText' => true,
  56 + 'headerText' => '注册',
  57 + 'isPassportPage' => true,
  58 + 'modulePath' => 'passport/register/password'
  59 + );
  60 +
  61 + $this->_view->assign('title', '注册-密码');
  62 + $this->_view->display('password', $data);
  63 + }
  64 +}