<!-- * @Author: EvilStorm
 * @Date: 2020-10-26 10:44:42
 * @LastEditTime: 2020-10-27 11:44:31
 * @LastEditors: EvStorm
 * @Description: 我的页面 -->
<view class="headBox" style="height:{{CustomBar + 130}}px">
    <view style="height:{{CustomBar}}px;">
        <view class="cu-bar" style="height:{{CustomBar}}px;padding-top:{{StatusBar}}px;">
            <view class="action text-white">我的</view>
        </view>
    </view>
    <view class="ev-fr padding">
        <block wx:if="{{hasUserInfo}}">
            <view class="text-white">
                <view class="padding-lr nickName ev-fr-start">
                    {{userInfo.nickname}}
                    <image class="ev-icon margin-lr-sm" mode="scaleToFill" src="/images/{{['man.png','woman.png'][userInfo.gender]}}" />
                </view>
                <view class="padding-lr schoolInfo">
                    {{gradeList[userInfo.grade]['label']}} {{userInfo.school_name}}
                </view>
            </view>
            <view>
                <view class="cu-avatar xl round solids" style="background-image:url({{userInfo.avatar}})" />
                <text class="padding-lr text-white" />
            </view>
        </block>
        <block wx:else>
            <button class="clickLogin" bindgetuserinfo="bindGetUserInfo" open-type="getUserInfo">
                点击登陆
                <text class="cuIcon-right padding-lr-xs" />
            </button>
            <view class="noAvatarUrl margin-right ev-fc-center">
                <image class="Avatar" mode="scaleToFill" src="/images/noAvatarUrl.png" />
            </view>
        </block>
    </view>
    <image class="backgroundTexture" mode="scaleToFill" style="height:{{CustomBar + 130}}px" src="/images/mineBG.png" />
</view>
<view class="settingBox bg-white" style="height:{{displayArea.windowHeight - CustomBar - (displayArea.windowWidth / 3.75)}}px;">
    <view class="padding-top-sm">
        <view wx:for="{{settingList}}" bind:tap="navigationTo" data-url="{{item.url}}" wx:key="index" class="ev-fr settingItem padding-lr">
            <view class="ev-fr-start">
                <image class="iconBox" mode="scaleToFill" src="{{item.icon}}" data-url="{{item.url}}" />
                <text class="settingName padding-lr-sm" data-url="{{item.url}}">{{item.name}}</text>
            </view>
            <text class="cuIcon-right" data-url="{{item.url}}" />
        </view>
    </view>
    <view class="bottomTips ev-fr-center">
        小程序由“练手lab”提供技术支持
        <text class="text-blue padding-lr-sm">点击查看</text>
    </view>
</view>