java-mall-app/components/WaterfallsFlowItem/WaterfallsFlowItem.vue
2024-11-01 16:35:40 +08:00

62 lines
961 B
Vue

<template>
<view class="wf-item-page">
<image :src="item.story_file[0]" class="item-img" />
<view class="item-desc">
{{item.story_title || ''}}
</view>
<view class="item-info">
<image :src="item.user_avatar" mode="aspectFill" class="info-avatar" />
<view class="info-nickname">{{item.user_nickname}}</view>
</view>
</view>
</template>
<script>
export default {
props:{
item:{
type:Object,
require:true
}
}
}
</script>
<style lang="scss" scoped>
.wf-item-page{
background: #fff;
overflow: hidden;
border-radius: 5px;
position: relative;
}
.item-img{
width: 100%;
}
.item-info{
display: flex;
align-items: center;
padding: 5px;
}
.info-avatar{
width: 25px;
height: 25px;
border-radius: 50%;
margin-right: 5px;
}
.info-nickname{
font-size: 12px;
color: #333;
}
.item-desc{
display: flex;
align-items: center;
padding: 5px 5px 0px 5px;
font-size: 12px;
}
</style>