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
2052d87ca99ef63d1055730101772480db4c910d
1 parent
bb3edbc1
修复逛页面中的一些问题,包括逛详情页数据重复,图片错误的问题
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
template/m.yohobuy.com/partials/layout/use.phtml
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Detail.php
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Plusstar.php
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Newsale.php
template/m.yohobuy.com/partials/layout/use.phtml
View file @
2052d87
...
...
@@ -108,14 +108,14 @@
{{/if}}
{{!-- 新品到着 --}}
{{#if newArrival}}
{{#if newArrival
Page
}}
<script>
seajs.use('js/product/newsale/newarrival');
</script>
{{/if}}
{{!-- 折扣专区 --}}
{{#if discount}}
{{#if discount
Page
}}
<script>
seajs.use('js/product/newsale/discount');
</script>
...
...
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Detail.php
View file @
2052d87
...
...
@@ -60,12 +60,10 @@ class DetailController extends AbstractAction
// 文字
if
(
isset
(
$value
[
'text'
]))
{
$build
[
'text'
]
=
$value
[
'text'
][
'data'
][
'text'
];
$data
[
'detail'
][
'content'
][]
=
$build
;
}
// 单张图
elseif
(
isset
(
$value
[
'singleImage'
]))
{
$build
[
'bigImage'
]
=
Helpers
::
getImageUrl
(
$value
[
'singleImage'
][
'data'
][
0
][
'src'
],
640
,
640
);
$data
[
'detail'
][
'content'
][]
=
$build
;
}
// 相关推荐
elseif
(
isset
(
$value
[
'goods'
][
'data'
]))
{
...
...
@@ -142,6 +140,7 @@ class DetailController extends AbstractAction
if
(
!
empty
(
$detail
[
'getOtherArticle'
]))
{
foreach
(
$detail
[
'getOtherArticle'
]
as
$value
)
{
$value
[
'url'
]
=
'/guang/detail/index?id='
.
$value
[
'id'
];
$value
[
'thumb'
]
=
Helpers
::
getImageUrl
(
$value
[
'thumb'
],
279
,
175
);
$data
[
'relatedInfo'
][]
=
$value
;
}
}
...
...
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Plusstar.php
View file @
2052d87
...
...
@@ -79,7 +79,7 @@ class PlusstarController extends AbstractAction
$data
[
'ps'
][
'likeUrl'
]
=
false
;
//"http://guang.m.yohobuy.com/plustar/brandinfo?id=285&openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"http:\/\/guang.m.yohobuy.com\/plustar\/brandinfo","param":{"id":285}},"requesturl":{"url":"\/guang\/api\/v1\/favorite\/togglebrand","param":{"brand_id":"701"}},"priority":"Y"}}";
$data
[
'ps'
][
'intro'
]
=
empty
(
$brandInfo
[
'getBrandInfo'
][
'data'
][
'brand_intro'
])
?
''
:
strtr
(
strip_tags
(
$brandInfo
[
'getBrandInfo'
][
'data'
][
'brand_intro'
]),
array
(
' '
=>
' '
));
$data
[
'ps'
][
'newArrival'
]
=
array
();
$data
[
'ps'
][
'newArrival'
][
'moreUrl'
]
=
'
'
;
// @todo 品牌列表页面
$data
[
'ps'
][
'newArrival'
][
'moreUrl'
]
=
'
/product/list/brand?brand='
.
$id
;
// @todo 品牌列表页面
$data
[
'ps'
][
'newArrival'
][
'naList'
]
=
$brandInfo
[
'getNewProduct'
];
$data
[
'ps'
][
'infos'
]
=
array
();
...
...
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Newsale.php
View file @
2052d87
...
...
@@ -24,7 +24,7 @@ class NewsaleController extends AbstractAction
$this
->
channelTrans
(
$channel
);
$data
=
array
();
$data
[
'newArrival'
]
=
true
;
$data
[
'newArrival
Page
'
]
=
true
;
$data
[
'headerBanner'
]
=
\Product\NewsaleModel
::
getNewFocus
(
$channel
);
$goodsList
=
\Product\NewsaleModel
::
getNewProducts
(
$channel
,
60
);
if
(
!
empty
(
$goodsList
))
{
...
...
@@ -58,6 +58,7 @@ class NewsaleController extends AbstractAction
$this
->
channelTrans
(
$channel
);
$data
=
array
();
$data
[
'discountPage'
]
=
true
;
$data
[
'headerBanner'
]
=
\Product\NewsaleModel
::
getNewFocus
(
$channel
);
$goodsList
=
\Product\NewsaleModel
::
getSaleProducts
(
$channel
,
60
);
if
(
!
empty
(
$goodsList
))
{
...
...
Please
register
or
login
to post a comment