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
e78cbf11
Commit
e78cbf11
authored
Aug 28, 2023
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
c40af1b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
7 deletions
+21
-7
index.vue
...ravelmanager/TravelGroupControl/UpgradedVersion/index.vue
+21
-7
No files found.
src/components/newTravelmanager/TravelGroupControl/UpgradedVersion/index.vue
View file @
e78cbf11
...
...
@@ -4,7 +4,7 @@
<div
class=
"UpgradedVersion-box UpgradedVersion-homebj relative"
:class=
"
{'UpgradedVersion-otherBj':item.pageType==3}" v-for="(item,index) in pageList" :key="index+1000">
<!-- logo -->
<Header
:TripColor=
"TripColor"
:FeatureItem=
"
FeatureData
"
></Header>
<Header
:TripColor=
"TripColor"
:FeatureItem=
"
item
"
></Header>
<!-- 首页 -->
<featureHome
v-if=
"item.pageType==1"
:index=
"index"
:FeatureItem=
"item"
:TripColor=
"TripColor"
@
toAddPages=
"AddPages"
@
toDeletePages=
"DeletePages"
></featureHome>
...
...
@@ -134,6 +134,21 @@
this
.
pageList
[
index
].
Template
=
TemplateType
this
.
$forceUpdate
()
},
getDetailsObj
()
{
var
detailsObj
=
{
LineName
:
""
,
//线路名称
LineShortName
:
""
,
//线路简称
LtName
:
""
,
//系列名称
Title
:
""
,
//行程名称
MainName
:
""
,
//主标题
SubName
:
" "
,
//副标题
DetailsName
:
""
,
//详细标题
ImgList
:
[],
//图片
MainDesc
:
""
,
//描述
SubList
:
[],
};
return
detailsObj
;
},
initFeature
()
{
var
oldJson
=
this
.
FeatureData
.
FeatureHtmlJson
?
JSON
.
parse
(
JSON
.
stringify
(
this
.
FeatureData
.
FeatureHtmlJson
))
:
...
...
@@ -141,7 +156,7 @@
if
(
JSON
.
stringify
(
oldJson
)
!==
"{}"
&&
oldJson
)
{
}
else
{
this
.
getTripData
();
this
.
getTripData
();
this
.
pageList
.
forEach
(
pItem
=>
{
var
newObj
=
this
.
getDetailsObj
();
newObj
.
LineName
=
this
.
FeatureData
.
LineName
;
...
...
@@ -224,7 +239,7 @@
if
(
dItem
.
TrafficObj
&&
dItem
.
TrafficObj
.
SubTraffic
&&
dItem
.
TrafficObj
.
SubTraffic
.
length
>
0
)
{
dItem
.
TrafficObj
.
SubTraffic
.
forEach
(
tItem
=>
{
if
(
tItem
.
StartCityName
&&
tItem
.
StartCityName
!=
''
&&
!
cityArray
.
includes
(
tItem
.
StartCityName
))
{
.
StartCityName
))
{
cityArray
.
push
(
tItem
.
StartCityName
);
}
if
(
tItem
.
ArrivalCityName
&&
tItem
.
ArrivalCityName
!=
''
&&
!
cityArray
.
includes
(
tItem
...
...
@@ -235,10 +250,9 @@
}
});
}
if
(
cityArray
&&
cityArray
.
length
>
0
)
{
var
num
=
cityArray
.
length
/
2
;
console
.
log
(
"num"
,
num
)
if
(
cityArray
&&
cityArray
.
length
>
0
)
{
var
num
=
cityArray
.
length
/
2
;
console
.
log
(
"num"
,
num
)
}
console
.
log
(
"cityArray,"
,
cityArray
);
}
...
...
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