Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 328b11ce
authored
Feb 17, 2025
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
e91e0cf0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
pages/webView/webView.js
pages/webView/webView.js
View file @
328b11c
...
@@ -4,7 +4,8 @@ Page({
...
@@ -4,7 +4,8 @@ Page({
* 页面的初始数据
* 页面的初始数据
*/
*/
data
:
{
data
:
{
flag
:
true
flag
:
true
,
isH5Bind
:
false
},
},
getParams
(
str
)
{
getParams
(
str
)
{
let
params
=
str
.
split
(
'?'
)
let
params
=
str
.
split
(
'?'
)
...
@@ -78,6 +79,9 @@ Page({
...
@@ -78,6 +79,9 @@ Page({
if
(
data
)
{
if
(
data
)
{
const
eventChannel
=
this
.
getOpenerEventChannel
();
const
eventChannel
=
this
.
getOpenerEventChannel
();
eventChannel
.
emit
(
'webViewMessage'
,
data
[
0
]);
// 发送数据
eventChannel
.
emit
(
'webViewMessage'
,
data
[
0
]);
// 发送数据
this
.
setData
({
isH5Bind
:
true
})
}
}
},
},
...
@@ -94,7 +98,9 @@ Page({
...
@@ -94,7 +98,9 @@ Page({
// 中邮上传延保协议页面
// 中邮上传延保协议页面
if
(
url
.
includes
(
'zyUpload'
))
{
if
(
url
.
includes
(
'zyUpload'
))
{
const
eventChannel
=
this
.
getOpenerEventChannel
();
const
eventChannel
=
this
.
getOpenerEventChannel
();
eventChannel
.
emit
(
'webViewMessage'
,
'cancel'
);
// 发送数据
if
(
!
this
.
data
.
isH5Bind
)
{
eventChannel
.
emit
(
'webViewMessage'
,
'cancel'
);
// 发送数据
}
}
}
},
},
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment