Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
dj-scrm-wx-work-attachment-psd
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 30376e8a
authored
Jun 15, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
32f9f907
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
18 deletions
src/components/PaperDialog.vue
src/views/Chat/paper.vue
src/components/PaperDialog.vue
View file @
30376e8
...
...
@@ -13,7 +13,7 @@
>
<img
src=
"https://img01.glsx.com.cn/weapp/resource/scrm-mobile/psd/close.png"
>
</div>
<template
v-if=
"
text
"
>
<template
v-if=
"
data.text && data.pushType == 5
"
>
<div
class=
"text-box"
@
click
.
stop
...
...
@@ -21,7 +21,7 @@
<div
class=
"text-title flex"
>
文字喜报
</div>
<div
class=
"content"
v-html=
"text"
v-html=
"
data.
text"
></div>
<van-button
block
...
...
@@ -37,7 +37,7 @@
class=
"image-box"
@
click
.
stop
>
<img
:src=
"
imag
eUrl"
/>
<img
:src=
"
data.fil
eUrl"
/>
</div>
<div
class=
"image-tips flex"
...
...
@@ -56,8 +56,7 @@ export default {
name
:
'PaperDialog'
,
props
:
{
value
:
Boolean
,
imageUrl
:
String
,
text
:
String
data
:
Object
},
data
()
{
return
{
...
...
src/views/Chat/paper.vue
View file @
30376e8
...
...
@@ -89,8 +89,7 @@
></date-popup>
<paper-dialog
:value
.
sync=
"showImagePreview"
:imageUrl=
"imageUrl"
:text=
"text"
:data=
"paperInfo"
></paper-dialog>
</div>
</template>
...
...
@@ -130,8 +129,7 @@ export default {
},
total
:
0
,
showImagePreview
:
false
,
imageUrl
:
''
,
text
:
''
//文字喜报
paperInfo
:
{}
}
},
mounted
()
{
...
...
@@ -151,15 +149,8 @@ export default {
}
this
.
flag
=
true
},
handleViewImage
({
pushType
,
fileUrl
,
text
})
{
this
.
text
=
''
this
.
imageUrl
=
''
if
(
pushType
==
5
)
this
.
text
=
text
else
this
.
imageUrl
=
fileUrl
handleViewImage
(
i
)
{
this
.
paperInfo
=
i
this
.
$nextTick
(()
=>
{
this
.
showImagePreview
=
true
})
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment