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
37fcca44
Commit
37fcca44
authored
Feb 16, 2020
by
yanju
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
采纳回答
parent
cd087891
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
41 additions
and
24 deletions
+41
-24
components/pc/answerCard.vue
+4
-4
components/pc/comment/commentCard1.vue
+22
-17
pages/answer/release/index.vue
+7
-1
pages/blog/release/index.vue
+4
-1
pages/project/release/index.vue
+4
-1
No files found.
components/pc/answerCard.vue
View file @
37fcca44
...
@@ -21,10 +21,10 @@
...
@@ -21,10 +21,10 @@
{{
userNick
}}
<span>
·
</span>
{{
createTime
}}
{{
userNick
}}
<span>
·
</span>
{{
createTime
}}
</div>
</div>
<div
class=
"info-right"
>
<div
class=
"info-right"
>
<div
class=
"icon-box"
>
<!--
<div
class=
"icon-box"
>
--
>
<yun-icon
name=
"star"
size=
"10px"
vertical=
"middle"
color=
"#ccc"
></yun-icon
>
<!--
<yun-icon
name=
"star"
size=
"10px"
vertical=
"middle"
color=
"#ccc"
></yun-icon>
--
>
<span>
12
</span
>
<!--
<span>
12
</span>
--
>
</div
>
<!--
</div>
--
>
<div
class=
"icon-box"
>
<div
class=
"icon-box"
>
<yun-icon
name=
"view"
size=
"10px"
vertical=
"middle"
color=
"#ccc"
></yun-icon>
<yun-icon
name=
"view"
size=
"10px"
vertical=
"middle"
color=
"#ccc"
></yun-icon>
<span>
{{
viewNumber
}}
</span>
<span>
{{
viewNumber
}}
</span>
...
...
components/pc/comment/commentCard1.vue
View file @
37fcca44
...
@@ -5,13 +5,15 @@
...
@@ -5,13 +5,15 @@
<div
class=
"comment-card1"
v-if=
"type!=='dynamic'"
>
<div
class=
"comment-card1"
v-if=
"type!=='dynamic'"
>
<div
class=
"comment-card1__l"
>
<div
class=
"comment-card1__l"
>
<yun-avatar
:userId=
"info.userId"
:src=
"info.userAvatar"
></yun-avatar>
<yun-avatar
:userId=
"info.userId"
:src=
"info.userAvatar"
></yun-avatar>
<p
class=
"abs1"
v-if=
"info.replyStatus===1||solved===true"
>
已采纳
</p>
<p
class=
"abs2"
@
click=
"dataPostToSolve"
v-if=
"info.replyStatus===0&&questionUser===$store.state.userProfile.userId"
>
采纳
</p>
</div>
</div>
<div
class=
"comment-card1__r"
>
<div
class=
"comment-card1__r"
>
<div
class=
"header"
>
<div
class=
"header"
>
<h6>
{{
info
.
userNick
}}
</h6>
<h6>
{{
info
.
userNick
}}
</h6>
<!--
<p>
{{
floor
}}
楼
</p>
-->
<p
class=
"abs1"
v-if=
"info.replyStatus===1||solved===true"
>
已采纳
</p>
<p
class=
"abs2"
@
click=
"dataPostToSolve"
v-if=
"info.replyStatus===0&&questionUser===$store.state.userProfile.userId"
>
采纳该回答
</p>
<!--
<p>
{{
floor
}}
楼
</p>
-->
</div>
</div>
<p
class=
"comment-box"
v-if=
"type!=='question'"
>
{{
info
.
comment
}}
</p>
<p
class=
"comment-box"
v-if=
"type!=='question'"
>
{{
info
.
comment
}}
</p>
<p
class=
"comment-box"
v-if=
"type==='question'"
>
{{
info
.
reply
}}
</p>
<p
class=
"comment-box"
v-if=
"type==='question'"
>
{{
info
.
reply
}}
</p>
...
@@ -329,24 +331,12 @@
...
@@ -329,24 +331,12 @@
.comment-card1__l{
.comment-card1__l{
width
:
48
*$
length
;
width
:
48
*$
length
;
position
:
relative
;
position
:
relative
;
.abs1{
@extend
%cursorPointer;
position
:
absolute
;
top
:
58
*$
length
;
left
:
5
*$
length
;
@include
fontStyle(12,19,500,#75D098,left);
}
.abs2
{
@extend
%cursorPointer;
position
:
absolute
;
top
:
58
*$
length
;
left
:
10
*$
length
;
@include
fontStyle(12,19,500,#909399,left);
}
}
}
.comment-card1__r
{
.comment-card1__r
{
width
:
826
*$
length
;
width
:
826
*$
length
;
position
:
relative
;
.header{
.header{
@extend
%flex-row-spb;
@extend
%flex-row-spb;
h6{
h6{
...
@@ -355,6 +345,21 @@
...
@@ -355,6 +345,21 @@
p
{
p
{
@include
fontStyle(12,16,500,#999,left)
@include
fontStyle(12,16,500,#999,left)
}
}
.abs1
{
@extend
%cursorPointer;
position
:
absolute
;
top
:
0
*$
length
;
right
:
0
*$
length
;
@include
fontStyle(12,19,500,#75D098,left);
}
.abs2
{
@extend
%cursorPointer;
position
:
absolute
;
top
:
0
*$
length
;
right
:
0
*$
length
;
@include
fontStyle(12,19,500,#909399,left);
}
}
}
.comment-box
{
.comment-box
{
...
...
pages/answer/release/index.vue
View file @
37fcca44
...
@@ -73,7 +73,7 @@
...
@@ -73,7 +73,7 @@
import
SelectCard
from
"../../../components/pc/select/selectCard"
;
import
SelectCard
from
"../../../components/pc/select/selectCard"
;
import
config
from
"../../../action/config"
;
import
config
from
"../../../action/config"
;
export
default
{
export
default
{
async
asyncData
({
$axios
,
query
})
{
async
asyncData
({
$axios
,
query
,
redirect
})
{
const
questionListRes
=
await
$axios
.
$get
(
config
.
api
.
get
.
Question
.
myCreated
,
{
const
questionListRes
=
await
$axios
.
$get
(
config
.
api
.
get
.
Question
.
myCreated
,
{
params
:
{
params
:
{
page
:
1
,
page
:
1
,
...
@@ -82,6 +82,11 @@
...
@@ -82,6 +82,11 @@
});
});
const
questionClass
=
await
$axios
.
$get
(
config
.
api
.
get
.
QuestionCategory
.
list
);
const
questionClass
=
await
$axios
.
$get
(
config
.
api
.
get
.
QuestionCategory
.
list
);
let
classList
=
[];
let
classList
=
[];
if
(
questionListRes
.
code
!==
0
){
redirect
(
'/login'
);
}
questionClass
.
data
.
forEach
(
item
=>
{
questionClass
.
data
.
forEach
(
item
=>
{
classList
.
push
({
classList
.
push
({
tag
:
item
.
category
,
tag
:
item
.
category
,
...
@@ -89,6 +94,7 @@
...
@@ -89,6 +94,7 @@
})
})
});
});
if
(
query
.
hasOwnProperty
(
'id'
))
{
if
(
query
.
hasOwnProperty
(
'id'
))
{
const
response
=
await
$axios
.
$get
(
config
.
api
.
get
.
Question
.
detail
+
query
.
id
);
const
response
=
await
$axios
.
$get
(
config
.
api
.
get
.
Question
.
detail
+
query
.
id
);
return
{
return
{
...
...
pages/blog/release/index.vue
View file @
37fcca44
...
@@ -137,7 +137,7 @@ import SelectCard from "../../../components/pc/select/selectCard";
...
@@ -137,7 +137,7 @@ import SelectCard from "../../../components/pc/select/selectCard";
import
config
from
"../../../action/config"
;
import
config
from
"../../../action/config"
;
export
default
{
export
default
{
async
asyncData
({
$axios
,
query
})
{
async
asyncData
({
$axios
,
query
,
redirect
})
{
const
blogListRes
=
await
$axios
.
$get
(
config
.
api
.
get
.
Blog
.
myList
,
{
const
blogListRes
=
await
$axios
.
$get
(
config
.
api
.
get
.
Blog
.
myList
,
{
params
:
{
params
:
{
page
:
1
,
page
:
1
,
...
@@ -146,6 +146,9 @@ export default {
...
@@ -146,6 +146,9 @@ export default {
});
});
const
blogClassRes
=
await
$axios
.
$get
(
config
.
api
.
get
.
BlogCategory
.
list
);
const
blogClassRes
=
await
$axios
.
$get
(
config
.
api
.
get
.
BlogCategory
.
list
);
let
classList
=
[];
let
classList
=
[];
if
(
blogListRes
.
code
!==
0
){
redirect
(
'/login'
);
}
blogClassRes
.
data
.
forEach
(
item
=>
{
blogClassRes
.
data
.
forEach
(
item
=>
{
classList
.
push
({
classList
.
push
({
tag
:
item
.
category
,
tag
:
item
.
category
,
...
...
pages/project/release/index.vue
View file @
37fcca44
...
@@ -164,7 +164,7 @@ import SelectCard from "../../../components/pc/select/selectCard";
...
@@ -164,7 +164,7 @@ import SelectCard from "../../../components/pc/select/selectCard";
import
config
from
'../../../action/config'
;
import
config
from
'../../../action/config'
;
export
default
{
export
default
{
async
asyncData
({
$axios
,
query
})
{
async
asyncData
({
$axios
,
query
,
redirect
})
{
const
projectListRes
=
await
$axios
.
$get
(
config
.
api
.
get
.
Project
.
myList
,
{
const
projectListRes
=
await
$axios
.
$get
(
config
.
api
.
get
.
Project
.
myList
,
{
params
:
{
params
:
{
page
:
1
,
page
:
1
,
...
@@ -173,6 +173,9 @@ export default {
...
@@ -173,6 +173,9 @@ export default {
});
});
const
projectCategory
=
await
$axios
.
$get
(
config
.
api
.
get
.
ProjectCategory
.
list
);
const
projectCategory
=
await
$axios
.
$get
(
config
.
api
.
get
.
ProjectCategory
.
list
);
let
classList
=
[];
let
classList
=
[];
if
(
projectListRes
.
code
!==
0
){
redirect
(
'/login'
);
}
projectCategory
.
data
.
forEach
(
item
=>
{
projectCategory
.
data
.
forEach
(
item
=>
{
classList
.
push
({
classList
.
push
({
tag
:
item
.
category
,
tag
:
item
.
category
,
...
...
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