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
dfdf1a77
Commit
dfdf1a77
authored
Feb 27, 2020
by
jiangjiantao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
回退页面
parent
e3989226
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletion
+23
-1
actioncmd.js
const/actioncmd.js
+4
-1
balance.js
pages/balance/balance.js
+19
-0
No files found.
const/actioncmd.js
View file @
dfdf1a77
...
...
@@ -63,3 +63,6 @@ export const ACTION_SEND_SEL_AD = "ACTION_SEND_SEL_AD";
//系统设置
export
const
ACTION_SYSTEM_SETTING
=
"ACTION_SYSTEM_SETTING"
;
//结算页面back到扫商品页面
export
const
ACTION_BALANCE_BACK_GOODS
=
"ACTION_BALANCE_BACK_GOODS"
;
pages/balance/balance.js
View file @
dfdf1a77
...
...
@@ -3,6 +3,7 @@ var payUtils = require("../../utils/payUtils.js");
import
{
ACTION_GO_SCAN
,
ACTION_GO_HOME
}
from
'../../const/actioncmd'
import
{
ACTION_ON_PAY_SUCCESS
}
from
'../../const/actioncmd'
import
{
ACTION_ON_PAY_FAILED
}
from
'../../const/actioncmd'
import
{
ACTION_BALANCE_BACK_GOODS
}
from
'../../const/actioncmd'
Page
({
data
:
{
...
...
@@ -16,6 +17,24 @@ Page({
isPaying
:
false
,
},
//回退到上一个页面
onBack
(
e
)
{
my
.
ix
.
sendBuddyMessage
({
// 填入目标小程序的 AppID
target
:
getApp
().
globalData
.
backScreenAppId
,
data
:
{
action
:
ACTION_BALANCE_BACK_GOODS
,
data
:
null
},
success
:
(
res
)
=>
{
e
.
preventDefault
();
},
fail
:
(
res
)
=>
{
console
.
info
(
`sendBuddyMessage failed:
${
JSON
.
stringify
(
res
)}
`
);
}
});
},
onReady
()
{
if
(
my
.
canIUse
(
'hideBackHome'
))
{
my
.
hideBackHome
();
...
...
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