Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_Travel
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
zhengke
jz_Travel
Commits
25263139
Commit
25263139
authored
Apr 23, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复
parent
20d27a98
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
order.vue
pages/hotel/order.vue
+11
-5
No files found.
pages/hotel/order.vue
View file @
25263139
...
@@ -196,7 +196,7 @@
...
@@ -196,7 +196,7 @@
<
view
>
<
view
>
{{
RoomInfo
.
Currency
}}
{{
RoomInfo
.
Currency
}}
<!--
{{
(
getPrice
(
orderMsg
.
TotalPrice
)
*
orderMsg
.
RoomCount
)
-
currentCoupon
.
discountMoney
}}
-->
<!--
{{
(
getPrice
(
orderMsg
.
TotalPrice
)
*
orderMsg
.
RoomCount
)
-
currentCoupon
.
discountMoney
}}
-->
{{
(
orderMsg
.
TotalPrice
*
orderMsg
.
RoomCount
)
-
currentCoupon
.
discountMoney
}}
{{
(
(
orderMsg
.
TotalPrice
*
orderMsg
.
RoomCount
)
-
currentCoupon
.
discountMoney
).
toFixed
(
2
)
}}
<
/view
>
<
/view
>
<
/view
>
<
/view
>
<
/view
>
<
/view
>
...
@@ -241,7 +241,8 @@
...
@@ -241,7 +241,8 @@
<
text
class
=
"f11"
>
{{
RoomInfo
.
Currency
}}
<
/text
>
<
text
class
=
"f11"
>
{{
RoomInfo
.
Currency
}}
<
/text
>
<
text
>
<
text
>
<!--
{{
(
getPrice
(
orderMsg
.
TotalPrice
)
*
orderMsg
.
RoomCount
)
-
currentCoupon
.
discountMoney
}}
-->
<!--
{{
(
getPrice
(
orderMsg
.
TotalPrice
)
*
orderMsg
.
RoomCount
)
-
currentCoupon
.
discountMoney
}}
-->
{{
(
orderMsg
.
TotalPrice
*
orderMsg
.
RoomCount
)
-
currentCoupon
.
discountMoney
}}
<!--
{{
(
orderMsg
.
TotalPrice
*
orderMsg
.
RoomCount
)
-
currentCoupon
.
discountMoney
}}
-->
{{
((
orderMsg
.
TotalPrice
*
orderMsg
.
RoomCount
)
-
currentCoupon
.
discountMoney
).
toFixed
(
2
)
}}
<
/text
>
<
/text
>
<
/view
>
<
/view
>
<
view
class
=
"sum-detail"
>
共计
{{
orderMsg
.
RoomCount
}}
间房
<
/view
>
<
view
class
=
"sum-detail"
>
共计
{{
orderMsg
.
RoomCount
}}
间房
<
/view
>
...
@@ -381,6 +382,7 @@
...
@@ -381,6 +382,7 @@
CreateBy
:
0
,
CreateBy
:
0
,
submit
:
false
,
submit
:
false
,
orderInfo
:
null
,
orderInfo
:
null
,
price
:
0
,
}
}
}
,
}
,
created
()
{
created
()
{
...
@@ -434,6 +436,7 @@
...
@@ -434,6 +436,7 @@
OccupancyDetails
:
[],
OccupancyDetails
:
[],
hotelId
:
this
.
orderMsg
.
hotelId
hotelId
:
this
.
orderMsg
.
hotelId
}
}
this
.
price
=
this
.
RoomInfo
.
Currency
+
this
.
RoomInfo
.
RatePlanPrice
this
.
getUserCouponList
()
this
.
getUserCouponList
()
this
.
CalTotalPrice
();
this
.
CalTotalPrice
();
this
.
GetCountryInfo
()
this
.
GetCountryInfo
()
...
@@ -516,6 +519,7 @@
...
@@ -516,6 +519,7 @@
this
.
apipost
(
"AddOrderInfo_post"
,
msg
,
(
res
)
=>
{
this
.
apipost
(
"AddOrderInfo_post"
,
msg
,
(
res
)
=>
{
if
(
res
.
resultCode
==
1
)
{
if
(
res
.
resultCode
==
1
)
{
console
.
log
(
res
.
data
,
'-----33'
);
this
.
orderInfo
=
JSON
.
parse
(
res
.
data
.
sPayInfo
)
this
.
orderInfo
=
JSON
.
parse
(
res
.
data
.
sPayInfo
)
uni
.
showToast
({
uni
.
showToast
({
icon
:
'none'
,
icon
:
'none'
,
...
@@ -548,10 +552,12 @@
...
@@ -548,10 +552,12 @@
title
:
"支付成功"
,
title
:
"支付成功"
,
}
);
}
);
setTimeout
(()
=>
{
setTimeout
(()
=>
{
// (that.getPrice(that.orderMsg.TotalPrice) - that
// .currentCoupon.discountMoney).toFixed(2) +
// "&isFrom=5
uni
.
redirectTo
({
uni
.
redirectTo
({
url
:
"/pages/jiuzhai/paysuccess?PreferPrice="
+
url
:
"/pages/jiuzhai/paysuccess?PreferPrice="
+
(
that
.
getPrice
(
that
.
orderMsg
.
TotalPrice
)
-
that
(
that
.
orderMsg
.
TotalPrice
-
that
.
currentCoupon
.
discountMoney
).
toFixed
(
2
)
+
.
currentCoupon
.
discountMoney
).
toFixed
(
2
)
+
"&isFrom=5"
,
"&isFrom=5"
,
}
);
}
);
}
,
100
);
}
,
100
);
...
@@ -779,7 +785,7 @@
...
@@ -779,7 +785,7 @@
}
,
}
,
//计算总价
//计算总价
CalTotalPrice
()
{
CalTotalPrice
()
{
this
.
price
=
this
.
orderMsg
.
TotalPrice
*
this
.
orderMsg
.
RoomCount
}
,
}
,
validate
()
{
validate
()
{
let
email
=
/^
[
a-zA-Z0-9_.-
]
+@
[
a-zA-Z0-9-
]
+
(\.[
a-zA-Z0-9-
]
+
)
*
\.[
a-zA-Z0-9
]
{2,6
}
$/
let
email
=
/^
[
a-zA-Z0-9_.-
]
+@
[
a-zA-Z0-9-
]
+
(\.[
a-zA-Z0-9-
]
+
)
*
\.[
a-zA-Z0-9
]
{2,6
}
$/
...
...
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