Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jwhx
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sugar
jwhx
Commits
f8345c79
Commit
f8345c79
authored
Jan 17, 2025
by
xieyishang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
~
parent
6e715e3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
resources/admin/src/pages/cashierhome/cashierhome.vue
resources/admin/src/pages/cashierhome/cashierhome.vue
+3
-2
No files found.
resources/admin/src/pages/cashierhome/cashierhome.vue
View file @
f8345c79
...
...
@@ -305,10 +305,11 @@ export default {
total
+=
parseFloat
(
cc
.
readyPrice
)
*
Number
(
cc
.
num
);
totalCount
=
totalCount
+
cc
.
num
;
totaljifen
+=
Number
(
cc
.
ready_integral
)
*
Number
(
cc
.
num
)
totaljifen
+=
parseFloat
(
cc
.
ready_integral
)
*
Number
(
cc
.
num
)
});
});
total
=
total
.
toFixed
(
2
);
totaljifen
=
totaljifen
.
toFixed
(
2
);
const
priceParts
=
total
.
split
(
"
.
"
);
const
formatBig
=
priceParts
[
0
];
const
formatMini
=
priceParts
.
length
>
1
?
`.
${
priceParts
[
1
]}
`
:
"
.00
"
;
...
...
@@ -316,7 +317,7 @@ export default {
this
.
totalCount
=
totalCount
;
this
.
totaljifen
=
totaljifen
;
//积分
this
.
Userprice
=
parseFloat
(
parseFloat
(
total
)
+
parse
In
t
(
this
.
totaljifen
)).
toFixed
(
2
);
this
.
Userprice
=
parseFloat
(
parseFloat
(
total
)
+
parse
Floa
t
(
this
.
totaljifen
)).
toFixed
(
2
);
},
deep
:
true
,
...
...
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