Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
X
xzf_uniapp-wechat-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李智书
xzf_uniapp-wechat-web
Commits
f6a05fdf
Commit
f6a05fdf
authored
Sep 18, 2024
by
袁玲利
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付宝消费报告返回事件
parent
7f934cbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
15 deletions
+7
-15
src/pages/SchoolReport/SchoolReport.vue
src/pages/SchoolReport/SchoolReport.vue
+7
-15
No files found.
src/pages/SchoolReport/SchoolReport.vue
View file @
f6a05fdf
...
...
@@ -1521,21 +1521,6 @@
</template>
<
script
>
// 在H5页面中
if
(
window
.
AlipayJSBridge
)
{
AlipayJSBridge
.
call
(
"
onBackPressed
"
,
{
// 回调函数
onBackPressed
:
function
()
{
// 处理返回事件
console
.
log
(
"
用户点击了返回按钮
"
);
my
.
navigateTo
({
url
:
"
/pages/home/home
"
,
});
// 可以选择直接关闭当前页面
// AlipayJSBridge.call('closeWebview');
},
});
}
import
{
requestPost
}
from
"
../ApplyConsumption/common/request.js
"
;
var
gHost
=
"
https://
"
+
window
.
location
.
host
;
var
envVersion
=
"
release
"
;
...
...
@@ -4616,6 +4601,13 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
this
.
imageDialogShow
=
true
;
},
},
onUnload
(){
if
(
this
.
from
==
'
alipay
'
){
my
.
navigateTo
({
url
:
"
/pages/home/home
"
,
});
}
}
};
</
script
>
...
...
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