Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
quantum-blocks-h5
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
ui
quantum-blocks-h5
Commits
3307c669
Commit
3307c669
authored
May 06, 2022
by
Xuguangxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 处理导航页面无法返回个人中心的问题
parent
240641a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
21 deletions
+17
-21
index.ts
app/web/page/activity/view/activity/index.ts
+17
-21
No files found.
app/web/page/activity/view/activity/index.ts
View file @
3307c669
...
...
@@ -312,7 +312,6 @@ export default class Activity extends Mixins(TransformStyleMixin, BottomNavStyle
newUrl
:
home
.
app
,
},
});
nativeBridge
=
null
;
}
else
if
(
isWxMp
)
{
mpBridge
=
new
MpBridge
();
const
jumpConfig
=
{
...
...
@@ -321,7 +320,6 @@ export default class Activity extends Mixins(TransformStyleMixin, BottomNavStyle
type
:
'
switchTab
'
};
mpBridge
.
openNewUrl
(
jumpConfig
);
mpBridge
=
null
;
}
else
{
let
url
=
home
.
h5
;
if
(
vccChannel
)
{
url
=
this
.
addOrEditUrlParams
(
url
,
'
vccChannel
'
,
vccChannel
);
}
...
...
@@ -338,7 +336,6 @@ export default class Activity extends Mixins(TransformStyleMixin, BottomNavStyle
newUrl
:
shopcart
.
app
,
},
});
nativeBridge
=
null
;
}
else
if
(
isWxMp
)
{
mpBridge
=
new
MpBridge
();
const
jumpConfig
=
{
...
...
@@ -347,7 +344,6 @@ export default class Activity extends Mixins(TransformStyleMixin, BottomNavStyle
type
:
'
switchTab
'
};
mpBridge
.
openNewUrl
(
jumpConfig
);
mpBridge
=
null
;
}
else
{
let
url
=
shopcart
.
h5
;
if
(
vccChannel
)
{
url
=
this
.
addOrEditUrlParams
(
url
,
'
vccChannel
'
,
vccChannel
);
}
...
...
@@ -364,7 +360,6 @@ export default class Activity extends Mixins(TransformStyleMixin, BottomNavStyle
newUrl
:
user
.
app
,
},
});
nativeBridge
=
null
;
}
else
if
(
isWxMp
)
{
mpBridge
=
new
MpBridge
();
const
jumpConfig
=
{
...
...
@@ -373,7 +368,6 @@ export default class Activity extends Mixins(TransformStyleMixin, BottomNavStyle
type
:
'
switchTab
'
};
mpBridge
.
openNewUrl
(
jumpConfig
);
mpBridge
=
null
;
}
else
{
let
url
=
user
.
h5
;
if
(
vccChannel
)
{
url
=
this
.
addOrEditUrlParams
(
url
,
'
vccChannel
'
,
vccChannel
);
}
...
...
@@ -384,22 +378,24 @@ export default class Activity extends Mixins(TransformStyleMixin, BottomNavStyle
return
;
}
else
{
if
(
isApp
)
{
nativeBridge
=
new
Bridge
();
nativeBridge
.
openNewUrl
({
data
:
{
// 需要打开的新链接
newUrl
:
`xyqb://openHttp?jumpUrl=
${
pageUrl
}
`
},
});
nativeBridge
=
null
;
// nativeBridge = new Bridge();
// nativeBridge.openNewUrl({
// data: {
// // 需要打开的新链接
// newUrl: `xyqb://openHttp?jumpUrl=${pageUrl}`
// },
// });
window
.
location
.
href
=
pageUrl
;
// nativeBridge = null;
}
else
if
(
isWxMp
)
{
mpBridge
=
new
MpBridge
();
const
jumpConfig
=
{
// 需要打开的新链接
newUrl
:
pageUrl
};
mpBridge
.
openNewUrl
(
jumpConfig
);
mpBridge
=
null
;
// mpBridge = new MpBridge();
// const jumpConfig = {
// // 需要打开的新链接
// newUrl: pageUrl
// };
// mpBridge.openNewUrl(jumpConfig);
// mpBridge = null;
window
.
location
.
href
=
pageUrl
;
}
else
{
let
url
=
pageUrl
;
if
(
vccChannel
)
{
url
=
this
.
addOrEditUrlParams
(
url
,
'
vccChannel
'
,
vccChannel
);
}
...
...
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