Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
doublescreen-back
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-back
Commits
5a094e81
Commit
5a094e81
authored
Feb 14, 2020
by
jiangjiantao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix
parent
4169b063
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
landscan.js
pages/landscan/landscan.js
+3
-3
No files found.
pages/landscan/landscan.js
View file @
5a094e81
...
@@ -13,9 +13,9 @@ Page({
...
@@ -13,9 +13,9 @@ Page({
//总数量
//总数量
totalQuantity
:
0
,
totalQuantity
:
0
,
//折后价格
//折后价格
totalPrice
:
"0.00"
,
totalPrice
:
0.00
,
//折扣
//折扣
totalDisc
:
"0.00"
,
totalDisc
:
0.00
,
goods
:
[
goods
:
[
]
]
},
},
...
@@ -180,7 +180,7 @@ Page({
...
@@ -180,7 +180,7 @@ Page({
let
pricetemp
=
0
;
let
pricetemp
=
0
;
goods
.
forEach
(
function
(
item
,
index
,
array
)
{
goods
.
forEach
(
function
(
item
,
index
,
array
)
{
quantitytemp
=
quantitytemp
+
item
.
quantity
quantitytemp
=
quantitytemp
+
item
.
quantity
pricetemp
=
pricetemp
+
item
.
price
pricetemp
=
pricetemp
+
item
.
price
*
item
.
quantity
})
})
this
.
setData
({
totalQuantity
:
quantitytemp
,
totalPrice
:
pricetemp
})
this
.
setData
({
totalQuantity
:
quantitytemp
,
totalPrice
:
pricetemp
})
//数据同步到前屏
//数据同步到前屏
...
...
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