<wxs module="filters" src="../../../../utils/filter.wxs"></wxs>
<view class="container">
    <view class="user-mes" wx:if="{{order.exp_type==0 || order.exp_type==2 }}">
        <view class="user-contact">
          <text selectable>  {{order.consignee}}{{'　　'}}{{order.mobile}}  </text> 
        </view>
        <view class="location" wx:if="{{order.order_prom_type!=5}}">
            <view class="address"><text selectable>{{order.more_address}} {{order.address}}</text></view>
            <view class="pos-icon">
                <image class="wh100" src="{{iurl}}/miniapp/images/iconfont-shouhuodizhi.png"></image>
            </view>
        </view>
        <view class="border-img">
            <image class="wh100" src="{{iurl}}/miniapp/images/tt.png"></image>
        </view>
    </view>
    <view class="order-meg">
        <view class="order-state"><view class="shop_name" > <text selectable>门店：{{order.pickname}}</text></view>
             <view> <text selectable>{{order.order_status_detail}}</text></view>
        </view>
        <!--wx:if="{{item.return_btn!=4}}" -->
        <view class="order-detail" wx:for="{{order.order_goods}}" wx:key="{{index}}" >
            <view class="goods-img"  bindtap="go_gd" data-gd="{{item.goods_id}}">
                <image class="wh100" src="{{resourceUrl+item.original_img}}"  binderror="bind_bnerr" lazy-load="true"
                        data-errorimg="order.order_goods[{{index}}].original_img"></image>
            </view>
            <!-- 跳转到商品 -->
            <navigator class="order-cont"  bindtap="go_gd" data-gd="{{item.goods_id}}">
                <view class="goods-name">{{item.goods_name}}</view>
                <!--<view class="goods-color">{{item.goods_spec}} {{item.goods_color}}</view>-->
                <view class="goods-color">{{filters.show_gui_ge(item.goods_spec,item.goods_color)}}</view>
            </navigator>

            <view class="order-num">
                <view class="goods-price">￥{{item.member_goods_price}}<text wx:if="{{item.prom_type==10}}" style="margin-left: 5rpx">({{item.ladder_discount}}折)</text> </view>
                <view class="goods-num">×{{item.goods_num}}</view>

                <!-- 不是整单退的时候 -->
                <block wx:if="{{order.is_all_return!=1 && order.discount<=0  && order.coupon_price<=0 &&  order.order_prom_amount<=0 && order.discount_amount<=0 && item.prom_type!=5 && !order.is_prom && item.is_whsle_goods!=1}}">
                    <!-- <view bindtap="checkReturnGoodsStatus" class="goods-num" data-oid="{{item.order_id}}"
                          data-recid="{{item.goods_id}}"  wx:if="{{item.return_btn==1 && !order.is_bedistri}}">申请退款</view> -->
                    <view class="return-btn" data-oid="{{item.order_id}}"
                          data-recid="{{item.goods_id}}" wx:if="{{item.return_btn==2}}">退款中</view>
                    <!-- <view bindtap="checkReturnGoodsStatus" class="goods-num" data-oid="{{item.order_id}}"
                          data-recid="{{item.goods_id}}" wx:if="{{item.return_btn==3}}">重新退款</view> -->
                    <view class="goods-num" data-oid="{{item.order_id}}"
                          data-recid="{{item.goods_id}}" wx:if="{{item.return_btn==4}}">退款完成</view>
                </block>


            </view>
        </view>
       
    </view>
    <view class="basic-information information">
        <view class="title">基本信息</view>
        <view class="item">
            <view>订单编号</view>
            <view><text selectable>{{order.order_sn}}</text></view>
        </view>
        <view class="item">
            <view>下单时间</view>
            <view><text selectable>{{order.addTimeFormat}}</text></view>
        </view>

        <view class="item" wx:if="{{order.order_prom_type!=5}}">
            <view>配送方式</view>
            <view wx:if="{{order.pt_status<4 && order.is_zsorder==4}}">
                --
            </view>
            <view wx:if="{{order.exp_type==2}}">同城配送</view>
            <view wx:elif="{{order.exp_type==1}}">自提</view>
            <view wx:else >物流({{order.shipping_name}})</view>

        </view>
        <view class="item">
            <view>买家留言</view>
            <view class="leave-word"><text selectable>{{order.user_note!=''?order.user_note:'无'}}</text></view>
        </view>
    </view>
    <view class="price-information information" style="margin-bottom: 120rpx;">
           <view class="title" style="margin-bottom:10rpx" >价格信息</view>
           <view class="item pnew"  wx:if="{{order.is_zsorder==4}}">
                <view>商品总价</view>
                <view>￥ {{filters.toFix(order.order_goods[0].member_goods_price*order.order_goods[0].goods_num,2)}}元</view>
           </view>
           <view class="item pnew" wx:else>
              <view>商品总价</view>
              <view>￥ {{order.goods_price}}元</view>
            </view>

           <view class="item pnew" wx:if="{{order.is_zsorder==4}}">
                <view>定金金额</view>
                <view>￥ {{filters.toFix(order.order_amount+order.user_money,2)}}元</view>
           </view>
           <view class="item pnew" wx:if="{{order.pt_tail_money>0}}">
              <view>尾款金额</view>
              <view>￥ {{filters.toFix(order.pt_tail_money-order.shipping_price,2)}}元</view>
           </view>

            <view class="item pnew" wx:if="{{order.shipping_price>0}}">
                 <view>配送费用</view>
                 <view>￥ {{order.shipping_price}}元</view>
            </view>
            <view class="item pnew" wx:if="{{order.coupon_price>0}}">
                <view>优惠券</view>
                <view> ￥ {{order.coupon_price}}元</view>
           </view>

            <view class="item pnew" wx:if="{{order.integral>0}}">
               <view>积分</view>
               <view>{{order.integral}}积分</view>
            </view>

            <view class="item pnew" wx:if="{{order.discount_amount>0}}">
                <view>优惠活动</view>
                <view>￥ {{filters.toFix(order.discount_amount,2)}}元</view>
            </view>

            <view class="item pnew" wx:if="{{order.ladder_amount>0}}">
                <view>阶梯优惠活动</view>
                <view>￥ {{filters.toFix(order.ladder_amount,2)}}元</view>
            </view>

            <view class="item pnew" wx:if="{{order.order_prom_amount>0}}">
                <view>订单优惠</view>
                <view>￥ {{order.order_prom_amount}}元</view>
            </view>

            <view class="item">
              <view>订单总价</view>
              <view>￥ {{filters.toFix(order.order_amount+order.user_money+order.pt_tail_money,2)}}元</view>
            </view>

           <view class="item-line"></view>
           <view class="item" wx:if="{{order.user_money>0}}">
              <view>使用余额</view>
              <view wx:if="{{order.tail_pay_type==1}}">￥ {{filters.toFix(order.user_money+order.pt_tail_money,2)}}元</view>
              <view wx:else>￥ {{filters.toFix(order.user_money,2)}}元</view>
           </view>
           <view style="height:10rpx"></view>
    </view>

  
</view>

<warn id="warn"></warn>
