Commit 30376e8a by 李伟康

提交

1 parent 32f9f907
......@@ -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="imageUrl" />
<img :src="data.fileUrl" />
</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 {
......
......@@ -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
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!