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
hf
9 years ago
Commit
ea331cde2302db2fc3dda22a3a1d0fefbabde244
1 parent
9c81d24c
do modify product detail page bugs
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
3 deletions
yohobuy/m.yohobuy.com/application/controllers/Index.php
yohobuy/m.yohobuy.com/application/models/Product/Detail.php
yohobuy/m.yohobuy.com/application/models/Product/Search.php
yohobuy/m.yohobuy.com/application/controllers/Index.php
View file @
ea331cd
...
...
@@ -37,7 +37,6 @@ class IndexController extends AbstractAction
* 设置升级公告路由
*
*/
public
function
systemUpdateAction
()
{
$this
->
setTitle
(
'关于系统升级的公告'
);
...
...
yohobuy/m.yohobuy.com/application/models/Product/Detail.php
View file @
ea331cd
...
...
@@ -79,7 +79,7 @@ class DetailModel
$result
[
'goodsPrice'
]
=
array
();
$result
[
'goodsPrice'
][
'currentPrice'
]
=
$baseInfo
[
'productPriceBo'
][
'formatSalesPrice'
];
if
(
$baseInfo
[
'productPriceBo'
][
'formatMarketPrice'
]
!==
$baseInfo
[
'productPriceBo'
][
'formatSalesPrice'
])
{
$result
[
'goodsPrice'
][
'previousPrice'
]
=
strtr
(
$baseInfo
[
'productPriceBo'
][
'formatMarketPrice'
],
array
(
'¥'
=>
''
))
;
$result
[
'goodsPrice'
][
'previousPrice'
]
=
$baseInfo
[
'productPriceBo'
][
'formatMarketPrice'
]
;
}
}
// VIP商品价格
...
...
@@ -87,7 +87,7 @@ class DetailModel
$build
=
array
();
foreach
(
$baseInfo
[
'productPriceBo'
][
'vipPrices'
]
as
$value
)
{
$build
[
'level'
]
=
$value
[
'vipLevel'
];
$build
[
'text'
]
=
strtr
(
$value
[
'vipPrice'
],
array
(
'¥'
=>
''
))
;
$build
[
'text'
]
=
$value
[
'vipPrice'
]
;
$build
[
'currentLevel'
]
=
(
$value
[
'vipLevel'
]
==
$vipLevel
)
?
true
:
false
;
$result
[
'vipLevel'
][
'list'
][]
=
$build
;
}
...
...
yohobuy/m.yohobuy.com/application/models/Product/Search.php
View file @
ea331cd
Please
register
or
login
to post a comment