<navbar home back text="兑换码" background="#fff"></navbar>
<view style="height:{{navigationBarHeight}} "></view>
<view class='couponBox' >
  <view class="couponbg">
    <view class="title">{{title}}</view>
    <!-- <view class="subtitle">{{subtitle}}</view> -->
    <image class='line' src='{{topLineUrl}}' mode="widthFix"></image>
    
    <!-- 
        couponorderstatus
        0 未使用
        1 已使用
        2 已过期
        3 已经退款
     -->

    <view class="zhuangtai"> 
      <image wx:if="{{couponorderstatus==1}}" src="{{wm01Url}}" mode='widthFix'></image>
      <image wx:if="{{couponorderstatus==2}}" src="{{wm02Url}}" mode='widthFix'></image>
      <image wx:if="{{couponorderstatus==3}}" src="{{wm03Url}}" mode='widthFix'></image>
      <image wx:if="{{couponorderstatus==0&&validStatus==0}}" src="{{wm04Url}}" mode='widthFix'></image>
      <view class="panel" wx:if="{{couponorderstatus==0&&validStatus!=0}}">
          <view class="canWrap">
            <canvas canvas-id="qrcode" style="width: 1200rpx; height: 800rpx;" />
          </view>
          <image src="{{tempFilePath}}" mode="aspectFit" />
          <view class="closeRq"  wx:if="{{showhieRq}}" bindtap="setRq">
              <image class="updataRqCode" mode='widthFix' src="{{upDataRqUrlF}}"></image>
              <view class="upDataRq">点一点刷新二维码</view>
          </view>
          <view class="coedTiem" wx:if="{{!showhieRq&&expiredSeconds>1}}">二维码在
            <text style="color:red">{{expiredSeconds}}s</text> 
           后失效
          </view>
          <view class="barnum">
            <view class="barnumtext">{{showIdFalg?code:codeS}}</view>
            <image class="barnumImg"  src="../../assets/images/password.png" bindtap="showId"></image>
        </view>
      </view>
    </view>
    <image class='line' src='{{btomLineUrl}}' mode="widthFix"></image>
    <!-- <view class="gou">
        <view class="mai">购买须知:</view>
        <view class="remark">{{remark}}</view>
    </view> -->
    <view class='notes'>
      <view>
        <!-- <text>购买须知:</text> -->
      </view>
      <view wx:if="{{curHtml==''}}">
        <text><text class='spot'></text>{{data.remark}}</text>
      </view>
      <view wx:if="{{curHtml!=''}}">
        <rich-text nodes="{{curHtml}}"></rich-text>
      </view>
    </view>
  </view>
  <view class='game' bindtap="gotogame" wx-if="{{showIf}}">
    <view class='game-entry'> 
      <image src="{{staticGamedata.imgUrl}}" class='gameimg' mode='widthFix'></image>
      <text>用户专享神秘礼物</text>
      <text>独家福利，抢完即止</text>
    </view>
  </view>
</view>
