积分统计

This commit is contained in:
liuye
2023-04-26 16:33:55 +08:00
parent 9370e764bb
commit b5b530d1d7
2 changed files with 108 additions and 20 deletions

View File

@@ -51,6 +51,32 @@
</ai-download>
</div>
</div>
<div class="content-right-info">
<div v-for="(item, index) in list" :key="index">
<div class="item item-left" v-if="item.type">
<p class="time">2023-04-26 16:11:43</p>
<div class="item-content-flex">
<img src="https://img1.baidu.com/it/u=413643897,2296924942&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500" alt="" class="user-img">
<div class="content">
<span></span>
<p>{{item.content}}</p>
</div>
<i class="el-icon-warning"></i>
</div>
</div>
<div class="item item-right" v-else>
<p class="time">2023-04-26 16:11:43</p>
<div class="item-content-flex">
<img src="https://img1.baidu.com/it/u=413643897,2296924942&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500" alt="" class="user-img">
<div class="content">
<span></span>
<p>{{item.content}}</p>
</div>
<i class="el-icon-warning"></i>
</div>
</div>
</div>
</div>
</template>
</ai-list>
</template>
@@ -90,7 +116,14 @@
search: {
name: ''
},
current: 1
current: 1,
list: [
{type: 0, content: '123全部全部全部全部全部全部全部全部全部全部全部全部'},
{type: 1, content: '123'},
{type: 0, content: '456'},
{type: 0, content: '123'},
{type: 1, content: '123'},
]
}
},
@@ -287,6 +320,75 @@
}
}
}
.content-right-info {
padding: 24px 16px;
.item {
margin-bottom: 48px;
.time {
color: #999;
font-size: 14px;
line-height: 44px;
}
.item-content-flex {
display: flex;
.user-img {
width: 44px;
height: 44px;
margin-right: 8px;
}
.content {
max-width: calc(100% - 144px);
position: relative;
span {
width: 0px;
height: 0px;
border: 10px solid transparent;
position: absolute;
top: 20px;
}
p {
display: inline-block;
padding: 14px 54px 14px 32px;
background-color: #fff;
font-family: PingFangSC-Regular;
font-size: 32px;
color: #333;
word-break: break-all;
}
}
.fail-icon {
width: 32px;
height: 32px;
margin: auto 0 auto 24px;
}
}
}
.item-left {
.content {
span {
left: -18px;
border-right-color: #fff;
}
}
}
.item-right {
width: 100%;
justify-content: right;
.user-img {
margin: 0 0 0 20px;
}
.content {
span {
border-left-color: #C7E7FE;
right: -18px;
}
p {
background-color: #C7E7FE;
padding: 14px 32px 14px 54px;
}
}
}
}
}
</style>