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
郝肖肖
8 years ago
Commit
7185869200b7d05204c1a30d454ff07ffc725acb
2 parents
d6d105cc
2c50698d
Merge branch 'release/2.0' of git.yoho.cn:fe/yoho-blk into release/2.0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
public/js/passport/login/index.js
public/js/product/item.page.js
public/js/passport/login/index.js
View file @
7185869
...
...
@@ -588,6 +588,7 @@ function validateCaptchaSms() {
smsIsRight
=
true
;
}).
fail
(
function
()
{
ep
.
emit
(
'smsCode'
,
false
);
refreshCaptcha
();
});
}
...
...
public/js/product/item.page.js
View file @
7185869
...
...
@@ -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,19 @@ $('#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
({
...
...
Please
register
or
login
to post a comment