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
4e9e4259
Commit
4e9e4259
authored
Mar 02, 2020
by
jiangjiantao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix
parent
4ef72b74
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
index.js
pages/index/index.js
+7
-0
No files found.
pages/index/index.js
View file @
4e9e4259
...
@@ -918,11 +918,18 @@ Page({
...
@@ -918,11 +918,18 @@ Page({
quantitytemp
=
quantitytemp
+
item
.
quantity
quantitytemp
=
quantitytemp
+
item
.
quantity
pricetemp
=
pricetemp
+
item
.
price
*
item
.
quantity
pricetemp
=
pricetemp
+
item
.
price
*
item
.
quantity
})
})
pricetemp
=
this
.
fen2Yuan
(
pricetemp
)
this
.
setData
({
totalQuantity
:
quantitytemp
,
totalPrice
:
pricetemp
})
this
.
setData
({
totalQuantity
:
quantitytemp
,
totalPrice
:
pricetemp
})
//数据同步到前屏
//数据同步到前屏
this
.
sendGoodInfoToFront
()
this
.
sendGoodInfoToFront
()
},
},
fen2Yuan
(
num
)
{
if
(
typeof
num
!==
"number"
||
isNaN
(
num
))
return
null
;
return
(
num
/
100
).
toFixed
(
2
);
},
sendMemberLogin
(
result
)
{
sendMemberLogin
(
result
)
{
...
...
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