作者 wumengyu

添加性别或者金v icon

... ... @@ -6,6 +6,13 @@
<view class="left">
<!--<image src="../../../images/avatar@2x.png" class="user-avatar"></image>-->
<image src="{{detail.userPic}}" class="user-avatar"></image>
<block wx:if="{{detail.userType ===1}}"><!--userType 1注册用户,2后台用户(金v)-->
<image src="{{detail.sex === 1?'../../../images/man.png':'../../../images/women.png'}}"
class="sex-icon"></image>
</block>
<block wx:if="{{detail.userType ===2}}">
<text class="iconfont icon-vip sex-icon"></text>
</block>
<text>{{detail.userName}}</text>
</view>
<view class="right">
... ... @@ -103,6 +110,13 @@
<view class="people" wx:for="{{join_people}}" wx:key="index">
<view class="bg">
<image src="{{item.pic}}" class="people-img"></image>
<block wx:if="{{item.userType ===1}}"><!--userType 1注册用户,2后台用户(金v)-->
<image src="{{item.sex === 1?'../../../images/man.png':'../../../images/women.png'}}"
class="sex-icon"></image>
</block>
<block wx:if="{{item.userType ===2}}">
<text class="iconfont icon-vip sex-icon"></text>
</block>
</view>
<view class="people-num">
<view class="name">{{item.name}}</view>
... ... @@ -150,6 +164,13 @@
<view class="top-left">
<!--<image src="../../../images/avatar@2x.png" class="release-img"></image>-->
<image src="{{comment.userPic}}" class="release-img"></image>
<block wx:if="{{comment.userType ===1}}"><!--userType 1注册用户,2后台用户(金v)-->
<image src="{{comment.sex === 1?'../../../images/man.png':'../../../images/women.png'}}"
class="sex-icon"></image>
</block>
<block wx:if="{{comment.userType ===2}}">
<text class="iconfont icon-vip sex-icon"></text>
</block>
<text>{{comment.userName}} {{comment.create_time}}</text>
</view>
<view class="top-right" bindtap="clickZan" data-id="{{comment.id}}" data-index="{{index}}">
... ...
... ... @@ -19,6 +19,7 @@
.head .position .left {
display: flex;
align-items: center;
position: relative;
}
.head .position .left .user-avatar{
width: 50rpx;
... ... @@ -26,6 +27,17 @@
border-radius: 50%;
margin-right: 10rpx;
}
.head .position .left .sex-icon{
position: absolute;
top:-3rpx;
left:36rpx;
width: 20rpx;
height: 20rpx;
}
.head .position .left .icon-vip{
color:#E1C8AF;
font-size:21rpx;
}
.head .position .left text {
font-size: 24rpx;
color:#ffffff;
... ... @@ -246,6 +258,14 @@ swiper {
border-radius: 50%;
background-color: #FD8779;
margin-bottom: 10rpx;
position: relative;
}
.bg .sex-icon {
position: absolute;
top:-6rpx;
left:28rpx;
width: 20rpx;
height: 20rpx;
}
.people-num {
display: flex;
... ... @@ -317,6 +337,18 @@ swiper {
.top-left {
display: flex;
align-items: center;
position: relative;
}
.top-left .sex-icon {
position: absolute;
top:-6rpx;
left:28rpx;
width: 20rpx;
height: 20rpx;
}
.top-left .icon-vip, .bg .icon-vip{
color:#E1C8AF;
font-size:21rpx;
}
.top-left .release-img{
width: 40rpx;
... ...
... ... @@ -24,7 +24,14 @@
</view>
<view class="user">
<!--<image src="../../../images/avatar@2x.png" class="avatar"></image>-->
<image src="{{item.userPic}}" mode="aspectFill"></image>
<image src="{{item.userPic}}" mode="aspectFill" class="avatar"></image>
<block wx:if="{{item.userType ===1}}"><!--userType 1注册用户,2后台用户(金v)-->
<image src="{{item.sex === 1?'../../../images/man.png':'../../../images/women.png'}}"
class="sex-icon"></image>
</block>
<block wx:if="{{item.userType ===2}}">
<text class="iconfont icon-vip sex-icon"></text>
</block>
<text>{{item.userName}} {{item.address}}</text>
</view>
</view>
... ...
... ... @@ -8,4 +8,8 @@
}
.content_box {
margin-top: 0;
padding:10rpx 20rpx 22rpx 20rpx;
}
.content_box .content_item:last-child {
margin-bottom:0;
}
\ No newline at end of file
... ...
... ... @@ -76,7 +76,14 @@
</view>
<view class="user">
<!--<image src="../../../images/avatar@2x.png" class="avatar"></image>-->
<image src="{{item.userPic}}" mode="aspectFill"></image>
<image src="{{item.userPic}}" mode="aspectFill" class="avatar"></image>
<block wx:if="{{item.userType ===1}}"><!--userType 1注册用户,2后台用户(金v)-->
<image src="{{item.sex === 1?'../../../images/man.png':'../../../images/women.png'}}"
class="sex-icon"></image>
</block>
<block wx:if="{{item.userType ===2}}">
<text class="iconfont icon-vip sex-icon"></text>
</block>
<text>{{item.userName}}</text>
</view>
</view>
... ...
... ... @@ -111,7 +111,14 @@
</view>
<view class="user">
<!--<image src="../../../images/avatar@2x.png" class="avatar"></image>-->
<image src="{{item.userPic}}" mode="aspectFill"></image>
<image src="{{item.userPic}}" mode="aspectFill" class="avatar"></image>
<block wx:if="{{item.userType ===1}}"><!--userType 1注册用户,2后台用户(金v)-->
<image src="{{item.sex === 1?'../../../images/man.png':'../../../images/women.png'}}"
class="sex-icon"></image>
</block>
<block wx:if="{{item.userType ===2}}">
<text class="iconfont icon-vip sex-icon"></text>
</block>
<text>{{item.userName}}</text>
</view>
</view>
... ...
... ... @@ -17,4 +17,11 @@
margin-top: 200rpx;
font-size: 28rpx;
color: #cccccc;
}
.user .sex-icon {
position: absolute;
top:-6rpx;
left:28rpx;
width: 20rpx;
height: 20rpx;
}
\ No newline at end of file
... ...
... ... @@ -6,6 +6,13 @@
<view class="left">
<!--<image src="../../../images/avatar@2x.png" class="user-avatar"></image>-->
<image src="{{detail.userPic}}" class="user-avatar"></image>
<block wx:if="{{detail.userType ===1}}"><!--userType 1注册用户,2后台用户(金v)-->
<image src="{{detail.sex === 1?'../../../images/man.png':'../../../images/women.png'}}"
class="sex-icon"></image>
</block>
<block wx:if="{{detail.userType ===2}}">
<text class="iconfont icon-vip sex-icon"></text>
</block>
<text>{{detail.userName}}</text>
</view>
<view class="right">
... ... @@ -104,6 +111,13 @@
<view class="people" wx:for="{{join_people}}" wx:key="index">
<view class="bg">
<image src="{{item.pic}}" class="people-img"></image>
<block wx:if="{{item.userType ===1}}"><!--userType 1注册用户,2后台用户(金v)-->
<image src="{{item.sex === 1?'../../../images/man.png':'../../../images/women.png'}}"
class="sex-icon"></image>
</block>
<block wx:if="{{item.userType ===2}}">
<text class="iconfont icon-vip sex-icon"></text>
</block>
</view>
<view class="people-num">
<view class="name">{{item.name}}</view>
... ... @@ -153,6 +167,13 @@
<view class="top-left">
<!--<image src="../../../images/avatar@2x.png" class="release-img"></image>-->
<image src="{{comment.userPic}}" class="release-img"></image>
<block wx:if="{{comment.userType ===1}}"><!--userType 1注册用户,2后台用户(金v)-->
<image src="{{comment.sex === 1?'../../../images/man.png':'../../../images/women.png'}}"
class="sex-icon"></image>
</block>
<block wx:if="{{comment.userType ===2}}">
<text class="iconfont icon-vip sex-icon"></text>
</block>
<text>{{comment.userName}} {{comment.create_time}}</text>
</view>
<view class="top-right" bindtap="clickZan" data-id="{{comment.id}}" data-index="{{index}}">
... ...
... ... @@ -19,6 +19,7 @@
.head .position .left {
display: flex;
align-items: center;
position: relative;
}
.head .position .left .user-avatar{
width: 50rpx;
... ... @@ -26,6 +27,17 @@
border-radius: 50%;
margin-right: 10rpx;
}
.head .position .left .sex-icon{
position: absolute;
top:-3rpx;
left:36rpx;
width: 20rpx;
height: 20rpx;
}
.head .position .left .icon-vip{
color:#E1C8AF;
font-size:21rpx;
}
.head .position .left text {
font-size: 24rpx;
color:#ffffff;
... ... @@ -240,6 +252,14 @@ swiper {
border-radius: 50%;
background-color: #FD8779;
margin-bottom: 10rpx;
position: relative;
}
.bg .sex-icon {
position: absolute;
top:-6rpx;
left:28rpx;
width: 20rpx;
height: 20rpx;
}
.people-num {
display: flex;
... ... @@ -310,6 +330,18 @@ swiper {
.top-left {
display: flex;
align-items: center;
position: relative;
}
.top-left .sex-icon {
position: absolute;
top:-6rpx;
left:28rpx;
width: 20rpx;
height: 20rpx;
}
.top-left .icon-vip, .bg .icon-vip{
color:#E1C8AF;
font-size:21rpx;
}
.top-left .release-img{
width: 40rpx;
... ...
... ... @@ -9,8 +9,15 @@
<!--<view class="margin">-->
<image src="{{user.pic}}" class="user-img"></image>
<!--type :1注册用户,2后台用户金v-->
<text class="iconfont icon-vip" wx:if="{{user.type === 2}}"></text>
<!--<text class="iconfont icon-vip" wx:if="{{user.type === 2}}"></text>-->
<!--<image src="{{user.sex === 1?'../../images/man.png':'../../images/women.png'}}" class="sex-icon"></image>-->
<block wx:if="{{user.userType ===1}}"><!--userType 1注册用户,2后台用户(金v)-->
<image src="{{user.sex === 1?'../../../images/man.png':'../../../images/women.png'}}"
class="sex-icon"></image>
</block>
<block wx:if="{{user.userType ===2}}">
<text class="iconfont icon-vip sex-icon"></text>
</block>
<view class="left">
<view class="class-box">
<image src="../../images/jin@2x.png" wx:if="{{user.level === 1}}"></image>
... ...
... ... @@ -8,13 +8,6 @@
color: #ffffff;
font-size: 50rpx;
}
.icon-vip {
position: absolute;
top:51rpx;
left:163rpx;
color:#E1C8AF;
font-size:34rpx;
}
.login-box {
width: 100%;
height: 300rpx;
... ... @@ -36,11 +29,18 @@
}
.sex-icon {
position: absolute;
top:100rpx;
left:100rpx;
top:46rpx;
left:164rpx;
width: 40rpx;
height: 40rpx;
}
.icon-vip {
position: absolute;
top:48rpx;
left:167rpx;
color:#E1C8AF;
font-size:34rpx;
}
.head-box {
position: relative;
}
... ...
... ... @@ -107,6 +107,13 @@
<view class="user">
<!--<image src="../../images/avatar@2x.png" class="avatar"></image>-->
<image src="{{item.userPic}}" class="avatar"></image>
<block wx:if="{{item.userType ===1}}"><!--userType 1注册用户,2后台用户(金v)-->
<image src="{{item.sex === 1?'../../../images/man.png':'../../../images/women.png'}}"
class="sex-icon"></image>
</block>
<block wx:if="{{item.userType ===2}}">
<text class="iconfont icon-vip sex-icon"></text>
</block>
<text>{{item.userName}}</text>
</view>
</view>
... ... @@ -127,6 +134,13 @@
<view class="user">
<!--<image src="../../images/avatar@2x.png" class="avatar"></image>-->
<image src="{{item.userPic}}" class="avatar"></image>
<block wx:if="{{item.userType ===1}}"><!--userType 1注册用户,2后台用户(金v)-->
<image src="{{item.sex === 1?'../../../images/man.png':'../../../images/women.png'}}"
class="sex-icon"></image>
</block>
<block wx:if="{{item.userType ===2}}">
<text class="iconfont icon-vip sex-icon"></text>
</block>
<text>{{item.userName}}</text>
</view>
</view>
... ...
... ... @@ -259,6 +259,7 @@
.content_item .user {
justify-content: flex-start;
margin-top: 10rpx;
position: relative;
}
.content_item .title .area {
flex:1;
... ... @@ -269,7 +270,7 @@
color: #666666;
font-size: 22rpx;
}
.content_item .user image {
.content_item .user .avatar {
width: 40rpx;
height: 40rpx;
border-radius: 50%;
... ... @@ -279,6 +280,17 @@
color: #666666;
font-size: 22rpx;
}
.user .sex-icon {
position: absolute;
top:-6rpx;
left:28rpx;
width: 20rpx;
height: 20rpx;
}
.content_item .user .icon-vip{
color:#E1C8AF;
font-size:21rpx;
}
/*弹框样式*/
.modal_box {
width: 100%;
... ...