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
1f950af4
Commit
1f950af4
authored
Mar 17, 2023
by
沈良进
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/viitto/million
parents
52a01755
c24a09f0
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
77 additions
and
37 deletions
+77
-37
orderPreview.vue
src/components/car/orderPreview.vue
+18
-11
calendar.vue
src/components/trip/calendar.vue
+2
-2
orderForm.vue
src/pages/Pickuporder/orderForm.vue
+7
-7
details.vue
src/pages/ScenicSpotTicket/details.vue
+14
-4
orderForm.vue
src/pages/ScenicSpotTicket/orderForm.vue
+9
-7
detailsCar.vue
src/pages/detailsCar.vue
+27
-6
No files found.
src/components/car/orderPreview.vue
View file @
1f950af4
...
@@ -151,10 +151,11 @@ export default {
...
@@ -151,10 +151,11 @@ export default {
this
.
p
=
n
;
this
.
p
=
n
;
if
(
n
&&
n
.
startDate
){
if
(
n
&&
n
.
startDate
){
this
.
chosenObj
.
startDate
=
n
.
startDate
;
this
.
chosenObj
.
startDate
=
n
.
startDate
;
console
.
log
(
this
.
chosenObj
.
startDate
,
this
.
dataAll
,
'==='
)
let
arr
=
this
.
dataAll
.
filter
(
x
=>
x
.
Date
==
this
.
chosenObj
.
startDate
)
let
arr
=
this
.
dataAll
.
filter
(
x
=>
x
.
Date
==
this
.
chosenObj
.
startDate
)
this
.
TicketIds
=
arr
[
0
].
Price
.
map
(
x
=>
{
return
x
.
TicketId
})
if
(
arr
.
length
>
0
){
// this.selectedCar = this.dataList.CarTypeList[0].Id
this
.
TicketIds
=
arr
[
0
].
Price
.
map
(
x
=>
{
return
x
.
TicketId
})
// this.selectedCarObj = this.dataList.CarTypeList[0]
}
}
}
this
.
calcMoney
()
this
.
calcMoney
()
...
@@ -170,6 +171,14 @@ export default {
...
@@ -170,6 +171,14 @@ export default {
deep
:
true
,
deep
:
true
,
immediate
:
true
immediate
:
true
},
},
Month
:{
handler
(
n
,
o
)
{
this
.
selectedCarObj
=
this
.
dataList
.
CarTypeList
[
0
]
// this.getCarPriceData2()
},
deep
:
true
,
immediate
:
true
}
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -189,7 +198,7 @@ export default {
...
@@ -189,7 +198,7 @@ export default {
if
(
this
.
p
.
startDate
){
if
(
this
.
p
.
startDate
){
this
.
chosenObj
.
startDate
=
this
.
p
.
startDate
;
this
.
chosenObj
.
startDate
=
this
.
p
.
startDate
;
this
.
calcMoney
()
this
.
calcMoney
()
this
.
getCarPriceData2
()
//
this.getCarPriceData2()
}
}
this
.
getCarPriceData
()
this
.
getCarPriceData
()
},
},
...
@@ -312,13 +321,11 @@ export default {
...
@@ -312,13 +321,11 @@ export default {
remark
:
""
,
remark
:
""
,
};
};
},
},
resetHandler
(
type
)
{
resetHandler
()
{
if
(
type
&&
type
!=
1
){
this
.
selectedCarObj
=
null
this
.
selectedCarObj
=
null
this
.
selectedAirportObj
=
null
this
.
selectedAirportObj
=
null
this
.
onCarObj
=
null
this
.
onCarObj
=
null
this
.
unCarObj
=
null
this
.
unCarObj
=
null
}
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
p
=
{};
this
.
p
=
{};
this
.
initModel
()
this
.
initModel
()
...
...
src/components/trip/calendar.vue
View file @
1f950af4
...
@@ -122,10 +122,10 @@ export default {
...
@@ -122,10 +122,10 @@ export default {
},
},
methods
:
{
methods
:
{
init
()
{
init
()
{
this
.
createChosenDateHandler
();
this
.
createChosenDateHandler
();
let
startDate
=
this
.
prices
.
length
>
0
&&
this
.
prices
[
0
].
startDate
?
this
.
prices
[
0
].
startDate
:
''
let
firstMonth
=
date
.
formatDate
(
let
firstMonth
=
date
.
formatDate
(
new
Date
(
this
.
prices
[
0
].
startDate
),
new
Date
(
startDate
),
"YYYY/MM"
"YYYY/MM"
);
);
console
.
log
(
firstMonth
)
console
.
log
(
firstMonth
)
...
...
src/pages/Pickuporder/orderForm.vue
View file @
1f950af4
...
@@ -521,13 +521,6 @@
...
@@ -521,13 +521,6 @@
style
=
"border: none; border-top: 1px dashed #eee !important"
style
=
"border: none; border-top: 1px dashed #eee !important"
class
=
"bg-transparent q-mb-sm"
class
=
"bg-transparent q-mb-sm"
/>
/>
<
div
class
=
"row q-mb-sm items-center"
>
<
div
class
=
"col"
>
總金額
<
/div
>
<
div
class
=
"text-subtitle2 text-weight-bolder text-primary"
>
CNY
{{
moneyFormat
(
sumPrice
,
2
)
}}
<
/div
>
<
/div
>
<
hr
style
=
"border:none;border-top:1px dashed #EEE !important;"
class
=
"bg-transparent q-mb-sm"
/>
<
div
class
=
"row q-mb-sm items-center"
>
<
div
class
=
"row q-mb-sm items-center"
>
<
div
class
=
"col"
>
優惠金額
<
/div
>
<
div
class
=
"col"
>
優惠金額
<
/div
>
<
div
<
div
...
@@ -538,6 +531,13 @@
...
@@ -538,6 +531,13 @@
<
/div
>
<
/div
>
<
div
class
=
"text-grey-5"
v
-
else
>
暫無優惠
<
/div
>
<
div
class
=
"text-grey-5"
v
-
else
>
暫無優惠
<
/div
>
<
/div
>
<
/div
>
<
hr
style
=
"border:none;border-top:1px dashed #EEE !important;"
class
=
"bg-transparent q-mb-sm"
/>
<
div
class
=
"row q-mb-sm items-center"
>
<
div
class
=
"col"
>
總金額
<
/div
>
<
div
class
=
"text-subtitle2 text-weight-bolder text-primary"
>
CNY
{{
moneyFormat
(
sumPrice
,
2
)
}}
<
/div
>
<
/div
>
<
hr
style
=
"border:none;border-top:1px dashed #EEE !important;"
class
=
"bg-transparent q-mb-sm"
/>
<
hr
style
=
"border:none;border-top:1px dashed #EEE !important;"
class
=
"bg-transparent q-mb-sm"
/>
<
div
class
=
"row q-mb-sm items-center"
v
-
if
=
"chosenObj.Count>0"
>
<
div
class
=
"row q-mb-sm items-center"
v
-
if
=
"chosenObj.Count>0"
>
<
div
class
=
"col"
>
支付金額
<
/div
>
<
div
class
=
"col"
>
支付金額
<
/div
>
...
...
src/pages/ScenicSpotTicket/details.vue
View file @
1f950af4
...
@@ -261,6 +261,7 @@
...
@@ -261,6 +261,7 @@
class=
"bg-white q-pa-md"
class=
"bg-white q-pa-md"
:priceList=
"priceList"
:priceList=
"priceList"
@
change=
"changeChosenDateHandler"
@
change=
"changeChosenDateHandler"
@
getQuotationData=
"getCarPriceData"
ref=
"calendar"
ref=
"calendar"
></calendar>
></calendar>
</q-popup-proxy>
</q-popup-proxy>
...
@@ -272,6 +273,7 @@
...
@@ -272,6 +273,7 @@
:price=
"currentPrice"
:price=
"currentPrice"
@
reset=
"resetHandler"
@
reset=
"resetHandler"
@
getPriceList=
"getPriceList"
@
getPriceList=
"getPriceList"
ref=
"orderPreview"
></order-preview>
></order-preview>
</div>
</div>
...
@@ -279,9 +281,9 @@
...
@@ -279,9 +281,9 @@
<div
class=
"text-h6 q-pt-lg"
v-if=
"$q.platform.is.mobile"
>
<div
class=
"text-h6 q-pt-lg"
v-if=
"$q.platform.is.mobile"
>
所選方案詳情
所選方案詳情
</div>
</div>
<!-- v-if="priceList && priceList.length > 0" -->
<div
<div
class=
"bg-white rounded-borders q-mt-md"
class=
"bg-white rounded-borders q-mt-md"
v-if=
"priceList && priceList.length > 0"
>
>
<div
class=
"q-pa-md row"
>
<div
class=
"q-pa-md row"
>
<div
class=
"col"
>
<div
class=
"col"
>
...
@@ -310,11 +312,12 @@
...
@@ -310,11 +312,12 @@
<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
v-if=
"priceList.length>0&&priceList[0].originalB2CPrice>0"
>
CNY
{{
{{
moneyFormat
(
priceList
[
0
].
originalB2CPrice
,
0
)
moneyFormat
(
priceList
[
0
].
originalB2CPrice
,
0
)
}}
</span
}}
</span
>
>
<span
class=
"col"
></span>
<q-btn
<q-btn
color=
"primary"
color=
"primary"
outline
outline
...
@@ -323,7 +326,7 @@
...
@@ -323,7 +326,7 @@
class=
"q-px-lg"
class=
"q-px-lg"
/>
/>
</div>
</div>
<div
class=
"text-info q-mt-md text-right"
>
<div
class=
"text-info q-mt-md text-right"
v-if=
"priceList.length>0"
>
最早可預訂日期:
{{
priceList
[
0
].
startDate
}}
最早可預訂日期:
{{
priceList
[
0
].
startDate
}}
</div>
</div>
</div>
</div>
...
@@ -355,6 +358,7 @@
...
@@ -355,6 +358,7 @@
<calendar
<calendar
:priceList=
"priceList"
:priceList=
"priceList"
@
change=
"changeChosenDateHandler"
@
change=
"changeChosenDateHandler"
@
getQuotationData=
"getCarPriceData"
ref=
"calendar"
ref=
"calendar"
></calendar>
></calendar>
</div>
</div>
...
@@ -366,6 +370,7 @@
...
@@ -366,6 +370,7 @@
:price=
"currentPrice"
:price=
"currentPrice"
@
reset=
"resetHandler"
@
reset=
"resetHandler"
@
getPriceList=
"getPriceList"
@
getPriceList=
"getPriceList"
ref=
"orderPreview"
></order-preview>
></order-preview>
</div>
</div>
</div>
</div>
...
@@ -900,7 +905,12 @@ export default {
...
@@ -900,7 +905,12 @@ export default {
);
);
}
,
}
,
// 获取报价的详情
// 获取报价的详情
getCarPriceData
()
{
getCarPriceData
(
time
)
{
// 日历翻页更新报价
if
(
time
){
this
.
currentYM
.
str
=
time
this
.
$refs
.
orderPreview
.
resetHandler
()
}
this
.
priceList
=
[]
this
.
priceList
=
[]
this
.
apipost
(
this
.
apipost
(
"b2c_get_GetTicketCouponsMonthPriceAll"
,
"b2c_get_GetTicketCouponsMonthPriceAll"
,
...
...
src/pages/ScenicSpotTicket/orderForm.vue
View file @
1f950af4
...
@@ -286,13 +286,8 @@
...
@@ -286,13 +286,8 @@
style=
"border: none; border-top: 1px dashed #eee !important"
style=
"border: none; border-top: 1px dashed #eee !important"
class=
"bg-transparent q-mb-sm"
class=
"bg-transparent q-mb-sm"
/>
/>
<div
class=
"row q-mb-sm items-center"
>
<div
class=
"col"
>
總金額
</div>
<div
class=
"text-subtitle2 text-weight-bolder text-primary"
>
CNY {{ moneyFormat(sumPrice, 2) }}
</div>
</div>
<hr
style=
"border:none;border-top:1px dashed #EEE !important;"
class=
"bg-transparent q-mb-sm"
/>
<div
class=
"row q-mb-sm items-center"
v-if=
"parameters.MailingState==2&¶meters.MailingMoney>0"
>
<div
class=
"row q-mb-sm items-center"
v-if=
"parameters.MailingState==2&¶meters.MailingMoney>0"
>
<div
class=
"col"
>
邮寄费
</div>
<div
class=
"col"
>
邮寄费
</div>
<div
<div
...
@@ -311,6 +306,13 @@
...
@@ -311,6 +306,13 @@
</div>
</div>
<div
class=
"text-grey-5"
v-else
>
暫無優惠
</div>
<div
class=
"text-grey-5"
v-else
>
暫無優惠
</div>
</div>
</div>
<hr
style=
"border:none;border-top:1px dashed #EEE !important;"
class=
"bg-transparent q-mb-sm"
/>
<div
class=
"row q-mb-sm items-center"
>
<div
class=
"col"
>
總金額
</div>
<div
class=
"text-subtitle2 text-weight-bolder text-primary"
>
CNY {{ moneyFormat(sumPrice, 2) }}
</div>
</div>
<div
class=
"row q-mb-sm items-center"
>
<div
class=
"row q-mb-sm items-center"
>
<div
class=
"col"
>
支付金額
</div>
<div
class=
"col"
>
支付金額
</div>
<div
class=
"text-h6 text-weight-bolder text-primary product-price"
>
<div
class=
"text-h6 text-weight-bolder text-primary product-price"
>
...
...
src/pages/detailsCar.vue
View file @
1f950af4
...
@@ -173,11 +173,12 @@
...
@@ -173,11 +173,12 @@
<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>
<!-- :disable="priceList.length>0?false:true" -->
<q-btn
<q-btn
color=
"primary"
color=
"primary"
label=
"選擇方案"
label=
"選擇方案"
unelevated
unelevated
:disable=
"priceList.length>0?false:true"
@
click=
"goScrollHandler(priceListHeight)"
@
click=
"goScrollHandler(priceListHeight)"
:class=
"
{ 'q-mt-md full-width': $q.platform.is.desktop }"
:class=
"
{ 'q-mt-md full-width': $q.platform.is.desktop }"
/>
/>
...
@@ -260,6 +261,7 @@
...
@@ -260,6 +261,7 @@
class=
"bg-white q-pa-md"
class=
"bg-white q-pa-md"
:priceList=
"priceList"
:priceList=
"priceList"
@
change=
"changeChosenDateHandler"
@
change=
"changeChosenDateHandler"
@
getQuotationData=
"getCarPriceData2"
ref=
"calendar"
ref=
"calendar"
></calendar>
></calendar>
</q-popup-proxy>
</q-popup-proxy>
...
@@ -271,6 +273,7 @@
...
@@ -271,6 +273,7 @@
:price=
"currentPrice"
:price=
"currentPrice"
@
reset=
"resetHandler"
@
reset=
"resetHandler"
@
getPriceList=
"getPriceList"
@
getPriceList=
"getPriceList"
ref=
"orderPreview"
></order-preview>
></order-preview>
</div>
</div>
...
@@ -278,9 +281,9 @@
...
@@ -278,9 +281,9 @@
<div
class=
"text-h6 q-pt-lg"
v-if=
"$q.platform.is.mobile"
>
<div
class=
"text-h6 q-pt-lg"
v-if=
"$q.platform.is.mobile"
>
所選方案詳情
所選方案詳情
</div>
</div>
<!-- v-if="priceList && priceList.length > 0" -->
<div
<div
class=
"bg-white rounded-borders q-mt-md"
class=
"bg-white rounded-borders q-mt-md"
v-if=
"priceList && priceList.length > 0"
>
>
<div
class=
"q-pa-md row"
>
<div
class=
"q-pa-md row"
>
<div
class=
"col"
>
<div
class=
"col"
>
...
@@ -309,12 +312,13 @@
...
@@ -309,12 +312,13 @@
</div>
</div>
<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
v-if=
"priceList.length>0&&priceList[0].originalB2CPrice > 0"
class=
"product-price text-h6 q-mr-md"
>
CNY
>
CNY
{{
{{
moneyFormat
(
priceList
[
0
].
originalB2CPrice
,
0
)
moneyFormat
(
priceList
[
0
].
originalB2CPrice
,
0
)
}}
</span
}}
</span
>
>
<span
v-else
class=
"col"
></span>
<q-btn
<q-btn
color=
"primary"
color=
"primary"
outline
outline
...
@@ -323,7 +327,7 @@
...
@@ -323,7 +327,7 @@
class=
"q-px-lg"
class=
"q-px-lg"
/>
/>
</div>
</div>
<div
class=
"text-info q-mt-md text-right"
>
<div
class=
"text-info q-mt-md text-right"
v-if=
"priceList.length>0"
>
最早可預訂日期:
{{
priceList
[
0
].
startDate
}}
最早可預訂日期:
{{
priceList
[
0
].
startDate
}}
</div>
</div>
</div>
</div>
...
@@ -356,6 +360,7 @@
...
@@ -356,6 +360,7 @@
<calendar
<calendar
:priceList=
"priceList"
:priceList=
"priceList"
@
change=
"changeChosenDateHandler"
@
change=
"changeChosenDateHandler"
@
getQuotationData=
"getCarPriceData2"
ref=
"calendar"
ref=
"calendar"
></calendar>
></calendar>
</div>
</div>
...
@@ -367,6 +372,7 @@
...
@@ -367,6 +372,7 @@
:price=
"currentPrice"
:price=
"currentPrice"
@
reset=
"resetHandler"
@
reset=
"resetHandler"
@
getPriceList=
"getPriceList"
@
getPriceList=
"getPriceList"
ref=
"orderPreview"
></order-preview>
></order-preview>
</div>
</div>
</div>
</div>
...
@@ -980,7 +986,12 @@ export default {
...
@@ -980,7 +986,12 @@ export default {
);
);
},
},
// 获取车的详情
// 获取车的详情
getCarPriceData2
()
{
getCarPriceData2
(
time
)
{
// 日历翻页更新报价
if
(
time
){
this
.
currentYM
.
str
=
time
this
.
$refs
.
orderPreview
.
resetHandler
()
}
this
.
priceList
=
[]
this
.
priceList
=
[]
this
.
apipost
(
this
.
apipost
(
"b2c_get_GetCarSingleProductMonthPrice"
,
"b2c_get_GetCarSingleProductMonthPrice"
,
...
@@ -1005,9 +1016,19 @@ export default {
...
@@ -1005,9 +1016,19 @@ export default {
if
(
date
.
formatDate
(
Date
.
now
(),
'YYYY-MM-DD'
)
!=
x
.
Date
){
if
(
date
.
formatDate
(
Date
.
now
(),
'YYYY-MM-DD'
)
!=
x
.
Date
){
arr
.
push
(
dataObj
)
arr
.
push
(
dataObj
)
}
}
}
}
})
})
if
(
arr
.
length
==
0
){
let
dataObj
=
{
startDate
:
this
.
currentYM
.
str
,
originalB2CPrice
:
''
,
remainNum
:
0
,
Count
:
0
,
isSupportChildren
:
0
,
safeMoney
:
0
,
}
arr
.
push
(
dataObj
)
}
this
.
priceList
=
JSON
.
parse
(
JSON
.
stringify
(
arr
))
this
.
priceList
=
JSON
.
parse
(
JSON
.
stringify
(
arr
))
}
}
...
...
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