Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
d0de1d05
Commit
d0de1d05
authored
Sep 15, 2023
by
youjie
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/superman
parents
a9d334ee
fdfa12da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
travelDays.vue
...newTravelmanager/travelLineTrip/components/travelDays.vue
+16
-9
No files found.
src/components/newTravelmanager/travelLineTrip/components/travelDays.vue
View file @
d0de1d05
...
...
@@ -176,7 +176,7 @@
queryId
:
0
,
},
imgIndex
:
null
,
defaultScenicIndex
:
0
,
//当前默认选中的景点
defaultScenicIndex
:
0
,
//当前默认选中的景点
};
},
...
...
@@ -317,14 +317,12 @@
this
.
item
.
TrafficObj
.
trafficIntroduce
.
y
=
0
this
.
item
.
TrafficObj
.
Introduce
=
JSON
.
stringify
(
this
.
item
.
TrafficObj
.
trafficIntroduce
);
}
this
.
isShowScenicImg
=
false
;
if
(
this
.
item
.
ScenicArray
&&
this
.
item
.
ScenicArray
.
length
>
0
)
{
this
.
item
.
ScenicArray
[
this
.
defaultScenicIndex
]
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
ScenicArrayList
[
0
]));
}
if
(
this
.
item
.
ScenicArray
&&
this
.
item
.
ScenicArray
.
length
>
0
)
{
this
.
item
.
ScenicArray
[
this
.
defaultScenicIndex
]
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
ScenicArrayList
[
0
]));
}
//this.item.ScenicArray = JSON.parse(JSON.stringify(this.ScenicArrayList))
}
},
computed
:
{},
...
...
@@ -333,12 +331,21 @@
handler
(
val
,
oldVal
)
{
this
.
RenderingOk
=
false
;
this
.
ScenicArrayList
=
[]
this
.
item
.
ScenicArray
.
forEach
((
x
,
index
)
=>
{
this
.
item
.
ScenicArray
.
forEach
((
x
,
index
)
=>
{
if
(
x
.
DefaultNum
>
0
)
{
this
.
defaultScenicIndex
=
index
;
this
.
defaultScenicIndex
=
index
;
this
.
ScenicArrayList
.
push
(
x
)
}
});
if
(
this
.
ScenicArrayList
.
length
==
0
)
{
this
.
item
.
ScenicArray
.
forEach
((
x
,
index
)
=>
{
if
(
index
==
0
)
{
x
.
DefaultNum
=
1
;
this
.
defaultScenicIndex
=
index
;
this
.
ScenicArrayList
.
push
(
x
)
}
});
}
if
(
this
.
ScenicArrayList
&&
this
.
ScenicArrayList
.
length
>
0
)
this
.
ScenicArrayList
.
sort
((
a
,
b
)
=>
{
return
a
.
Rank
-
b
.
Rank
})
...
...
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