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
9fb09a97
Commit
9fb09a97
authored
Jul 25, 2022
by
Xuguangxing
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat/finance-fix' into feat/v1.6-0621
parents
f1e58bfd
58d817b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
2 deletions
+29
-2
index.ts
app/web/page/activity/component/FreedomContainer/index.ts
+29
-2
No files found.
app/web/page/activity/component/FreedomContainer/index.ts
View file @
9fb09a97
...
...
@@ -2,8 +2,9 @@ import { Component, Prop, Vue, Mixins } from 'vue-property-decorator';
import
{
Action
,
Mutation
,
State
,
Getter
}
from
'
vuex-class
'
;
import
TransformStyleMixin
from
'
@/page/mixins/transformStyle.mixin
'
;
import
SaMixin
from
'
@/page/mixins/sa.mixin
'
;
import
localStorage
from
'
@/service/localStorage.service
'
;
// import { resizeDiv } from '@/service/utils.service';
import
{
locationHrefPatchDelay
,
getTokenFromApp
}
from
'
@qg/citrus-ui/src/helper/service/utils
'
;
import
{
locationHrefPatchDelay
,
getTokenFromApp
,
parseSearch
}
from
'
@qg/citrus-ui/src/helper/service/utils
'
;
import
saTrackMixins
from
'
@qg/citrus-ui/src/helper/mixins/saTrack.mixins
'
;
@
Component
({
name
:
'
FreedomContainer
'
})
...
...
@@ -18,13 +19,39 @@ export default class FreedomContainer extends Mixins(TransformStyleMixin, SaMixi
@
Prop
(
String
)
backgroundImage
;
clickEvent
()
{
console
.
log
(
this
.
childItem
);
let
needLogin
=
false
;
try
{
needLogin
=
this
.
childItem
.
props
.
needLogin
;
}
catch
(
err
)
{
console
.
log
(
err
);
}
if
(
this
.
childItem
.
props
.
isFinance
)
{
let
paramsStr
=
''
,
url
=
this
.
childItem
.
props
.
link
;
const
localStorageParams
=
[
'
token
'
,
'
tchannel
'
,
'
tenantId
'
,
'
appChannel
'
,
'
appName
'
];
const
params
=
parseSearch
(
this
.
childItem
.
props
.
link
);
localStorageParams
.
forEach
(
item
=>
{
let
key
=
item
;
if
(
item
==
'
token
'
)
{
key
=
'
vccToken
'
;
}
if
(
item
==
'
tchannel
'
)
{
key
=
'
vccChannel
'
;
}
const
itemVal
=
localStorage
.
get
(
key
);
params
[
item
]
=
itemVal
||
''
;
});
Object
.
keys
(
params
).
forEach
(
item
=>
{
paramsStr
+=
`&
${
item
}
=
${
params
[
item
]}
`
;
});
const
targetUrl
=
`
${
url
.
split
(
'
?
'
)[
0
]}
?
${
paramsStr
.
slice
(
1
)}
`
;
return
;
}
if
(
needLogin
)
{
getTokenFromApp
().
then
(
hasLogin
=>
{
if
(
hasLogin
)
{
...
...
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