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
f9e47826
Commit
f9e47826
authored
Mar 02, 2023
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
443c80c9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
orderPreview.vue
src/components/car/orderPreview.vue
+12
-6
detailsCar.vue
src/pages/detailsCar.vue
+2
-0
No files found.
src/components/car/orderPreview.vue
View file @
f9e47826
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
flat
flat
/>
/>
</div>
</div>
<template>
<template
v-if=
"dataList.CarType!=3"
>
<div
class=
"text-grey-6 f12 q-my-md"
>
選擇機場
</div>
<div
class=
"text-grey-6 f12 q-my-md"
>
選擇機場
</div>
<div
class=
"row wrap"
>
<div
class=
"row wrap"
>
<q-btn
@
click=
"handleSelectAirport(item)"
<q-btn
@
click=
"handleSelectAirport(item)"
...
@@ -108,7 +108,13 @@
...
@@ -108,7 +108,13 @@
<span
class=
"text-h6 text-primary product-price"
>
CNY {{ moneyFormat(sumPrice,0) }}
</span>
<span
class=
"text-h6 text-primary product-price"
>
CNY {{ moneyFormat(sumPrice,0) }}
</span>
</div>
</div>
<div
class=
"q-mt-md text-right"
>
<div
class=
"q-mt-md text-right"
>
<span
class=
"q-mr-lg f12 text-negative"
v-if=
"!p.startDate"
>
{{$q.platform.is.mobile?'請選擇上面的出行日期':'請選擇左側的出行日期'}}
</span>
<span
class=
"q-mr-lg f12 text-negative"
v-if=
"!p.startDate"
>
{{$q.platform.is.mobile?'請選擇上面的出行日期':'請選擇左側的出行日期'}}
</span>
<span
class=
"q-mr-lg f12 text-negative"
v-if=
"(p.startDate&&!selectedCar)||(p.startDate&&dataList.CarType!=3&&!selectedAirportObj)"
>
{{`請選擇上面的${dataList.CarType==3?'車類型':'機場、車類型'}`}}
</span>
<q-btn
color=
"primary"
label=
"立即訂購"
unelevated
class=
"q-px-lg"
:disable=
"sumPrice==0"
/>
<q-btn
color=
"primary"
label=
"立即訂購"
unelevated
class=
"q-px-lg"
:disable=
"sumPrice==0"
/>
</div>
</div>
</div>
</div>
...
@@ -117,15 +123,15 @@
...
@@ -117,15 +123,15 @@
<
script
>
<
script
>
export
default
{
export
default
{
props
:
[
"price"
,
"CarTypeList"
,
"AirportList"
,
"configId"
,
"Month"
],
props
:
[
"
dataList"
,
"
price"
,
"CarTypeList"
,
"AirportList"
,
"configId"
,
"Month"
],
watch
:
{
watch
:
{
price
:
{
price
:
{
handler
(
n
,
o
)
{
handler
(
n
,
o
)
{
this
.
p
=
n
;
this
.
p
=
n
;
if
(
n
&&
n
.
startDate
){
if
(
n
&&
n
.
startDate
){
this
.
chosenObj
.
startDate
=
n
.
startDate
;
this
.
chosenObj
.
startDate
=
n
.
startDate
;
this
.
selectedCar
=
this
.
CarTypeList
[
0
].
Id
//
this.selectedCar = this.CarTypeList[0].Id
this
.
selectedObj
=
this
.
CarTypeList
[
0
]
//
this.selectedObj = this.CarTypeList[0]
}
}
this
.
calcMoney
()
this
.
calcMoney
()
...
@@ -212,7 +218,7 @@ export default {
...
@@ -212,7 +218,7 @@ export default {
this
.
priceList
.
push
(
dataObj
)
this
.
priceList
.
push
(
dataObj
)
this
.
$emit
(
'getPriceList'
,
JSON
.
stringify
(
this
.
priceList
),
this
.
selectedCar
)
this
.
$emit
(
'getPriceList'
,
JSON
.
stringify
(
this
.
priceList
),
this
.
selectedCar
)
this
.
p
.
originalB2CPrice
=
0
this
.
p
.
originalB2CPrice
=
0
this
.
resetHandler
(
1
)
this
.
resetHandler
()
}
}
}
}
...
...
src/pages/detailsCar.vue
View file @
f9e47826
...
@@ -277,6 +277,7 @@
...
@@ -277,6 +277,7 @@
<template
v-if=
"currentPrice && currentPrice.startDate"
>
<template
v-if=
"currentPrice && currentPrice.startDate"
>
<order-preview
<order-preview
class=
"q-pa-md"
class=
"q-pa-md"
:dataList=
"dataList"
:configId=
"msg.configId"
:configId=
"msg.configId"
:Month=
"currentYM.str"
:Month=
"currentYM.str"
:CarTypeList=
"dataList.CarTypeList"
:CarTypeList=
"dataList.CarTypeList"
...
@@ -366,6 +367,7 @@
...
@@ -366,6 +367,7 @@
</div>
</div>
<div
class=
"col q-ml-xl"
>
<div
class=
"col q-ml-xl"
>
<order-preview
<order-preview
:dataList=
"dataList"
:configId=
"msg.configId"
:configId=
"msg.configId"
:Month=
"currentYM.str"
:Month=
"currentYM.str"
:CarTypeList=
"dataList.CarTypeList"
:CarTypeList=
"dataList.CarTypeList"
...
...
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