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
9cea1e5a
Commit
9cea1e5a
authored
Nov 27, 2021
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(index.ts): title屏蔽
parent
3363d736
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
7 deletions
+12
-7
index.ts
app/web/component/layout/activity/index.ts
+9
-5
index.vue
app/web/page/activity/component/BackTop/index.vue
+2
-1
layout.html
app/web/view/layout.html
+1
-1
No files found.
app/web/component/layout/activity/index.ts
View file @
9cea1e5a
...
@@ -9,6 +9,7 @@ import SaDirective from '@qg/citrus-ui/src/helper/directives/saTrack.directive.j
...
@@ -9,6 +9,7 @@ import SaDirective from '@qg/citrus-ui/src/helper/directives/saTrack.directive.j
import
config
from
'
@qg/citrus-ui/src/config/index.js
'
;
import
config
from
'
@qg/citrus-ui/src/config/index.js
'
;
import
{
EventBus
}
from
'
@qg/citrus-ui/src/helper/service/eventBus
'
;
import
{
EventBus
}
from
'
@qg/citrus-ui/src/helper/service/eventBus
'
;
import
{
getParameterByName
}
from
'
../../../service/utils.service
'
;
import
{
getParameterByName
}
from
'
../../../service/utils.service
'
;
import
localStorage
from
'
../../../service/localStorage.service
'
;
import
lazyload
from
'
@qg/cherry-ui/src/lazyload/index
'
;
import
lazyload
from
'
@qg/cherry-ui/src/lazyload/index
'
;
// 初始化sentry
// 初始化sentry
...
@@ -70,17 +71,20 @@ export default class Layout extends Vue {
...
@@ -70,17 +71,20 @@ export default class Layout extends Vue {
`<script src="https://activitystatic.lkbang.net/swiper/4.5.1/swiper.min.js"></script>`
,
`<script src="https://activitystatic.lkbang.net/swiper/4.5.1/swiper.min.js"></script>`
,
`<script src="https://activitystatic.lkbang.net/axios/0.19.2/axios.min.js"></script>`
`<script src="https://activitystatic.lkbang.net/axios/0.19.2/axios.min.js"></script>`
];
];
talosHost
:
string
=
config
.
kdspHost
;
talosHost
:
string
=
config
.
kdspHost
get
title
()
{
get
title
()
{
return
this
.
pageInfo
.
title
||
'
羊小咩
'
;
return
this
.
pageInfo
.
title
||
this
.
defaultTitle
()
;
}
}
get
description
()
{
get
description
()
{
return
this
.
pageInfo
.
description
||
'
羊小咩
'
;
return
this
.
pageInfo
.
description
||
this
.
defaultTitle
()
;
}
}
get
keywords
()
{
get
keywords
()
{
return
this
.
pageInfo
.
keywords
||
'
羊小咩
'
;
return
this
.
pageInfo
.
keywords
||
this
.
defaultTitle
();
}
defaultTitle
()
{
return
+
localStorage
.
get
(
'
tenantId
'
)
==
560671
?
'
羊小咩
'
:
this
.
defaultTitle
();
}
}
}
}
\ No newline at end of file
app/web/page/activity/component/BackTop/index.vue
View file @
9cea1e5a
...
@@ -161,12 +161,13 @@ export default {
...
@@ -161,12 +161,13 @@ export default {
const
{
coverImage
,
pageName
,
pageDescribe
,
shareCoverImage
}
=
this
.
pageInfo
;
const
{
coverImage
,
pageName
,
pageDescribe
,
shareCoverImage
}
=
this
.
pageInfo
;
const
link
=
`
${
window
.
location
.
origin
}${
window
.
location
.
pathname
}
`
;
const
link
=
`
${
window
.
location
.
origin
}${
window
.
location
.
pathname
}
`
;
this
.
link
=
link
;
this
.
link
=
link
;
const
defaultTitle
=
+
localStorage
.
get
(
'
tenantId
'
)
==
560671
?
'
羊小咩
'
:
'
活动页
'
;
this
.
shareInfo
=
{
this
.
shareInfo
=
{
event
:
"
showShareView
"
,
event
:
"
showShareView
"
,
data
:
{
data
:
{
platform
:
[
"
weChat
"
,
"
timeLine
"
],
platform
:
[
"
weChat
"
,
"
timeLine
"
],
shareDic
:
{
shareDic
:
{
title
:
pageName
||
'
羊小咩
'
,
title
:
pageName
||
defaultTitle
,
desc
:
pageDescribe
||
'
美好生活更从容
'
,
desc
:
pageDescribe
||
'
美好生活更从容
'
,
link
,
link
,
imgUrl
:
shareCoverImage
||
coverImage
// 图片地址
imgUrl
:
shareCoverImage
||
coverImage
// 图片地址
...
...
app/web/view/layout.html
View file @
9cea1e5a
<!DOCTYPE html>
<!DOCTYPE html>
<html
lang=
"en"
style=
"font-size: 37.5px;"
>
<html
lang=
"en"
style=
"font-size: 37.5px;"
>
<head>
<head>
<title>
羊小咩
</title>
<title>
活动页
</title>
<meta
name=
"keywords"
>
<meta
name=
"keywords"
>
<meta
name=
"description"
>
<meta
name=
"description"
>
<meta
http-equiv=
"content-type"
content=
"text/html;charset=utf-8"
>
<meta
http-equiv=
"content-type"
content=
"text/html;charset=utf-8"
>
...
...
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