<!--pages/mine/index.wxml-->
<view class="mine_container">
    <view class="user_massage">
        <view class="message_box">
            <image class="user_avatar" src="{{userInfo.headimgurl}}"></image>
            <view class="id_box">
                <text class="user_name">{{userInfo.nickname}}</text>
                <view class="integral">
                    <text style="color: #ffffff;font-size: 20rpx;">护河积分</text>
                    <text style="font-size: 40rpx;color: #FFC65E;" bindtap="handlePointDetail">{{userInfo.mallPoints || 0}}</text>
                </view>
            </view>
        </view>
        <view class="approve_box">
            <view wx:if="{{userInfo.identityName}}" class="approve_btn">{{userInfo.identityName}}</view>
            <view wx:else class="approve_btn" bindtap="goApprove">申请护河身份</view>
            <text style="color: #ffffff;font-size: 20rpx;">护河积分可兑换礼物！快来加入我们吧</text>
        </view>
    </view>
    <view class="function_list">
        <view class="function_item" wx:for="{{list}}" wx:key="index" bindtap="goRecords" data-path="{{item.path}}">
            <view class="item_title">
                <image style="height: 60rpx;width: 60rpx;margin-right: 20rpx;" src="{{'../../assets/img/'+ item.type +'.png'}}"></image>
                <view style="font-size: 26rpx;z-index:99">{{item.title}}</view>
                <text wx:if="{{item.showNumbers && numbers > 0}}" class="badge">{{numbers > 99 ? '99+' : numbers }}</text>
            </view>
            <image style="height: 30rpx;width: 30rpx;" src="../../assets/img/more.png"></image>
        </view>

    </view>
</view>
