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
594a2435
Commit
594a2435
authored
Feb 27, 2020
by
pengguangpu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复日结相关bug;
parent
b250f27d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
index.js
pages/index/index.js
+5
-3
No files found.
pages/index/index.js
View file @
594a2435
...
...
@@ -373,12 +373,11 @@ Page({
var
printDayCheckResult
=
res
.
data
;
if
(
printDayCheckResult
.
code
==
0
)
{
//打印成功
my
.
showToast
({
content
:
"打印成功"
}
);
context
.
showToast
(
'打印成功'
);
}
else
{
//打印失败
my
.
showToast
({
content
:
"打印失败"
}
);
context
.
showToast
(
'打印失败'
);
}
context
.
goPage
(
'landscan'
);
}
else
if
(
res
.
action
==
ACTION_VERIFY_SUCCESS
)
{
//核验成功
//跳转到成功页面
...
...
@@ -592,6 +591,7 @@ Page({
/**日结 */
onHomeDayCheckClicked
()
{
//发送打印日结订单到前屏
let
context
=
this
;
my
.
ix
.
sendBuddyMessage
({
// 填入目标小程序的 AppID
target
:
getApp
().
globalData
.
frontScreenAppId
,
...
...
@@ -600,10 +600,12 @@ Page({
data
:
null
},
success
:
(
res
)
=>
{
context
.
showToast
(
'已发送日结打印请求...'
);
console
.
info
(
`sendBuddyMessage success:
${
JSON
.
stringify
(
res
)}
`
);
},
fail
:
(
res
)
=>
{
context
.
showToast
(
'发送失败'
);
console
.
info
(
`sendBuddyMessage failed:
${
JSON
.
stringify
(
res
)}
`
);
}
});
...
...
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