Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bigwood
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
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
罗超
bigwood
Commits
b409da41
Commit
b409da41
authored
Apr 12, 2023
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
7f093676
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
15 deletions
+39
-15
smaple.vue
src/components/trip/smaple.vue
+15
-15
index.ts
src/i18n/zh-TW/index.ts
+24
-0
No files found.
src/components/trip/smaple.vue
View file @
b409da41
...
...
@@ -73,7 +73,7 @@
const
data
=
reactive
({
traffic
:
""
,
stars
:[
'一星酒店'
,
'二星酒店'
,
'三星酒店'
,
'四星酒店'
,
'五星酒店'
,
'六星酒店'
,
'七星酒店'
,
'民宿'
,
'溫泉酒店'
],
stars
:[
t
(
'v103.scheduledTripDetails.starrating.d1'
),
t
(
'v103.scheduledTripDetails.starrating.d2'
),
t
(
'v103.scheduledTripDetails.starrating.d3'
),
t
(
'v103.scheduledTripDetails.starrating.d4'
),
t
(
'v103.scheduledTripDetails.starrating.d5'
),
t
(
'v103.scheduledTripDetails.starrating.d6'
),
t
(
'v103.scheduledTripDetails.starrating.d7'
),
t
(
'v103.scheduledTripDetails.starrating.d8'
),
t
(
'v103.scheduledTripDetails.starrating.d9'
)
],
hotel
:
''
,
team
:
''
,
dinner
:
''
,
...
...
@@ -82,41 +82,41 @@
const
methods
=
{
formatTeam
(){
let
p
=
data
.
trip
.
priceList
[
0
]
let
t
=
p
.
priceTeamType
??
1
t
=
t
==
0
?
1
:
t
if
(
t
==
1
){
data
.
team
=
`${p.seat
}
人團隊散拼
`
let
t
ype
=
p
.
priceTeamType
??
1
t
ype
=
type
==
0
?
1
:
type
if
(
t
ype
==
1
){
data
.
team
=
`${p.seat
+t('v103.scheduledTripDetails.smaple.d1')
}
`
}
else
{
data
.
team
=
'一单一团'
data
.
team
=
t
(
'v103.scheduledTripDetails.smaple.d2'
)
}
}
,
formatDinner
(){
let
d
=
[]
data
.
trip
.
dinnerList
.
forEach
(
x
=>
{
if
(
x
.
dinnerName
.
indexOf
(
'自理'
)
==-
1
&&
x
.
dinnerName
.
indexOf
(
'请选择'
)
==-
1
){
if
(
x
.
dinnerName
.
indexOf
(
t
(
'v103.scheduledTripDetails.smaple.d3'
))
==-
1
&&
x
.
dinnerName
.
indexOf
(
t
(
'v103.scheduledTripDetails.smaple.d4'
)
)
==-
1
){
d
.
push
(
x
)
}
}
)
if
(
d
&&
d
.
length
>
0
){
let
g
=
groupBy
(
d
,
x
=>
{
return
x
.
useDinnerType
}
)
let
t
=
[
'早餐'
,
'午餐'
,
'晚餐'
]
let
t
ype
=
[
t
(
'v103.scheduledTripDetails.calendarhtml.d2'
),
t
(
'v103.scheduledTripDetails.calendarhtml.d3'
),
t
(
'v103.scheduledTripDetails.calendarhtml.d4'
)
]
g
.
forEach
(
x
=>
{
data
.
dinner
+=
`${x.data.length
}
次 ${t
[parseInt(x.key)-1]
}
;`
data
.
dinner
+=
`${x.data.length
}
${t('v103.scheduledTripDetails.smaple.d5')
}
${type
[parseInt(x.key)-1]
}
;`
}
)
}
else
{
data
.
dinner
=
'無餐食供應'
data
.
dinner
=
t
(
'v103.scheduledTripDetails.smaple.d6'
)
}
}
,
formatTraffic
()
{
let
z
=
data
.
trip
.
trafficList
[
0
].
subTraffic
[
0
]
if
(
z
&&
z
.
arrivalType
==
1
)
{
data
.
traffic
=
'飛機往返'
;
data
.
traffic
=
t
(
'v103.scheduledTripDetails.smaple.d7'
)
;
}
else
if
(
z
&&
z
.
arrivalType
==
2
)
{
data
.
traffic
=
'巴士往返'
;
data
.
traffic
=
t
(
'v103.scheduledTripDetails.smaple.d8'
)
;
}
else
if
(
z
&&
z
.
arrivalType
==
3
)
{
data
.
traffic
=
'郵輪往返'
;
data
.
traffic
=
t
(
'v103.scheduledTripDetails.smaple.d9'
)
;
}
else
{
data
.
traffic
=
'高鐵往返'
;
data
.
traffic
=
t
(
'v103.scheduledTripDetails.smaple.d10'
)
;
}
}
,
formatHotel
(){
...
...
@@ -129,7 +129,7 @@
if
(
h
&&
h
.
length
>
0
){
let
g
=
groupBy
(
h
,(
x
)
=>
{
return
x
.
star
}
)
g
.
forEach
(
x
=>
{
data
.
hotel
+=
`${x.data.length
}
晚
${data.stars[parseInt(x.key)-1]?data.stars[parseInt(x.key)-1]:''
}
;`
data
.
hotel
+=
`${x.data.length
}
${t('v103.scheduledTripDetails.smaple.d11')
}
${data.stars[parseInt(x.key)-1]?data.stars[parseInt(x.key)-1]:''
}
;`
}
)
}
}
...
...
src/i18n/zh-TW/index.ts
View file @
b409da41
...
...
@@ -1327,6 +1327,30 @@ export default {
huodong
:
'自由活動'
,
huodongshu
:
'次自由活動'
,
canshi
:
'餐食'
},
starrating
:{
d1
:
'一星酒店'
,
d2
:
'二星酒店'
,
d3
:
'三星酒店'
,
d4
:
'四星酒店'
,
d5
:
'五星酒店'
,
d6
:
'六星酒店'
,
d7
:
'七星酒店'
,
d8
:
'民宿'
,
d9
:
'溫泉酒店'
,
},
smaple
:{
d1
:
'人團隊散拼'
,
d2
:
'一单一团'
,
d3
:
'自理'
,
d4
:
'请选择'
,
d5
:
'次'
,
d6
:
'無餐食供應'
,
d7
:
'飛機往返'
,
d8
:
'巴士往返'
,
d9
:
'郵輪往返'
,
d10
:
'高鐵往返'
,
d11
:
'晚'
,
}
},
scheduledTripOrder
:{
...
...
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