<import src="../../wxParse/wxParse.wxml"/> 
<view class="container">
     
      <view class="myorder-box" wx:for="{{myorder}}" wx:for-index="index">
           <view class="myorder-item">
                <view>
                  <text>订单号：</text>{{item.orderid}}<image  bindtap='copyText' data-text="{{item.orderid}}" src="../../images/copy.png"></image>
                </view>
                <view class="address" wx:if="{{item.Guests!='无需发货'}}">
                  <text>发货地址：</text><view>{{item.address}}</view><image  bindtap='copyText' data-text="{{item.address}}" src="../../images/copy.png"></image>
                </view>
                <view class="Total">
                  <text>数量：</text>{{item.Totalnum}}
                </view>
                <view class="Total">
                     <text>金额：</text>￥{{item.Totalprice}}
                </view>
                <view class="Guests">
                  <text>下单时间：</text>{{item.SubmitDate}}
                </view>
                <view class="Guests" wx:if="{{item.Guests!='无需发货'}}">
                  <text>备注留言：</text><view>{{item.Guests}}</view>
                </view>
                <view>
                  <text style="width:5em;">状态：</text>{{item.status0}}
                </view>
                <view class="cz_box">
                
                  <view wx:if="{{item.Payed=='0'}}" bindtap="oncancel" data-id="{{item.O_Id}}">取消</view>
                 
                
                  
                </view> 
                <view class="shipments" wx:for="{{shipments}}"  wx:for-item="item">
                      <view><text>发货数量：</text>{{item.num}}</view>
                      <view><text>快递单号：</text>{{item.kdcompay}}{{item.kdorderid}}</view>
                      <view><text>备注：</text>{{item.content}}</view>
                      <view><text>状态：</text><view wx:if="{{item.seef==0}}" class="mybtn" bindtap="onqysh" data-id="{{item.id}}">确认收货</view><view wx:if="{{item.seef==1}}">已确认收货</view></view>
                </view> 
                <view class="products" wx:for="{{item.pics}}"  wx:for-item="pitem">
                      <view><image src="{{apiurl + pitem.prodimg}}" bindtap="ondetail" data-id="{{pitem.prodid}}"></image>
                          <view><view bindtap="ondetail" data-id="{{pitem.prodid}}">{{pitem.prodName}}</view>
                             <view>编号：{{pitem.bianhao}}<image  bindtap='copyText' data-text="{{pitem.bianhao}}" src="../../images/copy.png"></image></view>
                            <view class="Total"><text>数量：</text>{{pitem.num}}<text class="Totalprice">金额：</text>{{pitem.price}}</view>
                          </view>
                      </view>
                </view> 
          </view> 
    </view>
  
</view>
<view class="Hidden_box" hidden="{{orderpayHidden}}" bindtap="closeorderpay">
        <view class="Hidden_box_to" catchtap="inorderpay">
            <view class="Hidden_box_title">
              <text>付款</text>
            <view class="close" bindtap="closeorderpay"><image src="../../images/close.png" /></view>
           </view>
            <view class="frombody">
                  <view class="pay_box">
         <text class="pay_type">支付方式：</text>
         <view class='{{zftype==2?"hover":""}}' bindtap="jianjinpay" hidden="FHEnableHidden"><image src="../../images/jianjinpay.png?t=0"/>余额支付</view>
         <view wx:if="{{FHEnable2==0}}" class='{{zftype==0?"hover":""}}' bindtap="weixinpay"><image src="../../images/weixinpay.png?t=0"/>微信支付</view>
    </view>
                  
           </view>
           <view class="button">
                        <button bindtap="qypay">确认</button>
                  </view>  
        </view>
    </view>
    <view class="Hidden_box" hidden="{{orderyhHidden}}" bindtap="closeorderyh">
        <view class="Hidden_box_to" catchtap="inorderpay">
            <view class="Hidden_box_title">
              <text>确认易货</text>
            <view class="close" bindtap="closeorderyh"><image src="../../images/close.png" /></view>
           </view>
            <view class="frombody">
         
            <view class="check_box">
                  <view class='checkbox {{checked==1?"checked":""}}' bindtap="onchecked"></view><view class="fontbox"><text bindtap="onchecked">我已阅读并同意</text><text bindtap="openxy" class="ptgztitle">《{{xytitle}}》</text></view>
            </view>
                 
           </view>
           <view class="button">
                        <button bindtap="onwyyh">确认</button>
                  </view>  
        </view>
    </view>
    
    <view class="Hidden_box" hidden="{{orderyhHidden0}}" bindtap="closeorderyh0">
        <view class="Hidden_box_to" catchtap="inorderpay">
            <view class="title">{{xytitle}}</view>
            <view class="close" bindtap="closeorderyh0"><image src="../../images/close.png" /></view>
            <view class="frombody">
                <view class="wxParse">
    <template is="wxParse" data="{{wxParseData:xybody.nodes}}"/>
</view>
<view class="button">
                 <button bindtap="closeorderyh0">已阅读</button>
                    
            </view> 
              </view>
            
    
     
           </view>
        </view>
<loading hidden="{{loadingHidden}}">
        加载中...
    </loading> 