Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
23cfa4e7
Commit
23cfa4e7
authored
Jun 11, 2020
by
程默
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加 webview加载异常提示
parent
68cb1d78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletions
+10
-1
src/pages/index/index.vue
+10
-1
No files found.
src/pages/index/index.vue
View file @
23cfa4e7
<
template
>
<div>
<web-view
:src=
"link+page+params"
@
message=
"getMessage"
></web-view>
<web-view
:src=
"link+page+params"
@
message=
"getMessage"
@
error=
"handleError"
@
load=
"handleLoad"
></web-view>
</div>
</
template
>
...
...
@@ -301,6 +301,15 @@ export default {
this
.
newWindowHref
=
res
.
target
.
data
[
len
].
shareImgUrl
;
console
.
log
(
"分享信息:"
,
this
.
shareLogoUrl
,
this
.
shareShopName
,
this
.
newWindowHref
);
},
//加载成功
handleLoad
(){
console
.
log
(
'网页加载成功'
);
},
handleError
(){
wx
.
showLoading
({
title
:
"网页加载失败 请右上角刷新"
});
},
checkPageUrl
(
val
)
{
for
(
let
i
=
0
;
i
<
this
.
sharePageList
.
length
;
i
++
)
{
if
(
val
.
indexOf
(
this
.
sharePageList
[
i
])
!=
-
1
)
{
...
...
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