<view class="top_img" style="background-color: {{ad_data?ad_data.bgcolor:'rgb(250, 120, 88)'}};min-height: 100vh;padding-bottom: 10rpx;">
	<block wx:if="{{ad_data}}">
		<view class="top_img rel">
		   <image mode="widthFix" src="{{ad_data.ad_code}}" lazy-load="true" binderror="bind_bnerr2" data-errorimg="wareCard[{{index}}].lbUrl"></image>
           <lb_sear bindinput_sear="input_sear" bindsearch_lb="search_lb"></lb_sear>
		</view>
	</block>	
	<block wx:else>	
	  <view class="top_img rel">
		   <image mode="widthFix" src="{{iurl+'/miniapp/images/giftbag/gift00.jpg?v=202403'}}" lazy-load="true"></image>
           <lb_sear bindinput_sear="input_sear" bindsearch_lb="search_lb"></lb_sear>
	  </view>
   </block>
  
  
  <view class="top_title">
    <view class="top_title_box">
      <text class="top_title_blacktext" bindtap="redirectTo" data-url="/packageF/pages/giftpack/buygiftpack/giftpackbuy">礼包列表</text>
    </view>
    <view class="top_title_box_S"></view>
    <view class="top_title_box">
      <text class="top_title_redtext">我的礼包</text>
    </view>
  </view>
  <block wx:for="{{wareCard}}" wx:for-item="item" wx:for-index="index" wx:key="index">
    <view class="content_box">
      <view class="content_box_ware" bindtap="navigateTo" data-is_back="{{item.is_back}}" data-url="/packageF/pages/giftpack/giftpacklist/giftpacklist?isBuy=0&lbId={{item.lbId}}&cover_img={{item.cover_img}}&orderSn={{item.orderSn}}">
        <view class="content_box_img">
          <!-- <image src="{{$GetInfo.imgHttp+item.$orig.lbUrl}}"></image> -->
          <image mode="aspectFit" wx:if="{{item.cover_img}}" src="{{iurl+item.cover_img}}" lazy-load="true" binderror="bind_bnerr2"  data-errorimg="wareCard[{{index}}].cover_img"></image>
          <image mode="aspectFit" wx:else src="{{iurl+item.lbUrl}}" lazy-load="true" binderror="bind_bnerr2"  data-errorimg="wareCard[{{index}}].lbUrl"></image>
		  
          <block wx:if="{{item.actType!=0}}">
            <view class="{{[item.actType==1?'content_box_img_title content_box_img_ground1':item.actType==2?'content_box_img_title content_box_img_ground2':item.actType==4?'content_box_img_title content_box_img_ground3':'content_box_img_title content_box_img_ground4']}}">
              <image src="{{iurl+'/miniapp/images/giftbag/gift01.png'}}" lazy-load="true"></image>
              <!-- <block wx:if="{{item.$orig.actType==1}}"> -->
              <block wx:if="{{item.actType==1}}">
                <text>新人有礼</text>
              </block>
              <block wx:if="{{item.actType==2}}">
                <text>评价有礼</text>
              </block>
              <block wx:if="{{item.actType==3}}">
                <text>节日营销</text>
              </block>
              <block wx:if="{{item.actType==4}}">
                <text>生日营销</text>
              </block>
              <block wx:if="{{item.actType==5}}">
                <text>助力礼包</text>
              </block>
            </view>
          </block>
        </view>
        <view class="content_box_title">
          <view class="content_ware_title">
            <text>{{item.giftTitle}}</text>
          </view>
          <view class="content_ware_type">
            <block wx:if="{{item.actType==0&item.payMoney>0}}">
              <text>{{"￥"+item.payMoney}}</text>
            </block>
            <block wx:if="{{item.actType==0&item.payIntegral>0}}">
              <text>{{item.payIntegral+"积分"}}</text>
            </block>

            <!-- (121658)OA单规定取消，2023-12-15   -->
            <!--
            <block wx:if="{{item.actType==1}}">
              <text>{{item.actTitle}}</text>
            </block>
            <block wx:if="{{item.actType==2}}">
              <text>{{item.actTitle}}</text>
            </block>
            <block wx:if="{{item.actType==3}}">
              <text>{{item.actTitle}}</text>
            </block>
            <block wx:if="{{item.actType==4}}">
              <text>{{item.actTitle}}</text>
            </block>
            <block wx:if="{{item.actType==5}}">
              <text>{{item.actTitle}}</text>
            </block>-->

          </view>
          <view class="content_ware_price no_line_c">
            <text >{{"零售价：￥"+item.giftPosPrice}}</text>
          </view>

          <view class="content_ware_time"  wx:if="{{item.iswarelbtype==1}}">
            <block wx:if="{{getDate>item.endTime}}">
            <text>{{"兑换截至日期:"+item.endTime}}</text>
            </block>
            <block wx:if="{{getDate<item.starTime}}">
              <text>{{"距兑换开始时间: "+item.starTime}}</text>
            </block>
          </view>

        </view>
      </view>
      <view wx:if="{{item.is_back !=1}}"  class="content_box_button" bindtap="navigateTo" data-url="/packageF/pages/giftpack/giftpacklist/giftpacklist?isBuy=0&lbId={{item.lbId}}&cover_img={{item.cover_img}}&orderSn={{item.orderSn}}">
          <button class="overdue" wx:if="{{item.c_state==-2}}">无核销商品</button>
          <button class="overdue" wx:if="{{item.c_state==-1}}">兑换未开始</button>
          <button wx:if="{{item.c_state==0}}">立即使用</button>
          <button class="overdue" wx:if="{{item.c_state==1}}" >商品已核销</button>
          <button class="overdue" wx:if="{{item.c_state==2}}">商品兑换时间已过</button>
      </view>
      <view class="content_box_button" style="color:#b9b5b5;" wx:else>已退款</view>
    </view>
  </block>
  <block wx:if="{{is_read && wareCard.length<1 && is_get}}">
    <view class="foot_empty">
      <view>
        <image src="{{iurl+'/miniapp/images/giftbag/gift07.png'}}" lazy-load="true"></image>
      </view>
      <view>
        <text>当前暂无礼包</text>
      </view>
      <view class="foot_empty_button">
        <text bindtap="navigateTo" data-url="/packageF/pages/giftpack/buygiftpack/giftpackbuy">去获取</text>
      </view>
    </view>
  </block>
  <block wx:if="{{ismore}}">
    <!-- 加载完毕并且数据大于=页大小 -->
    <view class="After_all flex-center" wx:if="{{ismore && wareCard.length>=3}}">
      <view class="Line"></view>
      <view class="end fs26">到底了</view>
      <view class="Line"></view>
    </view>
  </block>
</view>
<!-- 引入提示组件 -->
<warn id="warn"></warn>
<my_confirm id="my_confirm"></my_confirm>