88 lines
2.0 KiB
Vue
88 lines
2.0 KiB
Vue
<template>
|
|
<view class="zhibo" @click="zhibo">
|
|
<image class="head" :src="image"></image>
|
|
<view class="user">
|
|
<view class="name">
|
|
<image></image>
|
|
<text class="u-line-1" style="width:130rpx">{{name}}</text>
|
|
</view>
|
|
<view class="pingbi">
|
|
<image></image>
|
|
<text>1屏蔽用户</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
<style lang="scss" scoped>
|
|
.zhibo{
|
|
width: 335rpx;
|
|
margin-top: 20rpx;
|
|
box-shadow:0 3rpx 7rpx 0 rgba(153, 153, 153, 0.35);
|
|
padding-bottom: 20rpx;
|
|
border-radius: 20rpx;
|
|
overflow: hidden;
|
|
.head{
|
|
width: 100%;
|
|
height: 425rpx;
|
|
}
|
|
.user{
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin:0 auto;
|
|
margin-top: 20rpx;
|
|
width: 307rpx;
|
|
.name{
|
|
display: flex;
|
|
align-items: center;
|
|
>image{
|
|
width: 38rpx;
|
|
height: 38rpx;
|
|
border-radius: 50%;
|
|
|
|
}
|
|
>text{
|
|
font-size: 20rpx;
|
|
color:#333;
|
|
margin-left: 9rpx;
|
|
}
|
|
}
|
|
.pingbi{
|
|
display: flex;
|
|
align-items: center;
|
|
>text{
|
|
font-size: 20rpx;
|
|
color: #333;
|
|
margin-left: 9rpx;
|
|
}
|
|
>image{
|
|
width: 24rpx;
|
|
height: 24rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|
|
<script>
|
|
export default {
|
|
name:"zhibo-item",
|
|
data(){
|
|
return {
|
|
|
|
}
|
|
},
|
|
methods:{
|
|
zhibo(){
|
|
this.$u.route({
|
|
url:"/pages/zhibo/index",
|
|
params:{
|
|
url:this.url,
|
|
id:this.zid,
|
|
rid:this.rid
|
|
}
|
|
})
|
|
}
|
|
},
|
|
props:['name','image','url','zid','rid']
|
|
}
|
|
</script> |