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
9211a3a6
Commit
9211a3a6
authored
Mar 02, 2020
by
jiangjiantao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
直接收款不打印
parent
194b3a14
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
paysuccess.js
pages/paysuccess/paysuccess.js
+17
-0
No files found.
pages/paysuccess/paysuccess.js
View file @
9211a3a6
...
@@ -140,6 +140,16 @@ Page({
...
@@ -140,6 +140,16 @@ Page({
});
});
}
}
//数据是空代表是直接收款 不打印
if
(
null
==
this
.
data
.
goodsList
||
this
.
data
.
goodsList
.
length
==
0
){
printEnabledLocal
=
false
this
.
setData
({
isShowPrinting
:
false
,
printerStatus
:
"支付成功,期待下次光临!"
});
}
//开启后屏监听
//开启后屏监听
my
.
ix
.
onBuddyMessage
({
my
.
ix
.
onBuddyMessage
({
success
:
(
res
)
=>
{
success
:
(
res
)
=>
{
...
@@ -165,5 +175,12 @@ Page({
...
@@ -165,5 +175,12 @@ Page({
onHide
()
{
onHide
()
{
//关闭后屏监听
//关闭后屏监听
my
.
ix
.
offBuddyMessage
();
my
.
ix
.
offBuddyMessage
();
//清理支付数据
my
.
removeStorage
({
key
:
'paySuccessGoodsList'
,
success
:
function
()
{
}
});
}
}
});
});
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