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
e8d820bbb660cd6a3ba3bd20ffa960bca21e7dbd
Authored by
“pengye”
2024-06-15 13:00:19 +0800
1 parent
c4d72627
build: skipped
菜单价和会员价四舍五入保留一位小数
Changes
2
Builds
0
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
miniprogram/pack-cookbook/pages/cart_new.js
miniprogram/pack-cookbook/pages/success_new.js
miniprogram/pack-cookbook/pages/cart_new.js
View file @
e8d820b
...
...
@@ -342,8 +342,8 @@ Page({
this
.
setData
({
cookbooklist
,
noData
:((
num
*
1
)
>
0
&&
!
this
.
data
.
isOrder
)?
false
:
true
,
//菜品数量大于0 && 在当前预订的餐段时间内
probablyPrice
,
vipProbablyPrice
probablyPrice
:
probablyPrice
.
toFixed
(
1
),
vipProbablyPrice
:
vipProbablyPrice
.
toFixed
(
1
),
})
return
cookbooklist
},
...
...
miniprogram/pack-cookbook/pages/success_new.js
View file @
e8d820b
...
...
@@ -352,8 +352,8 @@ Page({
console
.
log
(
cookbooklist
);
this
.
setData
({
noData
:
true
,
probablyPrice
,
vipProbablyPrice
probablyPrice
:
probablyPrice
.
toFixed
(
1
),
vipProbablyPrice
:
vipProbablyPrice
.
toFixed
(
1
),
})
return
cookbooklist
},
...
...
Please
register
or
login
to post a comment