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
1b8c4fd2
Commit
1b8c4fd2
authored
Apr 10, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
c3c9a339
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
detaila_tl.js
public/app/js/detaila_tl.js
+8
-5
No files found.
public/app/js/detaila_tl.js
View file @
1b8c4fd2
...
...
@@ -21,7 +21,7 @@
var
p_district_id
=
jsonObect
.
p_district_id
;
var
p_store_id
=
jsonObect
.
p_store_id
;
var
p_agent_id
=
jsonObect
.
p_agent_id
;
var
click_shop_img
=
''
;
// var _shangpuName = getUrlParam('housename'); //从url获取的商铺名
// var _isC = getUrlParam('isC')
...
...
@@ -178,14 +178,12 @@
var
lp_img1
=
response
.
data
.
plan_images
;
//楼层平面图
var
img_item_ul
=
""
;
var
vadio_item_ul
=
""
;
//滚动区域
for
(
var
n
=
0
;
n
<
lp_video
.
length
;
n
++
)
{
img_item_ul
+=
'<div class="luobo-shop-detail"><div class="img_video_bofang"></div><img src="'
+
response
.
data
.
shop_videos
[
n
].
video_image
+
'" onerror="src=
\'
/app/images/pzz_.jpg
\'
"/></div>'
img_item_ul
+=
'<div class="luobo-shop-detail" data-num="'
+
(
n
+
1
)
+
'"><div class="img_video_bofang"></div><img src="'
+
response
.
data
.
shop_videos
[
n
].
video_image
+
'" onerror="src=
\'
/app/images/pzz_.jpg
\'
"/></div>'
};
for
(
var
n
=
0
;
n
<
lp_img
.
length
;
n
++
)
{
img_item_ul
+=
'<div class="luobo-shop-detail"><img src="'
+
response
.
data
.
api_path
+
response
.
data
.
images
[
n
].
img_name
+
'" onerror="src=
\'
/app/images/pzz_.jpg
\'
"/></div>'
img_item_ul
+=
'<div class="luobo-shop-detail"
data-num="'
+
(
lp_video
.
length
*
1
+
n
+
1
)
+
'"
><img src="'
+
response
.
data
.
api_path
+
response
.
data
.
images
[
n
].
img_name
+
'" onerror="src=
\'
/app/images/pzz_.jpg
\'
"/></div>'
$
(
".shop-img-list"
).
html
(
img_item_ul
);
};
...
...
@@ -328,6 +326,7 @@
$
(
document
).
on
(
'click'
,
'.luobo-shop-detail'
,
function
(
e
)
{
$
(
'.lp-bunner'
).
show
();
var
click_shop_img
=
$
(
this
).
attr
(
'data-num'
);
var
swiper
=
new
Swiper
(
'.lp-bunner'
,
{
preloadImages
:
false
,
lazyLoading
:
true
,
...
...
@@ -336,6 +335,10 @@
$
(
'.lp-index'
).
text
(
swiper
.
activeIndex
+
1
);
},
onInit
:
function
(
swiper
)
{
//默认第一页 怎么显示
// if(click_shop_img*1 > 1){
// swiper.activeIndex = click_shop_img-1;
// }
$
(
'.lp-index'
).
text
(
swiper
.
activeIndex
+
1
);
// $('.lp-sum').text(swiper.imagesToLoad.length || swiper.imagesLoaded || $('img', '.lp-bunner').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