Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
techbook
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
front-end-dev
techbook
Commits
0dba07f2
Commit
0dba07f2
authored
Oct 26, 2020
by
zhangyanni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
a5f11654
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
topicCommentCmpt.vue
src/components/mobile/topicCommentCmpt.vue
+2
-1
list.vue
src/views/mobile/topic/list.vue
+8
-3
No files found.
src/components/mobile/topicCommentCmpt.vue
View file @
0dba07f2
...
...
@@ -108,10 +108,11 @@
replyBy
:
this
.
isDeepReply
?
this
.
replyCreatedBy
:
undefined
,
projectIds
:
data
.
projectIds
.
join
(
","
)
};
let
topicIdVal
=
data
.
topicId
?
data
.
topicId
:
null
;
api
.
publishTopicDiscussAxios
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
==
0
){
if
(
res
.
msgCode
==
0
||
res
.
msgCode
==
null
){
this
.
$emit
(
"showCommentVisible"
,
res
.
result
);
this
.
$emit
(
"showCommentVisible"
,
res
.
result
,
topicIdVal
);
this
.
isEmpty
=
true
;
}
else
{
this
.
$toast
({
...
...
src/views/mobile/topic/list.vue
View file @
0dba07f2
...
...
@@ -490,9 +490,9 @@
},
//隐藏评论
showCommentVisible
(
data
)
{
showCommentVisible
(
data
,
topicId
)
{
this
.
commentVisible
=
false
;
this
.
isHasGiveIntegralTopic
(
"ITV001"
,
5
,
data
.
id
);
this
.
isHasGiveIntegralTopic
(
"ITV001"
,
5
,
data
.
id
,
topicId
);
},
//用户是否在评论
...
...
@@ -550,7 +550,7 @@
},
//是否弹积分
isHasGiveIntegralTopic
(
data
,
flag
,
id
){
isHasGiveIntegralTopic
(
data
,
flag
,
id
,
topicId
){
//ITV005点赞 //ITV001参与讨论 //ITV004分享
var
that
=
this
,
params
=
{
integralCode
:
data
,
...
...
@@ -563,6 +563,11 @@
if
(
res
.
result
>
0
){
this
.
integral
=
res
.
result
;
this
.
getIntegralVisible
=
true
;
if
(
topicId
){
setTimeout
(
function
(){
that
.
$router
.
push
({
path
:
"/topicDetails"
,
query
:{
id
:
topicId
}})
},
500
)
}
}
}
else
{
this
.
$toast
(
res
.
msg
);
...
...
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