Toggle navigation
This project
Loading...
Sign in
xt
/
xcx-book
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Download as
Email Patches
Plain Diff
Browse Files
Commit
13c892868cbf007944bc3bded4bab1308346339a
Authored by
pengye
2025-03-12 10:24:10 +0800
1 parent
4666370d
build: skipped
付款页满减送券,计算阶梯问题处理
Changes
1
Builds
0
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
miniprogram/pack-activity/pack/buyFreeCoupon.js
miniprogram/pack-activity/pack/buyFreeCoupon.js
View file @
13c8928
...
...
@@ -869,7 +869,7 @@ Page({
let
result
=
{};
let
maxPrice
=
-
Infinity
;
for
(
let
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
const
price
=
parse
In
t
(
arr
[
i
].
price
,
10
);
const
price
=
parse
Floa
t
(
arr
[
i
].
price
,
10
);
if
(
price
<=
num
&&
price
>
maxPrice
)
{
maxPrice
=
price
;
result
=
arr
[
i
];
...
...
Please
register
or
login
to post a comment