<wxs src="../../utils/filter.wxs" module="filters" />
<view class="invite">
    <image src="/static/phb.png" class="ranking" bindtap="jumpRanking" />
    <image src="/static/yqgl.png" class="strategy"
        data-iconDetail="http://reader-wx.ai160.com/images/reader/v3/yxgl.jpg" bindtap="jumpIntro" />
    <view class="body">
        <view class="pennant" wx:for="{{list}}" wx:key="num" id="p{{item.num}}"
            style="top:{{item.top}}rpx;left:{{item.left}}rpx" data-num='{{item.num}}' bindtap="applyOr">
            <image src="{{filters.showPennant(count,item.num)}}" class='icon' />
            <view class="num">邀{{item.num}}人</view>
        </view>
        <image wx:for="{{treasureList}}" wx:key='id' src="{{item.id>count?item.close:item.open}}"
            style="top:{{item.top}}rpx;left:{{item.left}}rpx" class="treasure {{item.id<=count?'shake':''}}"
            bindtap="openTips" data-info="{{item}}" />
        <image src="{{60>count?'/static/always.png':'/static/always-2.png'}}" class="always {{60<=count?'shake':''}}"
            bindtap="openTips" data-info="{id:60}" />
    </view>
</view>
<view class="mediaBox" wx:if="{{state}}">
    <view class="media">
        <view class="body">
            <image src="/static/inviteH.png" class="inviteH" />
            <view class="title">{{modelInfo.title}}</view>
            <view class="tips">{{modelInfo.text}}</view>
            <view class="tips">{{modelInfo.text2}}</view>
            <button class="resetBtn shareBtn" open-type="share" bindtap="shareVideo">
                <image src="/static/forward.png" class="shareImg" />邀请我的同学朋友
            </button>
        </view>
        <image src="/static/lollipop.png" class="close" catchtap="closeMediaBox" />
    </view>
</view>