@{
    Layout = "~/Areas/Member/Views/_LoginLayoutPage.cshtml";
    ViewBag.Title = "找回密码";
}
<div class="container">
    <div class="loginBox clearfix">

        <div class="row header">
            <div class="col-md-6 col-xs-6">
                <a href="/">返回首页</a>
            </div>
            <div class="col-md-6 col-xs-6 text-right">
                没有账户？<a href="@Url.Action("Index","Reg")">去注册</a>
            </div>
        </div>

        <div class="content-box">
            <div class="media logo-media"></div>
            <div class="login-sign">找回密码</div>
            <form method="post" id="loginForm" data-validate-params="tipsStyle:2">
                <div class="validate-all-tips-box"></div>
                <div class="form-group">
                    <div class="controls ">
                        <input type="text" id="account" name="account" class="form-control" maxlength="30" placeholder="用户名/绑定邮箱/绑定手机" data-validate="ignoreHidden:true,dataType:'*',nullMsg:'请填写账号'">
                        <span class="help-block">请填写要找回的帐号、或账号绑定的邮箱或手机</span>
                    </div>
                </div>

                @if (ViewBag.VerificationCode == "1")
    {
            <div class="form-group">
                <div class="controls ">
                    <div class="input-group">
                        <input type="text" id="_VerificationCode" name="_VerificationCode" class="form-control" maxlength="4" placeholder="输入右侧的验证码" data-validate="dataType:'*',minLength:4,minLengthErrorMsg:'验证码最少4个字符',nullMsg:'请填写验证码',checkUrl:'/E/VerificationCode/Validate',checkError:'验证码填写错误'">
                        <span class="input-group-btn">
                            <a class="btn btn-default btn-verificationCodeImg"><img id="verificationCodeImg" src="/E/VerificationCode/?width=100&height=39" class="ui-verificationCodeImage" /></a>
                        </span>
                    </div>
                    <span class="help-block" id="_ValidateTips__VerificationCode"></span>
                </div>
            </div>

}

                <div class="form-group">
                    <div class="controls controls-submit">
                        @Html.AntiForgeryToken()
                        <button type="button" class="btn btn-primary btn-lg col-xs-12 col-md-12 ui-pagePost" data-custom-params="url:'@Url.Action("Index")',callBack:'Success',successMsg:''">下一步</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript">
    var open = @ViewBag.Open;
    var $findBox = $(".find-box");
    if (open == 0)
    {
        $findBox.html("对不起，找回密码功能未开放！")
    }
    var $verificationCode = $("#verificationCode");
    $verificationCode.val("");

   function Success(result)
   {
       location.href = "@Url.Action("Confirm")";
    }
</script>
