Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
jijin
/
dance-pc
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
15410946
authored
2024-08-20 16:12:20 +0800
by
zhangmeng
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
购票价格
1 parent
b738561d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
6 deletions
src/viewsPc/booking/ticket/confirmOrder.vue
src/viewsPc/booking/ticket/confirmOrder.vue
View file @
1541094
...
...
@@ -129,6 +129,13 @@
{{
language
==
0
?
(
price
.
total_cn
*
1
).
toFixed
(
2
)
:
(
price
.
total_en
*
1
).
toFixed
(
2
)
}}
<
span
v
-
if
=
"tickType.isCountSale==1&&orderForm.message.length>=tickType.counts"
class
=
"total"
>
{{
language
==
0
?
"¥"
:
"€"
}}
{{
language
==
0
?
(
price
.
total_cnY
*
1
).
toFixed
(
2
)
:
(
price
.
total_enY
*
1
).
toFixed
(
2
)
}}
<
/span
>
<
/div
>
<
/div
>
<
/div
>
...
...
@@ -202,7 +209,9 @@ const orderForm = ref({
}
)
const
price
=
ref
({
total_en
:
0
,
total_cn
:
0
total_cn
:
0
,
total_enY
:
0
,
total_cnY
:
0
,
}
)
const
tickType
=
ref
({
}
)
const
matchType
=
ref
({
}
)
...
...
@@ -250,15 +259,18 @@ function changeGroup(e) {
// 计算价格
price
.
value
=
{
total_en
:
0
,
total_cn
:
0
total_cn
:
0
,
total_enY
:
0
,
total_cnY
:
0
,
}
orderForm
.
value
.
message
.
forEach
(
v
=>
{
if
(
v
.
discount
)
{
price
.
value
.
total_cn
+=
(
tickType
.
value
.
rebatePrice
*
1
)
price
.
value
.
total_en
+=
(
tickType
.
value
.
rebatePriceEn
*
1
)
price
.
value
.
total_cnY
=
price
.
value
.
total_cn
+=
(
tickType
.
value
.
rebatePrice
*
1
)
price
.
value
.
total_enY
=
price
.
value
.
total_en
+=
(
tickType
.
value
.
rebatePriceEn
*
1
)
}
else
{
price
.
value
.
total_cn
+=
(
tickType
.
value
.
price
*
1
)
price
.
value
.
total_en
+=
(
tickType
.
value
.
priceEn
*
1
)
price
.
value
.
total_cn
Y
=
price
.
value
.
total_cn
+=
(
tickType
.
value
.
price
*
1
)
price
.
value
.
total_en
Y
=
price
.
value
.
total_en
+=
(
tickType
.
value
.
priceEn
*
1
)
}
}
)
...
...
@@ -389,6 +401,12 @@ div {
box
-
sizing
:
border
-
box
;
}
.
total
{
color
:
#
9
f9c9c
;
font
-
size
:
20
px
;
text
-
decoration
:
line
-
through
}
.
qrcode
{
width
:
200
px
;
height
:
200
px
;
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment