Authored by Rock Zhang

精简首页男生,女生,潮童,创意生活使用的接口公用Index的接口

... ... @@ -163,4 +163,16 @@ class AbstractAction extends Controller_Abstract
return $this->request->getCookie($name, $default);
}
/**
* 返回顶部软件下载有关数据
* @return array 下载有关数据
*/
protected function getHeaderDownload()
{
return array(
'img' => 'http://img11.static.yhbimg.com/adpic/2015/02/28/18/01d83bfad41c8fca8fd1ad334216d7d733.jpg?imageView/2/w/640/h/480',
'url' => 'http://www.baidu.com'
);
}
}
... ...
... ... @@ -3,7 +3,6 @@ namespace LibModels\Wap\Home;
use Api\Yohobuy;
use Api\Sign;
use Plugin\Helpers;
/**
* 首页数据接口操作类
... ...
... ... @@ -10,14 +10,16 @@ class GirlsController extends AbstractAction
public function indexAction()
{
// 频道数据
$channelData = Index::getUserChannelData(0, '2,3', '201504091403002');
echo '<pre>';
print_r($channelData);
$data = array(
'backUrl' => 'm.yohobuy.com',
'modulePath' => 'index/girls/index',
'headerDownload' => array(
'img' => 'http://img11.static.yhbimg.com/adpic/2015/02/28/18/01d83bfad41c8fca8fd1ad334216d7d733.jpg?imageView/2/w/640/h/480',
'url' => 'http://www.baidu.com'
),
'headerDownload' => $this->getHeaderDownload(),
'searchUrl' => '',
'sideNav' => array(
'textCn' => '男生',
... ... @@ -38,22 +40,11 @@ class GirlsController extends AbstractAction
)
)
),
);
$this->_view->assign('title', '首页');
$this->_view->assign('title', 'YOHO!有货');
$this->_view->display('index', $data);
// // 频道数据
// $channelData = Index::getUserChannelData(0, '2,3', '201504091403002');
// echo '<pre>';
// print_r($channelData);
// $this->_view->assign('title', 'YOHO!有货');
// $this->_view->display('girls', compact('channelData'));
}
}
\ No newline at end of file
... ...
... ... @@ -16,10 +16,10 @@ class BackController extends AbstractAction
public function emailAction()
{
$data = array(
'backUrl' => 'm.yohobuy.com',
'backUrl' => '/passport/login/index',
'headerText' => '找回密码',
'isPassportPage' => true,
'modulePath' => 'passport/back/email'
'backEmail' => true
);
$this->_view->assign('title', 'YOHO!有货');
... ... @@ -49,7 +49,7 @@ class BackController extends AbstractAction
'backUrl' => 'm.yohobuy.com',
'headerText' => '找回密码',
'isPassportPage' => true,
'modulePath' => 'passport/back/email-success',
'backEmailSuccess' => true,
'goEmail' => '',
'resendUrl' => ''
);
... ... @@ -89,7 +89,7 @@ class BackController extends AbstractAction
// 处理地区信息
foreach ($areas as &$val) {
$val['areaCode'] = $val['area'];
if($val['area'] == 86)
if($val['area'] === '86')
{
$val['selected'] = true;
}
... ... @@ -106,10 +106,10 @@ class BackController extends AbstractAction
});*/
$data = array(
'backUrl' => 'm.yohobuy.com',
'backUrl' => '/passport/back/login',
'headerText' => '找回密码',
'isPassportPage' => true,
'modulePath' => 'passport/back/mobile',
'backMobile' => true,
'countrys' => $areas,
'countryCode' => '+86'
);
... ... @@ -139,13 +139,13 @@ class BackController extends AbstractAction
{
$mobile = $this->get('mobile', '');
$area = $this->get('area', 86);
$areacode = '+'.$area;
$data = array(
'backUrl' => 'm.yohobuy.com',
'backUrl' => '/passport/back/mobile',
'headerText' => '找回密码',
'isPassportPage' => true,
'modulePath' => 'passport/back/code',
'areaCode' => '+86',
'areaCode' => $areacode,
'phoneNum' => $mobile
);
... ... @@ -180,19 +180,10 @@ class BackController extends AbstractAction
$area = $this->get('area', 86);
$data = array(
'backUrl' => 'm.yohobuy.com',
'backUrl' => '/passport/back/login',
'headerText' => '找回密码',
'isPassportPage' => true,
'modulePath' => 'passport/back/new-password',
'pageHeader' => array(
'navBack' => 'm.yohobuy.com',
'navHome' => 'm.yohobuy.com',
'navTitle' => '上衣'
),
'pageFooter' => array(
'loginUrl' => 'm.yohobuy.com/login.html',
'signupUrl' => 'm.yohobuy.com/signup.html'
)
'backNewPwd' => true,
);
$this->_view->assign('title', 'YOHO!有货');
... ...