26391
This commit is contained in:
@@ -37,18 +37,13 @@
|
||||
<div class="content" v-text="op.content" />
|
||||
<div class="content color-999" v-text="op.createTime" />
|
||||
</div>
|
||||
<AiEmpty v-if="!data.messages.length"></AiEmpty>
|
||||
</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="righticon">
|
||||
<u-icon name="thumb-up" @click="praise"></u-icon>
|
||||
|
||||
<span class="icontext">赞</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<u-popup v-model="showBottomInput" height="200px" mode="bottom">
|
||||
@@ -82,6 +77,7 @@ export default {
|
||||
showBottomInput: false,
|
||||
content: '',
|
||||
flag: false,
|
||||
isAnnouncer: false
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -111,6 +107,7 @@ export default {
|
||||
messages: res.data.messages || [],
|
||||
}
|
||||
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 nowTime = (new Date().getTime() * 1) / 1000
|
||||
@@ -340,18 +337,18 @@ export default {
|
||||
box-sizing: border-box;
|
||||
border-top: 1px solid #eee;
|
||||
.leftInput {
|
||||
width: 86%;
|
||||
flex: 1;
|
||||
height: 58px;
|
||||
line-height: 58px;
|
||||
text-align: center;
|
||||
background: #f0f0f0;
|
||||
border-radius: 30px;
|
||||
}
|
||||
.righticon {
|
||||
.icontext {
|
||||
margin-left: 10px;
|
||||
}
|
||||
}
|
||||
// .righticon {
|
||||
// .icontext {
|
||||
// margin-left: 10px;
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
::v-deep .u-drawer {
|
||||
|
||||
@@ -24,11 +24,12 @@ export default {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-top: 100px;
|
||||
margin-bottom: 20px;
|
||||
|
||||
.emptyImg {
|
||||
width: 400px;
|
||||
height: 240px;
|
||||
margin-top: 112px;
|
||||
}
|
||||
|
||||
.emptyText {
|
||||
|
||||
Reference in New Issue
Block a user