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
645fe747
Commit
645fe747
authored
Mar 02, 2023
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
51ed05c5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
4 deletions
+28
-4
orderPreview.vue
src/components/car/orderPreview.vue
+8
-4
detailsCar.vue
src/pages/detailsCar.vue
+20
-0
No files found.
src/components/car/orderPreview.vue
View file @
645fe747
...
...
@@ -108,12 +108,14 @@ export default {
price
:
{
handler
(
n
,
o
)
{
this
.
p
=
n
;
console
.
log
(
n
,
'-----'
)
this
.
chosenObj
.
startDate
=
n
.
startDate
;
if
(
n
&&
n
.
startDate
){
this
.
chosenObj
.
startDate
=
n
.
startDate
;
}
this
.
calcMoney
()
},
deep
:
true
,
immediate
:
tru
e
immediate
:
fals
e
},
CarTypeList
:
{
handler
(
n
,
o
)
{
...
...
@@ -165,7 +167,9 @@ export default {
x
.
Count
=
1
x
.
isSupportChildren
=
1
x
.
safeMoney
=
0
this
.
p
.
originalB2CPrice
=
x
.
Price
if
(
this
.
chosenObj
.
startDate
==
x
.
startDate
){
this
.
p
.
originalB2CPrice
=
x
.
Price
}
})
this
.
$emit
(
'getPriceList'
,
JSON
.
stringify
(
r
.
data
.
data
),
this
.
selectedCar
)
}
...
...
src/pages/detailsCar.vue
View file @
645fe747
...
...
@@ -544,6 +544,7 @@ import OrderPreview from "src/components/car/orderPreview.vue";
import
smaple
from
"src/components/trip/smaple.vue"
;
import
Trip
from
"src/components/trip/trip.vue"
;
import
block
from
"src/components/trip/block/index"
;
import
{
date
}
from
"quasar"
;
import
*
as
dayjs
from
"dayjs"
;
export
default
{
props
:
[],
...
...
@@ -626,6 +627,18 @@ export default {
isActive
:
false
,
display
:
"購買須知"
,
},
{
id
:
"#boardingAddress"
,
top
:
0
,
isActive
:
false
,
display
:
"上车地址"
,
},
{
id
:
"#dropoffaddress"
,
top
:
0
,
isActive
:
false
,
display
:
"下车地址"
,
},
{
id
:
"#tips"
,
top
:
0
,
...
...
@@ -678,6 +691,13 @@ export default {
}
},
mounted
()
{
const
timeStamp
=
Date
.
now
()
const
formattedString
=
date
.
formatDate
(
timeStamp
,
'YYYY-MM-DD'
)
this
.
currentYM
=
{
year
:
date
.
formatDate
(
timeStamp
,
'YYYY'
),
month
:
date
.
formatDate
(
timeStamp
,
'MM'
),
str
:
formattedString
}
if
(
localStorage
.
baseifo
)
{
this
.
TripConfig
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
"baseifo"
));
}
...
...
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