Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
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
Lynnic
9 years ago
Commit
c4d34e54b307ed1e6c86448ac742f7eca3dc61ea
1 parent
def1940a
update
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
9 deletions
docs/data-structure.md
static/js/product/detail/detail.js
static/js/product/detail/like.js
template/m.yohobuy.com/actions/product/detail/index.phtml
docs/data-structure.md
View file @
c4d34e5
...
...
@@ -1243,6 +1243,6 @@
'cartInfo' : {
'numInCart' : 3,
'goodsInstore' : 0,
'
'
'
isCollect':true
}
}
...
...
static/js/product/detail/detail.js
View file @
c4d34e5
...
...
@@ -11,7 +11,7 @@ var goodsSwiper;
require
(
'./desc'
);
require
(
'./comments-consults'
);
require
(
'./like
.js
'
);
require
(
'./like'
);
require
(
'../recommend-for-you.js'
);
lazyLoad
(
$
(
'img.lazy'
));
...
...
@@ -50,6 +50,4 @@ $('.goodsDiscount .dropdown').on('click', function() {
$
(
'.goodsDiscount .first-item span'
).
html
(
''
);
$
(
'.goodsDiscount .discount-folder'
).
slideUp
();
}
});
});
\ No newline at end of file
...
...
static/js/product/detail/like.js
View file @
c4d34e5
...
...
@@ -7,7 +7,7 @@ var $ = require('jquery'),
Hammer
=
require
(
'yoho.hammer'
),
tip
=
require
(
'../../plugin/tip'
);
var
likeHammer
=
new
Hammer
(
'#likeBtn'
);
var
likeHammer
=
new
Hammer
(
document
.
getElementById
(
'likeBtn'
)
);
likeHammer
.
on
(
'tap'
,
function
(
e
)
{
var
productId
=
$
(
'#productId'
).
val
(),
...
...
template/m.yohobuy.com/actions/product/detail/index.phtml
View file @
c4d34e5
...
...
@@ -2,7 +2,7 @@
<div
class=
"good-detail-page yoho-page"
>
<div
class=
"banner-container"
>
<div
class=
"tag-container"
>
<
p
class=
"good-tag soonSoldOut-tag"
>即将售罄</p
>
<
!--
<p
class=
"good-tag soonSoldOut-tag"
>即将售罄</p>
--
>
{
{#
tags
}
}
{
{#
is_new
}
}
<p
class=
"good-tag new-tag"
>NEW</p>
...
...
@@ -118,10 +118,10 @@
{
{else
}
}
<a
href=
""
class=
"sold-out"
>已售罄</a>
{
{/if
}
}
{
{#if
favorite
}
}
{
{#if
isCollect
}
}
<a
href=
""
id=
"likeBtn"
class=
"favorite iconfont liked"
>
605
;</a>
{
{else
}
}
<a
href=
""
class=
"favorite iconfont"
>
605
;</a>
<a
href=
""
id=
"likeBtn"
class=
"favorite iconfont"
>
605
;</a>
{
{/if
}
}
</div>
{
{/cartInfo
}
}
...
...
Please
register
or
login
to post a comment