Authored by hf

reset compile php file

... ... @@ -20,7 +20,7 @@ class KidsController extends AbstractAction
// 设置网站标题
$this->setTitle('潮童首页');
// 显示侧边栏
$this->setNavSide();
$this->setNavSide('kids');
// 显示底部TAB
$this->setNavFooterTab();
... ...
... ... @@ -20,7 +20,7 @@ class LifestyleController extends AbstractAction
// 设置网站标题
$this->setTitle('创意生活首页');
// 显示侧边栏
$this->setNavSide();
$this->setNavSide('lifestyle');
// 显示底部TAB
$this->setNavFooterTab();
... ...
... ... @@ -52,6 +52,17 @@ class ClassModel
$item = array();
$item['name'] = $val['category_name'];
$item['id'] = $val['relation_parameter']['sort'];
// 首先添加一级分类
$item['sub'][] = array(
'name' => '全部'.$item['name'],
'id' => $item['id'],
'url' => Helpers::url('/', array(
'sort' => $item['id'],
'sort_name' => $item['name'], 'list'))
);
$subitem = array();
foreach ($val['sub'] as $value) {
$subitem = array();
$subitem['name'] = $value['category_name'];
... ...
... ... @@ -77,6 +77,16 @@ class SideModel
*/
private static function genLeftNavGuang($guangChoosed = 'all')
{
// 判断逛的背景色
$color = false;
if($guangChoosed === 'girls') {
$color = '#FF88AE';
} else if($guangChoosed === 'kids') {
$color = '#7ad9f9';
} else if($guangChoosed === 'lifestyle') {
$color = '#4f4138';
}
return array(
'textCn' => '逛',
'textEn' => 'TRENDFINDER',
... ... @@ -88,7 +98,7 @@ class SideModel
'textEn' => 'TrendFinder',
'back' => true,
'isSelect' => false,
'bgColor' => ($guangChoosed === 'girls') ? '#FF88AE' : false,
'bgColor' => $color,
),
1 => array(
'textCn' => '查看全部',
... ...
... ... @@ -209,7 +209,7 @@ class BackController extends AbstractAction
'phoneNum' => $phoneNum
);
$this->_view->assign('title', 'YOHO!有货');
$this->setTitle('找回密码-通过手机号');
$this->_view->display('mobile-code', $data);
}
... ... @@ -247,6 +247,11 @@ class BackController extends AbstractAction
// 邮箱验证码
$code = $this->get('code', '');
// 判断是否允许访问, 不允许则跳转到错误页面
if ((!$token || !Helpers::verifyMobile($phoneNum)) && !$code) {
$this->error();
}
$data = array(
'backUrl' => '/signin.html',
'headerText' => '找回密码',
... ... @@ -258,7 +263,7 @@ class BackController extends AbstractAction
'code' => $code
);
$this->_view->assign('title', 'YOHO!有货');
$this->setTitle('找回密码-输入新密码');
$this->_view->display('new-password', $data);
}
... ...
... ... @@ -250,6 +250,11 @@ class RegController extends AbstractAction
break;
}
/* 判断密码是否符合规则 */
if (!Helpers::verifyPassword($password)) {
break;
}
/* 验证注册的标识码是否有效 */
$data = RegData::regMobile($area, $mobile, $password);
if (!isset($data['code'])) {
... ...