Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3fa3b992
authored
Jun 27, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
运费规则小数问题
parent
20d7ccda
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
resources/views/script/SaveShippingCostRulerScript.blade.php
resources/views/script/SaveShippingCostRulerScript.blade.php
View file @
3fa3b992
...
@@ -45,12 +45,16 @@
...
@@ -45,12 +45,16 @@
let
orderAmount
=
$
(
'#order_amount'
).
val
();
let
orderAmount
=
$
(
'#order_amount'
).
val
();
if
(
orderAmount
)
{
if
(
orderAmount
)
{
orderAmountFormat
=
currency
==
1
?
'¥'
+
orderAmount
:
'$'
+
orderAmount
;
orderAmount
=
parseFloat
(
orderAmount
);
$
(
'order_amount'
).
val
(
orderAmount
.
toFixed
(
2
));
orderAmountFormat
=
currency
==
1
?
'¥'
+
orderAmount
.
toFixed
(
2
)
:
'$'
+
orderAmount
.
toFixed
(
2
);
}
}
let
shippingCost
=
$
(
'#shipping_cost'
).
val
();
let
shippingCost
=
$
(
'#shipping_cost'
).
val
();
if
(
shippingCost
)
{
if
(
shippingCost
)
{
shippingCost
=
parseInt
(
shippingCost
);
shippingCost
=
parseFloat
(
shippingCost
);
$
(
'shipping_cost'
).
val
(
shippingCost
.
toFixed
(
2
));
shippingCostFormat
=
currency
==
1
?
'¥'
+
shippingCost
.
toFixed
(
2
)
:
'$'
+
shippingCost
.
toFixed
(
2
);
shippingCostFormat
=
currency
==
1
?
'¥'
+
shippingCost
.
toFixed
(
2
)
:
'$'
+
shippingCost
.
toFixed
(
2
);
console
.
log
(
shippingCostFormat
);
}
}
if
(
orderAmount
)
{
if
(
orderAmount
)
{
...
...
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