<view class="container">
  <view class="order-info2" wx:if="{{wuliu}}">
    <view class="list-cell">
      <view class="list-cell-bd2">
        <view class="list-label strong2"><image src="../../../static/images/service-jyjl.png" class="icon"></image>
        {{orderInfo.order_status==0?"待付款":""}}
        {{orderInfo.order_status==100?"订单付款中":""}}
        {{orderInfo.order_status==101?"订单已取消":""}}
        {{orderInfo.order_status==201?"订单已付款":""}}
        {{orderInfo.order_status==300?"订单已发货":""}}
        {{orderInfo.order_status==301?"确认收货":""}}
        {{orderInfo.order_status==401 || orderInfo.order_status==402?"订单已退款":""}}
        </view>
      </view>
    </view>
    <view>
      <view class="list-cell">
        <view class="list-cell-bd">
          <view class="list-label week3">
            {{orderInfo.order_status==101?"您的订单已取消":""}}
            {{orderInfo.order_status==100?"订单正在付款中":""}}
            {{orderInfo.order_status==201?"您的订单已付款":""}}
            {{orderInfo.order_status==300?"您的订单已发货":""}}   
            {{orderInfo.order_status==301?"用户已确认收货":""}}
            {{orderInfo.order_status==401 || orderInfo.order_status==402?"您的订单已退款":""}}
          </view>
          <view class="list-label week3" wx:if="{{orderInfo.order_status==201 && refundStatus == 3}}">
            您的退款申请订单已被拒绝，拒绝原因：{{approvalRemark}}
          </view>
          
        </view>
      </view>
    </view>
    <view>
    <view class="list-cell" wx:if="{{orderInfo.order_status==0}}" >
        <view class="list-cell-bd">
          <view class="list-label week3">
            您的订单已提交，请在{{orderInfo.dateformat.min}}{{orderInfo.dateformat?':':''}}{{orderInfo.dateformat.sec}}内完成支付，超时订单自动取消</view>
        </view>
      </view>
    </view>
    <navigator open-type='navigate' wx:if="{{orderInfo.order_status==300 || orderInfo.order_status==301}}" url="/pages/ucenter/wuliu/wuliu?id={{orderInfo.shipping_no}}&code={{orderInfo.shipping_code}}&orderId={{orderInfo.id}}&goodsType={{orderInfo.orderBizType}}">
      <view class="list-cell">
        <view class="list-cell-bd">
          <view class="list-label week3">物流信息:  {{wuliu.AcceptTime}}</view>
        </view>
      </view>
      <view class="list-cell">
        <view class="list-cell-bd">
          <view class="list-label week3">{{wuliu.AcceptStation}}</view>
        </view>
      </view>
    </navigator>
  </view>
  <view class="order-info">
    <view class="item-a"><image src="../../../static/images/service-hsdz.png" class="icon"></image> {{orderInfo.consignee}}     {{orderInfo.mobile}}</view>
    <view class="item-b2">收货地址：{{orderInfo.province}}{{orderInfo.city}}{{orderInfo.district}}{{orderInfo.address}}</view>
  </view>

  <view class="list-group goods-info">
    <view class="list-cell">
      <view class="list-cell-bd">
        <view class="list-label strong">商品信息</view>
      </view>
    </view>
    <view class="list-cell">
      <view class="goods-list">
        <view wx:for="{{orderGoods}}" wx:key="{{index}}" class="goods-list-cell">
          <view wx:if ='{{currentStoreId != orderInfo.store_id || (orderInfo.orderBizType ==02 || orderInfo.orderBizType == 10)}}'>
            <image class="order-image" src="{{item.list_pic_url}}"></image>
            <text class="name">{{item.goods_name}}</text>
            <text class="num fr">x{{item.number}}</text>
            <text class="price fr">￥{{item.retail_price}}</text>
          </view>
          <navigator open-type='navigate' wx:if = '{{currentStoreId == orderInfo.store_id && (orderInfo.orderBizType ==00 || orderInfo.orderBizType == 11)}}' url='/pages/goods/goods?id={{item.goods_id}}'>
            <image class="order-image" src="{{item.list_pic_url}}"></image>
            <text class="name">{{item.goods_name}}</text>
            <text class="num fr">x{{item.number}}</text>
            <text class="price fr">￥{{item.retail_price}}</text>
          </navigator>
        </view>
      </view>
    </view>
    <view class="list-cell">
      <view class="list-cell-bd">
        <view class="list-label week">配送费</view>
      </view>
      <view class="list-cell-ft week">
        ￥{{orderInfo.freight_price}}
      </view>
    </view>
    <view class="list-cell" wx:if="{{orderInfo.full_cut_price}}">
      <view class="list-cell-bd">
        <view class="list-label week orange">满减</view>
      </view>
      <view class="list-cell-ft week orange">
        -￥{{orderInfo.full_cut_price}}
      </view>
    </view>
    <view class="list-cell" wx:if="{{orderInfo.coupon_price}}">
      <view class="list-cell-bd">
        <view class="list-label week orange">优惠券：{{orderInfo.coupon_name}}</view>
      </view>
      <view class="list-cell-ft week orange">
        -￥{{orderInfo.coupon_price}}
      </view>
    </view>
    <view class="list-cell">
      <view class="list-cell-bd">
      </view>
      <view class="list-cell-ft week">
        合计
        <text class="orange">￥{{orderInfo.actual_price}}</text>
        <!-- <view class="refund" wx:if="{{ orderInfo.order_status == 201 }}" bindtap="refund">退款</view> --> 
            <view class="refund"  wx:if='{{ orderInfo.order_status==201 && isRefundStatus =="true"}}'>维权申请中</view>      
        
      </view>
    </view>
  </view>

  <view class="order-info" wx:if="{{tabIndex != 5}}">
    <view class="item-a">下单时间：{{orderInfo.add_time}}</view>
    <view class="item-a" wx:if="{{orderInfo.pay_time}}">付款时间：{{orderInfo.pay_time}}</view>
    <view class="item-a" wx:if="{{orderInfo.confirm_time}}">成交时间：{{orderInfo.confirm_time}}</view>
    <view class="item-b">订单编号：{{orderInfo.order_sn}}</view>
    <view class="item-c">
      <view class="l">实付：
        <text class="cost">￥{{orderInfo.actual_price}}</text>
      </view>
      
    </view>
  </view>

  <view class="order-info" wx:if="{{tabIndex == 5}}">
    <view class="item-a">退款时间：{{refundTime}}</view>
    <view class="item-b">退款金额：￥{{refundInfo.refundMoney}}</view>
    <view class="item-b">申请时间：{{createTime}}</view>
    <view class="item-b">退款编号：{{refundInfo.refundId}}</view>
  </view>

  <view class="list-group2 goods-info" wx:if="{{tabIndex != 5}}">
    <view class="list-cell">
      <view class="list-cell-bd">
        <view class="list-label strong">送达信息</view>
      </view>
    </view>
    <view class="list-cell"  wx:if="{{orderInfo.delivery_remark}}">
      <view class="list-cell-bd">
        <view class="list-label week">期望时间：{{orderInfo.delivery_remark}}</view>
      </view>
    </view>
    <!-- <view class="list-cell">
      <view class="list-cell-bd">
        <view class="list-label week">收货人：{{orderInfo.consignee}}</view>
      </view>
    </view>
    <view class="list-cell">
      <view class="list-cell-bd">
        <view class="list-label week">收货地址：{{orderInfo.address}}</view>
      </view>
    </view> -->
    <view class="list-cell">
      <view class="list-cell-bd">
        <view class="list-label week">留言：{{orderInfo.postscript?orderInfo.postscript:""}}</view>
      </view>
    </view>
  </view>
  <!-- <view class="r">
        <view class="btn" wx:if="{{ handleOption.cancel==true && orderInfo.order_type == '1'}}" bindtap="cancelOrder">取消订单</view>
        <view class="btn" wx:if="{{ handleOption.pay==true && orderInfo.dateformat }}" bindtap="payOrder">去付款 {{orderInfo.dateformat.min}}{{orderInfo.dateformat?':':''}}{{orderInfo.dateformat.sec}}</view>
        <view class="btn" wx:if="{{ handleOption.confirm==true }}" bindtap="confirmOrder">确认收货</view>
        <view class="btn" wx:if="{{ handleOption.comment==true }}" bindtap="postComment">发表评价</view>
        <view class="btn" wx:if="{{ orderInfo.comment_count > 0 }}" bindtap="lookComment">查看评价</view>
      </view> -->
  <view class="btns" wx:if="{{tabIndex != 5}}">
    <view class="cannel" wx:if="{{ handleOption.cancel==true && orderInfo.order_type == '1'}}" bindtap="cancelOrder">取消订单</view>
    <view class="save" wx:if="{{ handleOption.pay==true && orderInfo.dateformat}}" bindtap="payOrder">去付款 {{orderInfo.dateformat.min}}{{orderInfo.dateformat?':':''}}{{orderInfo.dateformat.sec}}</view>
    <view class="save" wx:if="{{ handleOption.confirm==true}}" bindtap="confirmOrder">确认收货</view>
    <view class="save" wx:if="{{ handleOption.comment==true}}" bindtap="postComment">发表评价</view>
    <view class="save" wx:if="{{ orderInfo.comment_count > 0}}" bindtap="lookComment">查看评价</view>
  </view>
</view>