Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
Rock Zhang
9 years ago
Commit
90974c932ed9041862f47e7a9dd3136dd0d1333c
1 parent
525a6fe2
精简首页男生,女生,潮童,创意生活使用的接口公用Index的接口
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
54 additions
and
61 deletions
library/Action/AbstractAction.php
library/LibModels/Wap/Home/BoysData.php
library/LibModels/Wap/Home/GirlsData.php
library/LibModels/Wap/Home/IndexData.php
library/LibModels/Wap/Home/KidsData.php
library/LibModels/Wap/Home/LifestyleData.php
yohobuy/m.yohobuy.com/application/controllers/Girls.php
yohobuy/m.yohobuy.com/application/modules/Passport/controllers/Back.php
library/Action/AbstractAction.php
View file @
90974c9
...
...
@@ -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'
);
}
}
...
...
library/LibModels/Wap/Home/BoysData.php
deleted
100644 → 0
View file @
525a6fe
library/LibModels/Wap/Home/GirlsData.php
deleted
100644 → 0
View file @
525a6fe
library/LibModels/Wap/Home/IndexData.php
View file @
90974c9
...
...
@@ -3,7 +3,6 @@ namespace LibModels\Wap\Home;
use
Api\Yohobuy
;
use
Api\Sign
;
use
Plugin\Helpers
;
/**
* 首页数据接口操作类
...
...
library/LibModels/Wap/Home/KidsData.php
deleted
100644 → 0
View file @
525a6fe
library/LibModels/Wap/Home/LifestyleData.php
deleted
100644 → 0
View file @
525a6fe
yohobuy/m.yohobuy.com/application/controllers/Girls.php
View file @
90974c9
...
...
@@ -10,50 +10,41 @@ class GirlsController extends AbstractAction
public
function
indexAction
()
{
$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'
),
'searchUrl'
=>
''
,
'sideNav'
=>
array
(
'textCn'
=>
'男生'
,
'textEn'
=>
'Boys'
,
'url'
=>
false
,
'subNav'
=>
array
(
'list'
=>
array
(
array
(
'textCn'
=>
'男生'
,
'img'
=>
'http://res.yohoboys.com/res/new/boys/images/about/thirdbtn-sina.png'
,
'url'
=>
''
),
array
(
'textCn'
=>
'新品到着'
,
'img'
=>
'http://res.yohoboys.com/res/new/boys/images/about/thirdbtn-sina.png'
,
'url'
=>
''
)
)
)
),
// 频道数据
$channelData
=
Index
::
getUserChannelData
(
0
,
'2,3'
,
'201504091403002'
);
);
echo
'<pre>'
;
print_r
(
$channelData
);
$this
->
_view
->
assign
(
'title'
,
'首页'
);
$this
->
_view
->
display
(
'index'
,
$data
);
$data
=
array
(
'headerDownload'
=>
$this
->
getHeaderDownload
(),
'searchUrl'
=>
''
,
'sideNav'
=>
array
(
'textCn'
=>
'男生'
,
'textEn'
=>
'Boys'
,
'url'
=>
false
,
'subNav'
=>
array
(
'list'
=>
array
(
array
(
'textCn'
=>
'男生'
,
'img'
=>
'http://res.yohoboys.com/res/new/boys/images/about/thirdbtn-sina.png'
,
'url'
=>
''
),
array
(
'textCn'
=>
'新品到着'
,
'img'
=>
'http://res.yohoboys.com/res/new/boys/images/about/thirdbtn-sina.png'
,
'url'
=>
''
)
)
)
),
);
// // 频道数据
// $channelData = Index::getUserChannelData(0, '2,3', '201504091403002');
$this
->
_view
->
assign
(
'title'
,
'YOHO!有货'
);
$this
->
_view
->
display
(
'index'
,
$data
);
// echo '<pre>';
// print_r($channelData);
// $this->_view->assign('title', 'YOHO!有货');
// $this->_view->display('girls', compact('channelData'));
}
}
\ No newline at end of file
...
...
yohobuy/m.yohobuy.com/application/modules/Passport/controllers/Back.php
View file @
90974c9
...
...
@@ -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
;
}
...
...
@@ -104,12 +104,12 @@ class BackController extends AbstractAction
return ($a['id'] < $b['id'] ? -1 : 1);
});*/
$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!有货'
);
...
...
Please
register
or
login
to post a comment