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
0f57fd0a
Commit
0f57fd0a
authored
Mar 02, 2020
by
jiangjiantao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfixed
parent
b805ff8a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
scan.axml
pages/scan/scan.axml
+1
-1
scan.js
pages/scan/scan.js
+5
-4
No files found.
pages/scan/scan.axml
View file @
0f57fd0a
...
...
@@ -14,7 +14,7 @@
{{item.name}}
</view>
<view class="scan-good-list-item">
<view class="good-list-item-price-font">¥{{item.price}}</view>
<view class="good-list-item-price-font">¥{{item.price
/2
}}</view>
<view class="good-list-item-quantity-font">
{{item.quantity}}件
</view>
...
...
pages/scan/scan.js
View file @
0f57fd0a
var
api
=
require
(
"../../utils/api.js"
);
var
payUtils
=
require
(
"../../utils/payUtils.js"
);
import
{
Page
}
from
'../../utils/scan'
;
import
{
API_SCAN
}
from
'../../const/apiurl'
import
{
API_USE_COUPON
}
from
'../../const/apiurl'
...
...
@@ -9,7 +10,6 @@ import { ACTION_GO_BALANCE } from '../../const/actioncmd'
import
{
ACTION_GO_HOME
}
from
'../../const/actioncmd'
import
{
ACTION_USE_COUPON
}
from
'../../const/actioncmd'
Page
({
data
:
{
goods
:
[],
...
...
@@ -228,9 +228,9 @@ Page({
//价格 分转元
goodinfo
.
quantity
=
1
;
goodinfo
.
price
=
goodinfo
.
price
/
100
goodinfo
.
salePrice
=
goodinfo
.
salePrice
/
100
goodinfo
.
discnt
=
goodinfo
.
discnt
/
100
goodinfo
.
price
=
goodinfo
.
price
goodinfo
.
salePrice
=
goodinfo
.
salePrice
goodinfo
.
discnt
=
goodinfo
.
discnt
//总数量
let
totalQuantityTemp
=
0
...
...
@@ -273,6 +273,7 @@ Page({
}
//汇总
totalPrice
=
payUtils
.
fen2Yuan
(
totalPriceTemp
)
this
.
setData
({
totalQuantity
:
totalQuantityTemp
,
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