You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DS7/BookingWeb/Views/User/Identification.cshtml

140 lines
6.9 KiB
Plaintext

@{
bool onlyRead = ViewBag.Indentified | ViewBag.Indentifing;
}
@section styles
{
<link type="text/css" rel="stylesheet" href="~/Content/css/identification.css" />
}
<div class="wrapper wrapper-content animated fadeIn">
<div class="row">
<div class="col-sm-6 col-sm-offset-3">
<div class="ibox float-e-margins">
<div class="ibox-title">
<h5>账号认证</h5>
</div>
<div class="ibox-content">
@if (ViewBag.Reject)
{
<div class="row">
<div class="col-sm-12">
<h5 style="text-align:center;color:red;">您提交的认证审核已被驳回,请重新提交审核</h5>
</div>
</div>
}
<div class="row">
@if (!ViewBag.Indentifing && !ViewBag.Indentified)
{
<form class="form-horizontal m-t" id="indentForm" enctype="multipart/form-data">
<div class="form-group">
<label class="col-lg-4 col-md-4 col-sm-5 control-label">@Resources.LangIdentification.TextCompanyCode</label>
<div class="col-lg-6 col-md-7 col-sm-7">
<input name="companyCode" type="text" class="form-control">
</div>
</div>
<div class="form-group">
<label class="col-lg-4 col-md-4 col-sm-5 control-label">@Resources.LangIdentification.TextAddress</label>
<div class="col-lg-6 col-md-7 col-sm-7">
<input name="address" type="text" class="form-control">
</div>
</div>
<div class="form-group">
<label class="col-lg-4 col-md-4 col-sm-5 control-label">@Resources.LangIdentification.TextFile</label>
<div class="col-lg-6 col-md-7 col-sm-7">
<input name="file" type="file" class="form-control">
</div>
</div>
<div class="form-group">
<div class="col-lg-3 col-md-3 col-sm-5 col-sm-offset-5">
<a class="btn btn-primary btn-block" id="btnSubmit">@Resources.LangIdentification.BtnSubmit</a>
</div>
</div>
</form>
}
else
{
<div class="form-horizontal m-t">
<div class="form-group">
<label class="col-lg-4 col-md-4 col-sm-5 control-label">@Resources.LangIdentification.TextCompanyCode</label>
<div class="col-lg-6 col-md-7 col-sm-7">
<input name="companyCode" type="text" class="form-control" value="@ViewBag.CompanyCode" readonly>
</div>
</div>
<div class="form-group">
<label class="col-lg-4 col-md-4 col-sm-5 control-label">@Resources.LangIdentification.TextAddress</label>
<div class="col-lg-6 col-md-7 col-sm-7">
<input name="address" type="text" class="form-control" value="@ViewBag.Address" readonly>
</div>
</div>
<div class="form-group">
<label class="col-lg-4 col-md-4 col-sm-5 control-label">@Resources.LangIdentification.TextFile</label>
<div class="col-lg-5 col-md-7 col-sm-7">
<img src="@Url.Action("ViewIdentifyImg")" style="width:100%;" />
</div>
</div>
<div class="form-group">
<div class="col-lg-3 col-md-3 col-sm-5 col-sm-offset-5">
@if (ViewBag.Indentifing)
{
<a class="btn btn-default btn-block">@Resources.LangIdentification.BtnIndentifing</a>
}
else if (ViewBag.Indentified)
{
<a class="btn btn-info btn-block">@Resources.LangIdentification.BtnIndentified</a>
}
</div>
</div>
</div>
}
</div>
</div>
</div>
</div>
</div>
</div>
@section scripts
{
<script src="~/Content/hplus/js/plugins/validate/jquery.validate.min.js"></script>
<script src="~/Content/js/jquery.form.js"></script>
<script src="~/Content/js/validatorConfig.js"></script>
<script>
$(function () {
$("#indentForm").validate({
rules: {
companyCode: "required",
address: "required",
file: "required"
},
messages: {
companyCode: errIcon + "@Resources.LangIdentification.ValidInputCompanyCode",
address: errIcon + "@Resources.LangIdentification.ValidAddress",
file: errIcon + "@Resources.LangIdentification.ValidFile"
}
});
$("#btnSubmit").click(function () {
if ($("#indentForm").valid()) {
$("#indentForm").ajaxSubmit({
method: 'POST',
url: '@Url.Action("IdentiSubmit")',
success: function (data) {
layer.open({
title: '@Resources.LangAll.MsgInfomation',
content: data.Message,
yes: function (index) {
location.reload();
layer.close(index);
}
});
}
});
}
});
})
</script>
}