<page-wrap id="#Page">
  <image src="{{detail.fullCoverImg}}" mode="widthFix" class="top_img"></image>
  <view class="info_all flex-row">
    <view class="flex-row info">
      <view class="info_left flex-column">
        <view class="info_name over-ellipsis">{{detail.name}}</view>
        <view class="round" wx:if="{{detail.round}}">轮次：{{detail.round}}</view>
        <!-- <view class="info_coupon_num">3张代金券、3张折扣券</view> -->
        <view class="info_coupon_num" wx:if="{{detail.cashCouponNum > 0 && detail.discountCouponNum > 0}}">含{{detail.cashCouponNum}}张代金券、{{detail.discountCouponNum}}张折扣券</view>
          <view class="info_coupon_num" wx:if="{{detail.cashCouponNum ==0 && detail.discountCouponNum > 0}}">含{{detail.discountCouponNum}}张折扣券</view>
          <view class="info_coupon_num" wx:if="{{detail.cashCouponNum > 0 && detail.discountCouponNum == 0}}">含{{detail.cashCouponNum}}张代金券</view>
          <view class="info_coupon_num" wx:if="{{detail.cashCouponNum ==0 && detail.discountCouponNum ==0}}"></view>
        <view class="flex-row">

      <view class="flex-row">
      <image src="/images/welfareMall/right_1.png" class="right_icon"></image>
      <view class="right_text">仅支持整单</view>
      </view>
      <view class="flex-row">
      <image src="/images/welfareMall/right_1.png" class="right_icon"></image>
      <view class="right_text">支持退款</view>
      </view>
      <view class="flex-row">
      <image src="/images/welfareMall/right_1.png" class="right_icon"></image>
      <view class="right_text">立即可用</view>
      </view>

        </view>
      </view>

      <view class="info_right flex-column">
      <view class="info_right_top" style="color: {{config.secColor?config.secColor:'#B01717'}};" wx:if="{{detail.isPay!=0}}">{{detail.priceFormatter}}元</view>
      <view class="info_right_top" style="color: {{config.secColor?config.secColor:'#B01717'}};" wx:else>免费</view>
      <view class="info_right_bottom" style="color: {{config.secColor?config.secColor:'#B01717'}};">价值￥{{detail.showPriceFormatter}}</view>
      </view>
    </view>
    </view>
    <view  class="bottom_title flex-column">
    <view class="flex-row bottom_title_top">
    <image src="/images/welfareMall/bag_content.png" class="bottom_icon"></image>
    <view class="bottom_tilte_text">礼包内容</view>
    </view>

    <coupon-wrap wx:if="{{couponList.length>0}}" coupon-list="{{couponList}}" class="coupon_wrap" />

    </view>

    <view  class="bottom_title flex-column">
    <view class="flex-row bottom_title_top">
    <image src="/images/welfareMall/buy_info.png" class="bottom_icon"></image>
    <view class="bottom_tilte_text">购买须知</view>
    </view>
    <rich-text class="bottom_title_b" nodes="{{detail.buyRemark}}"></rich-text>

    </view>

    <view  class="bottom_title flex-column" style="margin-bottom: 130px;">
    <view class="flex-row bottom_title_top">
    <image src="/images/welfareMall/use_info.png" class="bottom_icon"></image>
    <view class="bottom_tilte_text">使用说明</view>
    </view>
    <rich-text class="bottom_title_b" nodes="{{detail.remark}}"></rich-text>

    </view>

    <view class="bottom_button" >
      <block wx:if="{{detail.status ==2 && detail.stock !=0}}">
        <view class="now_buy" style="background-color: {{config.mainColor?config.mainColor:'#B01717'}};" bindtap="nowBuy" wx:if="{{userMobile.length>0}}">{{buttonText}}</view>
        <button class="now_buy_button" style="background-color: {{config.mainColor?config.mainColor:'#B01717'}};" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber" wx:else>{{buttonText}}</button>
      </block>
      <view class="go_buy"  style="background-color:#bdbdbd" wx:else>{{statusShowText}}</view>
    </view>
    
    <view class="bg-zindex" wx:if="{{hideWindowValue}}">

        <view class="success_window flex-column">
        <view class="w_title">购买成功</view>
        <view class="w_name">{{detail.name}}</view>
        <view class="w_text">已发送至您的卡包</view>
        <view class="w_border"></view>
        <view class="w_go_order" bindtap="goToOrderInfo">去看看</view>

        </view>
      <image class="widow_del" src="/images/welfareMall/window_del.png"  bindtap="goToOrderList"></image>
    </view>

</page-wrap>