This commit is contained in:
花有清香月有阴
2022-01-07 17:55:06 +08:00
parent 5379985236
commit b27c804832
2 changed files with 29 additions and 14 deletions

View File

@@ -95,6 +95,7 @@ export default {
},
},
onLoad(o) {
console.log(this.user)
this.moduleId = o.moduleId
this.listName = o.listName
@@ -125,10 +126,10 @@ export default {
if (res?.data) {
res.data.records.forEach((e) => {
// e.avatar = e.createUserName?.substring(0, 2) || '游客'
if(e.createUserName) {
e.avatar = e.createUserName.substring(e.createUserName.length, e.createUserName.length - 2)
}else {
e.avatar = '游客'
if (e.createUserName) {
e.avatar = e.createUserName.substring(e.createUserName.length, e.createUserName.length - 2)
} else {
e.avatar = '游客'
}
if (e.images) {
@@ -220,11 +221,11 @@ export default {
background: #f2f2f2;
::v-deep .AiCard {
border-radius: 0!important;
border-radius: 0 !important;
box-shadow: none;
.start {
border-radius: 0!important;
border-radius: 0 !important;
}
}

View File

@@ -41,7 +41,6 @@
<div class="content" v-text="op.content" @click="adddeleShow(op.id)" />
<div class="content" v-text="op.content" />
<div class="content color-999" v-text="op.createTime" />
</div>
<AiEmpty v-if="!data.messages.length"></AiEmpty>
@@ -65,6 +64,12 @@
</div>
</div>
<div class="votePeople">
<div class="leftPeople">共23人参与投票</div>
<u-section sub-title="查看更多"></u-section>
</div>
<div class="bottomInput" v-if="isAnnouncer && data.status === '0' && data.type === '0'">
<div class="leftInput" @click="showBottomInput = true">我来说两句...</div>
</div>
@@ -198,9 +203,12 @@ export default {
}
})
},
adddeleShow(id) {
this.deleId = id
this.deleShow = true
if (this.user.id == this.data.createUserId) {
this.deleId = id
this.deleShow = true
}
},
confirmDelete() {
@@ -255,10 +263,6 @@ export default {
})
},
a() {
console.log(aa)
},
previewImage(images, img) {
uni.previewImage({
urls: images.map((v) => v.url),
@@ -500,6 +504,16 @@ export default {
}
}
.votePeople {
display: flex;
justify-content: space-between;
margin-top: 8px;
padding: 36px 32px 36px 20px;
.leftPeople {
font-size: 28px;
}
}
.bottomInput {
position: fixed;
bottom: 0;