Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHO-ACTIVITY-PHP
·
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
Plain Diff
Browse Files
Authored by
Lynnic
9 years ago
Commit
38b2be529002f1e17a82c18920885a5b731bbd3f
2 parents
7bd3a6c1
60444cd7
Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
6 deletions
static/sass/me/_home.scss
static/sass/me/_online-service.scss
template/m.yohobuy.com/partials/good.phtml
yohobuy/m.yohobuy.com/application/controllers/Home.php
static/sass/me/_home.scss
View file @
38b2be5
.my-page
{
color
:
#444
;
background
:
#f0f0f0
;
a
{
color
:
#444
;
}
.user-info
{
display
:
block
;
position
:
relative
;
...
...
@@ -136,7 +141,7 @@
}
.iconfont
{
font-size
:
pxToRem
(
6
0px
);
font-size
:
pxToRem
(
4
0px
);
}
}
}
...
...
static/sass/me/_online-service.scss
View file @
38b2be5
...
...
@@ -58,6 +58,7 @@
float
:
right
;
margin-right
:
rem
(
30
);
color
:
#ccc
;
font-size
:
rem
(
32
);
}
&
:last-child
{
...
...
@@ -87,6 +88,7 @@
.icon-yoho-enter
{
color
:
#ccc
;
float
:
right
;
font-size
:
rem
(
32
);
}
.connect-item
{
...
...
template/m.yohobuy.com/partials/good.phtml
View file @
38b2be5
...
...
@@ -12,7 +12,7 @@
<p
class=
"good-tag sale-tag"
>SALE</p>
{
{/
is_discount
}
}
{
{#
is_yohoood
}
}
<div
class=
"good-tag yohood-tag"
></div
>
<p
class=
"good-tag new-festival-tag"
>新品节</p
>
{
{/
is_yohoood
}
}
{
{#
is_limited
}
}
<p
class=
"good-tag limit-tag"
>限量商品</p>
...
...
yohobuy/m.yohobuy.com/application/controllers/Home.php
View file @
38b2be5
...
...
@@ -51,18 +51,35 @@ class HomeController extends AbstractAction
);
$uid
=
$this
->
getUid
();
if
(
$uid
)
{
// 优选新品数据
$channel
=
Helpers
::
getChannelByCookie
();
$data
[
'isLogin'
]
=
true
;
$data
+=
UserModel
::
getUserProfileData
(
$uid
);
$data
+=
UserModel
::
getInfoNumData
(
$uid
);
$data
[
'recommendForYou'
]
=
UserModel
::
getPreferenceData
(
$channel
);
}
$this
->
_view
->
display
(
'index'
,
$data
);
}
/**
* 为您优选
*/
public
function
preferenceAction
()
{
$result
=
array
();
if
(
$this
->
isAjax
())
{
// 优选新品数据
$channel
=
Helpers
::
getChannelByCookie
();
$result
=
UserModel
::
getPreferenceData
(
$channel
);
}
if
(
empty
(
$result
))
{
echo
' '
;
}
else
{
$this
->
_view
->
display
(
'recommend-content'
,
$result
);
}
}
/**
* 用户收藏的商品
*/
...
...
Please
register
or
login
to post a comment