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
Rock Zhang
9 years ago
Commit
3052e6dd6808a17d5adbcb07548c80429f1e6cd7
1 parent
8974915c
修复个人等级信息错误的bug
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
yohobuy/m.yohobuy.com/application/controllers/Home.php
yohobuy/m.yohobuy.com/application/models/Index/User.php
yohobuy/m.yohobuy.com/application/controllers/Home.php
View file @
3052e6d
...
...
@@ -602,9 +602,8 @@ class HomeController extends AbstractAction
//显示网站导航头部信息
$this
->
setNavHeader
(
'会员等级'
);
$gender
=
Helpers
::
getGenderByCookie
();
$channel
=
Helpers
::
getChannelByCookie
();
$data
=
GradeModel
::
getGrade
(
$
gender
,
$
channel
,
$this
->
_uid
);
$data
=
GradeModel
::
getGrade
(
$channel
,
$this
->
_uid
);
$data
[
'pageFooter'
]
=
true
;
$this
->
_view
->
display
(
'vip-grade'
,
$data
);
...
...
yohobuy/m.yohobuy.com/application/models/Index/User.php
View file @
3052e6d
...
...
@@ -237,7 +237,7 @@ class UserModel
$product
=
array
();
foreach
(
$val
[
'new_product'
]
as
$one
)
{
$product
=
array
();
$product
[
'link'
]
=
isset
(
$val
[
'goods
Id'
])
?
Helpers
::
url
(
'/product/pro_'
.
$val
[
'product_id'
]
.
'_'
.
$val
[
'goodsI
d'
]
.
'/'
.
$val
[
'cnAlphabet'
]
.
'.html'
)
:
''
;
$product
[
'link'
]
=
isset
(
$val
[
'goods
List'
][
0
])
?
Helpers
::
url
(
'/product/pro_'
.
$val
[
'product_id'
]
.
'_'
.
$val
[
'goodsList'
][
0
][
'i
d'
]
.
'/'
.
$val
[
'cnAlphabet'
]
.
'.html'
)
:
''
;
$product
[
'imgUrl'
]
=
(
isset
(
$one
[
'default_images'
])
&&
!
empty
(
$one
[
'default_images'
]))
?
Images
::
getImageUrl
(
$one
[
'default_images'
],
235
,
314
)
:
''
;
$product
[
'price'
]
=
!
empty
(
$one
[
'market_price'
])
?
'¥'
.
$one
[
'market_price'
]
:
0
;
$product
[
'discount'
]
=
!
empty
(
$one
[
'sales_price'
])
?
'¥'
.
$one
[
'sales_price'
]
:
0
;
...
...
Please
register
or
login
to post a comment