Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
groupPurchase-miniapp
Project
Project
Details
Activity
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
彭佳妮(贵阳日报)
groupPurchase-miniapp
Commits
10c61674
Commit
10c61674
authored
Aug 09, 2024
by
陈宗胤(贵阳日报)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
精度丢失
parent
31230581
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
cart.vue
src/pages/assistingAgriculture/cart/cart.vue
+3
-3
No files found.
src/pages/assistingAgriculture/cart/cart.vue
View file @
10c61674
...
@@ -47,10 +47,10 @@
...
@@ -47,10 +47,10 @@
</div>
</div>
<div
class=
"price"
>
<div
class=
"price"
>
合计:
合计:
<span>
¥
{{
totalPrice
}}
</span>
<span>
¥
{{
totalPrice
/
100
}}
</span>
</div>
</div>
</div>
</div>
<div
class=
"submit"
@
tap=
"toSettle"
>
去结算(
{{
totalPrice
}}
)
</div>
<div
class=
"submit"
@
tap=
"toSettle"
>
去结算(
{{
totalPrice
/
100
}}
)
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -68,7 +68,7 @@ const totalPrice = computed(() => {
...
@@ -68,7 +68,7 @@ const totalPrice = computed(() => {
cartList
.
value
.
forEach
((
item
)
=>
{
cartList
.
value
.
forEach
((
item
)
=>
{
item
.
prodInfos
.
forEach
((
c
)
=>
{
item
.
prodInfos
.
forEach
((
c
)
=>
{
if
(
c
.
isChecked
)
{
if
(
c
.
isChecked
)
{
total
+=
c
.
skuPrice
*
c
.
count
;
total
+=
c
.
skuPrice
*
100
*
c
.
count
;
}
}
});
});
});
});
...
...
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