Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
million
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
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
viitto
million
Commits
9b25b30b
Commit
9b25b30b
authored
Feb 27, 2023
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
f91bbce8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
9 deletions
+11
-9
calendar.vue
src/components/trip/calendar.vue
+2
-2
calendar.vue
src/components/trip/tripView/calendar.vue
+2
-2
list.vue
src/components/trip/tripView/list.vue
+2
-2
detailsNew.vue
src/pages/detailsNew.vue
+5
-3
No files found.
src/components/trip/calendar.vue
View file @
9b25b30b
...
@@ -126,8 +126,8 @@ export default {
...
@@ -126,8 +126,8 @@ export default {
new
Date
(
this
.
prices
[
0
].
startDate
),
new
Date
(
this
.
prices
[
0
].
startDate
),
"YYYY/MM"
"YYYY/MM"
);
);
this
.
currentMonth
=
let
current
=
this
.
months
.
findIndex
((
x
)
=>
x
.
monthValue
==
firstMonth
)
this
.
months
.
findIndex
((
x
)
=>
x
.
monthValue
==
firstMonth
)
??
0
;
this
.
currentMonth
=
current
>-
1
?
current
:
0
;
this
.
changeMonthHandler
();
this
.
changeMonthHandler
();
},
},
createChosenDateHandler
()
{
createChosenDateHandler
()
{
...
...
src/components/trip/tripView/calendar.vue
View file @
9b25b30b
...
@@ -72,7 +72,7 @@ export default {
...
@@ -72,7 +72,7 @@ export default {
x
.
title
=
y
.
childItem
.
title
;
x
.
title
=
y
.
childItem
.
title
;
}
else
if
(
y
.
type
==
1
)
{
}
else
if
(
y
.
type
==
1
)
{
y
.
subtitle
=
y
.
subtitle
=
y
.
childItem
.
subTraffic
[
0
].
startTime
+
y
.
childItem
.
subTraffic
.
length
>
0
&&
y
.
childItem
.
subTraffic
[
0
].
startTime
+
" - "
+
" - "
+
y
.
childItem
.
subTraffic
[
y
.
childItem
.
subTraffic
.
length
-
1
]
y
.
childItem
.
subTraffic
[
y
.
childItem
.
subTraffic
.
length
-
1
]
.
endTime
;
.
endTime
;
...
@@ -109,7 +109,7 @@ export default {
...
@@ -109,7 +109,7 @@ export default {
}
}
},
},
formatTraffice
(
tras
)
{
formatTraffice
(
tras
)
{
let
txt
=
"從"
+
tras
[
0
].
startCityName
;
let
txt
=
"從"
+
tras
.
length
>
0
&&
tras
[
0
].
startCityName
;
tras
.
forEach
((
z
,
i
)
=>
{
tras
.
forEach
((
z
,
i
)
=>
{
if
(
i
>
0
)
{
if
(
i
>
0
)
{
txt
=
";再"
;
txt
=
";再"
;
...
...
src/components/trip/tripView/list.vue
View file @
9b25b30b
...
@@ -336,7 +336,7 @@ export default {
...
@@ -336,7 +336,7 @@ export default {
x
.
title
=
y
.
childItem
.
title
;
x
.
title
=
y
.
childItem
.
title
;
}
else
if
(
y
.
type
==
1
)
{
}
else
if
(
y
.
type
==
1
)
{
y
.
subtitle
=
y
.
subtitle
=
y
.
childItem
.
subTraffic
[
0
].
startTime
+
y
.
childItem
.
subTraffic
.
length
>
0
&&
y
.
childItem
.
subTraffic
[
0
].
startTime
+
" - "
+
" - "
+
y
.
childItem
.
subTraffic
[
y
.
childItem
.
subTraffic
.
length
-
1
]
y
.
childItem
.
subTraffic
[
y
.
childItem
.
subTraffic
.
length
-
1
]
.
endTime
;
.
endTime
;
...
@@ -352,7 +352,7 @@ export default {
...
@@ -352,7 +352,7 @@ export default {
}
}
}
,
}
,
formatTraffice
(
tras
)
{
formatTraffice
(
tras
)
{
let
txt
=
"從"
+
tras
[
0
].
startCityName
;
let
txt
=
"從"
+
tras
.
length
>
0
&&
tras
[
0
].
startCityName
;
tras
.
forEach
((
z
,
i
)
=>
{
tras
.
forEach
((
z
,
i
)
=>
{
if
(
i
>
0
)
{
if
(
i
>
0
)
{
txt
=
";再"
;
txt
=
";再"
;
...
...
src/pages/detailsNew.vue
View file @
9b25b30b
...
@@ -758,9 +758,9 @@ export default {
...
@@ -758,9 +758,9 @@ export default {
if
(
localStorage
.
baseifo
)
{
if
(
localStorage
.
baseifo
)
{
this
.
TripConfig
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
"baseifo"
));
this
.
TripConfig
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
"baseifo"
));
}
}
//
this.getData();
this
.
getData
();
window
.
addEventListener
(
"scroll"
,
this
.
menu
);
window
.
addEventListener
(
"scroll"
,
this
.
menu
);
this
.
getCarData
();
//
this.getCarData();
},
},
methods
:
{
methods
:
{
getTopNum
(
x
)
{
getTopNum
(
x
)
{
...
@@ -860,7 +860,9 @@ export default {
...
@@ -860,7 +860,9 @@ export default {
changeChosenDateHandler
(
val
)
{
changeChosenDateHandler
(
val
)
{
val
.
price
.
version
=
new
Date
().
getTime
();
val
.
price
.
version
=
new
Date
().
getTime
();
this
.
currentPrice
=
JSON
.
parse
(
JSON
.
stringify
(
val
.
price
));
this
.
currentPrice
=
JSON
.
parse
(
JSON
.
stringify
(
val
.
price
));
this
.
$refs
.
qDateProxy
.
hide
();
if
(
this
.
$q
.
platform
.
is
.
mobile
){
this
.
$refs
.
qDateProxy
.
hide
();
}
},
},
showDialog
()
{
showDialog
()
{
this
.
isShowDialog
=
true
;
this
.
isShowDialog
=
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