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
612015f6
Commit
612015f6
authored
Sep 21, 2023
by
沈良进
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
61f6c9b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
26 deletions
+29
-26
travelDays.vue
...newTravelmanager/travelLineTrip/components/travelDays.vue
+29
-26
No files found.
src/components/newTravelmanager/travelLineTrip/components/travelDays.vue
View file @
612015f6
...
...
@@ -61,14 +61,16 @@
<vEditSpan
:canEdit=
'canEdit'
v-model=
"jindian.Description"
></vEditSpan>
</div>
</
template
>
<div
v-if=
"item.ScenicArray.length==0&&item.TrafficObj.trafficIntroduce.IntroduceTitle"
class=
"travelDaysContent-text"
>
<div
v-if=
"item.ScenicArray.length==0&&item.TrafficObj.trafficIntroduce.IntroduceTitle"
class=
"travelDaysContent-text"
>
<span
class=
"textBold"
>
<vEditDiv
class=
"dayCouponsName"
:canEdit=
'canEdit'
v-model=
"'【'+item.TrafficObj.trafficIntroduce.IntroduceTitle+'】'"
></vEditDiv>
</span>
<vEditSpan
:canEdit=
'canEdit'
v-model=
"item.TrafficObj.trafficIntroduce.IntroduceDetail"
></vEditSpan>
</div>
<div
v-if=
"item.ScenicArray.length==0&&!item.TrafficObj.trafficIntroduce.IntroduceTitle"
class=
"travelDaysContent-text"
>
<div
v-if=
"item.ScenicArray.length==0&&!item.TrafficObj.trafficIntroduce.IntroduceTitle"
class=
"travelDaysContent-text"
>
{{item.TitleObj.Title}}
</div>
</div>
...
...
@@ -123,16 +125,16 @@
</div>
<!-- otherJourney-footer -->
<div
class=
"footer"
>
<div
class=
"otherJourney-introduceFooter absolute z-index1 row-aic"
:style=
"{'background':''}"
>
<div
class=
"introduceFooterBJ introduceFooterOne"
:style=
"{'background':dataAll.TripColor}"
>
</div>
<div
class=
"introduceFooterBJ introduceFootertTwo"
:style=
"{'background':dataAll.TripColor}"
>
</div>
<div
class=
"introduceFooter-text row-aic"
>
<img
src=
"http://imgfile.oytour.com/Static/NewTripFeature/footerLogo.png"
/>
<div
class=
"edit_div"
>
{{dataAll.LineShortName?dataAll.LineShortName:dataAll.LineName}}
</div>
<div
class=
"otherJourney-introduceFooter absolute z-index1 row-aic"
:style=
"{'background':''}"
>
<div
class=
"introduceFooterBJ introduceFooterOne"
:style=
"{'background':dataAll.TripColor}"
>
</div>
<div
class=
"introduceFooterBJ introduceFootertTwo"
:style=
"{'background':dataAll.TripColor}"
>
</div>
<div
class=
"introduceFooter-text row-aic"
>
<img
src=
"http://imgfile.oytour.com/Static/NewTripFeature/footerLogo.png"
/>
<div
class=
"edit_div"
>
{{dataAll.LineShortName?dataAll.LineShortName:dataAll.LineName}}
</div>
</div>
<div
class=
"introduceFooterBJ introduceFootertThree"
:style=
"{'background':dataAll.TripColor}"
>
</div>
<div
class=
"introduceFooterBJ introduceFootertFour"
:style=
"{'background':dataAll.TripColor}"
>
</div>
</div>
<div
class=
"introduceFooterBJ introduceFootertThree"
:style=
"{'background':dataAll.TripColor}"
>
</div>
<div
class=
"introduceFooterBJ introduceFootertFour"
:style=
"{'background':dataAll.TripColor}"
>
</div>
</div>
</div>
</div>
<div
class=
"UpgradedVersion2Line absolute z-index3 row-ajc"
>
...
...
@@ -189,8 +191,7 @@
defaultScenicIndex
:
0
,
//当前默认选中的景点
};
},
mounted
()
{
},
mounted
()
{},
methods
:
{
getHtmlPlainText
(
html_str
)
{
//提取字符串中的文字
...
...
@@ -207,7 +208,7 @@
getFontSize
(
title
)
{
if
(
!
title
)
return
let
size
=
30
;
if
(
title
&&
title
.
length
>
0
&&
title
.
length
>
80
)
{
if
(
title
&&
title
.
length
>
0
&&
title
.
length
>
80
)
{
var
tempSize
=
Number
(
80
)
/
Number
(
title
.
length
);
tempSize
=
tempSize
*
30
;
size
=
tempSize
.
toFixed
(
1
);
...
...
@@ -282,9 +283,14 @@
let
allPath
=
that
.
domainManager
().
ViittoFileUrl
+
x
.
data
.
FilePath
;
let
i
=
e
.
target
.
id
.
split
(
"_"
)[
2
];
if
(
that
.
ScenicArrayList
.
length
>
0
)
{
that
.
ScenicArrayList
[
that
.
imgIndex
].
NewImaArray
[
0
].
Url
=
allPath
that
.
ScenicArrayList
[
that
.
imgIndex
].
NewImaArray
[
0
].
x
=
0
that
.
ScenicArrayList
[
that
.
imgIndex
].
NewImaArray
[
0
].
y
=
0
that
.
ScenicArrayList
[
0
].
NewImaArray
[
0
].
Url
=
allPath
that
.
ScenicArrayList
[
0
].
NewImaArray
[
0
].
x
=
0
that
.
ScenicArrayList
[
0
].
NewImaArray
[
0
].
y
=
0
that
.
ScenicArrayList
[
0
].
NewScenicImg
=
JSON
.
stringify
(
that
.
ScenicArrayList
[
0
].
NewImaArray
);
if
(
that
.
item
.
ScenicArray
&&
that
.
item
.
ScenicArray
.
length
>
0
)
{
that
.
item
.
ScenicArray
[
that
.
defaultScenicIndex
]
=
JSON
.
parse
(
JSON
.
stringify
(
that
.
ScenicArrayList
[
0
]));
}
}
else
{
that
.
item
.
TrafficObj
.
trafficIntroduce
.
IntroduceImage
=
allPath
that
.
item
.
TrafficObj
.
trafficIntroduce
.
x
=
0
...
...
@@ -292,7 +298,6 @@
that
.
item
.
TrafficObj
.
Introduce
=
JSON
.
stringify
(
this
.
item
.
TrafficObj
.
trafficIntroduce
);
}
that
.
$message
.
success
(
'上传成功'
);
that
.
item
.
ScenicArray
=
JSON
.
parse
(
JSON
.
stringify
(
that
.
ScenicArrayList
))
});
};
reader
.
readAsDataURL
(
e
.
target
.
files
[
0
]);
...
...
@@ -316,11 +321,11 @@
if
(
imgItem
.
FileType
)
{
obj
.
FileType
=
imgItem
.
FileType
;
}
that
.
ScenicArrayList
[
that
.
imgIndex
].
NewImaArray
=
[];
that
.
ScenicArrayList
[
that
.
imgIndex
].
NewImaArray
.
push
(
obj
);
that
.
ScenicArrayList
[
that
.
imgIndex
].
ScenicJson
.
x
=
0
that
.
ScenicArrayList
[
that
.
imgIndex
].
ScenicJson
.
y
=
0
that
.
ScenicArrayList
[
that
.
imgIndex
].
NewScenicImg
=
JSON
.
stringify
(
that
.
ScenicArrayList
[
0
].
NewImaArray
);
that
.
ScenicArrayList
[
0
].
NewImaArray
=
[];
that
.
ScenicArrayList
[
0
].
NewImaArray
.
push
(
obj
);
that
.
ScenicArrayList
[
0
].
ScenicJson
.
x
=
0
that
.
ScenicArrayList
[
0
].
ScenicJson
.
y
=
0
that
.
ScenicArrayList
[
0
].
NewScenicImg
=
JSON
.
stringify
(
that
.
ScenicArrayList
[
0
].
NewImaArray
);
});
}
else
{
this
.
item
.
TrafficObj
.
trafficIntroduce
.
IntroduceImage
=
selectImgArr
[
0
].
Path
...
...
@@ -328,19 +333,17 @@
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
]));
}
//this.item.ScenicArray = JSON.parse(JSON.stringify(this.ScenicArrayList))
}
},
computed
:
{},
watch
:
{
item
:
{
handler
(
val
,
oldVal
)
{
// console.log("changeScenic",this.item.ScenicArray);
this
.
RenderingOk
=
false
;
this
.
ScenicArrayList
=
[]
this
.
item
.
ScenicArray
.
forEach
((
x
,
index
)
=>
{
...
...
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