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
Email Patches
Plain Diff
Browse Files
Authored by
hf
9 years ago
Commit
7d82d25ee9777e28e54f9fffd049d5f182123139
1 parent
59e8a913
merge release code to fixes bugs
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
4 deletions
template/m.yohobuy.com/actions/guang/plusstar/detail.phtml
yohobuy/m.yohobuy.com/application/models/Category/Brand.php
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Plusstar.php
template/m.yohobuy.com/actions/guang/plusstar/detail.phtml
View file @
7d82d25
...
...
@@ -14,10 +14,12 @@
<p
id=
"intro"
class=
"intro"
>
{
{intro
}
}
</p>
{
{#if
intro
}
}
<span
id=
"more-intro"
class=
"more-intro"
>
<span
id=
"intro-more-txt"
>more</span>
<i
class=
"icon iconfont"
>
609
;</i>
</span>
{
{/if
}
}
</div>
</div>
{
{#
newArrival
}
}
...
...
yohobuy/m.yohobuy.com/application/models/Category/Brand.php
View file @
7d82d25
...
...
@@ -64,7 +64,9 @@ class BrandModel
if
(
!
empty
(
$brand
[
'brandTop'
][
0
][
'data'
][
'list'
]))
{
$build
=
array
();
foreach
(
$brand
[
'brandTop'
][
0
][
'data'
][
'list'
]
as
$value
)
{
$build
[
'url'
]
=
Helpers
::
getFilterUrl
(
$value
[
'url'
]);
if
(
isset
(
$value
[
'url'
]))
{
$build
[
'url'
]
=
Helpers
::
getFilterUrl
(
$value
[
'url'
]);
}
$build
[
'img'
]
=
Helpers
::
getImageUrl
(
$value
[
'src'
],
144
,
144
);
$build
[
'name'
]
=
$value
[
'name'
];
$result
[
'hotBrand'
][
'list'
][]
=
$build
;
...
...
@@ -74,7 +76,9 @@ class BrandModel
elseif
(
!
empty
(
$brand
[
'brandTop'
][
0
][
'data'
]))
{
$build
=
array
();
foreach
(
$brand
[
'brandTop'
][
0
][
'data'
]
as
$value
)
{
$build
[
'url'
]
=
Helpers
::
getFilterUrl
(
$value
[
'url'
]);
if
(
isset
(
$value
[
'url'
]))
{
$build
[
'url'
]
=
Helpers
::
getFilterUrl
(
$value
[
'url'
]);
}
$build
[
'img'
]
=
Helpers
::
getImageUrl
(
$value
[
'src'
],
640
,
310
);
$build
[
'title'
]
=
$value
[
'title'
];
$result
[
'bannerTop'
][
'list'
][]
=
$build
;
...
...
@@ -85,7 +89,9 @@ class BrandModel
if
(
!
empty
(
$brand
[
'brandTop'
][
1
][
'data'
][
'list'
]))
{
$build
=
array
();
foreach
(
$brand
[
'brandTop'
][
1
][
'data'
][
'list'
]
as
$value
)
{
$build
[
'url'
]
=
Helpers
::
getFilterUrl
(
$value
[
'url'
]);
if
(
isset
(
$value
[
'url'
]))
{
$build
[
'url'
]
=
Helpers
::
getFilterUrl
(
$value
[
'url'
]);
}
$build
[
'img'
]
=
Helpers
::
getImageUrl
(
$value
[
'src'
],
144
,
144
);
$build
[
'name'
]
=
$value
[
'name'
];
$result
[
'hotBrand'
][
'list'
][]
=
$build
;
...
...
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Plusstar.php
View file @
7d82d25
...
...
@@ -134,7 +134,7 @@ class PlusstarController extends AbstractAction
$data
[
'ps'
][
'logo'
]
=
Helpers
::
getImageUrl
(
$brandInfo
[
'getBrandInfo'
][
'data'
][
'brand_ico'
],
160
,
160
);
$data
[
'ps'
][
'name'
]
=
$brandInfo
[
'getBrandInfo'
][
'data'
][
'brand_name'
];
$data
[
'ps'
][
'isLike'
]
=
$brandInfo
[
'getUidBrandFav'
];
$data
[
'ps'
][
'intro'
]
=
empty
(
$brandInfo
[
'getBrandInfo'
][
'data'
][
'brand_intro'
])
?
''
:
strtr
(
strip_tags
(
$brandInfo
[
'getBrandInfo'
][
'data'
][
'brand_intro'
]),
array
(
' '
=>
' '
));
$data
[
'ps'
][
'intro'
]
=
empty
(
$brandInfo
[
'getBrandInfo'
][
'data'
][
'brand_intro'
])
?
false
:
strtr
(
strip_tags
(
$brandInfo
[
'getBrandInfo'
][
'data'
][
'brand_intro'
]),
array
(
' '
=>
' '
));
$data
[
'ps'
][
'newArrival'
]
=
array
();
$data
[
'ps'
][
'newArrival'
][
'moreUrl'
]
=
$url
;
$data
[
'ps'
][
'newArrival'
][
'naList'
]
=
$brandInfo
[
'getNewProduct'
];
...
...
Please
register
or
login
to post a comment