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
047ba83a
Commit
047ba83a
authored
Oct 28, 2022
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ios重新进入不触发onload处理
parent
8cd8bbf2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
src/pages/wxArticle/index.vue
+15
-3
No files found.
src/pages/wxArticle/index.vue
View file @
047ba83a
...
...
@@ -4,7 +4,7 @@
<
template
>
<div>
<web-view
:src=
"
l
ink"
:src=
"
useL
ink"
@
message=
"getMessage"
@
error=
"handleError"
@
load=
"handleLoad"
...
...
@@ -51,6 +51,7 @@ export default {
data
()
{
return
{
link
:
""
,
useLink
:
""
,
shareShopName
:
""
,
//分享名称
shareLogoUrl
:
""
,
//分享图片url
newWindowHref
:
""
,
//分享页面url
...
...
@@ -139,6 +140,12 @@ export default {
}
}
},
onShow
()
{
console
.
log
(
this
.
link
,
'------------154'
)
setTimeout
(()
=>
{
console
.
log
(
this
.
link
,
'------------154---2'
)
},
1000
);
},
async
onShareAppMessage
(
res
)
{
console
.
log
(
res
,
'----------------------onShareAppMessage---------res'
)
let
url
=
""
;
...
...
@@ -192,13 +199,17 @@ export default {
},
watch
:{
link
()
{
console
.
log
(
this
.
link
,
'-----------------195'
)
console
.
log
(
this
.
link
,
this
.
link
.
includes
(
'$%7Btoken%7D'
),
wx
.
getStorageSync
(
"sessionid"
),
'-------watch----link'
)
if
(
this
.
link
.
includes
(
'$%7Btoken%7D'
)
&&
wx
.
getStorageSync
(
"sessionid"
))
{
this
.
getSsoBcakUrl
(
decodeURIComponent
(
this
.
link
));
}
this
.
useLink
=
this
.
link
;
},
},
methods
:
{
setLink
(
data
)
{
this
.
link
=
data
;
console
.
log
(
this
.
l
ink
,
89999999
)
console
.
log
(
this
.
useL
ink
,
89999999
)
},
getSsoBcakUrl
(
link
)
{
console
.
log
(
link
,
'--------------------------------------------163-----link'
)
...
...
@@ -215,6 +226,7 @@ export default {
if
(
res
.
data
.
code
==
"200"
)
{
console
.
log
(
'14888888'
,
res
)
this
.
setLink
(
res
.
data
.
data
);
}
else
{
wx
.
showToast
({
title
:
res
.
data
.
msg
,
icon
:
"none"
});
if
(
res
.
data
.
msg
==
"登录人信息错误"
)
{
...
...
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