<%@ Page Title="" Language="C#" MasterPageFile="~/Master/UserMaster.master" CodeBehind="SafeCenter.aspx.cs" Inherits="WAP2P.Web.PC.User.Info.SafeCenter" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
    <div class="m-userbox">
        <dl class="ui-tab">
            <dt><a href="javascript:void(0);" class="on">安全中心</a></dt>
            <dt><a href="/User/Info/LoginHistory<%= PageExt %>">登录历史</a></dt>
            <dd>
                <table class="m-safecenter">
                    <ruson:Space runat="server" ID="otherHosting" Visible="false">
                        <tr>
                            <td style="width: 12%"><i class="iconfont fs50">&#xe626;</i></td>
                            <td style="width: 75%" class="g-fleft">
                                <div class="safecenter-style">
                                    <h4>第三方开户：<%= ConfigService.GetConfig<WAP2P.BorrowLoan.IBusinessControl>().HasAccount(CurrentUser) ? "<span class=\"fcblue-3\">开户成功</span> <a href=\"/\">[查看账户]</a>" : "<a href=\"/\">[未开户]</a>" %></h4>
                                    <p>本平台依托<%= ConfigService.GetConfig<WAP2P.BorrowLoan.IBusinessControl>().Name %>作为唯一的资金托管，开始投资前需在第三方进行开户操作。</p>
                                </div>
                            </td>
                            <td style="width: 13%" class="g-fleft"><i class="iconfont fs40 <%= ConfigService.GetConfig<WAP2P.BorrowLoan.IBusinessControl>().HasAccount(CurrentUser) ? "fcgreen-2" : "fcgery-2" %>">&#xe622;</i></td>
                        </tr>
                    </ruson:Space>
                    <tr>
                        <td><i class="iconfont fs46">&#xe625;</i></td>
                        <td class="g-fleft">
                            <div class="safecenter-style">
                                <h4>登录密码：<a href="/User/Info/ModifyPassword<%= PageExt %>">[修改]</a></h4>
                                <p>登录密码作为您身份验证的重要依据，请勿随意泄露，造成不必要的损失。</p>
                            </div>
                        </td>
                        <td class="g-fleft"><i class="iconfont fs40 fcgreen-2">&#xe622;</i></td>
                    </tr>
                    <ruson:Space runat="server" ID="paypassword" Visible="false">
                        <tr>
                            <td><i class="iconfont fs46">&#xe623;</i></td>
                            <td class="g-fleft">
                                <div class="safecenter-style">
                                    <h4>支付密码：<%= string.IsNullOrWhiteSpace(CurrentUser.PayPassowrd) ? string.Format("<a href=\"/User/Info/ModifyPay{0}\">[未设置]</a>", PageExt) : string.Format("<span class=\"fcblue-3\">已设置</span> <a href=\"/User/Info/ModifyPay{0}\">[忘记了密码？]</a>", PageExt) %></h4>
                                    <p>支付密码作为您发生交易的重要依据，请勿随意泄露，造成不必要的损失。</p>
                                </div>
                            </td>
                            <td class="g-fleft"><i class="iconfont fs40 fcgery-2 <%= string.IsNullOrWhiteSpace(CurrentUser.PayPassowrd) ? "fcgery-2" : "fcgreen-2" %>">&#xe622;</i></td>
                        </tr>
                    </ruson:Space>
                    <tr>
                        <td><i class="iconfont fs50">&#xe602;</i></td>
                        <td class="g-fleft">
                            <div class="safecenter-style">
                                <h4>实名认证：<% =(CurrentUser.RealNameValid == WAP2P.Member.User.BaseInfoValidStatus.ValidSuccess || CurrentUser.RealNameValid == WAP2P.Member.User.BaseInfoValidStatus.WaitValid) ? string.Format("<span class=\"fcblue-3\">{0}（{1}）</span> {2}", CurrentUser.RealName.HidePart(), CurrentUser.CardNumber.HidePart(), CurrentUser.RealNameValid == WAP2P.Member.User.BaseInfoValidStatus.WaitValid ? "<span class=\"fcblack-1 fs12 ff-songti\">审核中</span>" : "") : string.Format("<a href=\"/User/Info/RealName{0}\">[申请认证]</a>", PageExt) %>
                                </h4>
                                <p>完成实名认证后方可进行投标、提现等相关操作。</p>
                            </div>
                        </td>
                        <td class="g-fleft"><i class="iconfont fs40 <%= CurrentUser.RealNameValid == WAP2P.Member.User.BaseInfoValidStatus.ValidSuccess ? "fcgreen-2" : "fcgery-2" %>">&#xe622;</i></td>
                    </tr>
                    <tr>
                        <td><i class="iconfont fs50">&#xe604;</i></td>
                        <td class="g-fleft">
                            <div class="safecenter-style">
                                <h4>手机认证：<%= CurrentUser.PhoneValid == WAP2P.Member.User.BaseInfoValidStatus.ValidSuccess ? string.Format("<span class=\"fcblue-3\">{0}</span><a href=\"/User/Info/Phone{1}\"> [修改]<a>", CurrentUser.Phone.HidePart(), PageExt) :string.Format("<a href=\"/User/Info/Phone{0}\">[未绑定]<a>", PageExt) %></h4>
                                <p>您可以使用该手机号作为帐号登录，请勿随意泄露手机号，以防被不法分子利用，骗取帐号信息。</p>
                            </div>
                        </td>
                        <td class="g-fleft"><i class="iconfont fs40 <%= CurrentUser.PhoneValid == WAP2P.Member.User.BaseInfoValidStatus.ValidSuccess ? "fcgreen-2" : "fcgery-2" %>">&#xe622;</i></td>
                    </tr>
                    <tr>
                        <td><i class="iconfont fs50">&#xe603;</i></td>
                        <td class="g-fleft">
                            <div class="safecenter-style">
                                <h4>邮箱认证：<%= CurrentUser.EmailValid == WAP2P.Member.User.BaseInfoValidStatus.ValidSuccess ? string.Format("<span class=\"fcblue-3\">{0}</span><a href=\"/User/Info/Email{1}\"> [修改]<a>", CurrentUser.Email.HidePart(), PageExt) :string.Format("<a href=\"/User/Info/Email{0}\">[未绑定]<a>", PageExt) %></h4>
                                <p>您可以使用该邮箱作为帐号登录，请勿随意泄露邮箱，轻信他人邮件，以防被不法分子利用。</p>
                            </div>
                        </td>
                        <td class="g-fleft"><i class="iconfont fs40 <%= CurrentUser.EmailValid == WAP2P.Member.User.BaseInfoValidStatus.ValidSuccess ? "fcgreen-2" : "fcgery-2" %>">&#xe622;</i></td>
                    </tr>
                    <tr>
                        <td><i class="iconfont fs50">&#xe601;</i></td>
                        <td class="g-fleft">
                            <div class="safecenter-style">
                                <h4>现场认证：<%= CurrentUser.OnsiteValid == WAP2P.Member.User.BaseInfoValidStatus.ValidSuccess ? "<span class=\"fcblue-3\">已认证</span>" : WAP2P.Member.UserAdminMapping.GetUserService(CurrentUser.Id) == 0 ? string.Format("<a href=\"/Help/ServiceList{0}\"> [认证申请]</a>", PageExt) : CurrentUser.GetService() %></h4>
                                <p>通过现场认证将有助于平台更准确的判断您的信用级别，提高您借款的成功率。</p>
                            </div>
                        </td>
                        <td class="g-fleft"><i class="iconfont fs40 <%= CurrentUser.OnsiteValid == WAP2P.Member.User.BaseInfoValidStatus.ValidSuccess ? "fcgreen-2" : "fcgery-2" %>">&#xe622;</i></td>
                    </tr>
                    <tr id="js-oauth">
                        <td class="g-noneborder"><i class="iconfont fs50">&#xe624;</i></td>
                        <td class="g-noneborder g-fleft">                            
                            <div class="safecenter-style">
                                <h4>第三方关联：
                                    <% if(GlobalSetting.Get<bool>(GlobalSetting.Keys.OAuth.QQOpen)) { %>
                                    <% =qqBindState ? string.Format("<i class=\"iconfont fs18 fcblue-3 js-vqq\">&#xe614;</i><a href=\"/User/OAuth/Index{0}?action=qqunbind\">[解绑]</a>", PageBase.PageExt) : string.Format("<i class=\"iconfont fs18 f-gery3 js-vqq\">&#xe614;</i><a href=\"/User/OAuth/Index{0}?action=qqlogin\">[绑定]</a>", PageBase.PageExt) %>
                                    <%} %>
                                    <% if(GlobalSetting.Get<bool>(GlobalSetting.Keys.OAuth.SinaOpen)) { %>
                                    <i class="safecenter-line ml10 mr10">|</i>
                                    <% =sinaBindState ? string.Format("<i class=\"iconfont fs18 fcblue-3 js-vqq\">&#xe615;</i><a href=\"/User/OAuth/Index{0}?action=sinaunbind\">[解绑]</a>", PageBase.PageExt) : string.Format("<i class=\"iconfont fs18 f-gery3 js-vqq\">&#xe615;</i><a href=\"/User/OAuth/Index{0}?action=sinalogin\">[绑定]</a>", PageBase.PageExt) %>
                                    <%} %>
                                </h4>
                                <p>您可以使用关联的第三方账户进行快速登录。</p>
                            </div>
                        </td>
                        <td class="g-fleft g-noneborder"><i class="iconfont fs40 <% =(qqBindState&&sinaBindState) ? "fcgreen-2" : "fcgery-2" %>">&#xe622;</i></td>
                    </tr>
                </table>
            </dd>
        </dl>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="script" runat="server">
    <script>
        var oauth = $('#js-oauth');
        if (oauth.find('h4 i').length == 0) oauth.hide();
    </script>
</asp:Content>
