Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_Travel
Project
Project
Details
Activity
Releases
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
zhengke
jz_Travel
Commits
b063be50
Commit
b063be50
authored
Jun 04, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
92756cb5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
15 deletions
+43
-15
picture.vue
pages/hotel/picture.vue
+41
-13
jz_LineDetail.vue
pages/jiuzhai/jz_LineDetail.vue
+2
-2
No files found.
pages/hotel/picture.vue
View file @
b063be50
...
@@ -3,14 +3,28 @@
...
@@ -3,14 +3,28 @@
<scroll-view
scroll-y=
"true"
class=
"hotel-pic"
>
<scroll-view
scroll-y=
"true"
class=
"hotel-pic"
>
<view
class=
"content"
>
<view
class=
"content"
>
<view
class=
"left"
>
<view
class=
"left"
>
<view
v-for=
"(x,i) in jiList"
:key=
"i"
class=
"image-box"
@
click=
"previewImage(x.Path)"
>
<template
v-if=
"isLine==0"
>
<image
:src=
"x.Path"
mode=
"widthFix"
></image>
<view
v-for=
"(x,i) in jiList"
:key=
"i"
class=
"image-box"
@
click=
"previewImage(x.Path)"
>
</view>
<image
:src=
"x.Path"
mode=
"widthFix"
></image>
</view>
</
template
>
<
template
v-else
>
<view
v-for=
"(x,i) in jiList"
:key=
"i"
class=
"image-box"
@
click=
"previewImage(x.Url)"
>
<image
:src=
"x.Url"
mode=
"widthFix"
></image>
</view>
</
template
>
</view>
</view>
<view
class=
"right"
>
<view
class=
"right"
>
<view
v-for=
"(x,i) in ouList"
:key=
"i"
class=
"image-box"
@
click=
"previewImage(x.Path)"
>
<
template
v-if=
"isLine==0"
>
<image
:src=
"x.Path"
mode=
"widthFix"
></image>
<view
v-for=
"(x,i) in ouList"
:key=
"i"
class=
"image-box"
@
click=
"previewImage(x.Path)"
>
</view>
<image
:src=
"x.Path"
mode=
"widthFix"
></image>
</view>
</
template
>
<
template
v-else
>
<view
v-for=
"(x,i) in ouList"
:key=
"i"
class=
"image-box"
@
click=
"previewImage(x.Url)"
>
<image
:src=
"x.Url"
mode=
"widthFix"
></image>
</view>
</
template
>
</view>
</view>
</view>
</view>
</scroll-view>
</scroll-view>
...
@@ -24,19 +38,29 @@
...
@@ -24,19 +38,29 @@
imageList
:[],
imageList
:[],
jiList
:[],
jiList
:[],
ouList
:[],
ouList
:[],
allImageSrc
:[]
allImageSrc
:[],
isLine
:
0
}
}
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
if
(
options
.
imgObj
){
if
(
options
.
imgObj
&&
options
.
isLine
==
1
){
this
.
imageList
=
JSON
.
parse
(
decodeURIComponent
(
options
.
imgObj
))
this
.
isLine
=
1
;
this
.
getSeperate
();
uni
.
setNavigationBarTitle
({
title
:
"线路图片"
,
});
}
else
{
this
.
imageList
=
JSON
.
parse
(
options
.
imgObj
);
this
.
imageList
=
JSON
.
parse
(
options
.
imgObj
);
this
.
isLine
=
0
;
this
.
getSeperate
();
this
.
getSeperate
();
}
uni
.
setNavigationBarTitle
({
title
:
"酒店图片"
,
});
}
},
},
created
()
{
created
()
{
uni
.
setNavigationBarTitle
({
title
:
"酒店图片"
,
});
},
},
mounted
()
{
mounted
()
{
...
@@ -44,7 +68,11 @@
...
@@ -44,7 +68,11 @@
methods
:
{
methods
:
{
getSeperate
(){
getSeperate
(){
this
.
imageList
.
forEach
((
x
,
i
)
=>
{
this
.
imageList
.
forEach
((
x
,
i
)
=>
{
this
.
allImageSrc
.
push
(
x
.
Path
)
if
(
this
.
isLine
==
1
){
this
.
allImageSrc
.
push
(
x
.
Url
)
}
else
{
this
.
allImageSrc
.
push
(
x
.
Path
)
}
if
(
i
%
2
==
0
){
if
(
i
%
2
==
0
){
this
.
jiList
.
push
(
x
)
this
.
jiList
.
push
(
x
)
}
else
{
}
else
{
...
...
pages/jiuzhai/jz_LineDetail.vue
View file @
b063be50
...
@@ -453,9 +453,9 @@
...
@@ -453,9 +453,9 @@
this
.
yeCount
=
e
.
value
;
this
.
yeCount
=
e
.
value
;
},
},
openPicture
()
{
openPicture
()
{
let
imgObj
=
JSON
.
stringify
(
this
.
dataList
.
HotelImg
)
;
let
imgObj
=
this
.
dataList
.
imgCover
;
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
"/pages/hotel/picture?imgObj="
+
imgObj
url
:
"/pages/hotel/picture?imgObj="
+
encodeURIComponent
(
imgObj
)
+
'&isLine=1'
})
})
},
},
goback
()
{
goback
()
{
...
...
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