Toggle navigation
Toggle navigation
This project
Loading...
Sign in
chenchao
/
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
biao
9 years ago
Commit
629089a6c92cb1953cd4da49954066a3a4c231aa
1 parent
4c08c53a
优化加载空数据时底部的位置
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
static/js/me/fav.js
static/js/me/fav.js
View file @
629089a
...
...
@@ -9,6 +9,8 @@ var $ = require('jquery'),
var
diaLog
=
require
(
'./dialog'
);
var
tip
=
require
(
'../plugin/tip'
);
var
$navLi
=
$
(
'#fav-tab > li'
),
$favContainer
=
$
(
'.fav-content > .fav-type'
),
swiperObj
=
{},
...
...
@@ -90,6 +92,7 @@ function loadData($parent, url, page) {
if
(
data
===
' '
)
{
$loadingMask
.
addClass
(
'hide'
);
$parent
.
closest
(
'.fav-type'
).
find
(
'.fav-null-box'
).
removeClass
(
'hide'
);
window
.
rePosFooter
();
}
else
if
(
data
===
'end'
)
{
//处理data等于end时如果loadingMask存在且没有hide样式的情况
...
...
@@ -257,7 +260,7 @@ $(document).on('touchend', '.swiper-header', function() {
}
});
$
(
'.invalidGoods'
).
on
(
'touchstart touchend'
,
function
()
{
$
(
'.invalidGoods'
).
on
(
'touchstart touchend'
,
function
(
e
)
{
var
$this
=
$
(
e
.
target
).
closest
(
'span'
);
if
(
$this
.
hasClass
(
'del-fav'
))
{
...
...
@@ -265,4 +268,4 @@ $('.invalidGoods').on('touchstart touchend', function() {
}
tip
.
show
(
'商品已下架'
);
return
false
;
});
\ No newline at end of file
});
...
...
Please
register
or
login
to post a comment