Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
yyq
7 years ago
Commit
a8c6eeae7e8eb791d71511bfbd16bd7c9e51fb57
2 parents
64f58d1a
2eeb7d59
Merge branch 'feature/listBrand' into release/0507
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
4 deletions
apps/product/models/list-handler.js
doraemon/views/partial/product/filter-box.hbs
public/js/plugins/captcha-strategy/img-captcha.js
public/js/plugins/filter.js
apps/product/models/list-handler.js
View file @
a8c6eea
...
...
@@ -461,7 +461,8 @@ class FilterTools {
return
_
.
assign
(
brands
,
{
default
:
defaultBrands
,
brandsShow
:
brandsShow
,
seatUrl
:
handleFilterUrl
(
baseUrl
,
params
,
{
brand
:
'{seat}'
})
multiSeatUrl
:
handleFilterUrl
(
baseUrl
,
params
,
{
brand
:
'{seat}'
}),
seatUrl
:
href
.
replace
(
'${brand}'
,
'{seat}'
)
});
}
handleFilterSizes
()
{
// 组装sizes筛选数据
...
...
doraemon/views/partial/product/filter-box.hbs
View file @
a8c6eea
...
...
@@ -98,7 +98,7 @@
{{/if}}
{{#
brand
}}
<div
class=
"brand section"
id=
"yo-filter-brands"
data-url=
"
{{
seatUrl
}}
"
>
<div
class=
"brand section"
id=
"yo-filter-brands"
data-url=
"
{{
seatUrl
}}
"
data-multiurl=
"
{{
multiSeatUrl
}}
"
>
<span
class=
"title"
>
品牌:
</span>
<div
class=
"attr-content"
>
...
...
public/js/plugins/captcha-strategy/img-captcha.js
View file @
a8c6eea
...
...
@@ -37,7 +37,9 @@ Captcha.prototype = {
this
.
_isInit
=
true
;
this
.
bindEvents
();
this
.
refresh
();
// 初始化时不自动刷新验证码
// this.refresh();
return
this
;
},
...
...
public/js/plugins/filter.js
View file @
a8c6eea
...
...
@@ -345,7 +345,7 @@ $filterBrands.on('click', '#brand-multi-ok', function() {
val
.
push
(
$
(
this
).
data
(
'id'
));
});
uriLoc
(
'brand'
,
val
.
join
(
','
),
$filterBrands
.
data
(
'url'
));
uriLoc
(
'brand'
,
val
.
join
(
','
),
$filterBrands
.
data
(
'
multiurl'
)
||
$filterBrands
.
data
(
'
url'
));
});
// 【品牌/高级选项】多选取消
...
...
Please
register
or
login
to post a comment