<navbar back home text="填写订单" background='#FD832D' color="white"></navbar>
<view style="height:{{navigationBarHeight}} "></view>
<view class="box" >
  <view class="siteBox" wx:if="{{shippingtype==2}}">
    <view wx:if="{{seti.length>0}}">
      <view class="siteTitle">
        <view class="siteTitleArr phoneBox">
          <view class="name">{{consignee}}</view>
          <view class="phone">{{mobile}}</view>
        </view>
        <view class="text">{{area}}</view>
        <!-- <view class="mpren">默认</view> -->
      </view>
      <view class="siteTitle siteText">{{address}}</view>
      
      <view class="pudataSite" bindtap="showTShade">更换</view>
    </view>
    <view class="addSeit" wx:if="{{seti.length==0}}" bindtap="goAddStie">添加收货地址</view>


  </view>

  <view class="commodityBox">
    <!-- <view class="imgBox"></view> -->
    <image class="imgBox" src="{{coverImg}}"></image>
    <view class="commodityDie">
      <view class="merchandiseName">{{title}}
      </view>
      <view class="priceBox">
        <view class="price">￥{{salePriceStr}}</view>

        <view class="numberBox">
          <view class="add" bindtap="addNum">+</view>
          <view class="number">{{num}}</view>
          <view class="dle" bindtap="dleNum">-</view>
        </view>
      </view>

    </view>
  </view>

  <view class="commodityBox">
    <view class="costBox">
      <view class="text">商品金额：</view>
      <view class="num">￥{{salePriceStr*num}}</view>
    </view>
    <view class="costBox" wx:if="{{shippingtype==2}}">
      <view class="text">运费：</view>
      <view class="num">￥{{freightPriceStr}}</view>
    </view>
    <view class="accountBox">
      <view class="total">合计</view>
      <view class="money" wx:if="{{shippingtype==1}}">￥{{(salePriceStr*num)}}</view>
      <view class="money" wx:if="{{shippingtype==2}}">￥{{total}}</view>
      
    </view>
  </view>

  <view class="payBox">
    <view class="moneyStr" wx:if="{{shippingtype==1}}">￥{{(salePriceStr*num)}}</view>
    <view class="moneyStr" wx:if="{{shippingtype==2}}">￥{{total}}</view>
    
    <view class="pay" bindtap="pay">支付</view>
  </view>


</view>

<view class="amendBox" wx:if="{{showShade}}" bindtap="hieShade">
  <view class="siteBox shade">

    <view class="siteItem" wx:for="{{seti}}" bindtap="setSite" data-id="{{item.id}}">
      <view style="overflow: hidden;position: relative">
       <view class="siteTitle phoneBox" >
          <view class="name">{{item.consignee}}</view>
          <view class="phone">{{item.mobile}}</view>
        </view>

        <view class="siteTitle">
          <view class="text">{{item.regionStr}}</view>
        </view>
        <view class="siteTitle siteText" style="border-bottom: 1rpx #999 solid;padding-bottom: 20rpx;">{{item.address}}</view>
       
        <view class="ditText" wx:if="{{item.isDefault==1}}">默认</view>
      </view>

    </view>
    
    <view class="addStie" bindtap="goAddStie">添加收货地址</view>

  </view>
</view>