<!--pages/confirmVOrder/confirmVOrder.wxml-->
<view class="check_order">
  <navigator url="/pages/address/address">
    <view class="address_wrap" wx:if="{{defaultAddress}}">
      <image class="adress-icon" src="../../image/address-icon.png"></image>
      <view style="word-wrap:break-word;max-width: 80%;">
        <view>
          <text>{{defaultAddress.true_name}}</text>
          <text class="ml8">{{defaultAddress.mob_phone}}</text>
        </view>
        <view class="mt10">{{defaultAddress.area_info}}</view>
        <view class="mt10">{{defaultAddress.address}}</view>
      </view>
      <image class="see_ensure_desc" src="../../image/back.png"></image>
    </view>
    <view wx:else class="address_none">
      <icon type="warn" size="23" color="#333" />
      <text decode="{{true}}">&nbsp;&nbsp;请填写收货人信息</text>
    </view>
  </navigator>


  <view class="mt20 mb20">
    <view class="payment_method payment-1px-b">
      <image class="bonus_pay_icon mr20" src="../../image/bonus_pay.png"></image>
      <view class="mr20">红包支付</view>
      <view class="f24 col666">可抵扣 ¥{{datas['payinfo']['user_bonus']}}</view>
    </view>
    <view class="payment_method">
      <image class="wx_pay_icon mr16" src="../../image/wx_pay.png"></image>
      <view>微信支付</view>
    </view>
  </view>

  <view class="bacfff" wx:for="{{n_goods_list}}" wx:for-item="item" wx:for-index="idx" wx:key="idx">
    <block wx:if="{item['bl_id'] > 0}">
      <view class="order_goods_content vux-1px-b" wx:for="{{item['goods']}}" wx:for-item="bl_item" wx:for-index="bl_index" wx:key="bl_index">
        <!-- <view>{{bl_item}}</view> -->
        <image class="order_content_img" src="{{bl_item['goods_summary']['goods_image_url']}}"></image>
        <view class="order_content_middle over_hidden">
          <view class="l_height42 one_line_hidden">{{bl_item['goods_summary']['goods_mobile_name']}}</view>
          <view class="order_letter_pro one_line_hidden">{{bl_item['goods_summary']['goods_spec']}}</view>
          <view>
            <text class="f30 col333 ft_bold mr10"><text class="f24 mr6">¥</text>{{bl_item['bl_goods_price']}}</text>
            <text decode="{{true}}" class="col999 line-through f24">天猫价{{bl_item['goods_summary']['goods_price']}}</text>
          </view>
        </view>
        <view class="order_content_nums">x{{item['goods_num']}}</view>
      </view>
    </block>
    <block wx:if="{{item['bl_id'] == 0}}">
      <view class="order_goods_content vux-1px-b">
        <image class="order_content_img" src="{{item['goods_summary']['goods_image_url']}}"></image>
        <view class="order_content_middle over_hidden">
          <view class="l_height42 one_line_hidden">{{item['goods_summary']['goods_mobile_name']}}</view>
          <view class="order_letter_pro one_line_hidden">{{item['goods_summary']['goods_spec']}}</view>
          <view>
            <text class="f30 col333 ft_bold mr10" wx:if="{{item['goods_summary']['act_type'] == 0}}"><text class="f24 mr6">¥</text>{{item['goods_summary']['bonus_price']}}</text>
            <text class="f30 col333 ft_bold mr10" wx:if="{{item['goods_summary']['act_type'] == 2}}"><text class="f24 mr6">¥</text>{{item['goods_summary']['goods_promotion_price']}}</text>
            <text decode="{{true}}" class="col999 line-through f24">天猫价{{item['goods_summary']['goods_price']}}</text>
          </view>
        </view>
        <view class="order_content_nums">x{{item.goods_num}}</view>
      </view>
    </block>
  </view>
    <!-- <view class="packet_price-tips bacfff" wx:if="{{datas.payinfo.gap_desc}}">{{datas.payinfo.gap_desc}}～</view> -->
  <view class="order_entry mt20">
    <view class="expenses_info">
      <view class="col666">商品总价</view>
      <view class="">¥ {{datas.payinfo['goods_amount']}}</view>
    </view>

    <view class="expenses_info" wx:if="{{full_discount}}">
      <view class="col666">{{datas.payinfo['full_desc']}}</view>
      <view class="">- ¥ {{full_discount}}</view>
    </view>

    <view class="expenses_info" wx:if="{{opgoods_discount}}">
      <view class="col666">{{datas.payinfo['opgoods_desc']}}</view>
      <view class="">- ¥ {{opgoods_discount}}</view>
    </view>

    <view class="expenses_info" wx:if="{{datas['payinfo']['user_bonus'] > 0}}">
      <view>
        <text class="col666">红包抵扣</text>
      </view>
      <view class="">- ¥ {{datas['payinfo']['user_bonus']}}</view>
    </view>

    <view class="expenses_info" wx:if="{{room_bonus}}">
      <view class="col666">共享基金抵扣</view>
      <view class="">- ¥ {{room_bonus}}</view>
    </view>
    <view class="expenses_info">
      <view class="col666">运费</view>
      <view class="">+ ¥ {{freight}}</view>
    </view>

    <view class="expenses_info" wx:if="{{datas.payinfo['discount_desc']}}">
      <view class="col666">{{datas.payinfo['discount_desc']}}</view>
    </view>

  </view>

  <view class="order_pay">
    <view class="just_buy">
      <view class="just_buy_left">
        <text>应付: </text>
        <text class="col333 ft_bold">¥ {{totalPrice}}</text>
      </view>
      <view class="just_buy_right" bindtap='toPay'>去付款</view>
    </view>
  </view>
</view>