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
2f4f8bb3af3506d6c0bc09907a1fec6d8ffa9599
1 parent
3ea073ee
fix bugs
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
11 deletions
apps/me/views/partial/collection/product.hbs
doraemon/components/pagination/pagination.js
public/js/me/favorite.page.js
apps/me/views/partial/collection/product.hbs
View file @
2f4f8bb
...
...
@@ -26,8 +26,8 @@
{{/
stateText
}}
</div>
<div
class=
"desc"
>
<div
class=
"brand-name"
>
{{
brandName
}}
</div>
<div
class=
"product-name"
>
{{
productName
}}
</div>
<div
class=
"brand-name"
><a
href=
"
{{
url
}}
"
target=
"_blank"
>
{{
brandName
}}
</a></div>
<div
class=
"product-name"
><a
href=
"
{{
url
}}
"
target=
"_blank"
>
{{
productName
}}
</a></div>
<p
class=
"price"
>
¥
{{
round
salesPrice
2
}}
</p>
</div>
...
...
doraemon/components/pagination/pagination.js
View file @
2f4f8bb
...
...
@@ -47,7 +47,7 @@ exports.createPagination = function(pagination, options) {
var
template
;
if
(
!
pagination
)
{
if
(
!
pagination
||
pagination
.
pageTotal
===
1
)
{
return
''
;
}
...
...
public/js/me/favorite.page.js
View file @
2f4f8bb
...
...
@@ -32,6 +32,14 @@ function doCancel(ids) {
});
}
function
goodsChoose
()
{
if
(
$
(
this
).
parent
(
'.goods-info'
,
$root
).
hasClass
(
'choose'
))
{
$
(
this
).
parent
(
'.goods-info'
,
$root
).
removeClass
(
'choose'
);
}
else
{
$
(
this
).
parent
(
'.goods-info'
,
$root
).
addClass
(
'choose'
);
}
}
function
eventBind
()
{
$
(
'.check-all'
,
$root
).
check
({
...
...
@@ -45,14 +53,8 @@ function eventBind() {
}
});
$
(
'.goods-img'
,
$root
).
click
(
function
()
{
if
(
$
(
this
).
parent
(
'.goods-info'
,
$root
).
hasClass
(
'choose'
))
{
$
(
this
).
parent
(
'.goods-info'
,
$root
).
removeClass
(
'choose'
);
}
else
{
$
(
this
).
parent
(
'.goods-info'
,
$root
).
addClass
(
'choose'
);
}
});
$
(
'.choose-icon'
,
$root
).
click
(
goodsChoose
);
$
(
'.goods-img'
,
$root
).
click
(
goodsChoose
);
$
(
'.btn.cancel'
,
$root
).
click
(
function
()
{
var
id
=
$
(
this
).
parents
(
'.goods-info'
).
data
(
'id'
);
...
...
Please
register
or
login
to post a comment