<!--pages/luckDraw/profile.wxml-->
<!-- 头部说明 -->
<view class="explain flex-row">
  <view class="explain-left flex-column" catchtap="{{isLogin?'getProfile':''}}">
    <view class="explain-discount">优惠券({{couponNum}})</view>
    <!-- <view class="{{noCoupon?'explain-column':'explain-columnNo'}}"></view> -->
    <block wx:if="{{noCoupon}}">
      <view class="explain-column" style="background: {{config.mainColor?config.mainColor:'#B01717'}};"></view>
    </block>
    <block wx:else>
      <view class="explain-columnNo"></view>
    </block>
  </view>
  <view class="explain-right flex-column" catchtap="{{isLogin?'getPrize':''}}">
    <view class="explain-utility">奖品({{thirdPrizeNum}})</view>
    <!-- <view class="{{noPrize?'explain-column':'explain-columnNo'}}"></view> -->
    <block wx:if="{{noPrize}}">
      <view class="explain-column" style="background: {{config.mainColor?config.mainColor:'#B01717'}};"></view>
    </block>
    <block wx:else>
      <view class="explain-columnNo"></view>
    </block>
  </view>
</view>
<!-- 主要内容 -->
<view class="check-in-content flex-column">
  <button class="luck-draw-cz" wx:if="{{!isLogin}}" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">请登录</button>
  <!-- 优惠券内容 -->
  <view hidden="{{hidden1}}">
    <view class="coupon-wrap-list">
      <coupon-wrap wx:if="{{goodsItemList.length>0}}" coupon-list="{{goodsItemList}}" class="coupon_wrap" coupon-item-ex-class="coupon-item-style" coupon-circule-ex-class="coupon-circule-style" />
    </view>

    <view class="no_result" wx:if="{{noResult}}">———— 抱歉，您暂无可用优惠券 ————</view>
    <view class="no_result" wx:if="{{noMore}}">—— 人家也是有底线的 ——</view>
  </view>

  <!-- 奖品 -->
  <view hidden="{{hidden2}}">
    <view wx:for="{{goodsItemList}}" wx:key="index" data-id="{{item.id}}" data-src="{{item.goodsData.fullPhotoUrl}}" catchtap="toLookHitPhoto">
      <image class="prize-content-img" src="{{prizeImgList.length > 0 && prizeImgList[0].figure?prizeImgList[0].figure:'https://dy.shpr.top/welfareGo/luck-draw1.png'}}">
      </image>
      <view class="prize-content flex-row">
        <view class="coupon-content">
          <view class="coupon-title over-ellipsis">{{item.goodsName?item.goodsName:'未设置名称'}}</view>
          <view class="coupon-data flex-row">
            <view class="coupon-data-time">{{item.createTime}}</view>
            <view class="coupon-refund flex-row" style="color: {{config.secColor?config.secColor:'#B01717'}};">
              <view class="lower-coupon-text" style="color: {{config.secColor?config.secColor:'#B01717'}};">立即兑换</view>
            </view>
          </view>
        </view>
        <view class="coupon-img flex-column">
          <image class="coupon-img-url" src="{{item.fullGoodsBigImage}}"></image>
        </view>
      </view>
    </view>
    <view class="no_result" wx:if="{{noResult}}">———— 抱歉，您暂无可领取奖品 ————</view>
    <view class="no_result" wx:if="{{noMore}}">—— 人家也是有底线的 ——</view>
  </view>
</view>
<!-- 底部导航 -->
<!-- <tab-bar /> -->

<custom-preview-image wx:if="{{showCustomPreview}}" src="{{previewImgSrc}}" bind:closeCallback="closePreviewImage" />