<!--pages/payOrder/payOrder.wxml-->
<wxs src="../../../filters/filter.wxs" module="moduleFilter"></wxs>
<view class="ui-navigatorbar" style="border-bottom: 1rpx solid #E3E4E5;">
    <image class="ui-navigatorbar-back" bindtap="goBack" src="{{img_host+'/back.png'}}" />
    <view class="ui-title">订单中心</view>
  </view>
<view class="page">
  <view class="tip">
    <view class="tooltip" wx:if="{{time>0}}"><image src="{{img_host+'/dengdai.png'}}" class="wait"></image>请在 <van-count-down time="{{time}}" format="mm:ss" />分钟内完成支付，超时订单自动取消</view>
    <view class="tooltip" wx:elif="{{time===0}}"><text class="red">订单已超时，已自动取消</text></view>
  </view>
  <view class="moneybox">
    <view class="moneytop">
      <view class="name">支付金额</view>
      <view class="money">￥<text class="price">{{payment_amount_total}}</text></view>
    </view>
    <view class="row">
      <!-- 1:专家问诊 2:快速问诊 3:公益问诊 4:问诊购药 -->
      <view class="name" wx:if="{{inquiry_type==1 && inquiry_mode==1}}">专家问诊-图文</view>
      <view class="name" wx:elif="{{inquiry_type==1 && inquiry_mode==2}}">专家问诊-视频</view>
      <view class="name" wx:elif="{{inquiry_type==1 && inquiry_mode==6}}">专家问诊-疑难会诊</view>
      <view class="name" wx:elif="{{inquiry_type==2}}">快速问诊</view>
      <view class="name" wx:elif="{{inquiry_type==3}}">公益问诊</view>
      <view class="name" wx:elif="{{inquiry_type==4}}">问诊购药</view>
      <view class="name" wx:elif="{{order_type==2 && !inquiry_type }}">药品金额</view>
      <view class="name" wx:elif="{{order_type==3 && !inquiry_type }}">糖组检测</view>
      <view class="name" wx:elif="{{order_type==4 && inquiry_mode==9 }}">随访包服务</view>
      <view class="name" wx:elif="{{order_type==5 && inquiry_mode==8 }}">健康包服务</view>
      <view class="desc">¥{{amount_total}}</view>
      
    </view>
    <view class="row"  wx:if="{{logistics_fee>0}}">
      <view class="name">邮费</view>
      <view class="desc nodiscount">{{logistics_fee}}</view>
    </view>
    <view class="row">
      <view class="name">优惠劵</view>
      <view class="desc nodiscount" wx:if="{{cannot_use_coupon_reason}}">{{cannot_use_coupon_reason}}</view>
      <view class="desc nodiscount" wx:elif="{{moduleFilter.formatMoney(amount_total)==0}}">暂不可用</view>
      <view class="desc nodiscount" wx:elif="{{moduleFilter.formatMoney(amount_total)>0 && moduleFilter.formatMoney(coupon_amount_total)>0}}">-￥{{moduleFilter.formatMoney(coupon_amount_total)}}</view>
      <view class="desc nodiscount" wx:elif="{{moduleFilter.formatMoney(amount_total)>0 && moduleFilter.formatMoney(coupon_amount_total)==0 && order_type!=3}}">暂无优惠券</view>
      <view class="desc nodiscount" wx:elif="{{order_type==3 && !inquiry_type}}">暂不可用</view>
      
    </view>
  </view>
  <view class="bottom">
    <view class="realprice">支付金额：<text class="price">￥{{payment_amount_total}}</text></view>
    <view class="paybtn" bindtap="handleThrottle">
      立即支付
    </view>
  </view>
</view>
<van-dialog id="mydialog"  confirm-button-color="#3CC7C0"  use-slot >
  <view class="slotmsg" wx:if="{{time>0}}">
  已为您锁定问诊名额，请在<van-count-down time="{{time}}" format="mm分ss秒" />内完成支付，超时名额自动取消
</view>
<view class="slotmsg" wx:else>
  订单超时,名额自动取消
</view>
</van-dialog>
<van-dialog id="hasPayDialog"  confirm-button-color="#3CC7C0"  use-slot >
  <view class="slotmsg" >
   {{message_error}},确认前往订单详情
  </view>
</van-dialog>
<van-dialog
  use-slot
  title="温馨提示"
  show="{{ showDing }}"
  show-cancel-button
  confirm-button-text="继续支付"
  cancel-button-text="确定离开"
  confirm-button-color="#3CC7C0"
  bind:confirm="handleThrottle"
  bind:cancel="onClose"
>
<view class="slotmsg" wx:if="{{time>0}}">
  请在<van-count-down time="{{time}}" format="mm分ss秒" />内完成支付，超时自动取消
</view>
<view class="slotmsg" wx:else>
  订单超时,已自动取消
</view>
</van-dialog>
<van-dialog
  title="温馨提示"
  show="{{showMsgOrder}}"
  show-cancel-button
  message="是否订阅消息通知？"
  confirm-button-text="确定"
  cancel-button-text="取消"
  confirm-button-color="#3CC7C0"
  bind:confirm="onConfirmMsg"
  bind:cancel="onCloseMsg"
>

</van-dialog>
<!-- <van-dialog
  title="温馨提示"
  show="{{ showOrderMsg }}"
   message="支付成功"
   bind:confirm="confirmSuccess"
  confirm-button-color="#3CC7C0" 
>
</van-dialog> -->
