Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
ccbikai
9 years ago
Commit
597c877c77cf1180cf6f53f61faf265763c85a5e
1 parent
b41f86b6
为您优选 模板
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
13 deletions
framework
template/m.yohobuy.com/partials/me/recommend-for-you.phtml
yohobuy/m.yohobuy.com/application/controllers/Home.php
framework
@
75bbc3b0
Subproject commit
4216b36673d37eecf297c5cc8b7634a32c09dc51
Subproject commit
75bbc3b075de19f239532f60c5995d06c5f814e2
...
...
template/m.yohobuy.com/partials/me/recommend-for-you.phtml
View file @
597c877
...
...
@@ -5,10 +5,10 @@
<div
class=
"swiper-wrapper"
>
{
{#recommendList
}
}
<div
class=
"swiper-slider"
>
<img
class=
"img-box"
src=
"
http://temp.im/156x206
"
>
<img
class=
"img-box"
src=
"
{{img}}
"
>
<div
class=
"price"
>
<span
class=
"sale-price"
>¥
199
</span>
<span
class=
"old-price"
>¥
233
</span>
<span
class=
"sale-price"
>¥
{
{salePrice
}
}</span>
<span
class=
"old-price"
>¥
{
{oldPrice
}
}</span>
</div>
</div>
{
{/recommendList
}
}
...
...
yohobuy/m.yohobuy.com/application/controllers/Home.php
View file @
597c877
...
...
@@ -20,9 +20,11 @@ class HomeController extends AbstractAction
*/
public
function
indexAction
()
{
// 设置网站标题
$this
->
setTitle
(
'个人中心'
);
// $uid = $this->getUid();
$uid
=
967016
;
$data
=
\Index\UserModel
::
getUserProfileData
(
$uid
);
// print_r($data);
...
...
@@ -34,28 +36,55 @@ class HomeController extends AbstractAction
$data
[
'recommendForYou'
]
=
array
(
'recommendList'
=>
array
(
array
(
'img'
=>
''
'img'
=>
''
,
'salePrice'
=>
'567.44'
,
'oldPrice'
=>
'876.44'
),
array
(
'img'
=>
''
,
'salePrice'
=>
'567.44'
,
'oldPrice'
=>
''
),
array
(
'img'
=>
''
,
'salePrice'
=>
'567.44'
,
'oldPrice'
=>
'876.44'
),
array
(
'img'
=>
''
'img'
=>
''
,
'salePrice'
=>
'567.44'
,
'oldPrice'
=>
'876.44'
),
array
(
'img'
=>
''
'img'
=>
''
,
'salePrice'
=>
'567.44'
,
'oldPrice'
=>
'876.44'
),
array
(
'img'
=>
''
'img'
=>
''
,
'salePrice'
=>
'567.44'
,
'oldPrice'
=>
'876.44'
),
array
(
'img'
=>
''
'img'
=>
''
,
'salePrice'
=>
'567.44'
,
'oldPrice'
=>
'876.44'
),
array
(
'img'
=>
''
,
'salePrice'
=>
'567.44'
,
'oldPrice'
=>
'876.44'
),
array
(
'img'
=>
''
,
'salePrice'
=>
'567.44'
,
'oldPrice'
=>
'876.44'
)
)
);
$data
[
'myIndexPage'
]
=
true
;
$data
[
'pageFooter'
]
=
true
;
// 设置网站标题
$this
->
setTitle
(
'个人中心'
);
$this
->
_view
->
display
(
'index'
,
$data
);
}
...
...
Please
register
or
login
to post a comment