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
徐祁xuqi
9 years ago
Commit
0a53bc2604e39c81c4a24bcc406d1c36674f03a9
1 parent
bdf31c39
sub classify data
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
static/js/plugin/filter.js
template/m.yohobuy.com/partials/filter.phtml
static/js/plugin/filter.js
View file @
0a53bc2
...
...
@@ -29,8 +29,12 @@ function highlightMainItem() {
var
$mainItem
=
$
(
'.filter-body .classify'
);
$mainItem
.
on
(
'touchstart'
,
'.shower'
,
function
()
{
var
bpIdData
=
$
(
this
).
attr
(
'data-bp-id'
)
||
''
;
$mainItem
.
removeClass
(
'highlight'
);
$
(
this
).
addClass
(
'highlight'
);
$
(
document
).
trigger
(
'shouldSendBpData'
,
[
bpIdData
]);
}).
on
(
'touchend touchcancel'
,
'.shower'
,
function
()
{
$
(
this
).
removeClass
(
'highlight'
);
});
...
...
template/m.yohobuy.com/partials/filter.phtml
View file @
0a53bc2
...
...
@@ -10,7 +10,7 @@
</p>
<ul
class=
"sub-classify"
data-type=
{
{dataType
}
}>
{
{#
subs
}
}
<li
class=
"buriedpoint sub-item{{#if chosed}} chosed{{/if}}"
data-id=
{
{dataId
}
}
data-bp-id=
"filter_subclassify_{{name}}_1"
>
<li
class=
"buriedpoint sub-item{{#if chosed}} chosed{{/if}}"
data-id=
"{{dataId}}"
data-bp-id=
"filter_subclassify_{{name}}_1"
>
{
{name
}
}
<i
class=
"iconfont chosed-icon"
>
617
;</i>
</li>
...
...
Please
register
or
login
to post a comment