<view>
  <scroll-view class="scroll" a:if="{{list.length>0}}" scroll-y="{{true}}" onScrollToLower="onScrollToLower" style="padding:20rpx">
    <view a:for="{{list}}" style="padding:20rpx;box-shadow: 0rpx 0rpx 10rpx #ccc;margin-bottom:20rpx" data-item="{{item}}" 
      catchTap="openDetail">
      <view class="flex-box-ce" style="border-bottom:1px solid #f1f1f1;padding-bottom:20rpx">
        <text class="flex-1 font-flex-word" style="padding-right:20rpx;">{{item.goods_name}}</text>
        <text class="yellow" style="width:100rpx" a:if="{{item.status==0}}">未发放</text>
        <text class="green" style="width:100rpx" a:if="{{item.status==1}}">已发放</text>
        <text class="red" style="width:100rpx" a:if="{{item.status==2}}">已取消</text>
      </view>
      <view class="flex-box-ce" style="padding:20rpx 0">
        <image src="{{item.goods_image}}" mode="aspectFill" style="width:200rpx;height:200rpx;border-radius: 10rpx;" />
        <view class="flex-box-v flex-1" style="height:200rpx;padding-top:20rpx;padding-left:20rpx;">
          <view style="margin-bottom:30rpx"> 单价：{{item.price}}功勋点</view>
          <view class="fontColorF" style="margin-bottom:30rpx"> 数量：{{item.num}}</view>
          <view >总价：{{item.total_price}}功勋点</view>
        </view>
        <image src="../../../image/code.jpg" data-item="{{item}}" style="width:70rpx;height:70rpx" catchTap="showText" />
      </view>
      <view class="fontColorF" style="font-size:28rpx">兑换时间 {{item.date}}</view>
    </view>
    <view class="noDatas" a:if="{{isData}}">没有更多咯</view>
  </scroll-view>
  <no-data a:if="{{list.length==0}}" />
  <view a:if="{{isBh}}" class="windows" content="还没有积分事件">
    <view class="windows-box">
      <view class="windows-title">兑换码</view>
      <view class="flex-box-ce flex-center-center" style="margin-bottom:20rpx;">
        <text style="padding-right:20rpx;font-size:36rpx">{{sn}}</text>
        <button size="mini" open-type="share" catchTap="handleCopy">复制</button>
      </view>
      <view style="text-align:center;padding:20rpx 0;">
        <image src="{{image}}" style="width:260rpx;height:260rpx;border-radius: 10rpx" />
      </view>
      <view class="windows-content">提供兑换码或二维码给奖品兑换负责人即可</view>
      <view class="windows-btn flex-box flex-v-ce">
        <view class="flex-1" catchTap="showText">我知道了</view>
      </view>
    </view>
  </view>
</view>