Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
姜枫
9 years ago
Commit
2188098331eab8681466c6bb6963ae8108dbfc1a
1 parent
51cde9b0
fix bugs
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
7 deletions
apps/me/views/partial/collection/brand.hbs
apps/product/views/partial/list/filter.hbs
public/js/plugins/check.js
public/js/product/list/list-search.js
public/scss/product/_list.css
apps/me/views/partial/collection/brand.hbs
View file @
2188098
...
...
@@ -37,7 +37,7 @@
{{#
each
this
}}
{{#if
more
}}
<div
class=
"goods-more"
>
<a
href=
"/product/shop/
{{
..
/
..
/
brandDomain
}}{{#if
shopId
}}
?shopId=
{{
shopId
}}{{/if}}
"
>
<a
href=
"/product/shop/
{{
..
/
..
/
brandDomain
}}{{#if
..
/
..
/
shopId
}}
?shopId=
{{
..
/
..
/
shopId
}}{{/if}}
"
target=
"_blank
"
>
<div
class=
"more-text"
>
MORE
</div>
<p>
查看更多
</p>
</a>
...
...
apps/product/views/partial/list/filter.hbs
View file @
2188098
...
...
@@ -86,7 +86,7 @@
{{/
each
}}
</div>
</div>
<div
class=
"brand-btns
hide
"
>
<div
class=
"brand-btns"
>
<span
class=
"btn disable large confirm"
>
确定
</span>
<span
class=
"btn large cancel"
>
取消
</span>
</div>
...
...
@@ -178,7 +178,7 @@
{{/
each
}}
</div>
</div>
<div
class=
"style-btns
hide
"
>
<div
class=
"style-btns"
>
<span
class=
"btn disable large confirm"
>
确定
</span>
<span
class=
"btn large cancel"
>
取消
</span>
</div>
...
...
public/js/plugins/check.js
View file @
2188098
...
...
@@ -32,6 +32,9 @@ var jQuery = require('yoho-jquery');
$
(
'.iconfont'
,
this
).
removeClass
(
'radio'
).
removeClass
(
'checkbox'
).
addClass
(
options
.
type
);
$
(
'.iconfont'
,
this
).
html
(
_checked
?
options
.
checkedHtml
:
options
.
uncheckedHtml
);
if
(
_checked
)
{
$
(
'.iconfont'
,
this
).
addClass
(
'checked'
);
}
if
(
options
.
group
)
{
$
(
this
).
addClass
(
'check-group-'
+
options
.
group
);
...
...
public/js/product/list/list-search.js
View file @
2188098
...
...
@@ -299,6 +299,7 @@ var YohoListPage = {
});
},
openBrandMulitChoose
:
function
()
{
console
.
log
(
1
);
$
(
'.yoho-product-list .mulit-choose'
).
hide
();
$
(
'.input-radio'
,
this
.
brandsDoc
).
check
({
type
:
'checkbox'
...
...
@@ -308,10 +309,8 @@ var YohoListPage = {
},
closeBrandMulitChoose
:
function
()
{
$
(
'.yoho-product-list .mulit-choose'
).
show
();
$
(
'.yoho-product-list .brand-btns'
).
addClass
(
'hide'
);
$
(
'.yoho-product-list .brand-list .input-radio'
).
check
(
'unCheckAll'
);
YohoListPage
.
mulitBrand
=
false
;
$
(
'.input-radio'
,
this
.
brandsDoc
).
check
({
type
:
'radio'
});
...
...
@@ -320,6 +319,8 @@ var YohoListPage = {
type
:
'radio'
,
checked
:
true
});
YohoListPage
.
mulitBrand
=
false
;
$
(
'.yoho-product-list .brand-btns'
).
hide
();
},
openStyleMulit
:
function
()
{
...
...
@@ -342,7 +343,7 @@ var YohoListPage = {
},
showBrandMulitBtn
:
function
()
{
$
(
'.
brand-btns'
,
this
.
rootDoc
).
removeClass
(
'hide'
);
$
(
'.
yoho-product-list .brand-btns'
).
show
(
);
if
(
YohoListPage
.
getSelectBrands
().
length
>
0
)
{
$
(
'.brand-btns .confirm'
,
this
.
rootDoc
).
removeClass
(
'disable'
);
}
else
{
...
...
@@ -373,7 +374,7 @@ var YohoListPage = {
getSelectBrands
:
function
()
{
var
brands
=
[];
$
(
'.input-radio .
checkbox
'
,
this
.
brandsDoc
).
each
(
function
()
{
$
(
'.input-radio .
iconfont
'
,
this
.
brandsDoc
).
each
(
function
()
{
if
(
$
(
this
).
hasClass
(
'checked'
))
{
brands
.
push
(
$
(
this
).
parent
().
data
(
'value'
));
}
...
...
public/scss/product/_list.css
View file @
2188098
...
...
@@ -127,6 +127,7 @@
.style-btns
{
text-align
:
center
;
margin-top
:
10px
;
display
:
none
;
.btn
{
margin
:
0
10px
;
...
...
Please
register
or
login
to post a comment