<!--pages/live/registration/registration.wxml-->
<navigation-bar title="会员认证" back="{{false}}" color="black" background="#FFF" />

<view class="page-result">
    <block wx:if="{{!content && state === -1}}"></block>
    <block wx:elif="{{state === 1}}">
        <view class="clock-icon">
            <image src="/assets/img/clock.svg" mode="aspectFit" />
        </view>
        <view class="text-group">
            <text class="color-gray">审核中...</text>
            <text class="color-gray">恭喜您成功参与福利!</text>
            <text class="color-gray">请联系群主审核即可!</text>
        </view>
    </block>

    <block wx:elif="{{state === 2}}">
        <view class="success-container">
            <image class="success-icon" src="/assets/img/success.svg" mode="aspectFit" />
            <text class="color-green">认证已通过</text>
        </view>
    </block>

    <block wx:elif="{{state === 4}}">
        <image src="/assets/img/600.jpg" mode="widthFix" />
    </block>

    <block wx:elif="{{content}}">
            <view class="forbid-container" wx:if="{{state > 0}}">
                <image src="/assets/img/forbid.svg" mode="aspectFit" />
                <view style="white-space:pre-wrap">{{content}}</view>
            </view>
            <block wx:if="{{state < 0}}">
                    <view class="userinfo" >
                        <button class="choose-avatar">
                            <image class="avatar" src="{{userInfo.avatarUrl}}" />
                        </button>
                        <view class="nickname">{{userInfo.nickName}}</view>
                        <view class="refresh" bind:tap="refresh">刷新</view>
                    </view>
                    <view style="white-space:pre-wrap">{{content}}</view>
            </block>
        </block>

    <block wx:else>
        <view class="forbid-container">
            <image src="/assets/img/forbid.svg" mode="aspectFit" />
            <text>暂无法访问该功能，如有疑问请联系客服</text>
        </view>
    </block>

    <view class="info" wx:if="{{info}}">{{info}}</view>

</view>