<div data-prize-pool-result class="pb-prize-pool-result">
    <div class="mask">
        <div class="dialog">
            <div data-close class="close iconfont">&#xe634;</div>
            @if(empty($drawn))
                <div class="icon">
                    <i class="iconfont">&#xe606;</i>
                </div>
                <div class="text">
                    <p>很遗憾</p>
                    <p>差一点点就中奖了哦~</p>
                </div>
                <div class="action">
                    <a href="javascript:;" data-close>确认</a>
                </div>
            @endif
            @if(!empty($drawn))
                @if($drawn['cover'])
                    <div class="cover">
                        <img src="{{\TechSoft\Laravel\Assets\AssetsUtil::fix($drawn['cover'])}}" />
                    </div>
                @endif
                @if($drawn['type']==\App\Modules\PrizePool\PrizeType::REDBAG)
                    <div class="text">
                        <p>恭喜获得 {{$drawn['name']}}</p>
                        <p>￥<span class="value">{{sprintf('%0.2f',$drawn['redbagValue'])}}</span> 元</p>
                    </div>
                    <div class="action">
                        <a href="{{\App\Util\ModuleHtmlUtil::userMoneyHomeUrl($activity['memberUserId'])}}">立即查看</a>
                    </div>
                @endif
                @if($drawn['type']==\App\Modules\PrizePool\PrizeType::CREDIT)
                    <div class="text">
                        <p>恭喜获得 {{$drawn['name']}}</p>
                        <p><span class="value">{{$drawn['creditValue']}}</span> 积分</p>
                    </div>
                    <div class="action">
                        <a href="{{\App\Util\ModuleHtmlUtil::userCreditHomeUrl($activity['memberUserId'])}}">立即查看</a>
                    </div>
                @endif
                @if($drawn['type']==\App\Modules\PrizePool\PrizeType::CODE)
                    <div class="text">
                        <p>恭喜获得 {{$drawn['name']}}</p>
                    </div>
                    <div class="code">
                        @if($drawn['codeNo'])
                            <p>卡号：{{$drawn['codeNo']}}</p>
                        @endif
                        @if($drawn['codeSecret'])
                            <p>卡密：{{$drawn['codeSecret']}}</p>
                        @endif
                        @if($drawn['codeExpire'])
                            <p>过期：{{$drawn['codeExpire']}}</p>
                        @endif
                    </div>
                    <div class="action">
                        <a href="{{\App\Util\ModuleHtmlUtil::prizePoolActivityUrl($drawn['memberUserId'],$drawn['activityType'],$activity['alias'])}}">查看</a>
                    </div>
                @endif
                @if($drawn['type']==\App\Modules\PrizePool\PrizeType::PHYSICAL)
                    <div class="text">
                        <p>恭喜获得</p>
                        <p>{{$drawn['name']}}</p>
                    </div>
                    <div class="action">
                        <a href="{{\App\Util\ModuleHtmlUtil::prizePoolActivityUrl($drawn['memberUserId'],$drawn['activityType'],$activity['alias'])}}">查看领取</a>
                    </div>
                @endif
            @endif
        </div>
    </div>
</div>