<!--
Name:用户中心-退货单
Page:P_UserReturn
-->
<div class="nbbox loadlist clearfix">
<div class="user">
    <div class="searchbox clearfix">
        <input type="text" id="key" name="key" class="input-query" value="<%=key %>" onkeydown="if(event.keyCode==13){search_();}" />
        <a href="javascript:void(0)" onclick="search_();" class="btn btn-12"><s></s>{tag:查询}</a>
    </div>
    <%foreach (DB.LebiShop.Lebi_Order o in orders){%>
    <div class="nbbox loadli clearfix">
    <div class="orderlist clearfix">
        <div class="mt clearfix">
            <div class="left"><%=OrderStatus(o) %></div>
            <div class="right"><a href="<%=URL("P_UserReturnDetails",o.id,"")%>"><%=o.Code %></a></div>
        </div>
        <div class="mc clearfix">
            <%if (Shop.Bussiness.EX_Supplier.GetSupplier(o.Supplier_id).IsSupplierTransport==1){ %>
            <div class="shopname"><a href="<%=URL("P_ShopIndex",o.Supplier_id) %>"><%=Lang(Shop.Bussiness.EX_Supplier.GetSupplier(o.Supplier_id).Name)%></a></div>
            <%} %>
            <div class="orderproducts">
                <%
                List<DB.LebiShop.Lebi_Order_Product> order_products = DB.LebiShop.B_Lebi_Order_Product.GetList("Order_id = "+ o.id +"", "id desc");
                foreach (DB.LebiShop.Lebi_Order_Product o_p in order_products)
                {
                %>
                <a href="<%=URL("P_Product",o_p.Product_id,"")%>"><img title="<%=Lang(o_p.Product_Name) %>" src="<%=Image(o_p.ImageOriginal,50,50) %>" style="width: 40px; height: 40px;" /></a>
                <%} %>
            </div>
            <div class="ordermes">
                <div class="left">{tag:订单金额}：<%=FormatMoney(o.Money_Order) %></div>
                <div class="right">
                <%if(o.IsShipped==1){ %><a href="<%=URL("P_UserReturnDetails",o.id)%>">{tag:查看}</a><%}else{ %><a href="<%=URL("P_UserReturnShip",o.id)%>">{tag:查看}</a><%} %>
                </div>
            </div>
        </div>
    </div>
    </div>
    <%} %>
    <%if (CurrentSite.IsMobile==0){ %>
        <div class="bottom clearfix"><div class="right"><%=PageString%></div></div>
    <%}else{%>
    <div class="loadpage">
        <a data-next="<%=NextPage%>"></a>
    </div>
    <script>
        $(document).ready(function () {
            var container = document.querySelector('.loadlist');
            var ias = $.ias({
                container: ".loadlist",
                item: ".loadli",
                pagination: ".loadpage",
                next: ".loadpage a"
            });
            ias.on('render', function (items) {
                //$(items).css({ opacity: 0 });
            });
            ias.on("rendered", function (items) {
            });
            ias.extension(new IASSpinnerExtension({ html: "<div class=\"loadinginfo\"><img src=\"{src}\" />&nbsp;{Tag:加载中}</div>" }));
            ias.extension(new IASTriggerExtension({ text: '{Tag:加载更多}', offset: 100, html: "<div class=\"loadinginfo more\"><p>{text}</p></div>" }));
            ias.extension(new IASNoneLeftExtension({
                text: '', html: ""
            }));
        });
    </script>
    <%}%>
</div>
</div>
<script>
    function search_() {
        var key = $("#key").val();
        window.location = "?key=" + escape(key);
    }
</script>