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
d714ce5d
Commit
d714ce5d
authored
Sep 12, 2023
by
liudong1993
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/superman
parents
5ab3cf05
b6cf7d68
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
188 additions
and
97 deletions
+188
-97
tripUtils.js
src/assets/utils/tripUtils.js
+3
-2
Details.vue
src/components/Details.vue
+7
-2
travelDays.vue
src/components/LeaveGroupDownload/travelDays.vue
+13
-1
groupTourOrderByTuanOne.vue
src/components/SalesModule/groupTourOrderByTuanOne.vue
+4
-4
groupTourOrderOne.vue
src/components/SalesModule/groupTourOrderOne.vue
+4
-4
OpTripList.vue
src/components/TravelManager/TravelList/OpTripList.vue
+3
-3
SaleTripList.vue
src/components/TravelManager/TravelList/SaleTripList.vue
+3
-6
TravelControlList.vue
...components/TravelManager/TravelList/TravelControlList.vue
+4
-6
TravelControlListSale.vue
...onents/TravelManager/TravelList/TravelControlListSale.vue
+4
-7
TripDownLoadCommon.vue
src/components/commonPage/TripDownLoadCommon.vue
+1
-1
index.vue
...ravelmanager/TravelGroupControl/UpgradedVersion/index.vue
+5
-1
noScenic.vue
...omponents/newTravelmanager/TravelTripPreview/noScenic.vue
+0
-6
HotelTripThree.vue
...onents/newTravelmanager/travelLineTrip/HotelTripThree.vue
+2
-2
TravelDaysTrip_DirectThree.vue
...avelmanager/travelLineTrip/TravelDaysTrip_DirectThree.vue
+1
-1
travelDays.vue
...newTravelmanager/travelLineTrip/components/travelDays.vue
+49
-12
travelDaysTripThree.vue
...s/newTravelmanager/travelLineTrip/travelDaysTripThree.vue
+77
-31
order-form2.vue
src/components/orderCommon/order-form2.vue
+8
-8
No files found.
src/assets/utils/tripUtils.js
View file @
d714ce5d
...
@@ -362,7 +362,8 @@ var tripUtils = {
...
@@ -362,7 +362,8 @@ var tripUtils = {
TrafficType
:
2
,
//交通类型,默认为专车
TrafficType
:
2
,
//交通类型,默认为专车
TrafficContent
:
""
,
//交通详情
TrafficContent
:
""
,
//交通详情
TrafficImage
:
""
,
//交通图片
TrafficImage
:
""
,
//交通图片
x
:
0
,
y
:
0
,
}
}
};
};
},
},
...
...
src/components/Details.vue
View file @
d714ce5d
...
@@ -190,8 +190,13 @@
...
@@ -190,8 +190,13 @@
},
},
changeMenuShowType
()
{
changeMenuShowType
()
{
if
(
this
.
$route
.
path
==
'/TravelManager'
){
this
.
isCollapse
=
true
;
localStorage
.
navsot
=
'a'
}
else
{
this
.
isCollapse
=
!
this
.
isCollapse
;
this
.
isCollapse
=
!
this
.
isCollapse
;
localStorage
.
navsot
=
this
.
isCollapse
?
'a'
:
'b'
localStorage
.
navsot
=
this
.
isCollapse
?
'a'
:
'b'
}
},
},
referPage
()
{
referPage
()
{
this
.
currentTabName
=
this
.
tabs
[
this
.
currentRightIndex
].
name
+
'_'
+
this
.
currentRightIndex
this
.
currentTabName
=
this
.
tabs
[
this
.
currentRightIndex
].
name
+
'_'
+
this
.
currentRightIndex
...
...
src/components/LeaveGroupDownload/travelDays.vue
View file @
d714ce5d
...
@@ -83,7 +83,19 @@
...
@@ -83,7 +83,19 @@
<div
class=
"travelDaysContent column"
>
<div
class=
"travelDaysContent column"
>
<div
class=
"travelDaysContent-text"
v-for=
"(jindian,j) in item.details"
v-if=
"item.details.length>0"
>
<div
class=
"travelDaysContent-text"
v-for=
"(jindian,j) in item.details"
v-if=
"item.details.length>0"
>
<span>
{{jindian.title?'【'+jindian.title+'】':''}}
</span>
<span>
<
template
v-if=
"!jindian.playTimeHour&&!jindian.playTimeMinutes&&jindian.title"
>
{{
'【'
+
jindian
.
title
+
'】'
}}
</
template
>
<
template
v-else
>
<template
v-if=
"jindian.playTimeHour!=null&&jindian.playTimeHour&&jindian.playTimeMinutes"
>
{{
'【'
+
jindian
.
title
+
'(约'
+
jindian
.
playTimeHour
+
'小时'
+
jindian
.
playTimeMinutes
+
'分钟'
+
')】'
}}
</
template
>
<
template
v-if=
"(!jindian.playTimeHour||jindian.playTimeHour==null)&&jindian.playTimeMinutes"
>
{{
'【'
+
jindian
.
title
+
'(约'
+
jindian
.
playTimeMinutes
+
'分钟'
+
')】'
}}
</
template
>
</template>
</span>
{{jindian.content}}
{{jindian.content}}
</div>
</div>
<div
class=
"travelDaysContent-text"
v-else
>
<div
class=
"travelDaysContent-text"
v-else
>
...
...
src/components/SalesModule/groupTourOrderByTuanOne.vue
View file @
d714ce5d
...
@@ -2535,10 +2535,10 @@
...
@@ -2535,10 +2535,10 @@
message
:
'请输入联系人电话'
,
message
:
'请输入联系人电话'
,
trigger
:
'blur'
trigger
:
'blur'
},
},
{
//
{
pattern
:
/^
(
0|86|17951
)?(
13
[
0-9
]
|15
[
012356789
]
|17
[
012356789
]
|18
[
0-9
]
|19
[
0-9
]
|14
[
57
])[
0-9
]{8}
$/
,
//
pattern: /^(0|86|17951)?(13[0-9]|15[012356789]|17[012356789]|18[0-9]|19[0-9]|14[57])[0-9]{8}$/,
message
:
'请输入正确的手机'
//
message: '请输入正确的手机'
}
//
}
],
],
GatherAddress
:
[{
GatherAddress
:
[{
required
:
true
,
required
:
true
,
...
...
src/components/SalesModule/groupTourOrderOne.vue
View file @
d714ce5d
...
@@ -2091,10 +2091,10 @@
...
@@ -2091,10 +2091,10 @@
message
:
'请输入联系人电话'
,
message
:
'请输入联系人电话'
,
trigger
:
'blur'
trigger
:
'blur'
},
},
{
//
{
pattern
:
/^
(
0|86|17951
)?(
13
[
0-9
]
|15
[
012356789
]
|17
[
012356789
]
|18
[
0-9
]
|19
[
0-9
]
|14
[
57
])[
0-9
]{8}
$/
,
//
pattern: /^(0|86|17951)?(13[0-9]|15[012356789]|17[012356789]|18[0-9]|19[0-9]|14[57])[0-9]{8}$/,
message
:
'请输入正确的手机'
//
message: '请输入正确的手机'
}
//
}
],
],
GatherAddress
:
[{
GatherAddress
:
[{
required
:
true
,
required
:
true
,
...
...
src/components/TravelManager/TravelList/OpTripList.vue
View file @
d714ce5d
...
@@ -128,7 +128,7 @@
...
@@ -128,7 +128,7 @@
<el-button
@
click=
"goToOpenTravel('TravelManager2',item.ID)"
type=
"primary"
>
<el-button
@
click=
"goToOpenTravel('TravelManager2',item.ID)"
type=
"primary"
>
{{
$t
(
'Operation.Op_tripUpdate'
)
}}
</el-button>
{{
$t
(
'Operation.Op_tripUpdate'
)
}}
</el-button>
<el-button
@
click=
"copyTravelInfo(item.ID)"
type=
"primary"
>
{{
$t
(
'Operation.Op_tripCopy'
)
}}
</el-button>
<el-button
@
click=
"copyTravelInfo(item.ID)"
type=
"primary"
>
{{
$t
(
'Operation.Op_tripCopy'
)
}}
</el-button>
<el-button
@
click=
"goUrlR(
'confirmationOrderDownLoadNew',
item)"
type=
"primary"
>
<el-button
@
click=
"goUrlR(item)"
type=
"primary"
>
{{
$t
(
'Operation.Op_tripDownLoad'
)
}}
</el-button>
{{
$t
(
'Operation.Op_tripDownLoad'
)
}}
</el-button>
<el-button
v-if=
"item.TCNUMS==''"
@
click=
"delConfig(item.ID)"
type=
"primary"
>
<el-button
v-if=
"item.TCNUMS==''"
@
click=
"delConfig(item.ID)"
type=
"primary"
>
...
@@ -405,13 +405,13 @@
...
@@ -405,13 +405,13 @@
);
);
},
},
goUrlR
(
path
,
item
)
{
goUrlR
(
item
)
{
var
cityId
=
item
.
StartCityID
var
cityId
=
item
.
StartCityID
if
(
item
.
IsUnion
==
1
&&
item
.
UnionTypeStr
==
2
)
{
if
(
item
.
IsUnion
==
1
&&
item
.
UnionTypeStr
==
2
)
{
cityId
=
item
.
UnionCityId
cityId
=
item
.
UnionCityId
}
}
let
routeData
=
this
.
$router
.
resolve
({
let
routeData
=
this
.
$router
.
resolve
({
name
:
path
,
name
:
'confirmationOrderDownLoadNew'
,
query
:
{
query
:
{
configId
:
item
.
ID
,
configId
:
item
.
ID
,
cityId
:
cityId
,
cityId
:
cityId
,
...
...
src/components/TravelManager/TravelList/SaleTripList.vue
View file @
d714ce5d
...
@@ -101,12 +101,9 @@
...
@@ -101,12 +101,9 @@
<div
class=
"el-col"
>
<div
class=
"el-col"
>
<div
class=
"d7"
>
<div
class=
"d7"
>
<el-button
v-if=
"item.CreateBy==CurrentUserId && item.ShareTeamType
<0
"
@
click=
"goToOpenTravel('TravelManager3',item.ID)"
type=
"primary"
>
{{
$t
(
'Operation.Op_tripUpdate'
)
}}
</el-button>
<el-button
v-if=
"item.CreateBy==CurrentUserId && item.ShareTeamType
<0
"
@
click=
"goToOpenTravel('TravelManager3',item.ID)"
type=
"primary"
>
{{
$t
(
'Operation.Op_tripUpdate'
)
}}
</el-button>
<!--
<el-button
v-if=
"item.CreateBy==CurrentUserId"
@
click=
"goToOpenTravel('TravelManager5',item.ID)"
type=
"primary"
>
{{
$t
(
'Operation.Op_tripUpdate'
)
}}
</el-button>
-->
<el-button
@
click=
"copyTravelInfo(item.ID)"
type=
"primary"
>
{{
$t
(
'Operation.Op_tripCopy'
)
}}
</el-button>
<el-button
@
click=
"copyTravelInfo(item.ID)"
type=
"primary"
>
{{
$t
(
'Operation.Op_tripCopy'
)
}}
</el-button>
<el-button
v-if=
"item.TCNUMS==''&&item.CreateBy==CurrentUserId"
@
click=
"delConfig(item.ID)"
type=
"primary"
>
{{
$t
(
'system.table_delete'
)
}}
</el-button>
<el-button
v-if=
"item.TCNUMS==''&&item.CreateBy==CurrentUserId"
@
click=
"delConfig(item.ID)"
type=
"primary"
>
{{
$t
(
'system.table_delete'
)
}}
</el-button>
<!--
<el-button
@
click=
"goUrlR('SalesconfirmationOrder',item)"
type=
"primary"
>
行程下载
</el-button>
-->
<el-button
@
click=
"goUrlR(item)"
type=
"primary"
>
<el-button
@
click=
"goUrlR('confirmationOrderDownLoadNew',item)"
type=
"primary"
>
{{
$t
(
'Operation.Op_tripDownLoad'
)
}}
</el-button>
{{
$t
(
'Operation.Op_tripDownLoad'
)
}}
</el-button>
</div>
</div>
</div>
</div>
...
@@ -332,9 +329,9 @@
...
@@ -332,9 +329,9 @@
);
);
},
},
//跳转至下载
//跳转至下载
goUrlR
(
path
,
item
){
goUrlR
(
item
){
let
routeData
=
this
.
$router
.
resolve
({
let
routeData
=
this
.
$router
.
resolve
({
name
:
path
,
name
:
'confirmationOrderDownLoadNew'
,
query
:
{
query
:
{
configId
:
item
.
ID
,
configId
:
item
.
ID
,
cityId
:
0
,
cityId
:
0
,
...
...
src/components/TravelManager/TravelList/TravelControlList.vue
View file @
d714ce5d
...
@@ -1086,7 +1086,7 @@
...
@@ -1086,7 +1086,7 @@
@
click
.
native=
"goTeamBalance(item.TCID,item.OutBranchId)"
>
@
click
.
native=
"goTeamBalance(item.TCID,item.OutBranchId)"
>
{{$t('Operation.Op_shouzhiDetail')}}
{{$t('Operation.Op_shouzhiDetail')}}
</el-dropdown-item>
</el-dropdown-item>
<el-dropdown-item
@
click
.
native=
"goUrlR(
'confirmationOrderDownLoadNew',
item)"
>
<el-dropdown-item
@
click
.
native=
"goUrlR(item)"
>
{{$t('Operation.Op_tripDownLoad')}}
</el-dropdown-item>
{{$t('Operation.Op_tripDownLoad')}}
</el-dropdown-item>
<el-dropdown-item
@
click
.
native=
"removeTeamInfo(item.TCID)"
>
{{$t('system.table_delete')}}
<el-dropdown-item
@
click
.
native=
"removeTeamInfo(item.TCID)"
>
{{$t('system.table_delete')}}
</el-dropdown-item>
</el-dropdown-item>
...
@@ -2174,16 +2174,14 @@
...
@@ -2174,16 +2174,14 @@
}
}
});
});
},
},
goUrlR
(
path
,
item
)
{
goUrlR
(
item
)
{
var
cityId
=
item
.
StartCityID
;
var
cityId
=
item
.
StartCityID
;
if
(
item
.
IsUnion
==
1
&&
item
.
UnionTypeStr
==
2
)
{
if
(
item
.
IsUnion
==
1
&&
item
.
UnionTypeStr
==
2
)
{
cityId
=
item
.
UnionCityId
;
cityId
=
item
.
UnionCityId
;
}
}
if
(
item
.
FeatureType
==
8
)
{
//path = 'confirmationOrderDownLoadNew'
}
let
routeData
=
this
.
$router
.
resolve
({
let
routeData
=
this
.
$router
.
resolve
({
name
:
path
,
name
:
'confirmationOrderDownLoadNew'
,
query
:
{
query
:
{
configId
:
item
.
ID
,
configId
:
item
.
ID
,
cityId
:
cityId
,
cityId
:
cityId
,
...
...
src/components/TravelManager/TravelList/TravelControlListSale.vue
View file @
d714ce5d
...
@@ -783,7 +783,7 @@
...
@@ -783,7 +783,7 @@
<el-dropdown-item
@
click
.
native=
"goTeamBalance(item.TCID,item.OutBranchId)"
>
<el-dropdown-item
@
click
.
native=
"goTeamBalance(item.TCID,item.OutBranchId)"
>
{{$t('Operation.Op_shouzhiDetail')}}
</el-dropdown-item>
{{$t('Operation.Op_shouzhiDetail')}}
</el-dropdown-item>
<el-dropdown-item
<el-dropdown-item
@
click
.
native=
"goUrlR(
'confirmationOrderDownLoadNew',
item)"
>
@
click
.
native=
"goUrlR(item)"
>
{{$t('Operation.Op_tripDownLoad')}}
</el-dropdown-item>
{{$t('Operation.Op_tripDownLoad')}}
</el-dropdown-item>
<el-dropdown-item
@
click
.
native=
"removeTeamInfo(item.TCID)"
>
{{$t('system.table_delete')}}
<el-dropdown-item
@
click
.
native=
"removeTeamInfo(item.TCID)"
>
{{$t('system.table_delete')}}
</el-dropdown-item>
</el-dropdown-item>
...
@@ -1558,16 +1558,13 @@
...
@@ -1558,16 +1558,13 @@
}
}
});
});
},
},
goUrlR
(
path
,
item
)
{
goUrlR
(
item
)
{
var
cityId
=
item
.
StartCityID
;
var
cityId
=
item
.
StartCityID
;
if
(
item
.
IsUnion
==
1
&&
item
.
UnionTypeStr
==
2
)
{
if
(
item
.
IsUnion
==
1
&&
item
.
UnionTypeStr
==
2
)
{
cityId
=
item
.
UnionCityId
;
cityId
=
item
.
UnionCityId
;
}
}
if
(
item
.
FeatureType
==
8
)
{
//path = 'confirmationOrderDownLoadNew'
}
let
routeData
=
this
.
$router
.
resolve
({
let
routeData
=
this
.
$router
.
resolve
({
name
:
path
,
name
:
'confirmationOrderDownLoadNew'
,
query
:
{
query
:
{
configId
:
item
.
ID
,
configId
:
item
.
ID
,
cityId
:
cityId
,
cityId
:
cityId
,
...
...
src/components/commonPage/TripDownLoadCommon.vue
View file @
d714ce5d
...
@@ -214,7 +214,7 @@
...
@@ -214,7 +214,7 @@
this
.
apipost
(
'travel_get_GetTravelFeatureType'
,
postMsg
,
res
=>
{
this
.
apipost
(
'travel_get_GetTravelFeatureType'
,
postMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
data
==
8
)
{
if
(
res
.
data
.
data
==
8
)
{
// this.TripPath = "confirmationOrderDownLoadNew";
}
}
}
}
},
err
=>
{})
},
err
=>
{})
...
...
src/components/newTravelmanager/TravelGroupControl/UpgradedVersion/index.vue
View file @
d714ce5d
...
@@ -199,6 +199,9 @@
...
@@ -199,6 +199,9 @@
JSON
.
parse
(
JSON
.
stringify
(
this
.
FeatureData
.
FeatureHtmlJson
))
:
JSON
.
parse
(
JSON
.
stringify
(
this
.
FeatureData
.
FeatureHtmlJson
))
:
""
;
""
;
if
(
oldJson
&&
oldJson
.
length
>
0
)
{
if
(
oldJson
&&
oldJson
.
length
>
0
)
{
oldJson
.
forEach
(
item
=>
{
item
.
isDeletePage
=
true
;
});
this
.
pageList
=
oldJson
;
this
.
pageList
=
oldJson
;
this
.
RenderingOk
=
true
;
this
.
RenderingOk
=
true
;
}
else
{
}
else
{
...
@@ -282,7 +285,8 @@
...
@@ -282,7 +285,8 @@
x
:
0
,
x
:
0
,
y
:
0
,
y
:
0
,
}];
}];
newObj
.
MainDesc
=
"描述信息"
;
newObj
.
MainDesc
=
"坚持以高端旅游服务广大客户群体!我们坚信旅游是美好的体验!带您体验日本的四季之美,赏花.赏枫.赏雪并且享受怀石料理,泡露天温泉,遨游日本的秀丽山海美景!印象日本不断思索旅游本质,坚持旅游质量,对于旅游的专业与服务有着深刻体认!我们的用心,您一定会看的见!选择印象日本,会是你前往日本最好的选择,您一定会认同并期待您的参与,这也是我们由衷的期盼!“旅遊”不是舟車勞頓的代名詞~提供高档旅游产品,印象之旅有其独到的见解与坚持,这就是各位选择旅游的真正定义!来吧~如果你还在犹豫不知道该选择什么样的日本产品,相信印象之旅对是你最棒的选择!最后并祝各位有个愉快的旅游假期!"
;
},
},
//详情页数据
//详情页数据
getDetailsData
(
tripObj
,
newObj
)
{
getDetailsData
(
tripObj
,
newObj
)
{
...
...
src/components/newTravelmanager/TravelTripPreview/noScenic.vue
View file @
d714ce5d
...
@@ -95,8 +95,6 @@ export default {
...
@@ -95,8 +95,6 @@ export default {
this
.
UploadSelfFileT
(
path
,
newArr
,
x
=>
{
this
.
UploadSelfFileT
(
path
,
newArr
,
x
=>
{
this
.
trafficObj
.
trafficIntroduce
.
IntroduceImage
=
this
.
trafficObj
.
trafficIntroduce
.
IntroduceImage
=
this
.
domainManager
().
ViittoFileUrl
+
x
.
data
.
FilePath
;
this
.
domainManager
().
ViittoFileUrl
+
x
.
data
.
FilePath
;
this
.
trafficObj
.
trafficIntroduce
.
x
=
0
this
.
trafficObj
.
trafficIntroduce
.
y
=
0
});
});
},
},
//关闭添加弹窗
//关闭添加弹窗
...
@@ -109,8 +107,6 @@ export default {
...
@@ -109,8 +107,6 @@ export default {
imgArr
.
forEach
(
imgItem
=>
{
imgArr
.
forEach
(
imgItem
=>
{
this
.
trafficObj
.
trafficIntroduce
.
IntroduceImage
=
this
.
trafficObj
.
trafficIntroduce
.
IntroduceImage
=
imgItem
.
Path
;
imgItem
.
Path
;
this
.
trafficObj
.
trafficIntroduce
.
x
=
0
this
.
trafficObj
.
trafficIntroduce
.
y
=
0
});
});
}
}
},
},
...
@@ -120,8 +116,6 @@ export default {
...
@@ -120,8 +116,6 @@ export default {
watch
:
{
watch
:
{
"trafficObj.trafficIntroduce"
:{
"trafficObj.trafficIntroduce"
:{
handler
:
function
(
newValue
,
oldValue
)
{
handler
:
function
(
newValue
,
oldValue
)
{
this
.
trafficObj
.
trafficIntroduce
.
x
=
0
this
.
trafficObj
.
trafficIntroduce
.
y
=
0
this
.
trafficObj
.
Introduce
=
JSON
.
stringify
(
this
.
trafficObj
.
trafficIntroduce
);
this
.
trafficObj
.
Introduce
=
JSON
.
stringify
(
this
.
trafficObj
.
trafficIntroduce
);
},
},
...
...
src/components/newTravelmanager/travelLineTrip/HotelTripThree.vue
View file @
d714ce5d
...
@@ -121,9 +121,9 @@
...
@@ -121,9 +121,9 @@
</tr>
</tr>
</
template
>
</
template
>
<tr>
<
!-- <
tr>
<td colspan="6" height="15"></td>
<td colspan="6" height="15"></td>
</tr>
</tr>
-->
<tr
class=
"marginT10"
>
<tr
class=
"marginT10"
>
<td
width=
"70"
valign=
"top"
>
<td
width=
"70"
valign=
"top"
>
<img
crossorigin=
"Anonymous"
src=
"../../../assets/img/daily_hotel-1.png"
>
<img
crossorigin=
"Anonymous"
src=
"../../../assets/img/daily_hotel-1.png"
>
...
...
src/components/newTravelmanager/travelLineTrip/TravelDaysTrip_DirectThree.vue
View file @
d714ce5d
...
@@ -147,7 +147,7 @@
...
@@ -147,7 +147,7 @@
</div>
</div>
<div
class=
"dayPage-box row"
>
<div
class=
"dayPage-box row"
>
<div
class=
"dayPage-form"
>
<div
class=
"dayPage-form"
>
<
template
v-show
=
"!item.isHide"
>
<
template
v-if
=
"!item.isHide"
>
<travelDays
:index=
"index"
:dataAll=
"dataAll"
:item=
"item"
></travelDays>
<travelDays
:index=
"index"
:dataAll=
"dataAll"
:item=
"item"
></travelDays>
</
template
>
</
template
>
</div>
</div>
...
...
src/components/newTravelmanager/travelLineTrip/components/travelDays.vue
View file @
d714ce5d
<
template
>
<
template
>
<div
style=
"height: 100%;"
>
<div
style=
"height: 100%;"
v-if=
"RenderingOk"
>
<div
class=
"UpgradedVersion-box2 UpgradedVersion-homebj relative"
style=
"zoom: 0.44;"
>
<div
class=
"UpgradedVersion-box2 UpgradedVersion-homebj relative"
style=
"zoom: 0.44;"
>
<div
class=
" z-index1"
style=
"left: 0;right: 0; top: 0;bottom: 0;"
>
<div
class=
" z-index1"
style=
"left: 0;right: 0; top: 0;bottom: 0;"
>
<Header
:TripColor=
"dataAll.TripColor"
:orderMsg=
"dataAll"
></Header>
<Header
:TripColor=
"dataAll.TripColor"
:orderMsg=
"dataAll"
></Header>
...
@@ -41,7 +41,8 @@
...
@@ -41,7 +41,8 @@
:y=
"ScenicArrayList&&ScenicArrayList.length>0?ScenicArrayList[0].ScenicJson.y:item.TrafficObj.trafficIntroduce.y"
:y=
"ScenicArrayList&&ScenicArrayList.length>0?ScenicArrayList[0].ScenicJson.y:item.TrafficObj.trafficIntroduce.y"
:z=
"2"
@
dragstop=
"onViewSpotDragstop"
>
:z=
"2"
@
dragstop=
"onViewSpotDragstop"
>
<template
v-if=
"ScenicArrayList&&ScenicArrayList.length>0"
>
<template
v-if=
"ScenicArrayList&&ScenicArrayList.length>0"
>
<img
v-if=
"!ScenicArrayList[0].NewImaArray[0].FileType&&ScenicArrayList[0].NewImaArray[0].Url"
class=
"absolute"
:src=
"ScenicArrayList[0].NewImaArray[0].Url"
<img
v-if=
"!ScenicArrayList[0].NewImaArray[0].FileType&&ScenicArrayList[0].NewImaArray[0].Url"
class=
"absolute"
:src=
"ScenicArrayList[0].NewImaArray[0].Url"
:id=
"'viewSpotImg_'+(item*4)+'_0'+index"
>
:id=
"'viewSpotImg_'+(item*4)+'_0'+index"
>
<template
v-if=
"ScenicArrayList[0].NewImaArray[0].FileType&&ScenicArrayList[0].NewImaArray[0].FileType=='.mp4'"
>
<template
v-if=
"ScenicArrayList[0].NewImaArray[0].FileType&&ScenicArrayList[0].NewImaArray[0].FileType=='.mp4'"
>
<video
ref=
"myVideo"
width=
"100%"
height=
"100%"
:src=
"ScenicArrayList[0].NewImaArray[0].VideoPath"
controls=
"controls"
<video
ref=
"myVideo"
width=
"100%"
height=
"100%"
:src=
"ScenicArrayList[0].NewImaArray[0].VideoPath"
controls=
"controls"
...
@@ -58,7 +59,8 @@
...
@@ -58,7 +59,8 @@
</div>
</div>
<div
class=
"travelDaysMasterMap-text absolute z-index2"
>
<div
class=
"travelDaysMasterMap-text absolute z-index2"
>
<vEditDiv
v-if=
"ScenicArrayList.length==0"
:canEdit=
'canEdit'
v-model=
"item.TrafficObj.trafficIntroduce.IntroduceTitle"
></vEditDiv>
<vEditDiv
v-if=
"ScenicArrayList.length==0"
:canEdit=
'canEdit'
v-model=
"item.TrafficObj.trafficIntroduce.IntroduceTitle"
></vEditDiv>
<vEditDiv
v-if=
"ScenicArrayList.length>0"
:canEdit=
'canEdit'
v-model=
"ScenicArrayList[0].CouponsName"
></vEditDiv>
<
template
v-if=
"ScenicArrayList.length>0"
>
{{
ScenicArrayList
[
0
].
CouponsName
}}
</
template
>
<!-- <vEditDiv v-if="ScenicArrayList.length>0" :canEdit='canEdit' v-model="ScenicArrayList[0].CouponsName"></vEditDiv> -->
</div>
</div>
</div>
</div>
<div
class=
"travelDaysMasterMap-two absolute z-index2"
v-if=
"ScenicArrayList.length>1||ScenicArrayList.length>2"
<div
class=
"travelDaysMasterMap-two absolute z-index2"
v-if=
"ScenicArrayList.length>1||ScenicArrayList.length>2"
...
@@ -67,7 +69,7 @@
...
@@ -67,7 +69,7 @@
:style=
"{'color':'#fff'}"
:style=
"{'color':'#fff'}"
:id=
"'viewSpotBox_'+(item*4)+'_1'+index"
:id=
"'viewSpotBox_'+(item*4)+'_1'+index"
v-if=
"ScenicArrayList.length>1"
>
v-if=
"ScenicArrayList.length>1"
>
<div
class=
"featureDay-vToolBar absolute z-index3"
>
<div
class=
"featureDay-vToolBar absolute z-index3"
style=
"display: none;"
>
<FeatureControls
:index=
"index"
:FeatureData=
"item"
:ControlsType=
"'row'"
:isTemplate=
"false"
<FeatureControls
:index=
"index"
:FeatureData=
"item"
:ControlsType=
"'row'"
:isTemplate=
"false"
:isUploadImg=
"true"
:isSelectImg=
"true"
:isUploadImg=
"true"
:isSelectImg=
"true"
@
toUploadImg=
"UploadImg(1)"
@
toSelectImg=
"SelectImg(1)"
@
toUploadImg=
"UploadImg(1)"
@
toSelectImg=
"SelectImg(1)"
...
@@ -93,7 +95,7 @@
...
@@ -93,7 +95,7 @@
:style=
"{'color':'#fff'}"
:style=
"{'color':'#fff'}"
:id=
"'viewSpotBox_'+(item*4)+'_2'+index"
:id=
"'viewSpotBox_'+(item*4)+'_2'+index"
v-if=
"ScenicArrayList.length>2"
>
v-if=
"ScenicArrayList.length>2"
>
<div
class=
"featureDay-vToolBar absolute z-index3"
>
<div
class=
"featureDay-vToolBar absolute z-index3"
style=
"display: none;"
>
<FeatureControls
:index=
"index"
:FeatureData=
"item"
:ControlsType=
"'row'"
:isTemplate=
"false"
<FeatureControls
:index=
"index"
:FeatureData=
"item"
:ControlsType=
"'row'"
:isTemplate=
"false"
:isUploadImg=
"true"
:isSelectImg=
"true"
:isUploadImg=
"true"
:isSelectImg=
"true"
@
toUploadImg=
"UploadImg(2)"
@
toSelectImg=
"SelectImg(2)"
@
toUploadImg=
"UploadImg(2)"
@
toSelectImg=
"SelectImg(2)"
...
@@ -130,7 +132,10 @@
...
@@ -130,7 +132,10 @@
<div
class=
"travelDaysContent"
>
<div
class=
"travelDaysContent"
>
<div
class=
"travelDaysContent-text"
v-for=
"(jindian,j) in item.ScenicArray"
<div
class=
"travelDaysContent-text"
v-for=
"(jindian,j) in item.ScenicArray"
v-if=
"item.ScenicArray.length>0"
>
v-if=
"item.ScenicArray.length>0"
>
<span
class=
"textBold"
><vEditDiv
class=
"dayCouponsName"
:canEdit=
'canEdit'
v-model=
"'【'+jindian.CouponsName+'】'"
></vEditDiv></span>
<span
class=
"textBold"
>
【{{jindian.CouponsName}}】
<!-- <vEditDiv class="dayCouponsName" :canEdit='canEdit' v-model="'【'+jindian.CouponsName+'】'"></vEditDiv> -->
</span>
<span><vEditDiv
:canEdit=
'canEdit'
v-model=
"jindian.Description"
></vEditDiv></span>
<span><vEditDiv
:canEdit=
'canEdit'
v-model=
"jindian.Description"
></vEditDiv></span>
</div>
</div>
<div
v-if=
"item.ScenicArray.length==0"
class=
"travelDaysContent-text"
>
<div
v-if=
"item.ScenicArray.length==0"
class=
"travelDaysContent-text"
>
...
@@ -143,7 +148,7 @@
...
@@ -143,7 +148,7 @@
</div>
</div>
</div>
</div>
<div
class=
"travelDaysdetails-tsTextBox"
>
<div
class=
"travelDaysdetails-tsTextBox"
>
<div
class=
"travelDaysdetails-tsText
row
"
<div
class=
"travelDaysdetails-tsText"
:style=
"{'background':backgroundColor2}"
>
:style=
"{'background':backgroundColor2}"
>
<span
class=
"travelDaysdetails-text0"
>
温馨提示:
</span>
<span
class=
"travelDaysdetails-text0"
>
温馨提示:
</span>
<
template
v-if=
"item.WarmTipObj.Description&&getHtmlPlainText(item.WarmTipObj.Description).length>0"
>
<
template
v-if=
"item.WarmTipObj.Description&&getHtmlPlainText(item.WarmTipObj.Description).length>0"
>
...
@@ -223,6 +228,7 @@
...
@@ -223,6 +228,7 @@
props
:
[
'dataAll'
,
'item'
,
'index'
,
'tripList'
,
'orderMsg'
,
'orderTripdiff'
],
props
:
[
'dataAll'
,
'item'
,
'index'
,
'tripList'
,
'orderMsg'
,
'orderTripdiff'
],
data
()
{
data
()
{
return
{
return
{
RenderingOk
:
false
,
canEdit
:
true
,
canEdit
:
true
,
title
:
'北京-马德里-塞戈维亚-萨拉曼卡-贝尼多姆/小镇-瓦伦西亚-巴塞罗那(约 253km,约 3h)北京-马德里-塞戈维亚-萨拉曼卡-贝尼多姆/小镇-瓦伦西亚-巴塞罗那(约 253km,约 3h)'
,
title
:
'北京-马德里-塞戈维亚-萨拉曼卡-贝尼多姆/小镇-瓦伦西亚-巴塞罗那(约 253km,约 3h)北京-马德里-塞戈维亚-萨拉曼卡-贝尼多姆/小镇-瓦伦西亚-巴塞罗那(约 253km,约 3h)'
,
day
:
'DAY'
,
day
:
'DAY'
,
...
@@ -295,8 +301,17 @@
...
@@ -295,8 +301,17 @@
}
}
if
(
this
.
ScenicArrayList
&&
this
.
ScenicArrayList
.
length
>
0
){
if
(
this
.
ScenicArrayList
&&
this
.
ScenicArrayList
.
length
>
0
){
this
.
ScenicArrayList
[
this
.
imgIndex
].
ScenicJson
.
y
=
y
this
.
ScenicArrayList
[
this
.
imgIndex
].
ScenicJson
.
y
=
y
this
.
item
.
ScenicArray
.
forEach
(
x
=>
{
this
.
ScenicArrayList
.
forEach
(
y
=>
{
if
(
x
.
CouponsId
==
y
.
CouponsId
){
x
.
ScenicJson
.
y
=
y
.
ScenicJson
.
y
}
})
})
}
else
{
}
else
{
this
.
item
.
TrafficObj
.
trafficIntroduce
.
x
=
0
this
.
item
.
TrafficObj
.
trafficIntroduce
.
y
=
y
this
.
item
.
TrafficObj
.
trafficIntroduce
.
y
=
y
this
.
item
.
TrafficObj
.
Introduce
=
JSON
.
stringify
(
this
.
item
.
TrafficObj
.
trafficIntroduce
);
}
}
this
.
$refs
[
this
.
$refs
[
"viewSpotVds_"
+
(
this
.
item
*
4
)
+
"_"
+
this
.
imgIndex
+
this
.
index
"viewSpotVds_"
+
(
this
.
item
*
4
)
+
"_"
+
this
.
imgIndex
+
this
.
index
...
@@ -333,6 +348,7 @@
...
@@ -333,6 +348,7 @@
that
.
item
.
TrafficObj
.
trafficIntroduce
.
IntroduceImage
=
allPath
that
.
item
.
TrafficObj
.
trafficIntroduce
.
IntroduceImage
=
allPath
that
.
item
.
TrafficObj
.
trafficIntroduce
.
x
=
0
that
.
item
.
TrafficObj
.
trafficIntroduce
.
x
=
0
that
.
item
.
TrafficObj
.
trafficIntroduce
.
y
=
0
that
.
item
.
TrafficObj
.
trafficIntroduce
.
y
=
0
that
.
item
.
TrafficObj
.
Introduce
=
JSON
.
stringify
(
this
.
item
.
TrafficObj
.
trafficIntroduce
);
}
}
that
.
$message
.
success
(
'上传成功'
);
that
.
$message
.
success
(
'上传成功'
);
that
.
item
.
ScenicArray
=
JSON
.
parse
(
JSON
.
stringify
(
that
.
ScenicArrayList
))
that
.
item
.
ScenicArray
=
JSON
.
parse
(
JSON
.
stringify
(
that
.
ScenicArrayList
))
...
@@ -346,13 +362,33 @@
...
@@ -346,13 +362,33 @@
},
},
getDMCimg
(
selectImgArr
)
{
getDMCimg
(
selectImgArr
)
{
if
(
this
.
ScenicArrayList
.
length
>
0
){
if
(
this
.
ScenicArrayList
.
length
>
0
){
this
.
ScenicArrayList
[
this
.
imgIndex
].
NewImaArray
[
0
].
Url
=
selectImgArr
[
0
].
Path
var
that
=
this
;
this
.
ScenicArrayList
[
this
.
imgIndex
].
NewImaArray
[
0
].
x
=
0
selectImgArr
.
forEach
(
imgItem
=>
{
this
.
ScenicArrayList
[
this
.
imgIndex
].
NewImaArray
[
0
].
y
=
0
var
obj
=
{
Name
:
imgItem
.
Name
,
Url
:
imgItem
.
Path
,
fileName
:
imgItem
.
Name
};
if
(
imgItem
.
VideoPath
)
{
obj
.
VideoPath
=
imgItem
.
VideoPath
;
}
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
);
});
// this.ScenicArrayList[this.imgIndex].NewImaArray[0].Url = selectImgArr[0].Path
// this.ScenicArrayList[this.imgIndex].NewImaArray[0].x = 0
// this.ScenicArrayList[this.imgIndex].NewImaArray[0].y = 0
}
else
{
}
else
{
this
.
item
.
TrafficObj
.
trafficIntroduce
.
IntroduceImage
=
selectImgArr
[
0
].
Path
this
.
item
.
TrafficObj
.
trafficIntroduce
.
IntroduceImage
=
selectImgArr
[
0
].
Path
this
.
item
.
TrafficObj
.
trafficIntroduce
.
x
=
0
this
.
item
.
TrafficObj
.
trafficIntroduce
.
x
=
0
this
.
item
.
TrafficObj
.
trafficIntroduce
.
y
=
0
this
.
item
.
TrafficObj
.
trafficIntroduce
.
y
=
0
this
.
item
.
TrafficObj
.
Introduce
=
JSON
.
stringify
(
this
.
item
.
TrafficObj
.
trafficIntroduce
);
}
}
this
.
isShowScenicImg
=
false
;
this
.
isShowScenicImg
=
false
;
this
.
item
.
ScenicArray
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
ScenicArrayList
))
this
.
item
.
ScenicArray
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
ScenicArrayList
))
...
@@ -370,14 +406,15 @@
...
@@ -370,14 +406,15 @@
}
}
});
});
if
(
this
.
ScenicArrayList
&&
this
.
ScenicArrayList
.
length
>
0
)
this
.
ScenicArrayList
.
sort
((
a
,
b
)
=>
{
return
a
.
Rank
-
b
.
Rank
})
if
(
this
.
ScenicArrayList
&&
this
.
ScenicArrayList
.
length
>
0
)
this
.
ScenicArrayList
.
sort
((
a
,
b
)
=>
{
return
a
.
Rank
-
b
.
Rank
})
console
.
log
(
val
.
ScenicArray
,
'-----------'
)
if
(
!
this
.
RenderingOk
){
this
.
RenderingOk
=
true
;
}
},
},
deep
:
true
,
deep
:
true
,
immediate
:
true
immediate
:
true
},
},
dataAll
:
{
dataAll
:
{
handler
(
val
,
oldVal
)
{
handler
(
val
,
oldVal
)
{
// console.log(val,'-----')
if
(
val
&&
val
.
TripColor
){
if
(
val
&&
val
.
TripColor
){
this
.
backgroundColor
=
this
.
hexToRgb
(
val
.
TripColor
,
0.2
)
this
.
backgroundColor
=
this
.
hexToRgb
(
val
.
TripColor
,
0.2
)
this
.
backgroundColor2
=
this
.
hexToRgb
(
val
.
TripColor
,
0.1
)
this
.
backgroundColor2
=
this
.
hexToRgb
(
val
.
TripColor
,
0.1
)
...
...
src/components/newTravelmanager/travelLineTrip/travelDaysTripThree.vue
View file @
d714ce5d
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
}
}
.TC-itemContent
{
.TC-itemContent
{
position
:
relative
;
position
:
relative
;
/* max-height: 700px; */
}
}
.TD_OperaContent
{
.TD_OperaContent
{
...
@@ -207,7 +208,8 @@
...
@@ -207,7 +208,8 @@
<div>
<div>
<span
v-if=
"ishasScenic"
>
默认展示图
</span>
<span
v-if=
"ishasScenic"
>
默认展示图
</span>
<el-select
v-if=
"ishasScenic&&NoticeParameters.IsDirect==1"
class=
"w220 Ht_hotelSelect"
size=
"mini"
<el-select
v-if=
"ishasScenic&&NoticeParameters.IsDirect==1"
class=
"w220 Ht_hotelSelect"
size=
"mini"
:placeholder=
"$t('pub.pleaseSel')"
:multiple-limit=
"1"
v-model=
"ScenicArray"
multiple
filterable
:placeholder=
"$t('pub.pleaseSel')"
v-model=
"ScenicArraySingle"
filterable
@
change=
"getScenicArray"
>
@
change=
"getScenicArray"
>
<el-option
v-for=
"(item,index) in dayObj.ScenicArray"
:label=
"item.CouponsName"
:value=
"item.CouponsId"
:key=
"index"
>
<el-option
v-for=
"(item,index) in dayObj.ScenicArray"
:label=
"item.CouponsName"
:value=
"item.CouponsId"
:key=
"index"
>
<span
style=
"float: left"
>
{{
item
.
CouponsName
}}
</span>
<span
style=
"float: left"
>
{{
item
.
CouponsName
}}
</span>
...
@@ -320,6 +322,7 @@
...
@@ -320,6 +322,7 @@
],
],
data
()
{
data
()
{
return
{
return
{
ScenicArraySingle
:
this
.
dayObj
.
ScenicArrayImg
?
this
.
dayObj
.
ScenicArrayImg
:
''
,
//单选默认图
ScenicArray
:
this
.
dayObj
.
ScenicArrayImg
?
this
.
dayObj
.
ScenicArrayImg
:[],
//默认展示图
ScenicArray
:
this
.
dayObj
.
ScenicArrayImg
?
this
.
dayObj
.
ScenicArrayImg
:[],
//默认展示图
DefaultSelectValue
:
0
,
DefaultSelectValue
:
0
,
QScenicList
:
[],
QScenicList
:
[],
...
@@ -340,28 +343,36 @@
...
@@ -340,28 +343,36 @@
};
};
},
},
methods
:
{
methods
:
{
// 默认需要展示的图
getScenicArray
(){
getScenicArray
(){
let
i
=
1
let
i
=
1
let
list
=
[]
let
list
=
[]
this
.
ScenicArray
.
forEach
(
y
=>
{
// this.ScenicArray.forEach(y=>{
// this.dayObj.ScenicArray.forEach(x=>{
// x.Rank = 0
// if(x.CouponsId==y){
// list.push(x)
// }
// })
// })
// this.dayObj.ScenicArrayImg = JSON.parse(JSON.stringify(this.ScenicArray));
// list.forEach((x,index)=>{
// x.Rank = index+1
// })
// this.dayObj.ScenicArray.forEach(x=>{
// list.forEach(y=>{
// if(x.CouponsId==y.CouponsId){
// x.Rank = y.Rank
// }
// })
// })
this
.
dayObj
.
ScenicArray
.
forEach
(
x
=>
{
this
.
dayObj
.
ScenicArray
.
forEach
(
x
=>
{
x
.
Rank
=
0
x
.
Rank
=
0
if
(
x
.
CouponsId
==
y
){
if
(
x
.
CouponsId
===
this
.
ScenicArraySingle
){
list
.
push
(
x
)
x
.
Rank
=
1
}
})
})
list
.
forEach
((
x
,
index
)
=>
{
x
.
Rank
=
index
+
1
})
this
.
dayObj
.
ScenicArray
.
forEach
(
x
=>
{
list
.
forEach
(
y
=>
{
if
(
x
.
CouponsId
==
y
.
CouponsId
){
x
.
Rank
=
y
.
Rank
}
}
})
})
})
this
.
dayObj
.
ScenicArrayImg
=
this
.
ScenicArraySingle
;
if
(
this
.
ScenicArray
&&
this
.
ScenicArray
.
length
>
0
)
this
.
dayObj
.
ScenicArrayImg
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
ScenicArray
));
this
.
dayObj
.
ScenicArray
=
this
.
dayObj
.
ScenicArray
.
sort
((
a
,
b
)
=>
{
return
b
.
Rank
-
a
.
Rank
});
this
.
dayObj
.
ScenicArray
=
this
.
dayObj
.
ScenicArray
.
sort
((
a
,
b
)
=>
{
return
b
.
Rank
-
a
.
Rank
});
},
},
//非直采切换
//非直采切换
...
@@ -602,23 +613,30 @@
...
@@ -602,23 +613,30 @@
this
.
dayObj
.
TitleObj
.
DayNum
=
this
.
dayObj
.
DayNum
;
this
.
dayObj
.
TitleObj
.
DayNum
=
this
.
dayObj
.
DayNum
;
this
.
dayObj
.
ChooseScenicArray
=
[];
this
.
dayObj
.
ChooseScenicArray
=
[];
this
.
ChooseScenicArray
=
[];
this
.
ChooseScenicArray
=
[];
let
status
=
false
this
.
dayObj
.
ScenicArray
.
forEach
(
x
=>
{
this
.
dayObj
.
ScenicArray
.
forEach
(
x
=>
{
this
.
dayObj
.
ChooseScenicArray
.
push
(
x
.
CouponsId
);
this
.
dayObj
.
ChooseScenicArray
.
push
(
x
.
CouponsId
);
if
(
x
.
Rank
>
0
){
if
(
!
status
&&
x
.
Rank
>
0
&&!
this
.
ScenicArraySingle
){
// this.ScenicArray.push(x.CouponsId)
// this.ScenicArray = [x.CouponsId]
this
.
ScenicArray
=
[
x
.
CouponsId
]
this
.
ScenicArraySingle
=
x
.
CouponsId
status
=
true
}
}
});
});
if
(
!
status
&&
this
.
dayObj
.
ScenicArray
.
length
>
0
&&!
this
.
ScenicArraySingle
){
status
=
true
this
.
ScenicArraySingle
=
this
.
dayObj
.
ScenicArray
[
0
].
CouponsId
}
if
(
this
.
ScenicArray
&&
this
.
ScenicArray
.
length
>
0
)
{
if
(
this
.
ScenicArray
&&
this
.
ScenicArray
.
length
>
0
)
{
this
.
ScenicArray
.
sort
((
a
,
b
)
=>
{
return
a
.
Rank
-
b
.
Rank
})
this
.
ScenicArray
.
sort
((
a
,
b
)
=>
{
return
a
.
Rank
-
b
.
Rank
})
this
.
dayObj
.
ScenicArrayImg
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
ScenicArray
));
this
.
dayObj
.
ScenicArrayImg
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
ScenicArray
));
}
}
if
(
this
.
ScenicArraySingle
){
this
.
dayObj
.
ScenicArrayImg
=
this
.
ScenicArraySingle
;
}
if
(
this
.
dayObj
.
ChooseScenicArray
.
length
>
0
)
{
if
(
this
.
dayObj
.
ChooseScenicArray
.
length
>
0
)
{
this
.
ChooseScenicArray
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
dayObj
.
ChooseScenicArray
));
this
.
ChooseScenicArray
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
dayObj
.
ChooseScenicArray
));
}
}
if
(
this
.
dayObj
.
ScenicArray
!=
null
&&
this
.
dayObj
.
ScenicArray
.
length
>
0
)
{
if
(
this
.
dayObj
.
ScenicArray
!=
null
&&
this
.
dayObj
.
ScenicArray
.
length
>
0
)
{
this
.
ishasScenic
=
true
;
this
.
ishasScenic
=
true
;
this
.
QScenicList
=
[];
this
.
QScenicList
=
[];
...
@@ -655,10 +673,13 @@
...
@@ -655,10 +673,13 @@
//选中的景点
//选中的景点
'ChooseScenicArray'
:
{
'ChooseScenicArray'
:
{
handler
:
function
(
val
,
oldVal
)
{
handler
:
function
(
val
,
oldVal
)
{
if
(
val
.
length
==
0
)
this
.
ScenicArray
=
[]
if
(
val
.
length
==
0
)
{
this
.
ScenicArray
=
[];
this
.
ScenicArraySingle
=
''
;
}
let
list
=
[]
let
list
=
[]
//新增
//新增
this
.
ChooseScenicArray
.
forEach
(
x
=>
{
val
.
forEach
(
x
=>
{
let
isExist
=
false
;
let
isExist
=
false
;
this
.
dayObj
.
ScenicArray
.
forEach
(
y
=>
{
this
.
dayObj
.
ScenicArray
.
forEach
(
y
=>
{
if
(
x
===
y
.
CouponsId
)
{
if
(
x
===
y
.
CouponsId
)
{
...
@@ -695,13 +716,12 @@
...
@@ -695,13 +716,12 @@
scenicDescribeObj
.
Id
=
x
;
scenicDescribeObj
.
Id
=
x
;
scenicDescribeObj
.
Describe
=
s
.
About
;
scenicDescribeObj
.
Describe
=
s
.
About
;
//this.WarmTripDescribe.ScenicDescribeArr.push(scenicDescribeObj);
//this.WarmTripDescribe.ScenicDescribeArr.push(scenicDescribeObj);
if
(
scenicDescribeObj
.
Describe
!=
null
&&
scenicDescribeObj
.
Describe
!=
""
)
{
//
if (scenicDescribeObj.Describe != null && scenicDescribeObj.Describe != "") {
this
.
dayObj
.
WarmTipObj
.
Description
+=
"<p>"
+
scenicDescribeObj
.
Describe
+
"</p>"
;
//
this.dayObj.WarmTipObj.Description += "
<
p
>
" + scenicDescribeObj.Describe + "
<
/p>"
;
}
//
}
}
}
});
});
list
.
push
(
scenic
)
this
.
dayObj
.
ScenicArray
.
push
(
scenic
)
this
.
dayObj
.
ScenicArray
=
list
.
sort
((
a
,
b
)
=>
{
return
b
.
Rank
-
a
.
Rank
});
}
}
});
});
//移除
//移除
...
@@ -719,7 +739,7 @@
...
@@ -719,7 +739,7 @@
}
}
});
});
this
.
dayObj
.
ScenicArray
=
newScenicObj
.
sort
((
a
,
b
)
=>
{
return
b
.
Rank
-
a
.
Rank
});
this
.
dayObj
.
ScenicArray
=
newScenicObj
.
sort
((
a
,
b
)
=>
{
return
b
.
Rank
-
a
.
Rank
});
if
(
this
.
dayObj
.
ScenicArray
&&
this
.
dayObj
.
ScenicArray
.
length
>
0
)
this
.
dayObj
.
ScenicArray
.
sort
((
a
,
b
)
=>
{
return
a
.
Rank
-
b
.
Rank
})
//清除数据
//清除数据
let
scenicDescribeArr
=
[];
let
scenicDescribeArr
=
[];
this
.
WarmTripDescribe
.
ScenicDescribeArr
.
forEach
(
x
=>
{
this
.
WarmTripDescribe
.
ScenicDescribeArr
.
forEach
(
x
=>
{
...
@@ -733,9 +753,35 @@
...
@@ -733,9 +753,35 @@
scenicDescribeArr
.
push
(
x
);
scenicDescribeArr
.
push
(
x
);
}
}
});
});
this
.
WarmTripDescribe
.
ScenicDescribeArr
=
scenicDescribeArr
;
this
.
WarmTripDescribe
.
ScenicDescribeArr
=
scenicDescribeArr
;
this
.
dayObj
.
ChooseScenicArray
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
ChooseScenicArray
));
this
.
dayObj
.
ChooseScenicArray
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
ChooseScenicArray
));
// 默认第一个为默认图
// if(this.ScenicArray,length==0&&this.ChooseScenicArray&&this.ChooseScenicArray.length>0){
// this.ScenicArray = [this.ChooseScenicArray[0]]
// this.getScenicArray()
// }
if
(
!
this
.
ScenicArraySingle
&&
this
.
ChooseScenicArray
&&
this
.
ChooseScenicArray
.
length
>
0
){
this
.
ScenicArraySingle
=
this
.
ChooseScenicArray
[
0
]
this
.
getScenicArray
()
}
else
{
let
status
=
false
this
.
dayObj
.
ScenicArray
.
forEach
(
x
=>
{
x
.
Rank
=
0
if
(
x
.
CouponsId
===
this
.
ScenicArraySingle
){
status
=
true
x
.
Rank
=
1
}
})
if
(
!
status
)
{
this
.
ScenicArraySingle
=
this
.
ChooseScenicArray
[
0
]
this
.
getScenicArray
()
this
.
dayObj
.
ScenicArrayImg
=
this
.
ScenicArraySingle
;
}
}
if
(
this
.
dayObj
.
ScenicArray
&&
this
.
dayObj
.
ScenicArray
.
length
>
0
)
this
.
dayObj
.
ScenicArray
.
sort
((
a
,
b
)
=>
{
return
a
.
Rank
-
b
.
Rank
})
}
}
},
},
WarmTripDescribe
:
{
WarmTripDescribe
:
{
...
...
src/components/orderCommon/order-form2.vue
View file @
d714ce5d
...
@@ -793,10 +793,10 @@
...
@@ -793,10 +793,10 @@
message
:
"请输入联系人电话"
,
message
:
"请输入联系人电话"
,
trigger
:
"blur"
,
trigger
:
"blur"
,
},
},
{
//
{
pattern
:
/^
(
0|86|17951
)?(
13
[
0-9
]
|15
[
012356789
]
|17
[
012356789
]
|18
[
0-9
]
|19
[
0-9
]
|14
[
57
])[
0-9
]{8}
$/
,
//
pattern: /^(0|86|17951)?(13[0-9]|15[012356789]|17[012356789]|18[0-9]|19[0-9]|14[57])[0-9]{8}$/,
message
:
"请输入正确的手机"
,
//
message: "请输入正确的手机",
},
//
},
],
],
SurName
:
[{
SurName
:
[{
required
:
true
,
required
:
true
,
...
@@ -833,10 +833,10 @@
...
@@ -833,10 +833,10 @@
message
:
"请输入联系人电话"
,
message
:
"请输入联系人电话"
,
trigger
:
"blur"
,
trigger
:
"blur"
,
},
},
{
//
{
pattern
:
/^
(
0|86|17951
)?(
13
[
0-9
]
|15
[
012356789
]
|17
[
012356789
]
|18
[
0-9
]
|19
[
0-9
]
|14
[
57
])[
0-9
]{8}
$/
,
//
pattern: /^(0|86|17951)?(13[0-9]|15[012356789]|17[012356789]|18[0-9]|19[0-9]|14[57])[0-9]{8}$/,
message
:
"请输入正确的手机"
,
//
message: "请输入正确的手机",
},
//
},
],
],
GatherAddress
:
[{
GatherAddress
:
[{
required
:
true
,
required
:
true
,
...
...
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