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
王水玲
8 years ago
Commit
88bc420646f8eb0505781e7fe0bacd42c3208dce
1 parent
f5b319f8
blk 商品详情页收藏效果修改
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
8 deletions
public/js/product/item.page.js
public/scss/product/_item.css
public/js/product/item.page.js
View file @
88bc420
...
...
@@ -31,6 +31,7 @@ var $sizeInfo = $('.size-info');
var
$saleReturn
=
$
(
'#saleReturn'
);
var
$thumbCur
=
$
(
'.thumb-wrap .cur'
);
// 当前选中展示图片
var
$calCol
=
$
(
'.collected .cal-col'
);
var
SLIDETIME
=
200
;
...
...
@@ -323,6 +324,8 @@ $('#collect-product').click(function() {
if
(
$this
.
hasClass
(
'coll'
))
{
param
.
type
=
'cancel'
;
$calCol
.
prev
().
show
();
$calCol
.
hide
();
}
$
.
ajax
({
...
...
@@ -338,6 +341,18 @@ $('#collect-product').click(function() {
});
});
$
(
'#collect-product'
).
mouseenter
(
function
()
{
if
(
$
(
this
).
hasClass
(
'coll'
))
{
$calCol
.
prev
().
hide
();
$calCol
.
show
();
}
}).
mouseleave
(
function
()
{
if
(
$
(
this
).
hasClass
(
'coll'
))
{
$calCol
.
prev
().
show
();
$calCol
.
hide
();
}
});
$
(
'.more-brand-intro'
).
click
(
function
()
{
$
(
'body'
).
css
({
overflow
:
'hidden'
});
new
Dialog
({
...
...
public/scss/product/_item.css
View file @
88bc420
...
...
@@ -230,14 +230,6 @@
.cal-col
{
display
:
none
;
}
&
:hover
em
{
display
:
none
;
}
&
:hover
.cal-col
{
display
:
inline
;
}
}
.coll
{
...
...
Please
register
or
login
to post a comment