<!--pages/luckDraw/recordPrize.wxml-->
<button class="luck-draw-cz" wx:if="{{!isLogin}}" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">请登录</button>
<view wx:for="{{userDrawItemList}}" wx:key="index" data-id="{{item.id}}">
  <block wx:if="{{item.isHit == 1 &&(item.goodsType == 1 || item.goodsType == 2)}}">
    <navigator class="record flex-row" target="miniProgram" app-id="wxd92a2d29f8022f40" path="pages/index/index" open-type="navigate">
      <view class="record-content">
        <view class="record-title over-ellipsis">{{item.goodsName?item.goodsName:'未设置名称'}}</view>
        <view class="record-data flex-row">
          <view class="record-data-time">{{item.createTime}}</view>
          <view class="record-refund flex-row">
            <view class="lower-record-text">立即使用</view>
          </view>
        </view>
      </view>
      <view class="record-img flex-column">
        <image class="record-img-url" src="{{item.fullGoodsBigImage}}"></image>
      </view>
    </navigator>
  </block>
  <block wx:elif="{{item.isHit == 1 && item.goodsType == 3}}" wx>
    <view class="record flex-row" data-src="{{item.goodsData.fullPhotoUrl}}" catchtap="toLookHitPhoto">
      <view class="record-content">
        <view class="record-title over-ellipsis">{{item.goodsName?item.goodsName:'未设置名称'}}</view>
        <view class="record-data flex-row">
          <view class="record-data-time">{{item.createTime}}</view>
          <view class="record-refund flex-row">
            <view class="lower-record-text">立即兑换</view>
          </view>
        </view>
      </view>
      <view class="record-img flex-column">
        <image class="record-img-url" src="{{item.fullGoodsBigImage}}"></image>
      </view>
    </view>
  </block>
  <block wx:else="{{item.isHit == 0}}" wx>
    <view class="no-record flex-row">
      <view class="record-content">
        <view class="record-title over-ellipsis">未中奖</view>
        <view class="record-data flex-row">
          <view class="record-data-time">{{item.createTime}}</view>
         
        </view>
      </view>
      <view class="record-img flex-column">
        <image class="no-record-img-url" src="/images/luck-draw/nogift.png"></image>
      </view>
    </view>
  </block>
</view>

<view class="no_result" wx:if="{{noResult}}">———— 抱歉，您暂无抽奖记录 ————</view>
<view class="no_result" wx:if="{{noMore}}">—— 人家也是有底线的 ——</view>


<!-- 底部导航 -->
<!-- <tab-bar /> -->
<custom-preview-image wx:if="{{showCustomPreview}}" src="{{previewImgSrc}}" bind:closeCallback="closePreviewImage" />