Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
035ef3b0
Commit
035ef3b0
authored
Apr 15, 2019
by
clone
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test'
parents
0ef8acc8
068b3451
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
detaila_tl.js
public/app/js/detaila_tl.js
+7
-4
No files found.
public/app/js/detaila_tl.js
View file @
035ef3b0
...
@@ -192,7 +192,7 @@
...
@@ -192,7 +192,7 @@
// 视频详情
// 视频详情
for
(
var
n
=
0
;
n
<
lp_video
.
length
;
n
++
)
{
//视频详情
for
(
var
n
=
0
;
n
<
lp_video
.
length
;
n
++
)
{
//视频详情
vadio_item_ul
+=
'<li class="swiper-slide swiper-slide-active" data-index="1" data-totalindex="1" data-class="101" data-sum="6" style="width: 414px;"><video src="'
+
response
.
data
.
shop_videos
[
n
].
video_path
+
'" controls="controls" preload="auto"></video><div class="shop-detail-tel"><span>'
+
response
.
data
.
shop_videos
[
n
].
upload_name
+
'</span><span>(该视频由我上传)</span><span>'
+
response
.
data
.
shop_videos
[
n
].
upload_phone
+
'</span><a class="tel-agent-video" href="tel:'
+
response
.
data
.
shop_videos
[
n
].
upload_phone
+
'"></a></div></li>'
vadio_item_ul
+=
'<li class="swiper-slide swiper-slide-active" data-index="1" data-totalindex="1" data-class="101" data-sum="6" style="width: 414px;"><video src="'
+
response
.
data
.
shop_videos
[
n
].
video_path
+
'" controls="controls" preload="auto"
webkit-playsinline="true" playsinline="playsinline" x5-video-player-type="h5" x5-video-player-fullscreen="portraint" loop="loop" poster=" '
+
response
.
data
.
shop_videos
[
n
].
video_image
+
'"
></video><div class="shop-detail-tel"><span>'
+
response
.
data
.
shop_videos
[
n
].
upload_name
+
'</span><span>(该视频由我上传)</span><span>'
+
response
.
data
.
shop_videos
[
n
].
upload_phone
+
'</span><a class="tel-agent-video" href="tel:'
+
response
.
data
.
shop_videos
[
n
].
upload_phone
+
'"></a></div></li>'
};
};
for
(
var
n
=
0
;
n
<
lp_img
.
length
;
n
++
)
{
for
(
var
n
=
0
;
n
<
lp_img
.
length
;
n
++
)
{
...
@@ -331,14 +331,17 @@
...
@@ -331,14 +331,17 @@
preloadImages
:
false
,
preloadImages
:
false
,
lazyLoading
:
true
,
lazyLoading
:
true
,
lazyLoadingOnTransitionStart
:
true
,
lazyLoadingOnTransitionStart
:
true
,
initialSlide
:
click_shop_img
-
1
,
onTransitionEnd
:
function
(
swiper
)
{
onTransitionEnd
:
function
(
swiper
)
{
$
(
'.lp-index'
).
text
(
swiper
.
activeIndex
+
1
);
$
(
'.lp-index'
).
text
(
swiper
.
activeIndex
+
1
);
},
},
onInit
:
function
(
swiper
)
{
onInit
:
function
(
swiper
)
{
//默认第一页 怎么显示
//默认第一页 怎么显示
// if(click_shop_img*1 > 1){
if
(
click_shop_img
*
1
>
1
){
// swiper.activeIndex = click_shop_img-1;
// swiper.initialSlide = click_shop_img-1;
// }
swiper
.
activeIndex
=
click_shop_img
-
1
;
}
$
(
'.lp-index'
).
text
(
swiper
.
activeIndex
+
1
);
$
(
'.lp-index'
).
text
(
swiper
.
activeIndex
+
1
);
// $('.lp-sum').text(swiper.imagesToLoad.length || swiper.imagesLoaded || $('img', '.lp-bunner').size());
// $('.lp-sum').text(swiper.imagesToLoad.length || swiper.imagesLoaded || $('img', '.lp-bunner').size());
$
(
'.lp-sum'
).
text
(
$
(
'.swiper-slide'
).
size
());
$
(
'.lp-sum'
).
text
(
$
(
'.swiper-slide'
).
size
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment