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
7435e495
Commit
7435e495
authored
Feb 13, 2020
by
pengguangpu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加本地存储支付数据方法;
parent
cec1724d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
11 deletions
+25
-11
balance.js
pages/balance/balance.js
+25
-11
No files found.
pages/balance/balance.js
View file @
7435e495
Page
({
data
:
{
goodsNum
:
0
,
payPrice
:
0.00
,
totalPrice
:
0.00
,
couponPrice
:
0.00
,
qrPayShow
:
false
,
goodsNum
:
0
,
payPrice
:
0.00
,
totalPrice
:
0.00
,
couponPrice
:
0.00
,
qrPayShow
:
false
,
},
onLoad
(
options
)
{
var
totalQuantity
=
options
.
totalQuantity
...
...
@@ -16,7 +16,7 @@ Page({
goodsNum
:
totalQuantity
,
})
}
//暂时没有优惠
if
(
totalPrice
!=
null
)
{
this
.
setData
({
...
...
@@ -27,16 +27,30 @@ Page({
},
facePay
(){
facePay
()
{
},
qrPay
(){
qrPay
()
{
//todo 这里增加唤起弹窗的逻辑
this
.
setData
({
qrPayShow
:
true
qrPayShow
:
true
});
},
/**
* 保存最近支付成功的相关信息,每次支付成功都需刷新
* @param paySuccessGoodsList 支付成功的商品列表信息
* @param paySuccessResponse 支付成功响应,即云中台返回响应中的data信息
*/
saveData
(
paySuccessGoodsList
,
paySuccessResponse
)
{
my
.
setStorageSync
({
key
:
'paySuccessGoodsList'
,
data
:
paySuccessGoodsList
});
my
.
setStorageSync
({
key
:
'paySuccessResponse'
,
data
:
paySuccessResponse
});
}
});
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