<view class="main">
  <navigator url="../address/address">
    <view wx:if="{{hasAddress}}" class="orders-address">
      <text class="orders-address-name">收货人: {{address.name}}</text>
      <text class="orders-address-phone">电话: {{address.phone}}</text>
      <view class="orders-address-detail">{{address.detail}}</view>
    </view>
    <view wx:else class="orders-no-address">添加收货地址</view>
  </navigator>

  <view class="orders-box">
    <view class="orders-list">
      <image class="orders-thumb" src="{{orders.image}}"></image>
      <view class="orders-pro-name">{{orders.title}}</view>
      <view class="orders-pro-price">￥{{orders.price}} ×{{orders.num}}</view>
      <view class="orders-count-num">免运费</view>
    </view>
    <view>
      <navigator url="../invoice/invoice">
        <view class="orders-no-address">发票</view>
      </navigator>
      <view class="order-notes">
        <view class="order-notes-label">订单备注</view>
        <input class="order-notes-input" name="notes" value="{{address.detail}}" placeholder="选填" />
      </view>
    </view>
  </view>

  <view class="orders-footer">
    <view class="orders-footer-total">付款合计：￥{{total}}</view>
    <view class="orders-footer-btn" bindtap="toPay">去付款</view>
  </view>
</view>