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.
 
 
 
 

93 lines
1.7 KiB

<template>
<view class="user-item-content" @click="click">
<view class="user-item-left">
<image :src="src" style="width: 70rpx;height: 70rpx;" mode="aspectFit"></image>
<text class="user-item-textBlack">{{text}}</text>
</view>
<view class="user-item-right" style="display: flex;align-items: center;">
<text v-if="showRightText"
style="font-size:30rpx ;color: #999999;margin-top: -7rpx;">{{rightText}}</text>
<image v-if="showRightImg" style="height: 30rpx;width: 30rpx;" src="../../static/img/public/more.png"></image>
</view>
</view>
</template>
<script>
export default {
props: {
src: {
type: String,
default: ""
},
text: {
type: String,
default: ""
},
clickId: {
type: String,
default: "0"
},
rightText: {
type: String,
default: ""
},
showRightText: {
type: Boolean,
default: false
},
showRightImg: {
type: Boolean,
default: true
},
},
data() {
return {
};
},
methods: {
click() {
var clickId = this.$props.clickId;
this.$emit("click", clickId)
}
}
}
</script>
<style lang="scss">
.user-item-content {
width: 100%;
height: 90rpx;
display: flex;
flex-direction: row;
align-items: center;
padding-left: 40rpx;
justify-content: space-between;
border-bottom: 0.1px solid #F1F1F1;
box-sizing: border-box;
.user-item-left {
display: flex;
flex-direction: row;
height: 89rpx;
align-items: center;
flex: 1;
box-sizing: border-box;
.user-item-textBlack {
color: #333333;
font-size: 30rpx;
height: 89rpx;
line-height: 89rpx;
}
}
.user-item-right {
margin-right: 35rpx;
flex-shrink: 0;
}
}
</style>