groupOrders.wxml 8.92 KB
<import src ='defraudtip/defraudtip.wxml'/>
<view class="container order-page">
<form bindsubmit="formSubmit" report-submit='true'>

<!-- <view class='fraud-remind' bindtap='fraudRemindAction'>

  <view class='fraud-remind-left-view'>
    <view class='fraud-remind-left-view-top-view'>
      <image class='fraud-remind-left-view-top-view-icon-image'       src="images/tan_ic@2x.png"></image>
      <view class='fraud-remind-left-view-top-view-main-title'>关于防诈骗的重要提醒</view>
    </view>

     <view class='fraud-remind-left-view-sub-title'>
     有货不会以任何理由要求您退货退款,请您提高警惕。
     </view> 
  </view>

   <view class='fraud-remind-arrow'>></view> 

</view>
<view class='fraud-remind-bottom-sep'></view> -->
  
    <view id="order-nav" class="order-nav clearfix">
        <view class="tap-hightlight {{index == 1 ? 'active' : ''}}" data-type="2" bindtap="onSelectChanged">
            <view class="nav-tap" >进行中</view>
        </view>
        <view class="tap-hightlight {{index == 0 ? 'active' : ''}}" data-type="1" bindtap="onSelectChanged">
            <view class="nav-tap" >全部</view>
        </view>
    </view>

    <view id="order-container" class="order-container">
        <view class="firstscreen-orders">
            <block wx:for="{{orders}}" wx:key="order_code">
                <view class="order" data-order_code="{{item.order_code}}" bindtap="navToOrderDetail">
                    <view class="header">
                        订单编号:{{item.order_code}}
                        <view class="order-status">{{item.status_str}}</view>
                    </view>
                    <view class="order-goods">
                        <block wx:for="{{item.order_goods}}" wx:for-item="good" wx:key="product_id">
                            <view class="order-good" data-id="">
                                <view class="thumb-wrap">
                                    <image class="thumb" src="{{good.goods_image}}"></image>
                                    <image wx:if="{{good.goods_type=='gift' || good.goods_type=='price_gift'}}"class='productTag' src="{{good.goods_type=='gift'?'images/zp-lab@2x.png':'images/jjg-lab@2x.png'}}"></image>
                                </view>
                                <view class="deps">
                                    <view class="name row">{{good.product_name}}</view>
                                    <view class="row">
                                        <view class="color">
                                            颜色:{{good.color_name}}
                                        </view>
                                        <view class="size">
                                            尺码:{{good.size_name}}
                                        </view>
                                    </view>
                                    <view class="row price-wrap">
                                        <view class="price">
                                            ¥{{good.real_pay_price}}
                                        </view>
                                        <view wx:if="{{good.sales_price}}" class="count" style='text-decoration:line-through;'>
                                            ¥{{good.sales_price}}
                                        </view>
                                        <view class="count">
                                            ×{{good.buy_number}}
                                        </view>
                                    </view>
                                </view>
                                <block wx:if="{{good.expect_arrival_time}}">
                                  <text class="order-tip" >上市期:{{good.expect_arrival_time}}</text>
                                </block>
                            </view>
                        </block>
                    </view>
                    <view class="footer">
                        共{{item.buy_total}}件商品 实付
                        <view class="sum-cost">¥{{item.amount}}</view> 
                        (含运费¥{{item.shipping_cost}})
                    </view>
                    <view wx:if="{{item.attribute == 9}}" class="order-opt" style='font-size:28rpx;color:#444444'>*此订单只能在APP端操作</view>
                    <view wx:elif="{{item.links.length > 0}}" class="order-opt">
                      <block wx:if="{{item.counter_flag == 'Y' && item.is_cancel != 'Y' && item.pay_lefttime > 0}}"> 
                        <view class="counterView">
                          <image class="timeIcon" src='images/shijian@3x.png'></image>  
                          <text class="counter">剩余 {{item.time_left}}</text> 
                        </view>
                      </block> 

                        <block wx:for="{{item.links}}" wx:for-item="link" wx:key="order_code">
                            <block wx:if="{{link == 'closeOrder'}}">
                                <button class="button" formType="submit" type="default" size="{{defaultSize}}" plain='true' catchtap="onCloseOrderTapped" data-order_code="{{item.order_code}}" data-tab_index='0' >取消订单</button>
                            </block>
                            <block wx:if="{{link == 'readd'}}">
                                <view class="btn cancel" style="margin-left: 20rpx;" catchtap="onReaddTapped" data-order_code="{{item.order_code}}" data-tab_index='1'>再次购买</view>
                            </block>
                            <!-- <block wx:if="{{link == 'refundApply'}}">
                                <view class="btn cancel" catchtap="onCloseOrderTapped" data-order_code="{{item.order_code}}" data-tab_index='1'>申请退款</view>  </block>-->
                           
                            <block wx:if="{{link == 'buyNow'}}">
                                <view class="btn pay" catchtap="onBuyNowTapped" data-order_code="{{item.order_code}}" data-group_no="{{item.group_no}}" data-activity_id="{{item.activity_id}}">立即付款</view>
                            </block>
                            <block wx:if="{{link == 'delOrder'}}">
                                <view class="btn cancel" catchtap="onDelOrderTapped" data-order_code="{{item.order_code}}">删除订单</view>
                            </block>
                            <block wx:if="{{link == 'getExpress'}}">
                                <view class="btn cancel" catchtap="onExpressTapped" data-order_code="{{item.order_code}}">查看物流</view>
                            </block>
                            <block wx:if="{{link == 'confirm'}}">
                                
                                <button formType="submit" class="button pay" catchtap="onConfirmTapped" data-order_code="{{item.order_code}}">确认收货</button>
                            </block>
                            <block wx:if="{{link == 'refundApply'}}"><!--link == 'refundApply'-->
                                <button class="button" formType="submit" type="default" size="{{defaultSize}}" plain='true' catchtap="onRefundApplyTapped" data-order_code="{{item.order_code}}">申请退款</button>
                            </block>
                            <block wx:if="{{link == 'afterService'}}">
                                <button formType="submit" class="btn pay" catchtap="onAfterServiceTapped" data-order_code="{{item.order_code}}">申请售后</button>
                            </block>
                            <block wx:if="{{link == 'groupInvite'}}">
                                <button class="inviteBtn" catchtap="gotoGroupBuyDetail" size="{{defaultSize}}" plain='true' data-order_code="{{item.order_code}}" data-group_no="{{item.group_no}}" data-activity_id="{{item.activity_id}}">查看拼团详情</button>
                            </block>
                        </block>                      
                    </view>
                </view>
            </block>
            <view wx:if="{{showEmptyContainer}}" style="width:750rpx;height:100%;margin-top:350rpx" class="clearfix">
            <image src="images/empty@2x.png" style="width:220rpx;height:220rpx"></image>
            <br />
            <view style="font-size:30rpx;text-align:center;margin-top:20rpx">您还没有任何订单,赶快去逛逛吧</view>
            <button bindtap="goBackToTab" class="loginBtn"> 去逛逛</button>
            </view>
        </view>
    </view>


    <picker-view wx:if="{{showReason}}"class='picker-view' value='{{value}}' bindchange='bindChange' indicator-style="height: 50px;">
        <picker-view-column>
        <!-- bindtap='chooseReason' data-id="{{item.id}}" data-reason="{{item.reason}}" -->
              <view  wx:for="{{refundReason}}" class="addr-item">{{item.reason}}</view>
        </picker-view-column>
    </picker-view>
     <view wx:if="{{showReason}}" class='chooseBtn' bindtap='reasonSure'>确定</view>
    <view wx:if="{{showReason}}" bindtap='hidderPicker' class='mask'></view>
</form>
</view>