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
ccbikai
9 years ago
Commit
68cb63a9ba7252b90664348031b93052836f3947
1 parent
2fcda24b
品牌一览优化
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
static/js/category/brand.js
template/m.yohobuy.com/actions/category/brand/index.phtml
static/js/category/brand.js
View file @
68cb63a
...
...
@@ -31,7 +31,8 @@ swiper = new Swiper('.swiper-container', {
lazyLoad
(
$
(
'img.lazy'
));
$
(
'.yoho-header'
).
css
({
'z-index'
:
2
,
position
:
'fixed'
position
:
'fixed'
,
top
:
0
});
$
(
window
).
scroll
(
function
()
{
...
...
@@ -98,10 +99,10 @@ function searchResult() {
$
.
each
(
v
,
function
(
i
,
brand
)
{
brandHtml
.
push
(
'<p><a href="'
+
brand
.
url
+
'">'
+
brand
.
name
);
if
(
brand
.
isNew
)
{
brandHtml
.
push
(
'<i class="icon-hot">H
ot
</i>'
);
brandHtml
.
push
(
'<i class="icon-hot">H
OT
</i>'
);
}
if
(
brand
.
isHot
)
{
brandHtml
.
push
(
'<i class="icon-new">N
ew
</i>'
);
brandHtml
.
push
(
'<i class="icon-new">N
EW
</i>'
);
}
brandHtml
.
push
(
'</a></p>'
);
});
...
...
@@ -142,7 +143,7 @@ if ($('.brand-search-page').length) {
$
(
this
).
closest
(
'.search-box'
).
css
(
'width'
,
'12.5rem'
);
$
(
'.search-action'
).
hide
();
}
});
})
.
focus
()
;
searchBtnHammer
=
new
Hammer
(
$
(
'.search-btn'
)[
0
]);
...
...
template/m.yohobuy.com/actions/category/brand/index.phtml
View file @
68cb63a
...
...
@@ -39,10 +39,10 @@
<p>
<a
href=
"{{url}}"
>
{
{name
}
}
{
{#
isHot
}
}
<i
class=
"icon-hot"
>H
ot
</i>
<i
class=
"icon-hot"
>H
OT
</i>
{
{/
isHot
}
}
{
{#
isNew
}
}
<i
class=
"icon-new"
>N
ew
</i>
<i
class=
"icon-new"
>N
EW
</i>
{
{/
isNew
}
}
</a>
</p>
...
...
Please
register
or
login
to post a comment