xiongchengqiang 0525c605f4 youhua
2020-12-10 19:43:04 +08:00

95 lines
1.8 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!-- -->
<template>
<div class="pinglunTem">
<div class="pingcontent"
style="display:flex;"
:key="i.id"
v-for="i in pinglunList">
<div class="pinglunTem-left">
<img :src="i.avatar"
alt="">
</div>
<div class="pinglunTem-right">
<div class="pinglunTem-right-title">
<div><span>{{i.staffName}}</span><span class="beizhu">#
<span v-if="i.type===1">修改名称</span>
<span v-if="i.type===2">修改进度</span>
<span v-if="i.type===3">名称和进度都修改</span>
#</span></div>
<div>{{i.gmtCreate}}</div>
</div>
<div class="pinglunTem-right-content">
{{i.label}}
</div>
</div>
</div>
</div>
</template>
<script>
import { mapGetters } from 'vuex'
export default {
props: {
pinglunList: {
type: Array,
default: () => []
}
},
// 1修改名称2修改进度 3名称和进度都修改
data () {
return {
}
},
computed: {
},
beforeMount () { },
mounted () { },
methods: {},
watch: {}
}
</script>
<style lang='less' scoped>
.pinglunTem {
.pingcontent {
margin: 20px 0;
}
&-left {
width: 40px;
margin: 0 10px 0 0;
img {
width: 40px;
height: 40px;
border-radius: 50%;
}
}
&-right {
flex: 1 0 auto;
&-title {
color: #999b9d;
display: flex;
justify-content: space-between;
align-content: center;
margin-bottom: 10px;
}
&-content {
border: 1px solid #bdd7f4;
background: #cfe5fc;
border-radius: 0 6px 6px 6px;
color: #313841;
font-size: 12px;
max-width: 400px;
padding: 4px 6px;
}
.beizhu {
margin-left: 10px;
font-size: 12px;
color: @fontBlue;
}
}
}
</style>