<view class="all">
  <view class="flex-box-ce" style="background:#fff;padding:24rpx">
    <image mode="aspectFill" src="{{detail.image}}" class="img" data-url="{{detail.image}}"  catchTap="showImg"/>
    <view class="flex-box-v flex-1" style="height:300rpx;padding-left:20rpx">
      <view class="content fontColorF flex-1">
       {{detail.name}}
      </view>
      <view style="margin-bottom:20rpx" class="flex-box-ce">
        <view class="flex-1"> 功勋点: <text class="red">{{detail.price}}</text></view>
      </view>
      <view class="flex-box-ce">
        <text>数量：</text>
        <view class="flex-box-ce">
          <view class="num" catchTap="active" data-id="1">-</view>
          <input class="input" type="number" disabled  value="{{val}}" />
          <view class="num" data-id="2" catchTap="active">+</view>
        </view>
      </view>
    </view>
  </view>
  <view class="fontColorF" style="padding:20rpx;background:#fff;padding-bottom:0"> 库存:
    <text a:if="{{detail.stock_type == 1}}">不限</text>
    <text a:else>{{detail.stock}}</text>
   </view>
  <view class="fontColorF" style="padding:20rpx;background:#fff"> 奖品描述: {{detail.desc}}</view>
  <textarea onBlur="bindTextAreaBlur" placeholder="请输入兑换备注" maxlength="100" style="margin-top:24rpx;padding:24rpx;height:200rpx;margin-bottom:200rpx" />
  <button type="primary" class="btn" catchTap="showText" loading="{{disabled}}" disabled="{{disabled}}">立即兑换</button>
  <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">确认兑换</text>
      </view>
      <view style="text-align:center;padding:20rpx 0;">
        <image src="{{detail.image}}" mode="aspectFill" style="width:260rpx;height:260rpx;border-radius: 10rpx" />
      </view>
      <view class="windows-content" style="text-align:center">需要花<text class="red">{{num}}</text>功勋点兑换此奖品</view>
      <view style="text-align:center;font-size:24rpx;margin-bottom:20rpx" class="fontColorX">
        （当前的功勋点为{{gxd}}）
      </view>
      <view class="btns flex-box flex-v-ce">
        <view class="flex-1" catchTap="showText">取消</view>
        <view class="flex-1" catchTap="openText">确认</view>
      </view>
    </view>
  </view>
</view>