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
Plain Diff
Browse Files
Authored by
biao
9 years ago
Commit
457cdd2753d0c837ad7bb5d2fff6e246f08dd284
2 parents
df359d82
ba521ccd
merge jit
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
static/js/cart/jit-detail.js
static/js/cart/jit-detail.js
0 → 100644
View file @
457cdd2
/**
* jit拆单配送信息页面
* @author: zhaobiao<bill.zhao@yoho.cn>
* @date: 2016/04/26
*/
var
Swiper
=
require
(
'yoho.iswiper'
),
$
=
require
(
'jquery'
);
var
height
=
$
(
window
).
height
()
-
$
(
'#yoho-header'
).
height
();
// 为了展示页面背景色,需要把页面根据窗口大小撑开
$
(
'.jit-detail-page'
).
css
(
'height'
,
height
);
$
(
'.jit-detail-page>div'
).
show
();
// 内容展示之后,再根据document高度,调整一次容器高度
height
=
$
(
document
).
height
()
-
$
(
'#yoho-header'
).
height
();
$
(
'.jit-detail-page'
).
css
(
'height'
,
height
);
(
function
()
{
return
new
Swiper
(
'.swiper-container'
,
{
slidesPerView
:
'auto'
,
grabCursor
:
true
,
slideElement
:
'a'
,
lazyLoading
:
true
,
watchSlidesVisibility
:
true
});
})();
...
...
Please
register
or
login
to post a comment