Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
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
梁志锋
9 years ago
Commit
d811f26aa9c50db540b180cb98240522b435cdcd
1 parent
941e5189
收藏浏览记录的失效商品点击效果
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
8 deletions
static/js/cart/cart.js
static/js/cart/good.js
static/js/home/home.js
static/js/me/browse-record.js
static/js/me/fav.js
static/js/cart/cart.js
View file @
d811f26
...
...
@@ -217,6 +217,12 @@ $('.btn-balance').on('touchend', function() {
});
$
(
'.off-shell-goods'
).
on
(
'touchstart touchend'
,
function
()
{
var
$this
=
$
(
e
.
target
).
closest
(
'span'
);
if
(
$this
.
hasClass
(
'icon-del'
))
{
return
;
}
tip
.
show
(
'商品已下架'
);
return
false
;
});
...
...
static/js/cart/good.js
View file @
d811f26
...
...
@@ -178,11 +178,6 @@ $('.icon-edit').on('touchstart', function(e) {
$
(
'.icon-del'
).
on
(
'touchstart'
,
function
(
e
)
{
var
$this
=
$
(
this
);
if
(
$this
.
parents
(
'.off-shell-goods'
).
length
)
{
tip
.
show
(
'商品已下架'
);
return
false
;
}
e
.
stopPropagation
();
dialog
.
showDialog
({
...
...
static/js/home/home.js
View file @
d811f26
...
...
@@ -55,7 +55,7 @@ $overlay.on('touchstart', function() {
return
false
;
});
$sideNav
.
on
(
'touchmove'
,
function
()
{
$sideNav
.
on
(
'touchmove
scroll
'
,
function
()
{
return
false
;
});
...
...
static/js/me/browse-record.js
View file @
d811f26
...
...
@@ -6,8 +6,9 @@
var
$
=
require
(
'jquery'
);
var
lazyLoad
=
require
(
'yoho.lazyload'
);
var
load
=
require
(
'../plugin/loading'
);
var
lazyLoad
=
require
(
'yoho.lazyload'
),
load
=
require
(
'../plugin/loading'
),
tip
=
require
(
'../plugin/tip'
);
var
dialog
=
require
(
'./dialog'
);
...
...
@@ -126,3 +127,13 @@ $('.deps').on('touchstart', 'span', function() {
}).
on
(
'touchend touchcancel'
,
'span'
,
function
()
{
$
(
this
).
css
(
'background'
,
'transparent'
);
});
$
(
'.invalidGoods'
).
on
(
'touchstart touchend'
,
function
()
{
var
$this
=
$
(
e
.
target
).
closest
(
'span'
);
if
(
$this
.
hasClass
(
'del-icon'
))
{
return
;
}
tip
.
show
(
'商品已下架'
);
return
false
;
});
\ No newline at end of file
...
...
static/js/me/fav.js
View file @
d811f26
...
...
@@ -256,3 +256,13 @@ $(document).on('touchend', '.swiper-header', function() {
window
.
location
.
href
=
url
;
}
});
$
(
'.invalidGoods'
).
on
(
'touchstart touchend'
,
function
()
{
var
$this
=
$
(
e
.
target
).
closest
(
'span'
);
if
(
$this
.
hasClass
(
'del-fav'
))
{
return
;
}
tip
.
show
(
'商品已下架'
);
return
false
;
});
\ No newline at end of file
...
...
Please
register
or
login
to post a comment