<view wx:if="{{is_head}}" class="box data-v-3a5b7e36" bindtap="close">
  <view class="box_top data-v-3a5b7e36">
    <image src="{{giftImage}}" class="data-v-3a5b7e36" data-i='{{giftImage}}' lazy-load="true" binderror="bind_bnerr" data-errorimg="giftImage"></image>    
  </view>
  <view class="box_title data-v-3a5b7e36">
    <view class="top_title data-v-3a5b7e36">
      <text class="data-v-3a5b7e36 ellipsis-2">{{giftTitle}}</text>
    </view>
    <view wx:if="{{giftDate!=''}}" class="top_time data-v-3a5b7e36">
      <text class="data-v-3a5b7e36">{{"兑换截至时间："+giftDate}}</text>
    </view>
    <view class="top_price data-v-3a5b7e36">
      <block wx:if="{{giftPrice>0}}">
        <text class="data-v-3a5b7e36">{{"￥"+giftPrice}}</text>
      </block>
      <block wx:if="{{giftPrice>0 && giftIntegral>0}}">
        <text class="data-v-3a5b7e36">/</text>
      </block>
      <block wx:if="{{giftIntegral>0}}">
        <text class="data-v-3a5b7e36">{{giftIntegral+"积分"}}</text>
      </block>
      <block wx:if="{{giftType>0}}">
        <text class="data-v-3a5b7e36">{{actTitle}}</text>
      </block>
    </view>
    <view class="top_foot data-v-3a5b7e36">
      <view class="top_foot_price data-v-3a5b7e36">
        <text class="data-v-3a5b7e36">{{"零售价:"+giftPosPrice+"元"}}</text>
      </view>
      <view class="top_foot_qty data-v-3a5b7e36">
        <text class="data-v-3a5b7e36">{{"已售:"+giftQty+"件"}}</text>
      </view>
    </view>
  </view>
  <view class="box_ware data-v-3a5b7e36">
    <view class="box_ware_title data-v-3a5b7e36">
      <text class="data-v-3a5b7e36">礼包内容</text>
    </view>
    <block wx:for="{{wareCard}}" wx:for-item="item" wx:for-index="index" wx:key="index">
      <view class="box_ware_box data-v-3a5b7e36">
        <view class="box_ware_img data-v-3a5b7e36">
          <block wx:if="{{item.lbType==1}}">
            <image src="{{item.wareImage==''?iurl+'/miniapp/images/giftbag/gift01.png':iurl+item.wareImage}}" class="data-v-3a5b7e36" lazy-load="true" binderror="bind_bnerr2" data-errorimg="wareCard[{{index}}].wareImage"></image>
          </block>
          <block wx:if="{{item.lbType==2}}">
            <image src="{{iurl+'/miniapp/images/giftbag/gift05.png'}}" class="data-v-3a5b7e36" lazy-load="true" binderror="bind_bnerr2" data-errorimg="wareCard[{{index}}].wareImage"></image>
          </block>
          <block wx:if="{{item.lbType==3}}">
            <image src="{{iurl+'/miniapp/images/giftbag/gift02.png'}}" class="data-v-3a5b7e36" lazy-load="true" binderror="bind_bnerr2" data-errorimg="wareCard[{{index}}].wareImage"></image>
          </block>
          <block wx:if="{{item.lbType==4}}">
            <image src="{{iurl+'/miniapp/images/giftbag/gift03.png'}}" class="data-v-3a5b7e36" lazy-load="true" binderror="bind_bnerr2" data-errorimg="wareCard[{{index}}].wareImage"></image>
          </block>
          <block wx:if="{{item.lbType==5}}">
            <image src="{{iurl+'/miniapp/images/giftbag/gift04.png'}}" class="data-v-3a5b7e36" lazy-load="true" binderror="bind_bnerr2" data-errorimg="wareCard[{{index}}].wareImage"></image>
          </block>
        </view>
        <view class="box_ware_item data-v-3a5b7e36">
          <view class="box_ware_item_title data-v-3a5b7e36">
            <text class="data-v-3a5b7e36">{{item.couponName}}</text>
          </view>
          <view class="box_ware_item_price data-v-3a5b7e36">
            <text class="data-v-3a5b7e36"></text>
          </view>
          <view class="box_ware_item_qty data-v-3a5b7e36">
            <text class="data-v-3a5b7e36 ellipsis-1">{{"数量:"+item.num}}</text>
          </view>
          <!-- 已完成方可显示 -->
          <block wx:if="{{is_type==2}}">
            <view class="box_ware_code data-v-3a5b7e36">
              <block wx:if="{{c_state==0}}">
                <block wx:if="{{item.lbType==1}}">
                  <image src="{{iurl+'/miniapp/images/giftbag/gift06.png'}}" lazy-load="true" bindtap="getcode" class="data-v-3a5b7e36"></image>
                </block>
              </block>
              <block wx:else>
                <block wx:if="{{isBuy==0&item.lbType==1}}">
                  <image src="{{iurl+'/miniapp/images/giftbag/gift08.png'}}" lazy-load="true" class="data-v-3a5b7e36"></image>
                </block>
              </block>
              <block wx:if="{{item.lbType==2}}">
                <image src="{{iurl+'/miniapp/images/giftbag/gift06.png'}}" class="data-v-3a5b7e36" lazy-load="true" data-url="/packageD/pages/user/coupons/coupons" bindtap="goto"></image>
              </block>
              <block wx:if="{{item.lbType==3}}">
                <image src="{{iurl+'/miniapp/images/giftbag/gift06.png'}}" class="data-v-3a5b7e36" lazy-load="true" data-url="/pages/user/my_service/i_service" bindtap="goto"></image>
              </block>
              <block wx:if="{{item.lbType>3}}">
                <text class="data-v-3a5b7e36">奖励已发放</text>
              </block>
            </view>
          </block>
        </view>
      </view>
    </block>
  </view>
  <view class="foot_box data-v-3a5b7e36">
    <view class="foot_box_title data-v-3a5b7e36">
      <text class="data-v-3a5b7e36">活动说明</text>
    </view>
    <view class="foot_box_remark data-v-3a5b7e36">
      <rich-text nodes="{{giftRemark}}" style="word-break:break-all;word-wrap:break-word"></rich-text>
    </view>
  </view>
  <view class="foot_empty data-v-3a5b7e36"></view>
  <view class="foot_button data-v-3a5b7e36">
    <block wx:if="{{is_type!=0}}">
      <block wx:if="{{is_type==1}}">
        <view class="foot_button_buy data-v-3a5b7e36" bindtap="GetReceive" wx:if="{{!receiveState}}">
          <text class="data-v-3a5b7e36">一键全部领取</text>
        </view>

        <view class="foot_button_buy data-v-3a5b7e36 on" bindtap="GetReceive" wx:else>
          <text class="data-v-3a5b7e36">已领取</text>
        </view>
      </block>
      <block wx:if="{{is_type==2}}">
        <block wx:if="{{is_lb!=1}}">
          <view class="foot_button_buy data-v-3a5b7e36 overdue">
            <text class="data-v-3a5b7e36">无核销商品</text>
          </view>
        </block>
        <block wx:else>
          <view wx:if="{{c_state==0}}" class="foot_button_buy data-v-3a5b7e36" bindtap="getcode">
            <text class="data-v-3a5b7e36">立即使用</text>
          </view>
          <view wx:if="{{c_state==1}}" class="foot_button_buy data-v-3a5b7e36 overdue" bindtap="getcode">
            <text class="data-v-3a5b7e36">商品已核销</text>
          </view>
          <view wx:if="{{c_state==2}}" class="foot_button_buy data-v-3a5b7e36 overdue">
            <text class="data-v-3a5b7e36">商品兑换时间已过</text>
          </view>
        </block>
      </block>
    </block>
    <block wx:else>
      <view class="foot_button_buy data-v-3a5b7e36" bindtap="goto" data-url="/pages/index/index/index">
        <text class="data-v-3a5b7e36">回到首页</text>
      </view>
    </block>
  </view>
</view>
<!-- 引入提示组件 -->
<warn id="warn"></warn>
<my_confirm id="my_confirm"></my_confirm>
<!-- 弹出框扫描 -->
<qr_code id="qc_com"></qr_code>
<!--  制作一个圆球导航  -->
<nav_b id="nav_b"></nav_b>
