<!--pages/payInfo/payInfo.wxml-->
<wxs src="../../filters/filter.wxs" module="timeModule"></wxs>
<nav navName="结算"></nav>
<view class="page">
  <view class="mypaybox">
    <view class="addressbox" wx:if="{{order.user_ship_address && order.user_ship_address.address}}" bindtap="goAddress"  data-id="{{order.user_ship_address.address_id}}">
     <view class="left">
        <image src="{{img_host+'/addressicon.png'}}" class="icon"></image>
        <view class="info">
          <view class="name">{{order.user_ship_address.consignee_name}} {{order.user_ship_address.consignee_tel}}</view>
          <view class="address">{{order.user_ship_address.province}}{{order.user_ship_address.city}}{{order.user_ship_address.county}}{{order.user_ship_address.address}}</view>
         </view>
     </view>
     <image src="{{img_host+'/ricon.png'}}" class="ricon"></image>
  </view>
  <view class="add" bindtap="goAddAddress" wx:else><image src="{{img_host+'/addAddress.png'}}"  class="addicon"></image><text decode="true">&nbsp;&nbsp;新建收货地址</text></view>
  
  <view class="infobox">
     <view class="title">药品信息</view>
     <view class="medincebox {{item.status==1?'':'active'}}" wx:for="{{order.order_prescription_product}}" wx:key="product_id" >
        <view class="cell">
           <view class="imgbox">
              <image src="{{img_host+'/nomedince.png'}}" class="yaoimg"></image>
              <view class="desc">
                 <view class="tip">处方药品</view>
                 <view  class="tip">依据法规不展示包装</view>
              </view>
            </view>
            <view class="rightinfo">
               <view class="name">{{item.product_name}}{{item.product_spec}}</view>
               <view class="own">
                 <view class="company">{{item.manufacturer}}</view>
                 <view class="num">数量：{{item.prescription_product_num}}</view>
               </view>
            </view>
        </view>
        <view class="nogoods" wx:if="{{item.status==0}}">库存不足</view>
     </view>
     
     <view class="title">订单信息</view>
     <view class="orderinfo">
      <!-- <view class="row">
         <view class="name">订单编号：</view>
         <view class="desc">{{order_prescription_id}}</view>
      </view> -->
      <view class="row">
         <view class="name">药品金额</view>
         <view class="dot" >：</view>
         <view class="desc price">￥{{order.amount_total}}</view>
      </view>
    
      <view class="row">
         <view class="name"><text>邮</text><text>费</text></view>
         <view class="dot">：</view>
         <view class="desc price" wx:if="{{order.logistics_fee>0}}">￥{{order.logistics_fee}}（包邮）</view>
         <view class="desc price" wx:else>￥0.00（包邮）</view>
      </view>
      <view class="row">
        <view class="name"><view class="textyou"><view >优</view><view>惠</view><view>券</view></view></view>
        <view  class="dot">：</view>
        <view class="desc">
          <text wx:if="{{timeModule.formatMoney(order.coupon_amount_total)>0}}">- ￥{{timeModule.formatMoney(order.coupon_amount_total)}}</text>
          <text wx:else>无</text>
        </view>
      </view>
      <view class="row">
         <view class="name"> 支付金额</view>
         <view class="dot">：</view>
         <view class="desc price">￥{{order.payment_amount_total}}</view>
      </view>
     
     </view>
  </view>
  </view>
  <button class="btn" type="primary" bindtap="handleThrottle" disabled="{{btnLock}}">
  立即支付：{{order.payment_amount_total}}元
 </button>
</view>
