<view style="background-color:{{actBgColor==undefined?'#FFB72D':actBgColor}}">
  <view class="image_box">
    <image src="{{iurl}}{{bimg?bimg:'/miniapp/images/default_g_img.gif'}}" binderror="bind_bnerr1" data-errorimg="bimg" lazy-load="true"></image>
  </view>
  <block wx:if="{{itemShow}}">
    <view class="top rel">
      <view class="top_box">
        <view class="top_box_text">
          <text style="color:{{actFontColor!='' && actFontColor!=undefined?actFontColor:''}}">______</text>
        </view>
        <view class="top_box_text">
          <text style="color:{{actFontColor!='' && actFontColor!=undefined?actFontColor:''}}">节日专享\n你的美丽我来缔造</text>
        </view>
        <view class="top_box_text">
          <text style="color:{{actFontColor!='' && actFontColor!=undefined?actFontColor:''}}">______</text>
        </view>
      </view>
      <block wx:for="{{itemWare}}" wx:for-item="item" wx:for-index="index" wx:key="index">
        <view class="top_item ">
          <block wx:if="{{item.lbType==3}}">
            <view class="top_item_img">
              <image src="{{item.fromImage=='' || item.fromImage==null?iurl+'/miniapp/images/giftbag/gift02.png':iurl+item.fromImage}}" lazy-load="true" data-errorimg="itemWare[{{index}}].fromImage" binderror="bind_bnerr1" data-img="{{item.fromImage}}"></image>
            </view>
          </block>
          <block wx:if="{{item.lbType==1}}">
            <view class="top_item_img ">
              <image src="{{item.fromImage==''?iurl+'/miniapp/images/giftbag/empty.jpg':iurl+item.fromImage}}" lazy-load="true"></image>
            </view>
          </block>
          <view class="top_item_center ">
            <view class="top_item_center_title" style="color:{{actFontColor!='' && actFontColor!=undefined?actFontColor:''}}">
              <block wx:if="{{item.lbType==1}}">
                <text>免费领取</text>
              </block>
              <block wx:if="{{item.lbType==3}}">
                <text>{{item.fromName}}</text>
              </block>
            </view>
            <view class="top_item_center_ramke ">
              <block wx:if="{{item.lbType==1}}">
                <text>{{item.fromName}}</text>
              </block>
              <block wx:if="{{item.lbType==3}}">
                <text>{{"节日可免费享受专业"+item.fromName+"，可以享受"+item.num+"次。"}}</text>
              </block>
              <view class="num flex-level-right fs26" style="color:{{actFontColor!='' && actFontColor!=undefined?actFontColor:''}}">
                <view>数量：</view>
                <view>{{item.num}}</view>
              </view>
            </view>
          </view>
        </view>
      </block>
      <block wx:if="{{itemShow}}">
        <view class="vips">
          <image class="lvip abs" src="{{iurl+'/miniapp/images/giftbag/vip05.png'}}" lazy-load="true"></image>
          <image class="rvip abs" src="{{iurl+'/miniapp/images/giftbag/vip05.png'}}" lazy-load="true"></image>
        </view>
      </block>
    </view>
  </block>
  <block wx:if="{{cardShow}}">
    <view>
      <view class="top rel">
        <view class="top_box ">
          <view class="top_box_text">
            <text style="color:{{actFontColor!='' && actFontColor!=undefined?actFontColor:''}}">———</text>
          </view>
          <view class="top_box_text ">
            <text style="color:{{actFontColor!='' && actFontColor!=undefined?actFontColor:''}}">节日专享优惠券</text>
          </view>
          <view class="top_box_text ">
            <text style="color:{{actFontColor!='' && actFontColor!=undefined?actFontColor:''}}">———</text>
          </view>
        </view>
        <block wx:for="{{cards}}" wx:for-item="item" wx:for-index="index" wx:key="index">
          <view class="top_card ">
            <view class="{{item.useObjectType==1?'top_card_box img1':item.useObjectType==2?'top_card_box img2':'top_card_box img3'}}">
              <!-- class="{{['',item.useObjectType==1?'top_card_box img1':item.useObjectType==2?'top_card_box img2':'top_card_box img3']}}" -->
              <view class="top_card_tite_box ">
                <block wx:if="{{item.useObjectType==0}}">
                  <view class="top_card_tite_a">全场通用</view>
                </block>
                <block wx:if="{{item.useObjectType==1}}">
                  <view class="top_card_tite_b">品牌限定</view>
                </block>
                <block wx:if="{{item.useObjectType==2}}">
                  <view class="top_card_tite_c">品类限定</view>
                </block>
                <block wx:if="{{item.useObjectType==11}}">
                  <view class="top_card_tite_a">用途限定</view>
                </block>
                <block wx:if="{{item.useObjectType==12}}">
                  <view class="top_card_tite_a">分类限定</view>
                </block>
              </view>
              <block wx:if="{{item.isPack!=null}}">
                <view class="top_card_counte">包邮券</view>
              </block>
              <block wx:else>
                <view class="top_card_counte ">{{item.sum+"元券"}}</view>
              </block>
              <view class="top_card_remak ">{{"满"+item.buySum+"元可以用"}}</view>
            </view>
          </view>
        </block>
        <block wx:if="{{packShow}}">
          <view class="vips">
            <image class="lvip abs" src="{{iurl+'/miniapp/images/giftbag/vip05.png'}}" lazy-load="true"></image>
            <image class="rvip abs" src="{{iurl+'/miniapp/images/giftbag/vip05.png'}}" lazy-load="true"></image>
          </view>
        </block>
      </view>
    </view>
  </block>
  <block wx:if="{{packShow}}">
    <view>
      <view class="top ">
        <view class="top_box ">
          <view class="top_box_text ">
            <text>———</text>
          </view>
          <view class="top_box_text ">
            <text>节日专享福利</text>
          </view>
          <view class="top_box_text ">
            <text>———</text>
          </view>
        </view>
        <block wx:if="{{integralShow}}">
          <view>
            <view class="top_box_image ">
              <image src="{{iurl+'/miniapp/images/giftbag/integral.png'}}" lazy-load="true"></image>
              <button style="background-color:{{actFontColor!='' && actFontColor!=undefined?actFontColor:''}}">{{integralTitle}}</button>
            </view>
          </view>
        </block>
        <block wx:if="{{growUpShow}}">
          <view>
            <view class="top_box_image fs36">
              <image src="{{iurl+'/miniapp/images/giftbag/growup.png'}}" lazy-load="true"></image>
              <button style="background-color:{{actFontColor!='' && actFontColor!=undefined?actFontColor:''}}">{{growUpTitle}}</button>
            </view>
          </view>
        </block>
      </view>
    </view>
  </block>
  <block wx:if="{{textShow}}">
    <view class="foot_box">
      <view class="foot_box_title fs36">
        <text>活动规则:</text>
      </view>
      <view class="foot_box_text">
        <rich-text nodes="{{textTitle}}" style="word-break:break-all;word-wrap:break-word"></rich-text>
      </view>
    </view>
  </block>
  <view class="button_box">
    <view>
      <button class="button" bindtap="goto" data-url="/pages/index/index/index" style="background-color:{{actFontColor!='' && actFontColor!=undefined?actFontColor:''}}">进入商城购物</button>
    </view>
    <view class="button_text ">
      <text>本活动最终解释权归公司所有，如果有问题请联系客服</text>
    </view>
  </view>
  <view class="foot_empty "></view>
  <view class="foot_button">
    <block wx:if="{{receiveState}}">
      <view class="foot_button_notbuy">
        <text>已领取</text>
      </view>
    </block>
    <block wx:else>
      <view class="foot_button_buy'}}" bindtap="GetReceive">
        <text>一键全部领取</text>
      </view>
    </block>
  </view>
</view>
<!-- 引入提示组件 -->
<warn id="warn"></warn>
<my_confirm id="my_confirm"></my_confirm>