This commit is contained in:
yanran200730
2022-01-07 14:51:39 +08:00
parent 67528eb94c
commit 2e79aca76b
2 changed files with 12 additions and 14 deletions

View File

@@ -37,18 +37,13 @@
<div class="content" v-text="op.content" /> <div class="content" v-text="op.content" />
<div class="content color-999" v-text="op.createTime" /> <div class="content color-999" v-text="op.createTime" />
</div> </div>
<AiEmpty v-if="!data.messages.length"></AiEmpty>
</div> </div>
<div v-else-if="data.type == 1" class="comments"></div> <div v-else-if="data.type == 1" class="comments"></div>
<div class="bottomInput"> <div class="bottomInput" v-if="isAnnouncer">
<div class="leftInput" @click="showBottomInput = true">我来说两句...</div> <div class="leftInput" @click="showBottomInput = true">我来说两句...</div>
<div class="righticon">
<u-icon name="thumb-up" @click="praise"></u-icon>
<span class="icontext"></span>
</div>
</div> </div>
<u-popup v-model="showBottomInput" height="200px" mode="bottom"> <u-popup v-model="showBottomInput" height="200px" mode="bottom">
@@ -82,6 +77,7 @@ export default {
showBottomInput: false, showBottomInput: false,
content: '', content: '',
flag: false, flag: false,
isAnnouncer: false
} }
}, },
computed: { computed: {
@@ -111,6 +107,7 @@ export default {
messages: res.data.messages || [], messages: res.data.messages || [],
} }
this.data.images = JSON.parse(res.data.images) || [] this.data.images = JSON.parse(res.data.images) || []
this.isAnnouncer = this.user.id === this.info.createUserId
var discussTime = (new Date(res.data.discussDeadline).getTime() * 1) / 1000 var discussTime = (new Date(res.data.discussDeadline).getTime() * 1) / 1000
var nowTime = (new Date().getTime() * 1) / 1000 var nowTime = (new Date().getTime() * 1) / 1000
@@ -340,18 +337,18 @@ export default {
box-sizing: border-box; box-sizing: border-box;
border-top: 1px solid #eee; border-top: 1px solid #eee;
.leftInput { .leftInput {
width: 86%; flex: 1;
height: 58px; height: 58px;
line-height: 58px; line-height: 58px;
text-align: center; text-align: center;
background: #f0f0f0; background: #f0f0f0;
border-radius: 30px; border-radius: 30px;
} }
.righticon { // .righticon {
.icontext { // .icontext {
margin-left: 10px; // margin-left: 10px;
} // }
} // }
} }
::v-deep .u-drawer { ::v-deep .u-drawer {

View File

@@ -24,11 +24,12 @@ export default {
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
margin-top: 100px;
margin-bottom: 20px;
.emptyImg { .emptyImg {
width: 400px; width: 400px;
height: 240px; height: 240px;
margin-top: 112px;
} }
.emptyText { .emptyText {