<view class="flex-space-between  abs xc-user-frame">

    <!-- 会员有登陆登陆的情况 -->
    <view class="xc-user-left  flex" wx:if="{{userInfo}}">


        <view style="position:relative;">
            <image class="xc-user-img {{object.head_pic_type?'circle':''}} " bindtap="go_info" src="{{userInfo.head_pic?userInfo.head_pic:defaultAvatar}}"></image>
            <block wx:if="{{pulscardname && sys_switch.rank_switch > 0 && object.is_plus }}">
                <view data-url="/pages/user/plus/plus" catchtap="goto"  class="flex-center plusMax">
                    <image class="fuls" src="{{iurl}}/miniapp/images/userinfo/userinfo/privilege_t.png"></image>
                    <view>{{pulscardname}}</view>
                </view>
            </block>
        </view>

        <view class="xc-uesr-name" style="color:{{object.word_color}}">
            <view class="flex ai-center">
                <text class="ellipsis-1" style="max-width: 290rpx;display: inline-block">{{userInfo.nickname}}</text>

                <view class="hvip" wx:if='{{qy_data && qy_data.GradeName && qy_data.is_init && object.is_qy}}'>
                    <image class="vip-mem" src="{{iurl}}/miniapp/images/vip_hg0.png"></image>{{qy_data.GradeName}}
                </view>
            </view>
            <view class="flex fs24 xc-grow-ups" style="margin-left:8rpx;margin-top:6rpx" wx:if="{{qy_data &&  qy_data.is_init && qy_data.gradeId && object.is_cz}}" bindtap='jump'>
                <block wx:if="{{qy_data.cz_val<qy_data.full_cz_val}}">
                    {{" "}}
                    <text class="grow-up-val"  style="background:{{userqy_color.secord_bgcolor?userqy_color.secord_bgcolor:'#fe9db5'}};color:{{userqy_color.font_color}}">{{rfmName}}</text>
                    <view style='margin-left:5rpx; color:{{userqy_color.font_color}} '>{{qy_data.cz_val}} / {{qy_data.need_money}}</view>
                </block>
                <block wx:else>
                    {{" "}}
                    <text style="color:{{userqy_color.font_color}}">
                        <text class="grow-up-val"  style="background:{{userqy_color.secord_bgcolor?userqy_color.secord_bgcolor:'#fe9db5'}};">{{rfmName}}</text>{{cz_val}}
                    </text>

                </block>
            </view>
        </view>

    </view>

    <!-- 会员没有登陆的情况 -->
    <view class="xc-user-left  flex" wx:else bindtap="login_user">
        <image class="xc-user-img  circle" src="{{defaultAvatar}}"></image>
        <view class="xc-uesr-name" style="color:{{object.word_color}}">请点击注册</view>
    </view>
</view>


<view wx:if="{{userInfo && object.is_user_card}}" class="xc-qrcode-frame abs" style="top:46rpx">
    <image bindtap='show_tc' class=" xc-qrcode " style="border: 5rpx solid {{object.user_bg_color}};background: {{object.user_bg_color}};" src="{{iurl}}/miniapp/images/qrcode1.png"></image>
    <view style="font-size:12px;color:{{object.word_color}}">会员卡</view>
</view>

<view class="flex-vertical abs xc-grow-frame rel" style="display: none">
    <view class="xc-grow-up">{{rfmName}}</view>
    <view class="xc-line-not rel">
        <image class="xc-bj-img abs" src="{{iurl}}/miniapp/images/baijing.png"></image>
        <image class="xc-zs-img abs" src="{{iurl}}/miniapp/images/zhuangshi.png"></image>
        <view class="xc-line-Yes abs" style="width:{{length}}rpx;"></view>
    </view>
    <view class="xc-grow-val">0/0</view>
</view>


<!-- 底部显示余额，储值卡，积分，优惠券等 -->
<view class="flex-equality  abs xc-assets" style="color:{{object.word_color}}">

    <block wx:for="{{object.show_arr}}">
        <block wx:if="{{item.show}}">
            <block wx:if="{{item.type=='user_money'}}">
                <view class="t-c typefont" bindtap='balance'>{{yuer?yuer:0}}
                    <view class='numfont'>余额</view>
                </view>
            </block>
            <block wx:if="{{item.type=='yc' && !is_close_chuzhi}}">
                <view class="t-c typefont" bindtap='deposit'>{{udata.Balance?udata.Balance:0}}
                    <view class='numfont'>储值款</view>
                </view>
            </block>
            <block wx:if="{{item.type=='jf'}}">
                <view class="t-c typefont" bindtap='integral'>{{udata.Integral?udata.Integral:0}}
                    <view class='numfont'>积分</view>
                </view>
            </block>
            <block wx:if="{{item.type=='quan'}}">
                <view class="t-c typefont" bindtap='coupon'>{{udata.CashCount+byquan?udata.CashCount+byquan:0}}
                    <view class='numfont'>优惠券</view>
                </view>
            </block>
        </block>


    </block>
</view>