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
aac041b8
Commit
aac041b8
authored
Jul 30, 2020
by
anxixi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
富文本图片上传修改
parent
9d5b4294
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
5 deletions
+12
-5
api.js
src/api/api.js
+2
-2
richtext.vue
src/views/publishactivity/richtext.vue
+1
-0
topicdetail.vue
src/views/topicpage/topicdetail.vue
+9
-3
No files found.
src/api/api.js
View file @
aac041b8
...
...
@@ -371,7 +371,7 @@ export default {
fetchPostImg
(
url
,
params
,
method
=
'POST'
)
{
var
langVal
=
url
.
indexOf
(
'?'
)
==
-
1
?
'?lang='
+
lang
:
'&lang='
+
lang
,
_this
=
this
;
if
(
publicFun
.
getCookie
(
"userInfo"
))
{
//
if(publicFun.getCookie("userInfo")) {
return
new
Promise
((
resolve
,
reject
)
=>
{
axios
({
method
:
method
,
...
...
@@ -400,7 +400,7 @@ export default {
}
})
})
}
//
}
},
fetchUploadImg
(
url
,
params
,
method
=
'POST'
)
{
...
...
src/views/publishactivity/richtext.vue
View file @
aac041b8
...
...
@@ -44,6 +44,7 @@
if
(
response
.
code
==
0
)
{
insert
(
response
.
result
.
fileUpload
)
}
else
{
this
.
$emit
(
'dataEvent_img'
,
true
);
this
.
$message
.
error
(
response
.
msgCode
);
}
})
...
...
src/views/topicpage/topicdetail.vue
View file @
aac041b8
...
...
@@ -75,7 +75,7 @@
<!-- maxlength="5000"-->
<!-- show-word-limit-->
<!-- >
</el-input>
-->
<rich-text
@
dataEvent=
"statedata"
:istopic=
"richstate"
:channelIntroduction=
"discussContent"
></rich-text>
<rich-text
@
dataEvent=
"statedata"
@
dataEvent_img=
"imglose"
:istopic=
"richstate"
:channelIntroduction=
"discussContent"
></rich-text>
<div
style=
"line-height: 55px;"
>
<div
class=
"gendisplay"
>
<div
class=
"gendisplay"
style=
"width: 400px;"
>
...
...
@@ -198,8 +198,8 @@
</div>
<div>
<div
style=
"margin: 15px 0;color:#1A1A1E;line-height: 24px;"
@
click=
"eventtopiccontent($event)"
>
<span
v-if=
"item.alltext"
v-html=
"
publicFun.analyzeEmoji(item.discussContentlin+(item.discussContentlin.length>140?'...':''
))"
></span>
<span
v-else
v-html=
"publicFun.analyzeEmoji(item.discussContentconst)"
></span>
<span
v-if=
"item.alltext"
v-html=
"
item.pcState==1?(item.discussContentlin+(item.discussContentlin.length>140?'...':'')):publicFun.analyzeEmoji((item.discussContentlin+(item.discussContentlin.length>140?'...':'')
))"
></span>
<span
v-else
v-html=
"
item.pcState==1?item.discussContentconst:
publicFun.analyzeEmoji(item.discussContentconst)"
></span>
<i
v-if=
"publicFun.getTextInRichtext(item.discussContentconst).length>140"
@
click=
"item.alltext = !item.alltext"
...
...
@@ -812,6 +812,12 @@
return
false
;
});
},
imglose
(){
if
(
!
this
.
publicFun
.
getCookie
(
"userInfo"
)){
this
.
$refs
.
login
.
isexpertVisible
();
return
}
},
//添加话题讨论
pushdiscuss
(){
if
(
!
this
.
publicFun
.
getCookie
(
"userInfo"
)){
...
...
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