<view class="container">
      <view class="pay_box">
         <text>配送方式：</text>
         <view class="pay_type_box">
         <view wx:if="{{p_peitype==1}}" class='{{peitype==0?"hover":""}}' wx:if="{{IFKD==0}}" bindtap="onpeitype" data-id="0"><image src="../../images/kdps.png"/>快递配送</view>
        <view wx:if="{{p_peitype0==1}}" class='{{peitype==1?"hover":""}}' bindtap="onpeitype" data-id="1"><image src="../../images/smzq.png"/>上门自取</view>
          </view> 
    </view>
    <view class="address_box" hidden="{{peitype==1?false:true}}">
         <view class="address_box_qhr">
            <input type="text" name="txtname" bindinput='getnameValue' placeholder="请填写取货人" />
            <input type="text" name="txttel" bindinput='gettelValue' placeholder="请填写手机号" />
         </view>     
         <view class="address_box_contact">
                <view>上门取货地址：</view>
          </view>   
       
          <view class="address_box_address" bindtap="selectaddress0">
                <view class="assistor"><image src="../../images/Pin-Assistor.png"/> 
                </view>
                <text class="address">{{(contact0+" "+phone0+" " +area0+address0)}}</text>
                <view class="faifeito"><image src="../../images/icon-arrowdown.png"/></view>
          </view>
    </view>
    <view class="address_box" hidden="{{peitype==0?false:true}}" bindtap="selectaddress">
          <view class="address_box_contact"> 
                <text>收货人：</text>
                <text>{{contact}}</text> 
                <text class="phone">{{phone}}</text>
          </view>
          <view class="address_box_address">
                <view class="assistor"><image src="../../images/Pin-Assistor.png"/>
                </view>
                <text class="address">{{address}}</text>
                <view class="faifeito"><image src="../../images/icon-arrowdown.png"/></view>
          </view>
    </view>
    <view class="pay_box" wx:if="{{IFFQPT==1}}">
         <text class="pay_type" style="width:6em;">拼团方式：</text>
         <view class="pay_type_box">
               <block wx:for="{{pttypes}}">
              <view class='{{pttype==item.index?"hover":""}}' bindtap="onpttype" data-id="{{item.index}}"><image src="../../images/pttype.png"/>{{item.title}}</view>
            </block>
         </view>
    </view>   
    <view class="pay_box" wx:if="{{ttype==14}}">
         <view class="dhj_box">
                 需要支付<text>{{btjje}}</text>补贴券，剩下的<text>{{xjjje}}</text>由以下支付方式支付
         </view>
    </view>
   <view class="pay_box">
         <text class="pay_type">支付方式：</text>
         <view class="pay_type_box">
        
        
            <view wx:if="{{ttype==0||ttype==2||ttype==4||ttype==5||ttype==8||ttype==9||ttype==10||ttype==11||ttype==12||ttype==13||ttype==14}}" class='{{zftype==2?"hover":""}}' bindtap="onpay" data-id="2"><image src="../../images/weixinpay.png"/>微信支付</view>
            <view wx:if="{{ttype==0||ttype==2||ttype==4||ttype==5||ttype==8||ttype==9||ttype==10||ttype==11||ttype==12||ttype==13||ttype==14}}" class='{{zftype==0?"hover":""}}' bindtap="onpay" data-id="0"><image src="../../images/jianjinpay.png"/>余额抵扣</view>
            <!-- <view wx:if="{{ttype==0}}" class='{{zftype==1?"hover":""}}' bindtap="onpay" data-id="1"><image src="../../images/lqhb.png"/>兑换券抵扣</view> -->
            <!-- <view wx:if="{{ttype==22}}" class='{{zftype==1?"hover":""}}' bindtap="onpay" data-id="1"><image src="../../images/jianjinpay.png"/>混合支付、先积分</view>
          <view wx:if="{{ttype==1}}" class='{{zftype==5?"hover":""}}' bindtap="onpay" data-id="5"><image src="../../images/jianjinpay.png"/>流量积分</view>
          <view wx:if="{{ttype==14}}" class='{{zftype==6?"hover":""}}' bindtap="onpay" data-id="6"><image src="../../images/jianjinpay.png"/>佣金抵扣</view> -->
         </view>
    </view>
    
    <!-- <view class="pay_box" wx:if="{{zftype==1}}">
         <text class="pay_type" style="width:6em;">兑换券余额：</text>
         <view class="dhj_box">
               {{dhjye}}
         </view>
    </view> -->
    <view class="bankcark_box" wx:if="{{zftype==4}}">
         <view><picker class="picker_hx" name="picker_hx" value="{{bankindex}}" data-selecthx="{{banks[bankindex].key}}" range="{{banks}}" range-key="{{'key'}}" bindchange="BankChange"> <view class="picker">
              <text wx:if='{{banks[bankindex]!=null}}'>{{banks[bankindex].key}}</text>
              <text wx:if='{{banks[bankindex]==null}}'>==请选择==</text>
              <image src="../../images/icon-arrowdown1.png"></image>
           </view></picker></view>
    </view>
    <view class="Guests_box">
         <text>备注留言：</text>
         <view><textarea id="Guests" bindinput='getGuestsValue' placeholder="请留言告诉卖家您的要求"></textarea></view>
    </view>
    <view class="cart-product" wx:for="{{cartproducts}}" wx:for-index="index" hidden="{{productHidden}}">
      <view class="cart-product-item" color="{{item.selcolor}}" guige="{{item.guige}}">
                <view class="limg" bindtap="gotodetail" data-id="{{item.prodid}}">
                      <image src="{{item.prodimg}}" />
                </view>
                <view class="rname">
                  <view class="prodName"  bindtap="gotodetail" data-id="{{item.prodid}}">{{item.prodName}} {{item.selcolor}}
                  </view> 
                  <view class="je">单价：<text>{{ttype==4?"积分":"￥"}}{{item.prodPrice}}</text> 数量：
                   <text>{{item.prodNum}}</text>
                  </view>
                  <view class="je">
                    小计：
                   <text>{{ttype==4?"积分":"￥"}}{{item.SubTotal}}</text>
                  </view>
               </view> 
              
          </view> 
    </view>
    <view class="yunfei-box">
        <text>运费：</text>￥{{zyunfei}}
    </view>
    <view class="noproduct" hidden="{{noproductHidden}}">
      <image src="{{cartImg}}" class="cart-image"/>
      <view>{{tipWords}}</view>
    </view>
</view>
<view class="footer" hidden="{{footerHidden}}">
    <view class="cartmbox" wx:if="{{IFkjPaying==0}}">
                    <view class="leftbox">
                             <text class="cart_Total_title">{{cart_Total_title}}</text>
                             <text class="cart_Total">{{cart_Total}}</text>
                    </view>
                    <view class="rightbox">
                         <button bindtap="Shop_Pay" class="input_shopdh">{{savebutton}}</button>
                    </view>
      </view>
      <view class="cartmbox0" wx:if="{{IFkjPaying==1}}">
             <button bindtap="Shop_Pay0" class="input_shopdh" >{{savebutton0}}</button>   
      </view>
    </view>
    <view class="Hidden_box" bindtap="closeaddcart" wx:if="{{IFkjPaying==1}}">
        <view class="Hidden_box_to addcart_box" catchtap="inaddcart">
            <view class="close" bindtap="closeaddcart"><image src="../../images/close.png" /></view>
           
<view class="select_box_title">
     确认支付
</view>
    <view class="select_box_inputbox"> 
          <view class="msgbox">
               验证证已发送到您的手机号(<text>{{myphone}}</text>)，请在下面输入您的手机验证码。
          </view>
           <view class="inputbox">
                  <text>手机验证码：</text>
                  <view><input name="txcode" type="text" bindinput='getcodeValue' placeholder="请输入手机验证码" /></view>
            </view>
           
</view>
</view>
</view>
<view class="Hidden_box" bindtap="closeaddcart0" wx:if="{{IFQYPay==1}}">
        <view class="Hidden_box_to addcart_box" catchtap="inaddcart">
            <view class="close" bindtap="closeaddcart0"><image src="../../images/close.png" /></view>
           
<view class="select_box_title">
     确认支付
</view>
    <view class="select_box_inputbox">
          <view class="msgbox">
               请在下面输入您的密码。
          </view>
           <view class="inputbox">
                  <text>您的密码：</text>
                  <view><input name="txmm" type="password" bindinput='getmmValue' placeholder="请输入您的密码" /></view>
            </view>
           
</view>
</view>
</view>
<loading hidden="{{loadingHidden}}">
        加载中...
    </loading>  