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
fa3ce0fb
Commit
fa3ce0fb
authored
Jul 26, 2022
by
Xuguangxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 处理自由容器中文本链接和容器链接跳转问题
parent
11290ba1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
index.ts
app/web/page/activity/component/FreedomContainer/index.ts
+5
-5
index.vue
app/web/page/activity/component/FreedomContainer/index.vue
+1
-1
No files found.
app/web/page/activity/component/FreedomContainer/index.ts
View file @
fa3ce0fb
...
@@ -18,15 +18,15 @@ export default class FreedomContainer extends Mixins(TransformStyleMixin, SaMixi
...
@@ -18,15 +18,15 @@ export default class FreedomContainer extends Mixins(TransformStyleMixin, SaMixi
@
Prop
(
String
)
link
;
@
Prop
(
String
)
link
;
@
Prop
(
String
)
backgroundImage
;
@
Prop
(
String
)
backgroundImage
;
clickEvent
()
{
clickEvent
(
e
)
{
let
needLogin
=
false
;
let
needLogin
=
false
;
try
{
try
{
needLogin
=
this
.
childItem
.
props
.
needLogin
;
needLogin
=
this
.
childItem
.
props
?
false
:
this
.
childItem
.
props
.
needLogin
;
}
catch
(
err
)
{
}
catch
(
err
)
{
console
.
log
(
err
);
console
.
log
(
err
);
}
}
if
(
this
.
childItem
.
props
.
isFinance
)
{
if
(
this
.
childItem
.
props
&&
this
.
childItem
.
props
.
isFinance
)
{
let
paramsStr
=
''
,
url
=
this
.
childItem
.
props
.
link
;
let
paramsStr
=
''
,
url
=
this
.
link
;
const
localStorageParams
=
[
const
localStorageParams
=
[
'
token
'
,
'
token
'
,
'
tchannel
'
,
'
tchannel
'
,
...
@@ -34,7 +34,7 @@ export default class FreedomContainer extends Mixins(TransformStyleMixin, SaMixi
...
@@ -34,7 +34,7 @@ export default class FreedomContainer extends Mixins(TransformStyleMixin, SaMixi
'
appChannel
'
,
'
appChannel
'
,
'
appName
'
'
appName
'
];
];
const
params
=
parseSearch
(
this
.
childItem
.
props
.
link
);
const
params
=
parseSearch
(
this
.
link
);
localStorageParams
.
forEach
(
item
=>
{
localStorageParams
.
forEach
(
item
=>
{
let
key
=
item
;
let
key
=
item
;
if
(
item
==
'
token
'
)
{
if
(
item
==
'
token
'
)
{
...
...
app/web/page/activity/component/FreedomContainer/index.vue
View file @
fa3ce0fb
<
template
>
<
template
>
<div
class=
"freedom"
v-track.banClick=
"
{link}" @click="clickEvent">
<div
class=
"freedom"
v-track.banClick=
"
{link}" @click
.stop
="clickEvent">
<div
class=
"freedom-body"
>
<div
class=
"freedom-body"
>
<!--
<video
width=
"100%"
ref=
"videoBackground"
height=
"auto"
style=
"z-index: -10; osition: absolute; top: 0; left: 0"
v-if=
"showVideo && childItem.props.freedomVideo"
:src=
"childItem.props.freedomVideo"
playsinline
autoplay
loop
muted
/>
-->
<!--
<video
width=
"100%"
ref=
"videoBackground"
height=
"auto"
style=
"z-index: -10; osition: absolute; top: 0; left: 0"
v-if=
"showVideo && childItem.props.freedomVideo"
:src=
"childItem.props.freedomVideo"
playsinline
autoplay
loop
muted
/>
-->
<component
:class=
"['freedom-body-item',
{ 'Fb-item_selected': curChildIndex === index }]" v-for="(item, index) in childItem.child" :style="transformStyle(item.commonStyle, 'container')" :is="item.name" :key="index" :sa-info="getSaInfo(item)" v-bind="item.props">
</component>
<component
:class=
"['freedom-body-item',
{ 'Fb-item_selected': curChildIndex === index }]" v-for="(item, index) in childItem.child" :style="transformStyle(item.commonStyle, 'container')" :is="item.name" :key="index" :sa-info="getSaInfo(item)" v-bind="item.props">
</component>
...
...
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