Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
beyond-clouds-front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
beyond-clouds-front
Commits
ed8d526b
Commit
ed8d526b
authored
Feb 14, 2020
by
yanju
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改项目卡片
parent
9314cbaa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
1 deletions
+31
-1
components/pc/projectCard.vue
+27
-0
components/pc/socialContactCard.vue
+4
-1
No files found.
components/pc/projectCard.vue
View file @
ed8d526b
...
...
@@ -137,6 +137,33 @@
this
.
cardUser
=
info
.
author
;
this
.
cardType
=
1
;
}
if
(
this
.
info
.
contentId
){
this
.
cardName
=
info
.
title
;
this
.
cardIntro
=
info
.
subTitle
;
this
.
cardId
=
info
.
contentId
;
this
.
src
=
info
.
cover
;
this
.
cardTime
=
dateConvert
(
info
.
createTime
);
this
.
cardUser
=
info
.
author
;
this
.
cardType
=
3
;
}
if
(
this
.
info
.
itemId
&&
this
.
info
.
itemType
===
"BLOG"
){
this
.
cardName
=
info
.
title
;
this
.
cardIntro
=
info
.
description
;
this
.
cardId
=
info
.
itemId
;
this
.
src
=
info
.
cover
;
this
.
cardTime
=
dateConvert
(
info
.
createTime
);
this
.
cardUser
=
info
.
author
;
this
.
cardType
=
2
;
}
if
(
this
.
info
.
itemId
&&
this
.
info
.
itemType
===
"PROJECT"
){
this
.
cardName
=
info
.
title
;
this
.
cardIntro
=
info
.
description
;
this
.
cardId
=
info
.
itemId
;
this
.
src
=
info
.
cover
;
this
.
cardTime
=
dateConvert
(
info
.
createTime
);
this
.
cardUser
=
info
.
author
;
this
.
cardType
=
2
;
}
},
showAlert
(
id
){
...
...
components/pc/socialContactCard.vue
View file @
ed8d526b
...
...
@@ -189,13 +189,16 @@
let
indexArr
=
[];
let
html
=
``
;
let
reg
=
/
(
#
([^
#
]
+
?)
#
)
/
;
for
(
let
i
=
0
;
i
<
content
.
length
;
i
++
)
{
let
index
=
content
.
indexOf
(
"#"
,
i
);
if
(
index
!==-
1
&&
index
===
i
){
indexArr
.
push
(
index
)
}
}
if
(
indexArr
.
length
>
=
1
){
if
(
indexArr
.
length
>
1
){
for
(
let
i
=
0
;
i
<
indexArr
.
length
-
1
;
i
+=
2
)
{
let
firstP
=
i
>
0
?
indexArr
[
i
-
1
]
+
1
:
0
;
html
=
html
+
`
${
content
.
substring
(
firstP
,
indexArr
[
i
])}
<a href="/topic/detail/
${
content
.
substring
(
indexArr
[
i
]
+
1
,
indexArr
[
i
+
1
])}
">
${
content
.
substring
(
indexArr
[
i
],
indexArr
[
i
+
1
]
+
1
)}
</a>`
...
...
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