<navbar parameter='{{parameter}}'></navbar>
<view class='order-submission'>
  <view class="allAddress" style="{{store_self_mention ? '':'padding-top:10rpx'}}">
    <view class="nav acea-row">
      <view class="item font-color {{shippingType == 0 ? 'on' : 'on2'}}" data-index="0" bindtap="addressType" wx:if='{{store_self_mention}}'></view>
      <view class="item font-color {{shippingType == 1 ? 'on' : 'on2'}}" data-index="1" bindtap="addressType" wx:if='{{store_self_mention}}'></view>
    </view>
    <view class='address acea-row row-between-wrapper' bindtap='onAddress' wx:if='{{shippingType == 0}}'>
      <view class='addressCon' wx:if="{{addressInfo.real_name}}">
        <view class='name'>{{addressInfo.real_name}}
          <text class='phone'>{{addressInfo.phone}}</text>
        </view>
        <view>
          <text class='default font-color' wx:if="{{addressInfo.is_default}}">[默认]</text>{{addressInfo.province}}{{addressInfo.city}}{{addressInfo.district}}{{addressInfo.detail}}</view>
        <!-- <view class='setaddress'>设置收货地址</view> -->
      </view>
      <view class='addressCon' wx:else>
        <view class='setaddress'>设置收货地址</view>
      </view>
      <view class='iconfont icon-jiantou'></view>
    </view>
    <view class='address acea-row row-between-wrapper' wx:else bindtap="showStoreList">
      <view class='addressCon' wx:if="{{storeList.length!==0}}">
        <view class='name'>{{system_store.name}}
            <text class='phone'>{{system_store.phone}}</text>
        </view>
        <view> {{system_store.address}}{{", " + system_store.detailed_address}}</view>
      </view>
      <view class='iconfont icon-jiantou'></view>
    </view>
    <view class='line'>
      <image src='/images/line.jpg'></image>
    </view>
  </view>
  <orderGoods cartInfo="{{cartInfo}}"></orderGoods>
  <view class='wrapper'>
    <view class='item acea-row row-between-wrapper' bindtap='coupon' wx:if="{{!pinkId && !BargainId && !combinationId && !seckillId}}">
      <view>优惠券</view>
      <view class='discount'>{{couponTitle}}
        <text class='iconfont icon-jiantou'></text>
      </view>
    </view>
    <view class='item acea-row row-between-wrapper' wx:if="{{!pinkId && !BargainId && !combinationId && !seckillId}}">
      <view>积分抵扣</view>
      <view class='discount acea-row row-middle'>
        <view> {{useIntegral ? "剩余积分":"当前积分"}}
          <text class='num font-color'>{{integral || 0}}</text>
        </view>
        <checkbox-group bindchange="ChangeIntegral">
          <checkbox checked='{{useIntegral ? true : false}}' />
        </checkbox-group>
      </view>
    </view>
    <view class='item acea-row row-between-wrapper' wx:if="{{priceGroup.vipPrice > 0 && userInfo.vip && !pinkId && !BargainId && !combinationId && !seckillId}}">
      <view>会员优惠</view>
      <view class='discount'>-¥{{priceGroup.vipPrice}}</view>
    </view>
    <view class='item acea-row row-between-wrapper' wx:if='{{shippingType==0}}'>
      <view>快递费用</view>
      <view class='discount' wx:if='{{priceGroup.storePostage > 0}}'>¥{{priceGroup.storePostage}}</view>
      <view class='discount' wx:else>免运费</view>
    </view>
     <view wx:else>
        <view class="item acea-row row-between-wrapper">
          <view>联系人</view>
          <view class="discount">
            <input type="text" placeholder="请填写您的联系姓名" placeholder-class="placeholder" bindblur='realName'></input>
          </view>
        </view>
        <view class="item acea-row row-between-wrapper">
          <view>联系电话</view>
          <view class="discount">
            <input type="text" placeholder="请填写您的联系电话" placeholder-class="placeholder" bindblur='phone'></input>
          </view>
        </view>
      </view>
    <!-- <view class='item acea-row row-between-wrapper' wx:else>
      <view>自提门店</view>
      <view class='discount'>{{system_store.name}}</view>
    </view> -->
    <view class='item' wx:if="{{textareaStatus}}">
      <view>备注信息</view>
      <textarea wx:if="{{coupon.coupon===false}}" placeholder-class='placeholder' bindinput='bindHideKeyboard' value="" name="mark" placeholder='请添加备注(150字以内)'></textarea>
    </view>
  </view>
  <view class='wrapper'>
    <view class='item'>
      <view>支付方式</view>
      <view class='list'>
        <view class='payItem acea-row row-middle {{active==index ?"on":""}}' data-index='{{index}}' bindtap='payItem' wx:for="{{cartArr}}" wx:key='index' wx:if="{{shippingType==0||(shippingType==1&&index!=2)}}">
          <view class='name acea-row row-center-wrapper'>
            <view class='iconfont {{item.icon}} animated {{animated==true&&active==index ?"bounceIn":""}}'></view>{{item.name}}</view>
          <view class='tip'>{{item.title}}</view>
        </view>
      </view>
    </view>
  </view>
  <view class='moneyList'>
    <view class='item acea-row row-between-wrapper'>
      <view>商品总价:</view>
      <view class='money'>¥{{priceGroup.totalPrice}}</view>
    </view>
    <view class='item acea-row row-between-wrapper' wx:if="{{coupon_price > 0}}">
      <view>优惠券抵扣:</view>
      <view class='money'>-¥{{coupon_price}}</view>
    </view>
    <view class='item acea-row row-between-wrapper' wx:if="{{integral_price > 0}}">
      <view>积分抵扣:</view>
      <view class='money'>-¥{{integral_price}}</view>
    </view>
    <view class='item acea-row row-between-wrapper' wx:if="{{priceGroup.storePostage > 0}}">
      <view>运费:</view>
      <view class='money'>+¥{{priceGroup.storePostage}}</view>
    </view>
  </view>
  <view style='height:120rpx;'></view>
  <view class='footer acea-row row-between-wrapper'>
    <view>合计:
      <text class='font-color'>¥{{totalPrice || 0}}</text>
    </view>
    <view class='settlement' style='z-index:100' bindtap="SubOrder">立即结算</view>
  </view>
</view>
<coupon-list-window coupon='{{coupon}}' bind:ChangCouponsClone="ChangCouponsClone" openType='{{openType}}' cartId='{{cartId}}'bind:ChangCoupons="ChangCoupons"></coupon-list-window>
<address-window bind:changeTextareaStatus="changeTextareaStatus" address='{{address}}' pagesUrl="{{pagesUrl}}" id="address-window" bind:OnChangeAddress="OnChangeAddress"></address-window>
<authorize bind:onLoadFun='onLoadFun'></authorize>
<home></home>