You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1008 B

<template>
<view class="group-item" @click="showGroupInfo()">
<head-image :name="group.showGroupName"
1 year ago
:url="group.headImage"></head-image>
2 years ago
<view class="group-name">
<view>{{ group.showGroupName}}</view>
</view>
</view>
</template>
<script>
export default {
name: "group-item",
data() {
return {}
},
methods:{
showGroupInfo(){
uni.navigateTo({
url:"/pages/group/group-info?id="+this.group.id
})
},
},
props: {
group: {
type: Object
}
}
}
</script>
<style scope lang="scss">
.group-item {
2 years ago
height: 100rpx;
display: flex;
1 year ago
margin-bottom: 2rpx;
position: relative;
1 year ago
padding: 18rpx 20rpx;
align-items: center;
background-color: white;
white-space: nowrap;
1 year ago
&:hover {
background-color: $im-bg-active;
}
&.active {
background-color: $im-bg-active;
}
.group-name {
font-size: $im-font-size;
2 years ago
padding-left: 20rpx;
text-align: left;
white-space: nowrap;
overflow: hidden;
}
}
</style>