Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
doublescreen-front
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pengguangpu
doublescreen-front
Commits
0709358a
Commit
0709358a
authored
Mar 02, 2020
by
jiangjiantao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
精度缺失
parent
0f57fd0a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
scan.axml
pages/scan/scan.axml
+1
-1
scan.js
pages/scan/scan.js
+1
-1
No files found.
pages/scan/scan.axml
View file @
0709358a
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
{{item.name}}
{{item.name}}
</view>
</view>
<view class="scan-good-list-item">
<view class="scan-good-list-item">
<view class="good-list-item-price-font">¥{{item.price/
2
}}</view>
<view class="good-list-item-price-font">¥{{item.price/
100
}}</view>
<view class="good-list-item-quantity-font">
<view class="good-list-item-quantity-font">
{{item.quantity}}件
{{item.quantity}}件
</view>
</view>
...
...
pages/scan/scan.js
View file @
0709358a
...
@@ -273,7 +273,7 @@ Page({
...
@@ -273,7 +273,7 @@ Page({
}
}
//汇总
//汇总
totalPrice
=
payUtils
.
fen2Yuan
(
totalPriceTemp
)
totalPrice
Temp
=
payUtils
.
fen2Yuan
(
totalPriceTemp
)
this
.
setData
({
this
.
setData
({
totalQuantity
:
totalQuantityTemp
,
totalQuantity
:
totalQuantityTemp
,
totalPrice
:
totalPriceTemp
,
totalPrice
:
totalPriceTemp
,
...
...
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