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) { onLoad(o) {
console.log(this.user)
this.moduleId = o.moduleId this.moduleId = o.moduleId
this.listName = o.listName this.listName = o.listName
@@ -125,10 +126,10 @@ export default {
if (res?.data) { if (res?.data) {
res.data.records.forEach((e) => { res.data.records.forEach((e) => {
// e.avatar = e.createUserName?.substring(0, 2) || '游客' // e.avatar = e.createUserName?.substring(0, 2) || '游客'
if(e.createUserName) { if (e.createUserName) {
e.avatar = e.createUserName.substring(e.createUserName.length, e.createUserName.length - 2) e.avatar = e.createUserName.substring(e.createUserName.length, e.createUserName.length - 2)
}else { } else {
e.avatar = '游客' e.avatar = '游客'
} }
if (e.images) { if (e.images) {
@@ -220,11 +221,11 @@ export default {
background: #f2f2f2; background: #f2f2f2;
::v-deep .AiCard { ::v-deep .AiCard {
border-radius: 0!important; border-radius: 0 !important;
box-shadow: none; box-shadow: none;
.start { .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" @click="adddeleShow(op.id)" />
<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> <AiEmpty v-if="!data.messages.length"></AiEmpty>
@@ -65,6 +64,12 @@
</div> </div>
</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="bottomInput" v-if="isAnnouncer && data.status === '0' && data.type === '0'">
<div class="leftInput" @click="showBottomInput = true">我来说两句...</div> <div class="leftInput" @click="showBottomInput = true">我来说两句...</div>
</div> </div>
@@ -198,9 +203,12 @@ export default {
} }
}) })
}, },
adddeleShow(id) { adddeleShow(id) {
this.deleId = id if (this.user.id == this.data.createUserId) {
this.deleShow = true this.deleId = id
this.deleShow = true
}
}, },
confirmDelete() { confirmDelete() {
@@ -255,10 +263,6 @@ export default {
}) })
}, },
a() {
console.log(aa)
},
previewImage(images, img) { previewImage(images, img) {
uni.previewImage({ uni.previewImage({
urls: images.map((v) => v.url), 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 { .bottomInput {
position: fixed; position: fixed;
bottom: 0; bottom: 0;