Authored by xuqi

clear useless if expression

... ... @@ -523,11 +523,9 @@
### 通用头部(包含在每个页面中)
{
showGoBack: true/false, //是否显示GO-BACK链接
backUrl: '',
backUrl: '', //GO-BACK链接, 不显示则不传
showHeaderImg: true/false, //显示头部图片
showHeaderText: true/false, //显示头部文字
headerText: ''
headerText: '' //头部标题文字
}
### 区域列表
... ...
<div class="header">
{{#if showGoBack}}
<a class="go-back" href={{../backUrl}}>
{{#backUrl}}
<a class="go-back" href={{.}}>
<img src="http://static.dev.yohobuy.com/img/passport/go-back.png">
</a>
{{/if}}
{{#if showHeaderImg}}
{{/backUrl}}
{{#showHeaderImg}}
<img class="img-header" src="http://static.dev.yohobuy.com/img/passport/yoho-family.png">
{{/if}}
{{#if showHeaderText}}
<p class="title">{{../headerText}}</p>
{{/if}}
{{/showHeaderImg}}
{{#headerText}}
<p class="title">{{.}}</p>
{{/headerText}}
</div>
\ No newline at end of file
... ...
... ... @@ -13,9 +13,7 @@ class BackController extends AbstractAction
public function emailAction()
{
$data = array(
'showGoBack' => true,
'backUrl' => '',
'showHeaderText' => true,
'backUrl' => 'm.yohobuy.com',
'headerText' => '找回密码',
'isPassportPage' => true,
'modulePath' => 'passport/back/email'
... ... @@ -28,9 +26,7 @@ class BackController extends AbstractAction
public function successAction()
{
$data = array(
'showGoBack' => true,
'backUrl' => '',
'showHeaderText' => true,
'backUrl' => 'm.yohobuy.com',
'headerText' => '找回密码',
'isPassportPage' => true,
'modulePath' => 'passport/back/email-success',
... ... @@ -45,9 +41,7 @@ class BackController extends AbstractAction
public function mobileAction()
{
$data = array(
'showGoBack' => true,
'backUrl' => '',
'showHeaderText' => true,
'backUrl' => 'm.yohobuy.com',
'headerText' => '找回密码',
'isPassportPage' => true,
'modulePath' => 'passport/back/mobile',
... ... @@ -72,9 +66,7 @@ class BackController extends AbstractAction
public function codeAction()
{
$data = array(
'showGoBack' => true,
'backUrl' => '',
'showHeaderText' => true,
'backUrl' => 'm.yohobuy.com',
'headerText' => '找回密码',
'isPassportPage' => true,
'modulePath' => 'passport/back/code',
... ... @@ -89,9 +81,7 @@ class BackController extends AbstractAction
public function passwordAction()
{
$data = array(
'showGoBack' => true,
'backUrl' => '',
'showHeaderText' => true,
'backUrl' => 'm.yohobuy.com',
'headerText' => '找回密码',
'isPassportPage' => true,
'modulePath' => 'passport/back/new-password',
... ...
... ... @@ -6,8 +6,7 @@ class LoginController extends AbstractAction
public function indexAction()
{
$data = array(
'showGoBack' => true,
'backUrl' => '',
'backUrl' => 'm.yohobuy.com',
'showHeaderImg' => true,
'isPassportPage' => true,
'modulePath' => 'passport/login/login'
... ... @@ -20,9 +19,7 @@ class LoginController extends AbstractAction
public function interationalAction()
{
$data = array(
'showGoBack' => true,
'backUrl' => '',
'showHeaderText' => true,
'backUrl' => 'm.yohobuy.com',
'headerText' => '登录',
'isPassportPage' => true,
'modulePath' => 'passport/login/interational',
... ...
... ... @@ -6,9 +6,7 @@ class RegController extends AbstractAction
public function indexAction()
{
$data = array(
'showGoBack' => true,
'backUrl' => '',
'showHeaderText' => true,
'backUrl' => 'm.yohobuy.com',
'headerText' => '注册',
'isPassportPage' => true,
'modulePath' => 'passport/register/register',
... ... @@ -33,9 +31,7 @@ class RegController extends AbstractAction
public function codeAction()
{
$data = array(
'showGoBack' => true,
'backUrl' => '',
'showHeaderText' => true,
'backUrl' => 'm.yohobuy.com',
'headerText' => '注册',
'isPassportPage' => true,
'modulePath' => 'passport/register/code',
... ... @@ -50,9 +46,7 @@ class RegController extends AbstractAction
public function passwordAction()
{
$data = array(
'showGoBack' => true,
'backUrl' => '',
'showHeaderText' => true,
'backUrl' => 'm.yohobuy.com',
'headerText' => '注册',
'isPassportPage' => true,
'modulePath' => 'passport/register/password'
... ...