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
df4af4c4
Commit
df4af4c4
authored
Mar 03, 2020
by
pengguangpu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付成功页添加返回按钮监听;
parent
51b678c9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
2 deletions
+27
-2
app.json
app.json
+1
-1
actioncmd.js
const/actioncmd.js
+4
-1
paysuccess.js
pages/paysuccess/paysuccess.js
+22
-0
No files found.
app.json
View file @
df4af4c4
{
"pages"
:
[
"pages/paysuccess/paysuccess"
,
"pages/login/login"
,
"pages/paysuccess/paysuccess"
,
"pages/home/home"
,
"pages/balance/balance"
,
"pages/scan/scan"
...
...
const/actioncmd.js
View file @
df4af4c4
...
...
@@ -81,4 +81,7 @@ export const ACTION_VERIFY_SUCCESS = "ACTION_VERIFY_SUCCESS";
export
const
ACTION_VERIFY_FAILED
=
"ACTION_VERIFY_FAILED"
;
//退出事件
export
const
ACTION_QUIT
=
"ACTION_QUIT"
;
\ No newline at end of file
export
const
ACTION_QUIT
=
"ACTION_QUIT"
;
//支付成功页点击返回按钮
export
const
ACTION_PAYSUCCESS_PAGE_BACK
=
"ACTION_PAYSUCCESS_PAGE_BACK"
;
\ No newline at end of file
pages/paysuccess/paysuccess.js
View file @
df4af4c4
import
{
ACTION_PRINT_RESULT
}
from
'../../const/actioncmd'
import
{
ACTION_REPRINT
}
from
'../../const/actioncmd'
import
{
ACTION_GO_HOME
}
from
'../../const/actioncmd'
import
{
ACTION_PAYSUCCESS_PAGE_BACK
}
from
'../../const/actioncmd'
Page
({
//回退到上一个页面
events
:
{
onBack
(
e
)
{
console
.
log
(
'onBack触发'
);
my
.
ix
.
sendBuddyMessage
({
// 填入目标小程序的 AppID
target
:
getApp
().
globalData
.
backScreenAppId
,
data
:
{
action
:
ACTION_PAYSUCCESS_PAGE_BACK
,
data
:
null
},
success
:
(
res
)
=>
{
e
.
preventDefault
();
},
fail
:
(
res
)
=>
{
console
.
info
(
`sendBuddyMessage failed:
${
JSON
.
stringify
(
res
)}
`
);
}
});
}
},
data
:
{
orderPriceYuan
:
"--.--"
,
orderPriceFen
:
0
,
...
...
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