<%@ Page Title="" Language="C#" MasterPageFile="~/Master/MainMaster.master" CodeBehind="Default.aspx.cs" Inherits="WAP2P.Web.PC.Default" %>
<%@ OutputCache Duration="60" VaryByParam="none" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script>
    var murl = '<% =WAP2P.Sys.GlobalSetting.Get(WAP2P.Sys.GlobalSetting.Keys.Site.MobileHost) %>';
    if (murl) {
        (function (a, b) { if (/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0, 4))) window.location = b })(navigator.userAgent || navigator.vendor || window.opera, location.href.replace(location.hostname, murl));
    }
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
    <div class="m-banner cycle-slideshow" data-cycle-slides=".banner-img">
        <%= WAP2P.Sys.AdPosition.GetAdPositionCode("ad_HomePage") %>
    </div>

    <div class="m-page g-ohide">
        <!-- SiteMsg Play-->
        <div class="m-investment">
            <div class="m-container">
                <ul class="investment-list">
                    <li>
                        <a href="/Borrow/">
                            <img src="../Res/core/Images/default/info3_img2.png" class="g-left mr10" />
                            <span class="fs20 mt10 g-fleft">投资理财</span>
                            <span class="fs12 fcblueAsh-2">成为理财人，手动或自动将资金进行出借投资，获得稳定年化收益。</span>
                        </a>
                    </li>
                    <li>                        
                        <a href="/Help/List.htm?cid=7">
                            <img src="../Res/core/Images/default/info3_img3.png" class="g-left mr10" />
                            <span class="fs20 mt10 g-fleft">成倍收益</span>
                            <span class="fs12 fcblueAsh-2">超活期存款收益50倍，让您的钱能真正生钱。</span>
                        </a>
                    </li>
                    <li>
                        <a href="/News/?id=9">
                            <img src="../Res/core/Images/default/info3_img1.png" class="g-left mr10" />
                            <span class="fs20 mt10 g-fleft">安全保障</span>
                            <span class="fs12 fcblueAsh-2">所有投资标的100%适用本金保障计划，有效保障理财人的本金安全。</span>
                        </a>
                    </li>
                    <li>
                        <a href="/User/Account/MyAccount.htm">
                            <img src="../Res/core/Images/default/info3_img4.png" class="g-left mr10" />
                            <span class="fs20 mt10 g-fleft">赎回投资</span>
                            <span class="fs12 fcblueAsh-2">随时随心赎回投资，操作便捷，轻松搞定，资金最快当天到账。</span>
                        </a>
                    </li>
                </ul>
            </div>
        </div>
        <!-- SiteMsg End-->

        <!-- notice Play-->
        <div class="m-container m-globalbox g-ohide mt10">
            <div class="g-left wg5">
                <ul class="m-notice" id="js-notice">
                    <%-- 公告  --%>
                    <% rptNotice.DataSource = WAP2P.Article.Article.FindByCategory(WAP2P.Article.Category.LoadOrNewByName("站点公告").Id).OrderByDescending(item => item.OrderBy).ThenByDescending(item => item.CreateAt).Take(3); rptNotice.DataBind(); %>
                    <ruson:Repater runat="server" ID="rptNotice" ItemType="WAP2P.Article.Article">
                        <ItemTemplate>
                            <li><a href="/News/?aid=<%# Item.Id %>"><i class="iconfont fs16 fcred-3 mr10">&#xe62e;</i><%# Item.Title.Left(12) %></a><span class="fcblueAsh-3 ml10 fs12"><%# Item.CreateAt.ToDateString() %></span></li>
                        </ItemTemplate>
                        <EmptyTemplate>
                            <li><a href="javascript:void(0);" class="fs14 m-blacklink g-left"><i class="iconfont fs16 fcblue-2 mr10">&#xe62e;</i>暂无最新公告</a><span class="g-right fcgery-3"></span></li>
                        </EmptyTemplate>
                    </ruson:Repater>
                </ul>
            </div>
            <div class="g-right wgm7">
                <div class="g-fright pr10 pt5">
                    注册用户 <span class="fcred-3 g-fbold fs24 js-canto js-convertnum"><% =WAP2P.Infrastructure.Config.Cache.Get("web_default_regUserCount", DateTime.Now.AddHours(4), () => { return WAP2P.Member.User.GetAll().Count(); })%></span> 人，
                    累计投资 <span class="fcred-3 g-fbold fs24 js-canto js-convertnum"><% =WAP2P.Infrastructure.Config.Cache.Get("web_default_bidAmountCount", DateTime.Now.AddHours(4), () => { return (WAP2P.BorrowLoan.Bid.GetAll().Sum(item => (decimal?)item.Amount) ?? 0).ToString("0."); })%></span> 元，
                    累计赚取 <span class="fcred-3  g-fbold fs24 js-canto js-convertnum"><% =WAP2P.Infrastructure.Config.Cache.Get("web_default_interestCount", DateTime.Now.AddHours(4), () => { return (WAP2P.BorrowLoan.Repay.GetAll().Sum(item => (decimal?)item.ActuaRepayInterest) ?? 0).ToString("0."); })%></span> 元
                </div>
            </div>
        </div>
        <!-- notice End-->

        <!--recommend Play-->
        <div class="m-container">
            <% var recommend = WAP2P.BorrowLoan.Borrow.FindFront().Where(item => item.HomeDisplay).OrderByDescending(item => item.OrderBy).ThenByDescending(item => item.Id).Take(2).ToList(); rptRecommend.DataSource = recommend; rptRecommend.DataBind(); %>
            <script>window['borrowIds'] = (window['borrowIds'] || '') + ',<% =recommend.Select(item => item.Id).Join(",") %>' </script>
            <ruson:Repater ID="rptRecommend" runat="Server" ItemType="WAP2P.BorrowLoan.Borrow">
                <ItemTemplate>
                    <div class="m-recommendborrow m-globalbox mt20" id="tr<%# Item.Id %>">
                        <div class="pa10 g-left">
                            <a href="<%# WAP2P.Web.Extensions.GetBorrowUrl(Item.Id) %>">
                                <img src="<%# Item.GetCover() %>" />
                            </a>
                        </div>
                        <div class="wg8 g-right">
                            <div class="borrow-title">
                                <a href="<%# WAP2P.Web.Extensions.GetBorrowUrl(Item.Id) %>" style="color:<%# string.IsNullOrEmpty(Item.Color) ? string.Empty : Item.Color %>"><%# Item.Name %></a><div class="borrow-type"><span class="icon-rightarrow"></span></div>
                            </div>
                            <div class="borrow-desc">
                                <div class="desc-msg g-left">
                                    <%# Item.Detail.CleanHtmlTags().LeftX(100) %> <a href="<%# WAP2P.Web.Extensions.GetBorrowUrl(Item.Id) %>">[更多]</a>
                                </div>
                                <div class="desc-line g-right">
                                    <div class="line-time js-time"></div>
                                    <div class="ui-bidspeed"><span class="js-stepw" style="width:0%"></span></div>
                                    <div class="ui-percent"><span class="js-stepl" style="left:0%;"></span></div>
                                </div>
                            </div>

                            <ul class="borrow-moenys">
                                <li>
                                    <label class="moenys-msg g-fbold fcblue-3"><%# Item.LoanAmount.ToMoneyString() %> 元</label>
                                    <span class="moenys-title">标的总额</span>
                                </li>
                                <li>
                                    <label class="moenys-msg fcblue-2"><%# (Item.YearRate * 100).ToInterestString() %>%<%# Item.BidRewardType== WAP2P.BorrowLoan.Borrow.BidReward.BidAmountRatio ? string.Format(" + {0}%", (Item.BidRewardRatio.Value * 100).ToInterestString()) : string.Empty %></label><span class="moenys-title">最大净收益</span>
                                </li>
                                <li>
                                    <label class="moenys-msg"><%# Item.BidMinAmount.ToMoneyString() %> 元</label>
                                    <span class="moenys-title">最低投标</span>
                                </li>
                                <li>
                                    <label class="moenys-msg"><%# Item.LoanDate %><%# Item.LoanDateUnit.GetDescription() %></label>
                                    <span class="moenys-title">期限</span>
                                </li>
                            </ul>
                        </div>
                    </div>
                </ItemTemplate>
            </ruson:Repater>            
        </div>
        <!--recommend End-->
        
        <div class="m-container">
            <div class="g-left wg9">
                <!--BorrowList Play-->
                <%
                    var borrowTypes = WAP2P.Sys.BorrowType.FindActive().Where(item => item.Name != "娱乐标");
                    rptBorrowType.DataSource = borrowTypes;
                    List<long> borrowIds = new List<long>();
                    rptBorrowType.ItemDataBound += (o1, e1) =>
                    {
                        if (e1.Item.ItemType == ListItemType.Item || e1.Item.ItemType == ListItemType.AlternatingItem)
                        {
                            var detail = (Ruson.Web.UI.Repater)e1.Item.FindControl("rptBorrow");
                            var list = WAP2P.BorrowLoan.Borrow.FindFront().Where(item => item.TypeId == ((WAP2P.Sys.BorrowType)e1.Item.DataItem).Id && !item.HomeDisplay)
                                .OrderByDescending(item => item.Id).Take(4).ToList();
                            detail.DataSource = list;
                            detail.DataBind();
                            borrowIds.AddRange(list.Select(item => item.Id));
                        }
                    };
                    rptBorrowType.DataBind();
                %>
                <script>window['borrowIds'] = (window['borrowIds'] || '') + ',<% =borrowIds.Join(",") %>' </script>
                <asp:Repeater runat="server" ID="rptBorrowType" ItemType="WAP2P.Sys.BorrowType">
                    <ItemTemplate>
                        <div class="m-homeborrowlist m-globalbox mt20 g-ohide">
                            <div class="homeborrowlist-titlebox">
                                <div class="pl10 mt10 mb10 g-left">
                                    <img src="<%# Item.Icon %>" style="width:60px; height:18px; margin-top:8px; margin-right:5px;" class="g-left" />
                                    <span class="fs20 g-fbold"><%# Item.Name %></span>
                                    <span class="ml5 fcAsh-3"><%# Item.Description.LeftX(38) %></span>
                                </div>
                                <a class="g-right mr20 mt15" href="/Borrow/?type=<%# Item.Id %>">[更多]</a>
                            </div>
                            <div class="homeborrowlist-list g-clear">                                    
                                <table cellpadding="0" cellspacing="0" width="100%">
                                    <tr>
                                        <th width="25%">标 题</th>
                                        <th width="25%">总 额 / 可投金额</th>
                                        <th width="15%">收益率</th>
                                        <th width="5%">期 限</th>
                                        <th width="10%">进 度</th>
                                        <th width="20%">状 态</th>
                                    </tr>
                                    <ruson:Repater ID="rptBorrow" runat="Server" ItemType="WAP2P.BorrowLoan.Borrow">                             
                                        <ItemTemplate>
                                            <tr id="tr<%# Item.Id %>">
                                                <td><a href="<%# WAP2P.Web.Extensions.GetBorrowUrl(Item.Id) %>" class="ml5 fcblack-3" style="color:<%# string.IsNullOrEmpty(Item.Color) ? string.Empty : Item.Color %>"><%# Item.Name %></a></td>
                                                <td class="fcblue-3 fs14"><span class="fs18 js-convertnum g-fbold"><%# Item.LoanAmount %></span> 元 / <span class="js-convertnum js-canto"><%# Item.LoanAmount - Item.BidAmountCount %></span> 元</td>
                                                <td class="fcblue-3"><%# (Item.YearRate * 100).ToInterestString() %>%<%# Item.BidRewardType== WAP2P.BorrowLoan.Borrow.BidReward.BidAmountRatio ? string.Format(" + {0}%", (Item.BidRewardRatio.Value * 100).ToInterestString()) : string.Empty %></td>
                                                <td><label><%# Item.LoanDate %></label><%# Item.LoanDateUnit.GetDescription() %></td>
                                                <td class="t-bidspeed">
                                                    <div class="ui-bidspeed"><span class="js-stepw" style="width:0%"></span></div>
                                                </td>
                                                <td><a class="bidhomelist-btn js-btn" href="<%# WAP2P.Web.Extensions.GetBorrowUrl(Item.Id) %>"></a></td>
                                            </tr>
                                        </ItemTemplate>
                                        <EmptyTemplate>
                                            <td colspan="6" class="g-fleft pl20"><i class="iconfont fs16 mr10">&#xe62f;</i>暂无数据</td>
                                        </EmptyTemplate>
                                    </ruson:Repater>                          
                                </table>                                
                            </div>
                        </div>
                    </ItemTemplate>
                </asp:Repeater>
                <!--BorrowList End-->
                <% var transfer = WAP2P.BorrowLoan.Transfer.Find(WAP2P.BorrowLoan.Transfer.GetDisplayStatusWhere(WAP2P.BorrowLoan.Transfer.TransferStatusDisplay.Transferring)).OrderByDescending(item => item.Id); rptTransfer.DataSource = transfer; rptTransfer.DataBind(); %>
                <div class="m-homeborrowlist m-globalbox mt20 g-ohide">
                    <div class="homeborrowlist-titlebox">
                        <div class="pl10 mt10 mb10 g-left">
                            <img src="../Res/core/Images/default/tico.jpg" style="width:60px; height:18px; margin-top:8px; margin-right:5px;" class="g-left" />
                            <span class="fs20 g-fbold">债权转让</span><span class="ml5 fcAsh-3">投资期限更短，投资更加灵活！</span>
                        </div>
                        <a class="g-right mr20 mt15" href="/Borrow/TransferList<% =PageExt %>">[更多]</a>
                    </div>
                    <div class="homeborrowlist-list g-clear">                                    
                        <table cellpadding="0" cellspacing="0" width="100%">
                            <tr>
                                <th width="25%">标 题</th>
                                <th width="30%">总 额</th>
                                <th width="15%">预计收益</th>
                                <th width="5%">剩余期数</th>                                
                                <th width="20%">状 态</th>
                            </tr>
                            <ruson:Repater ID="rptTransfer" runat="Server" ItemType="WAP2P.BorrowLoan.Transfer">                             
                                <ItemTemplate>
                                    <tr id="ttr<%# Item.Id %>">
                                        <td><a href="<%# WAP2P.Web.Extensions.GetTransferUrl(Item.Id) %>" class="ml5 fcblack-3"><%# Item.Name %></a></td>
                                        <td class="fcblue-3 fs14"><span class="fs18 js-convertnum g-fbold"><%# Item.UpDownAmount.ToMoneyString() %></span> 元</td>
                                        <td class="fcblue-3"><%# Item.Interest.ToMoneyString() %> 元</td>
                                        <td><label><%# Item.PeriodCount %></label>期</td>                                        
                                        <td><a class="bidhomelist-btn js-btn" href="<%# WAP2P.Web.Extensions.GetTransferUrl(Item.Id) %>">转让中</a></td>
                                    </tr>
                                </ItemTemplate>
                                <EmptyTemplate>
                                    <td colspan="5" class="g-fleft pl20"><i class="iconfont fs16 mr10">&#xe62f;</i>暂无数据</td>
                                </EmptyTemplate>
                            </ruson:Repater>                          
                        </table>                                
                    </div>
                </div>
            </div>
            <div class="g-right wg3">
                <div class="g-ohide" id="js-fixed">
                    <!--NewsList Play-->
                    <div class="m-newslistbox m-globalbox mt20">
                        <% var CurrCategory = WAP2P.Article.Category.LoadOrNewByName("公司公告"); repCompanyNoticeList.DataSource = WAP2P.Article.Article.FindByCategory(CurrCategory.Id).OrderByDescending(item => item.OrderBy).ThenByDescending(item => item.Id).Take(4); repCompanyNoticeList.DataBind(); %>
                        <div class="newslist-title">
                            <span class="fs18 g-fbold fcblack-3 g-left pa10">公司公告</span><a href="/News/?id=<% =CurrCategory.Id %>" class="m-gerylink3 fs12 g-right pa10 mt5">[更多]</a>
                        </div>
                        <ul class="newslist-list g-clear wg3">
                            <ruson:Repater runat="server" ID="repCompanyNoticeList" ItemType="WAP2P.Article.Article">
                                <ItemTemplate>
                                    <li><a href="/News/?aid=<%# Item.Id %>"><i class="iconfont fs12 fcblue-2">&#xe644;</i> <%# Item.Title.LeftX(15) %></a></li>
                                </ItemTemplate>
                                <EmptyTemplate>
                                    <li><a href="javascript:void(0);"><i class="iconfont fs14 mr10">&#xe62f;</i>暂无公司公告。</a></li>
                                </EmptyTemplate>
                            </ruson:Repater>                            
                        </ul>
                    </div>
                    <div class="m-globalbox mt10 ">
                        <% =AdPosition.GetAdPositionCode("ad_Video") %>                        
                    </div>
                    <div class="m-newslistbox m-globalbox mt20">
                        <%-- 借款预告  --%>
                        <% var category1 = WAP2P.Article.Category.LoadOrNewByName("发标预告"); rptArticleList1.DataSource = WAP2P.Article.Article.FindByCategory(category1.Id).OrderByDescending(item => item.OrderBy).ThenByDescending(item => item.Id).Take(4); rptArticleList1.DataBind(); %>
                        <div class="newslist-title">
                            <span class="fs18 g-fbold fcblack-3 g-left pa10">发标预告</span><a href="/News/?id=<% =category1.Id %>" class="m-gerylink3 fs12 g-right pa10 mt5">[更多]</a>
                        </div>
                        <ul class="newslist-list g-clear wg3">
                            <ruson:Repater runat="server" ID="rptArticleList1" ItemType="WAP2P.Article.Article">
                                <ItemTemplate>
                                    <li><a href="/News/?aid=<%# Item.Id %>"><i class="iconfont fs12 fcblue-2">&#xe645;</i> <%# Item.Title.LeftX(15) %></a></li>
                                </ItemTemplate>
                                <EmptyTemplate>
                                    <li><a href="javascript:void(0);"><i class="iconfont fs14 mr10">&#xe62f;</i>暂无借款预告。</a></li>
                                </EmptyTemplate>
                            </ruson:Repater>
                        </ul>
                    </div>
                    <!--NewsList End-->
                </div>
            </div>
            <div class="g-clear"></div>
        </div>

        <!--News Play-->
        <div class="m-container m-globalbox mt20 g-ohide">
            <div class="g-left wg6 m-newslistbox">
                <% var articleCategory1 = WAP2P.Article.Category.LoadOrNewByName("行业信息"); rptArticle1.DataSource = WAP2P.Article.Article.FindByCategory(articleCategory1.Id).OrderByDescending(item => item.OrderBy).ThenByDescending(item => item.Id).Take(4); rptArticle1.DataBind(); %>
                <div class="newslist-title">
                    <span class="fs18 g-fbold fcblack-3 g-left pa10">行业信息</span><a href="/News/?id=<% =articleCategory1.Id %>" class="m-gerylink3 fs12 g-right pa10 mt5">[更多]</a>
                </div>
                <ul class="newslist-list g-clear">
                    <ruson:Repater runat="server" ID="rptArticle1" ItemType="WAP2P.Article.Article">
                        <ItemTemplate>
                            <li><a href="/News/?aid=<%# Item.Id %>"><span class="g-right fcblueAsh-1">[<%# Item.CreateAt.ToDateString() %>]</span><i class="iconfont fs12 fcblue-2">&#xe609;</i> <%# Item.Title %></a></li>
                        </ItemTemplate>
                        <EmptyTemplate>
                            <li><a href="javascript:void(0);"><i class="iconfont fs14 mr10">&#xe62f;</i> 暂无行业信息。</a></li>
                        </EmptyTemplate>
                    </ruson:Repater>                    
                </ul>
            </div>
            <div class="g-right wg6 m-newslistbox">
                <% var articleCategory2 = WAP2P.Article.Category.LoadOrNewByName("公司动态"); rptArticle2.DataSource = WAP2P.Article.Article.FindByCategory(articleCategory2.Id).OrderByDescending(item => item.OrderBy).ThenByDescending(item => item.Id).Take(4); rptArticle2.DataBind(); %>
                <div class="newslist-title">
                    <span class="fs18 g-fbold fcblack-3 g-left pa10">公司动态</span><a href="/News/?id=<% =articleCategory2.Id %>" class="m-gerylink3 fs12 g-right pa10 mt5">[更多]</a>
                </div>
                <ul class="newslist-list g-clear">
                    <ruson:Repater runat="server" ID="rptArticle2" ItemType="WAP2P.Article.Article">
                        <ItemTemplate>
                            <li><a href="<%# string.Format("News/?aid={0}", Item.Id) %>"><span class="g-right fcblueAsh-1"><%# Item.CreateAt.ToDateString() %></span><i class="iconfont fs12 fcblue-2">&#xe609;</i> <%# Item.Title %></a></li>
                        </ItemTemplate>
                        <EmptyTemplate>
                            <li><a href="javascript:void(0);"><span class="g-left title"><i class="iconfont fs16 mr10">&#xe62f;</i> 暂无公司动态。</span></a></li>
                        </EmptyTemplate>
                    </ruson:Repater>
                </ul>
            </div>
        </div>
        <!--News End-->

        <!--FriendLink Play-->
        <div class="m-container m-globalbox mt20 mb10 g-ohide js-tabs" data-tabs-selector=".m-friendlink dt a">
            <dl class="m-friendlink">
                <dt><a href="#js-imgbox" class="on">合作机构</a></dt>
                <dt><a href="#js-textbox">友情链接</a></dt>
                <dd id="js-imgbox" class="friendlink-imgbox" style="display: block;">
                    <% repLinks1.DataSource = WAP2P.Sys.Link.FindByActive().Where(item => !string.IsNullOrEmpty(item.Logo)).OrderByDescending(item => item.OrderBy); repLinks1.DataBind();%>
                    <ruson:Repater ID="repLinks1" runat="server" ItemType="WAP2P.Sys.Link">
                        <ItemTemplate><a target="_blank" href="<%# Item.LinkUrl %>"><img src="<%# Item.Logo %>" /></a></ItemTemplate>
                    </ruson:Repater> 
                </dd>
                <dd id="js-textbox" class="friendlink-textbox" style="display: none;">
                    <% repLinks2.DataSource = WAP2P.Sys.Link.FindByActive().Where(item => string.IsNullOrEmpty(item.Logo)).OrderByDescending(item => item.OrderBy); repLinks2.DataBind();%>
                    <ruson:Repater ID="repLinks2" runat="server" ItemType="WAP2P.Sys.Link">
                        <ItemTemplate><a target="_blank" href="<%# Item.LinkUrl %>"><%# Item.LinkName %></a></ItemTemplate>
                    </ruson:Repater>
                </dd>
            </dl>
        </div>
        <!--FriendLink End-->
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="script" runat="server">
    <script>
        $('#js-notice').scrollview('li');
        $.ajax({
            dataType: 'json',
            cache: false,
            url: 'Borrow/ajax<% =PageExt %>',
            data: { action: 'borrowsInfo', ids: borrowIds },
            success: function (res) {
                if (res.length) {
                    $.each(res, function (i, n) {
                        var tr = $('#tr' + n.id);
                        tr.find('.js-stepw').css('width', n.data.step);
                        tr.find('.js-stepl').css('left', n.data.step).html(n.data.step);
                        tr.find('.js-btn').html(n.data.btnTxt).addClass(n.data.btnHigh ? 'home-bidbtn' : 'home-bidfinish');
                        commonUi.timedown(tr.find('.js-time'), n.data.time);
                    });
                }
            }
        });

        $(function () {
            if ($('.js-reserbox').children().length > 1) {
                $('.js-reserbox').prepend('<div class="cycle-next iconfont fs20 fcgery-3">&#xe607;</div><div class="cycle-prev iconfont fs20 fcgery-3">&#xe606;</div>');
            }
            $('.js-canto').lazy({
                render: function () {
                    $(this).scrollno();
                }
            });

            var fixedEn = $('#js-fixed'),
                fixedEnTopH = fixedEn.offset().top; //元素距离顶部的高度
            if (fixedEn.parent().prev().innerHeight() > fixedEn.height()) {
                fixedEn.parent().addClass('g-relative');
                fixedEn.addClass('g-absolute');

                $(window).scroll(function () {
                    var scrollH = $(document).scrollInfo().top,  //页面滚动的距离顶部的高度
                        fixedEnH = fixedEn.parent().prev().innerHeight() - fixedEn.fullSize().height,  //元素自身的高度
                        val = scrollH >= fixedEnTopH ? (scrollH - fixedEnTopH) <= fixedEnH ? scrollH - fixedEnTopH : fixedEnH : 0;
                    fixedEn.css('top', val);
                })
            }
           
        })
    </script>
</asp:Content>
