Commit 30376e8a by 李伟康

提交

1 parent 32f9f907
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
> >
<img src="https://img01.glsx.com.cn/weapp/resource/scrm-mobile/psd/close.png"> <img src="https://img01.glsx.com.cn/weapp/resource/scrm-mobile/psd/close.png">
</div> </div>
<template v-if="text"> <template v-if="data.text && data.pushType == 5">
<div <div
class="text-box" class="text-box"
@click.stop @click.stop
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<div class="text-title flex">文字喜报</div> <div class="text-title flex">文字喜报</div>
<div <div
class="content" class="content"
v-html="text" v-html="data.text"
></div> ></div>
<van-button <van-button
block block
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
class="image-box" class="image-box"
@click.stop @click.stop
> >
<img :src="imageUrl" /> <img :src="data.fileUrl" />
</div> </div>
<div <div
class="image-tips flex" class="image-tips flex"
...@@ -56,8 +56,7 @@ export default { ...@@ -56,8 +56,7 @@ export default {
name: 'PaperDialog', name: 'PaperDialog',
props: { props: {
value: Boolean, value: Boolean,
imageUrl: String, data: Object
text: String
}, },
data () { data () {
return { return {
......
...@@ -89,8 +89,7 @@ ...@@ -89,8 +89,7 @@
></date-popup> ></date-popup>
<paper-dialog <paper-dialog
:value.sync="showImagePreview" :value.sync="showImagePreview"
:imageUrl="imageUrl" :data="paperInfo"
:text="text"
></paper-dialog> ></paper-dialog>
</div> </div>
</template> </template>
...@@ -130,8 +129,7 @@ export default { ...@@ -130,8 +129,7 @@ export default {
}, },
total: 0, total: 0,
showImagePreview: false, showImagePreview: false,
imageUrl: '', paperInfo: {}
text: ''//文字喜报
} }
}, },
mounted () { mounted () {
...@@ -151,15 +149,8 @@ export default { ...@@ -151,15 +149,8 @@ export default {
} }
this.flag = true this.flag = true
}, },
handleViewImage ({ handleViewImage (i) {
pushType, this.paperInfo = i
fileUrl,
text
}) {
this.text = ''
this.imageUrl = ''
if (pushType == 5) this.text = text
else this.imageUrl = fileUrl
this.$nextTick(() => { this.$nextTick(() => {
this.showImagePreview = true this.showImagePreview = true
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!