<wxs module="fil" src="fil.wxs"></wxs>
<view class="container">
    <view class="return-box" wx:for="{{list}}" wx:key="{{index}}">
        <view class="item">
            订单号：{{item.order_sn}}
        </view>
        <navigator class="item" url="/packageF/pages/user/return_goods_info/return_goods_info?id={{item.id}}">
            <block wx:if="{{item.status==0}}">已申请成功，待售后审核中</block>
            <block wx:elif="{{item.status==1}}">处理中</block>
            <block wx:elif="{{item.status==2}}">退款完成</block>
            <block wx:elif="{{item.status==3}}">{{fil.set_word(item.remark)}}</block>
					
            <image class="wh100 arrow" src="{{iurl}}/miniapp/images/icon-arrowdown.png"></image>
        </navigator>
        <view class="item return-goods" wx:for="{{item.goodslist}}" wx:for-item="goods">
            <image class="wh100 goods_img" src="{{resourceUrl+goods.original_img}}" lazy-load="true"></image>
            <view class="goods-desc">
                <view class="goods-name">{{goods.goods_name}}</view>
                <view class="apply-time">申请时间：{{item.addTimeFommat}}</view>
            </view>
        </view>
        <navigator class="return-btn" url="/packageF/pages/user/return_goods_info/return_goods_info?id={{item.id}}">进度查询</navigator>
        <!-- <view bindtap="receiveOrder" class="return-btn" data-id="{{item.id}}" hidden="{{!(item.status==2&&item.type==1)}}">确认收货</view> -->
        <view bindtap="cancelReturn" class="return-btn" data-id="{{item.id}}" wx:if="{{item.status<=1}}">取消申请</view> 
    </view>
    <view class="no-data" wx:if="{{!list||list.length==0}}">
        <image class="cart-image" src="{{iurl}}/miniapp/images/cart-null.png"></image>
        <view class="no-data-title">没有找到相关的记录</view>
        <navigator class="lookat"  url="/pages/index/index/index"> 去逛逛 </navigator>
    </view>
</view>
