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
e321ba57
Commit
e321ba57
authored
Mar 13, 2020
by
pengguangpu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加指令发送失败时的重传逻辑;
parent
5ac3f75d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
paysuccess.js
pages/paysuccess/paysuccess.js
+9
-3
No files found.
pages/paysuccess/paysuccess.js
View file @
e321ba57
...
@@ -112,9 +112,9 @@ Page({
...
@@ -112,9 +112,9 @@ Page({
});
});
},
},
/**发送打印结果至后屏 */
printCallback
(
res
)
{
sendPrintResult2Back
(
printResult
)
{
//通知后屏打印结果
let
context
=
this
;
my
.
ix
.
sendBuddyMessage
({
my
.
ix
.
sendBuddyMessage
({
// 填入目标小程序的 AppID
// 填入目标小程序的 AppID
target
:
getApp
().
globalData
.
backScreenAppId
,
target
:
getApp
().
globalData
.
backScreenAppId
,
...
@@ -127,8 +127,14 @@ Page({
...
@@ -127,8 +127,14 @@ Page({
},
},
fail
:
(
res
)
=>
{
fail
:
(
res
)
=>
{
console
.
info
(
`sendBuddyMessage failed:
${
JSON
.
stringify
(
res
)}
`
);
console
.
info
(
`sendBuddyMessage failed:
${
JSON
.
stringify
(
res
)}
`
);
context
.
sendPrintResult2Back
(
printResult
);
}
}
});
});
},
printCallback
(
res
)
{
//通知后屏打印结果
this
.
sendPrintResult2Back
(
res
);
this
.
setData
({
this
.
setData
({
isShowPrinting
:
false
isShowPrinting
:
false
});
});
...
...
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