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
Plain Diff
Browse Files
Authored by
姜枫
9 years ago
Commit
4386750521ff76aa7d2f15199a61eff9ea8619da
2 parents
95d2b225
2f4f8bb3
Merge branch 'master' into release/1.0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
12 deletions
apps/me/views/partial/collection/product.hbs
apps/product/controllers/shop.js
doraemon/components/pagination/pagination.js
public/js/me/favorite.page.js
apps/me/views/partial/collection/product.hbs
View file @
4386750
...
...
@@ -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>
...
...
apps/product/controllers/shop.js
View file @
4386750
...
...
@@ -40,6 +40,7 @@ const shop = {
nav
:
nav
};
data
.
banner
=
result
;
data
.
title
=
result
.
name
;
data
.
shopId
=
result
.
shopId
;
data
.
mores
=
{};
result
.
menus
.
forEach
(
m
=>
{
...
...
@@ -110,7 +111,7 @@ const shop = {
ShopData
.
getShopHeadData
(
domain
,
shopId
,
uid
).
then
(
result
=>
{
data
.
banner
=
result
;
data
.
title
=
result
.
name
;
if
(
data
.
banner
.
banner
)
{
data
.
banner
.
banner
=
data
.
banner
.
banner
.
split
(
'?'
)[
0
];
}
...
...
doraemon/components/pagination/pagination.js
View file @
4386750
...
...
@@ -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 @
4386750
...
...
@@ -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