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
a8cb8872
Commit
a8cb8872
authored
Mar 06, 2023
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
8abbed4f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
99 additions
and
62 deletions
+99
-62
orderPreview.vue
src/components/car/orderPreview.vue
+13
-21
orderForm.vue
src/pages/Pickuporder/orderForm.vue
+83
-38
detailsCar.vue
src/pages/detailsCar.vue
+3
-3
No files found.
src/components/car/orderPreview.vue
View file @
a8cb8872
...
@@ -201,26 +201,13 @@ export default {
...
@@ -201,26 +201,13 @@ export default {
methods
:
{
methods
:
{
goOrderHandler
(){
goOrderHandler
(){
let
order
=
{
let
order
=
{
key
:
null
,
CarId
:
this
.
selectedCarObj
.
Id
,
CarObj
:
this
.
selectedCarObj
,
AirportId
:
this
.
selectedAirportObj
?
this
.
selectedAirportObj
.
Id
:
''
,
AirportObj
:
{
startDate
:
this
.
p
.
startDate
,
Address
:
this
.
selectedAirportObj
?
this
.
selectedAirportObj
.
Address
:
''
,
originalB2CPrice
:
this
.
p
.
originalB2CPrice
,
AirportId
:
this
.
selectedAirportObj
?
this
.
selectedAirportObj
.
AirportId
:
''
,
orderInfo
:
this
.
chosenObj
,
AirportName
:
this
.
selectedAirportObj
?
this
.
selectedAirportObj
.
AirportName
:
''
,
Id
:
this
.
selectedAirportObj
?
this
.
selectedAirportObj
.
Id
:
''
,
Name
:
this
.
selectedAirportObj
?
this
.
selectedAirportObj
.
Name
:
''
},
calculationAmount
:
this
.
p
,
calculationNum
:
this
.
chosenObj
,
sumPrice
:
this
.
sumPrice
,
sumPrice
:
this
.
sumPrice
,
details
:
{
Id
:
this
.
dataList
.
Id
,
Name
:
this
.
dataList
.
Name
,
Description
:
this
.
dataList
.
Description
,
videoStr
:
this
.
dataList
.
videoStr
,
imgCover
:
this
.
dataList
.
imgCover
,
CarType
:
this
.
dataList
.
CarType
,
Id
:
this
.
dataList
.
Id
,
},
onCarObj
:
{
onCarObj
:
{
Address
:
this
.
onCarObj
?
this
.
onCarObj
.
Address
:
''
,
Address
:
this
.
onCarObj
?
this
.
onCarObj
.
Address
:
''
,
Name
:
this
.
onCarObj
?
this
.
onCarObj
.
Name
:
''
,
Name
:
this
.
onCarObj
?
this
.
onCarObj
.
Name
:
''
,
...
@@ -237,8 +224,13 @@ export default {
...
@@ -237,8 +224,13 @@ export default {
},
},
}
}
let
key
=
this
.
$md5
(
JSON
.
stringify
(
order
))
let
key
=
this
.
$md5
(
JSON
.
stringify
(
order
))
order
.
key
=
key
let
pickuporderCars
=
localStorage
.
getItem
(
'pickuporderCars'
)
localStorage
.
setItem
(
"pickuporderCars"
,
JSON
.
stringify
(
order
))
pickuporderCars
=
pickuporderCars
?
JSON
.
parse
(
pickuporderCars
):[]
pickuporderCars
.
push
({
key
,
order
})
localStorage
.
setItem
(
"pickuporderCars"
,
JSON
.
stringify
(
pickuporderCars
))
this
.
CommonJump
(
'/PickuporderForm/'
+
key
,
{});
this
.
CommonJump
(
'/PickuporderForm/'
+
key
,
{});
},
},
// 获取车的详情
// 获取车的详情
...
...
src/pages/Pickuporder/orderForm.vue
View file @
a8cb8872
This diff is collapsed.
Click to expand it.
src/pages/detailsCar.vue
View file @
a8cb8872
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
class=
"col product-price text-subtitle1 text-weight-bold"
class=
"col product-price text-subtitle1 text-weight-bold"
style=
"text-align: left"
style=
"text-align: left"
>
>
<span
v-if=
"dataList&&dataList.MinPrice"
>
CNY
{{
moneyFormat
(
dataList
.
MinPrice
,
0
)
}}
</span>
<span
v-if=
"dataList&&dataList.MinPrice"
>
{{
dataList
.
CurrencyCode
}}
{{
moneyFormat
(
dataList
.
MinPrice
,
0
)
}}
</span>
<span
class=
"q-ml-sm f12 text-grey-7"
>
起
</span>
<span
class=
"q-ml-sm f12 text-grey-7"
>
起
</span>
</span>
</span>
<q-btn
<q-btn
...
@@ -173,7 +173,7 @@
...
@@ -173,7 +173,7 @@
>
>
<div
class=
"product-price text-h6"
v-if=
"dataList.MinPrice > 0"
>
<div
class=
"product-price text-h6"
v-if=
"dataList.MinPrice > 0"
>
<!-- CNY:
{{
dataList
.
}}
-->
<!-- CNY:
{{
dataList
.
}}
-->
CNY
:
{{
moneyFormat
(
dataList
.
MinPrice
,
0
)
}}
{{
dataList
.
CurrencyCode
}}
:
{{
moneyFormat
(
dataList
.
MinPrice
,
0
)
}}
<span
class=
"f12 text-grey-6"
>
起
</span>
<span
class=
"f12 text-grey-6"
>
起
</span>
</div>
</div>
<div
v-else
class=
"text-subtitle1 text-grey-6"
>
暫無報價
</div>
<div
v-else
class=
"text-subtitle1 text-grey-6"
>
暫無報價
</div>
...
@@ -327,7 +327,7 @@
...
@@ -327,7 +327,7 @@
<div
class=
""
v-if=
"$q.platform.is.desktop"
>
<div
class=
""
v-if=
"$q.platform.is.desktop"
>
<div
class=
"row items-center"
>
<div
class=
"row items-center"
>
<span
class=
"product-price text-h6 q-mr-md"
<span
class=
"product-price text-h6 q-mr-md"
>
CNY
>
{{dataList.CurrencyCode}}
{{
{{
moneyFormat(priceList[0].originalB2CPrice, 0)
moneyFormat(priceList[0].originalB2CPrice, 0)
}}
</span
}}
</span
...
...
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