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
e12c5d66
Commit
e12c5d66
authored
Jun 04, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a31ce9c6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
7 deletions
+28
-7
picture.vue
pages/restaurant/picture.vue
+13
-2
imgList.vue
pages/ticketCoupons/imgList.vue
+15
-5
No files found.
pages/restaurant/picture.vue
View file @
e12c5d66
...
...
@@ -42,7 +42,8 @@
dataList
:[],
imgBaseUrl
:
""
,
controls
:
false
,
//显示默认控件
videoContext
:
""
videoContext
:
""
,
preImgList
:[]
}
},
watch
:{
...
...
@@ -75,6 +76,11 @@
if
(
res
.
resultCode
==
1
)
{
this
.
navList
=
res
.
data
.
AllPicList
;
this
.
dataList
=
res
.
data
.
AllPicList
[
index
]
this
.
dataList
.
TagPicList
.
map
(
i
=>
{
if
(
i
.
Path
){
this
.
preImgList
.
push
(
i
.
Path
)
}
})
this
.
dataList
.
TagPicList
.
forEach
(
item
=>
{
if
(
item
.
Path
.
indexOf
(
'jpg'
)
!==-
1
||
item
.
Path
.
indexOf
(
'png'
)
!==-
1
||
item
.
Path
.
indexOf
(
'jpeg'
)
!==-
1
){
item
.
type
=
'image'
...
...
@@ -91,6 +97,11 @@
changeNav
(
index
){
this
.
curNavIndex
=
index
this
.
dataList
=
this
.
navList
[
index
]
this
.
dataList
.
TagPicList
.
map
(
i
=>
{
if
(
i
.
Path
){
this
.
preImgList
.
push
(
i
.
Path
)
}
})
this
.
dataList
.
TagPicList
.
forEach
(
item
=>
{
if
(
item
.
Path
.
indexOf
(
'jpg'
)
!==-
1
||
item
.
Path
.
indexOf
(
'png'
)
!==-
1
||
item
.
Path
.
indexOf
(
'jpeg'
)
!==-
1
){
item
.
type
=
'image'
...
...
@@ -103,7 +114,7 @@
//预览图片
previewImage
(
i
,
url
)
{
uni
.
previewImage
({
urls
:
[
url
]
,
urls
:
this
.
preImgList
,
current
:
i
,
longPressActions
:
{
itemList
:
[
"发送给朋友"
,
"保存图片"
,
"收藏"
],
...
...
pages/ticketCoupons/imgList.vue
View file @
e12c5d66
...
...
@@ -40,9 +40,9 @@
navList
:[],
curNavIndex
:
0
,
dataList
:[],
imgBaseUrl
:
""
,
controls
:
false
,
//显示默认控件
videoContext
:
""
videoContext
:
""
,
preImgList
:[]
}
},
watch
:{
...
...
@@ -61,7 +61,6 @@
this
.
ID
=
options
.
id
this
.
getDetail
()
}
this
.
imgBaseUrl
=
"http://192.168.20.214:8130"
},
methods
:
{
//获取详情
...
...
@@ -76,6 +75,12 @@
if
(
res
.
resultCode
==
1
)
{
this
.
navList
=
res
.
data
.
AllPicList
;
this
.
dataList
=
res
.
data
.
AllPicList
[
index
]
this
.
preImgList
=
[]
this
.
dataList
.
TagPicList
.
map
(
i
=>
{
if
(
i
.
Path
){
this
.
preImgList
.
push
(
i
.
Path
)
}
})
this
.
dataList
.
TagPicList
.
forEach
(
item
=>
{
if
(
item
.
Path
.
indexOf
(
'jpg'
)
!==-
1
||
item
.
Path
.
indexOf
(
'png'
)
!==-
1
||
item
.
Path
.
indexOf
(
'jpeg'
)
!==-
1
){
item
.
type
=
'image'
...
...
@@ -84,7 +89,6 @@
}
})
console
.
log
(
this
.
dataList
)
}
}
);
...
...
@@ -92,6 +96,12 @@
changeNav
(
index
){
this
.
curNavIndex
=
index
this
.
dataList
=
this
.
navList
[
index
]
this
.
preImgList
=
[]
this
.
dataList
.
TagPicList
.
map
(
i
=>
{
if
(
i
.
Path
){
this
.
preImgList
.
push
(
i
.
Path
)
}
})
this
.
dataList
.
TagPicList
.
forEach
(
item
=>
{
if
(
item
.
Path
.
indexOf
(
'jpg'
)
!==-
1
||
item
.
Path
.
indexOf
(
'png'
)
!==-
1
||
item
.
Path
.
indexOf
(
'jpeg'
)
!==-
1
){
item
.
type
=
'image'
...
...
@@ -104,7 +114,7 @@
//预览图片
previewImage
(
i
,
url
)
{
uni
.
previewImage
({
urls
:
[
url
]
,
urls
:
this
.
preImgList
,
current
:
i
,
longPressActions
:
{
itemList
:
[
"发送给朋友"
,
"保存图片"
,
"收藏"
],
...
...
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