<view class='order'>
  <view wx:if="{{order.orderStatus==1}}" class='tips'>
    <image class='success'  src='../../../assets/img/succ.png' mode='widthFix'></image>
    <text wx:if="{{order.salePrice/100==0}}">领取成功，请尽快到门店使用</text>
    <text wx:if="{{order.salePrice/100!=0}}">付款成功，请尽快到门店使用</text>
  </view>
  <view class='section'>
    <view class='detail_msg'>
      <view class='logo'>
        <image mode='aspectFill' src='{{order.coverImg}}'></image>
      </view>
      <view class='info'>
        <view>
          <text>{{order.title}}</text>
        </view>
        <view>
          <text>{{order.subTitle}}</text>
        </view>
        <!-- <view>
          <text>购买数量：</text>1件
        </view> -->
        <view>
          <text>下单时间：</text>{{createDate}}</view>
      </view>
    </view>

  </view>
  <view class='classif'>
    <view class="clearfix">
      <text>适用门店</text>
      <text class="fr">{{order.merchantName}}</text>
    </view>
    <!-- 
      couponOrderStatus
      0 未使用
      1 已使用
      2 已过期
      3 已经退款
     -->
     <!-- 
       orderStatus
       1
       只有支付完成的时
       才显示兑换码
      -->
    <view wx:if="{{order.orderStatus==1}}" data-couponOrderStatus="{{order.couponOrderStatus}}" data-title="{{order.title}}" data-subtitle="{{order.subTitle}}" data-remark="{{order.remark}}" data-quancode="{{order.couponOrderId}}" bindtap="powerDrawer">
      <view style="width:86%;clear: both;">
        <text>兑换码</text>
        <text class="fr">{{order.couponOrderId}}</text>
      </view>
      <view>
        <image class="spcode" src="./../../../assets/img/spcode.png" mode='widthFix'></image>
      </view>
    </view>
    <view>
      <text>下单时间</text>
      <text>{{createDate}}</text>
    </view>
    <view>
      <text>订单编号</text>
      <text>{{order.orderNumber}}</text>
    </view>
    <view>
      <text>订单金额</text>
      <text class="jine">{{order.salePrice/100}}元</text>
    </view>
  </view>
  <!-- 待付款 显示立即购买的按钮 -->
  <view wx:if="{{order.orderStatus==0}}" class="buy-view app-border-top">
    <button bindtap='orderFunc' hover-class='active'  data-couponChannelId="{{order.id}}" class='buy'>立即支付</button>
  </view>
</view>
