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
1883bfbf
Commit
1883bfbf
authored
May 06, 2022
by
Xuguangxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 优化跳转链接判断代码
parent
3307c669
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
10 deletions
+15
-10
index.ts
app/web/page/activity/view/activity/index.ts
+15
-10
No files found.
app/web/page/activity/view/activity/index.ts
View file @
1883bfbf
...
@@ -377,7 +377,13 @@ export default class Activity extends Mixins(TransformStyleMixin, BottomNavStyle
...
@@ -377,7 +377,13 @@ export default class Activity extends Mixins(TransformStyleMixin, BottomNavStyle
}
}
return
;
return
;
}
else
{
}
else
{
if
(
isApp
)
{
let
url
=
pageUrl
;
if
(
!
isApp
&&
!
isWxMp
)
{
if
(
vccChannel
)
{
url
=
this
.
addOrEditUrlParams
(
url
,
'
vccChannel
'
,
vccChannel
);
}
if
(
fromHost
)
{
url
=
this
.
addOrEditUrlParams
(
url
,
'
fromHost
'
,
fromHost
);
}
}
window
.
location
.
href
=
pageUrl
;
// if (isApp) {
// nativeBridge = new Bridge();
// nativeBridge = new Bridge();
// nativeBridge.openNewUrl({
// nativeBridge.openNewUrl({
// data: {
// data: {
...
@@ -385,9 +391,9 @@ export default class Activity extends Mixins(TransformStyleMixin, BottomNavStyle
...
@@ -385,9 +391,9 @@ export default class Activity extends Mixins(TransformStyleMixin, BottomNavStyle
// newUrl: `xyqb://openHttp?jumpUrl=${pageUrl}`
// newUrl: `xyqb://openHttp?jumpUrl=${pageUrl}`
// },
// },
// });
// });
window
.
location
.
href
=
pageUrl
;
//
window.location.href = pageUrl;
// nativeBridge = null;
// nativeBridge = null;
}
else
if
(
isWxMp
)
{
//
} else if (isWxMp) {
// mpBridge = new MpBridge();
// mpBridge = new MpBridge();
// const jumpConfig = {
// const jumpConfig = {
// // 需要打开的新链接
// // 需要打开的新链接
...
@@ -395,13 +401,12 @@ export default class Activity extends Mixins(TransformStyleMixin, BottomNavStyle
...
@@ -395,13 +401,12 @@ export default class Activity extends Mixins(TransformStyleMixin, BottomNavStyle
// };
// };
// mpBridge.openNewUrl(jumpConfig);
// mpBridge.openNewUrl(jumpConfig);
// mpBridge = null;
// mpBridge = null;
window
.
location
.
href
=
pageUrl
;
// window.location.href = pageUrl;
}
else
{
// } else {
let
url
=
pageUrl
;
// if (vccChannel) { url = this.addOrEditUrlParams(url, 'vccChannel', vccChannel); }
if
(
vccChannel
)
{
url
=
this
.
addOrEditUrlParams
(
url
,
'
vccChannel
'
,
vccChannel
);
}
// if (fromHost) { url = this.addOrEditUrlParams(url, 'fromHost', fromHost); }
if
(
fromHost
)
{
url
=
this
.
addOrEditUrlParams
(
url
,
'
fromHost
'
,
fromHost
);
}
// window.location.href = url;
window
.
location
.
href
=
url
;
// }
}
}
}
}
}
...
...
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