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
6eb463d5
Commit
6eb463d5
authored
Feb 14, 2020
by
jiangjiantao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix
parent
44e222e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
landscan.js
pages/landscan/landscan.js
+1
-3
No files found.
pages/landscan/landscan.js
View file @
6eb463d5
...
@@ -177,17 +177,15 @@ Page({
...
@@ -177,17 +177,15 @@ Page({
//计算总价格 总数量 总优惠
//计算总价格 总数量 总优惠
calculation
(
goods
)
{
calculation
(
goods
)
{
if
(
null
!=
goods
&&
goods
.
length
>
0
)
{
let
quantitytemp
=
0
;
let
quantitytemp
=
0
;
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
})
})
this
.
setData
({
totalQuantity
:
quantitytemp
,
totalPrice
:
pricetem
+
''
})
this
.
setData
({
totalQuantity
:
quantitytemp
,
totalPrice
:
pricetem
p
+
''
})
//数据同步到前屏
//数据同步到前屏
this
.
sendGoodInfoToFront
()
this
.
sendGoodInfoToFront
()
}
},
},
//跳转到支付结果页面
//跳转到支付结果页面
...
...
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