showAuthen.vm
7.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
#set($page_title="服务详情")
#set($crumbs="首页:/home,认证管理:/memberCenterAuthen/list.do,认证信息")
<div class="page-content">
<input type="hidden" id="urlOkId" value="${webUtils.getLocalPath("memberCenterAuthen/list.do")} " >
<input type="hidden" value="${webUtils.getLocalPath("memberCenterAuthen/approveAuthenInfo.do?userId=$!{authen.userId}&userType=$!{authen.userType}")} " id="urlId">
<div class="page-header">
<span class="pull-right"><a href="${webUtils.getLocalPath("memberCenterAuthen/list.do")}" class="btn btn-white btn-default">返回</a></span>
<h1>
<small>
<i class="icon-double-angle-right"></i>
认证信息
</small>
</h1>
</div>
<!-- /.page-header -->
<div class="row">
<div class="col-xs-12">
<!-- PAGE CONTENT BEGINS -->
<div class="profile-user-info profile-user-info-striped">
<div class="profile-info-row">
<div class="profile-info-name">申请编号:</div>
<div class="profile-info-value">
<span >$!{authen.authenticationStateId} </span>
</div>
</div>
<div class="profile-info-row">
<div class="profile-info-name"> 申请人: </div>
<div class="profile-info-value">
<span >$!{authen.accountName} </span>
</div>
</div>
<div class="profile-info-row">
<div class="profile-info-name"> 申请时间: </div>
<div class="profile-info-value">
<span > $!{dateFormatUtils.format($!{authen.submitTime},"yyyy-MM-dd HH:mm:ss")} </span>
</div>
</div>
<div class="profile-info-row">
<div class="profile-info-name"> 认证类型:</div>
<div class="profile-info-value">
<span >
#if($!{authen.userType} == 1)
实名认证
#end
#if($!{authen.userType} == 2)
企业认证
#end
</span>
</div>
</div>
<div class="profile-info-row">
<div class="profile-info-name"> 真实姓名: </div>
<div class="profile-info-value">
<span >$!{authen.idcardName} </span>
</div>
</div>
<div class="profile-info-row">
<div class="profile-info-name"> 身份证号码: </div>
<div class="profile-info-value">
<span >$!{authen.idcard} </span>
</div>
</div>
<div class="profile-info-row">
<div class="profile-info-name"> 身份证扫描件正面: </div>
<div class="profile-info-value">
<img style="max-height: 300px;max-width: 500px;" src=" $!{authen.imgIdcardFront}">
</div>
</div>
<div class="profile-info-row">
<div class="profile-info-name"> 手持身份证正面: </div>
<div class="profile-info-value">
<img style="max-height: 300px;max-width: 500px;" src=" $!{authen.imgFront}">
</div>
</div>
<div class="profile-info-row">
<div class="profile-info-name"> 身份证扫描件反面: </div>
<div class="profile-info-value">
<img style="max-height: 300px;max-width: 500px;" src=" $!{authen.imgIdcardBackground}">
</div>
</div>
#if( $!{authen.state}=='2')
<div class="profile-info-row">
<div class="profile-info-name"> 审批结果 </div>
<div class="profile-info-value">
<input type="radio" name="operate" checked="checked" onclick="operata(2);">同意</input>
<input type="radio" name="operate" onclick="operata(4);">拒绝</input>
<input type="hidden" id="opId" value="2">
</div>
</div>
<div class="profile-info-row">
<div class="profile-info-name">审批意见:</div>
<div class="profile-info-value">
<textarea id="reasonId" ></textarea>
</div>
</div>
</div>
</div>
</div>
<div class="clearfix form-actions">
<div class="col-md-offset-3 col-md-9">
<a class="btn btn-info" onclick="sure();">
<i class="icon-reply bigger-110"></i>
确认
</a>
<a class="btn btn-white btn-default" href="${webUtils.getLocalPath("memberCenterAuthen/list.do")}">
返回
</a>
</div>
</div>
#else
<div class="profile-info-row">
<div class="profile-info-name"> 审批人: </div>
<div class="profile-info-value">
<span >$!{operateLog.operateName} </span>
</div>
</div>
<div class="profile-info-row">
<div class="profile-info-name"> 审批时间: </div>
<div class="profile-info-value">
<span > $!{dateFormatUtils.format($!{authen.auditTime},"yyyy-MM-dd HH:mm:ss")} </span>
</div>
</div>
<div class="profile-info-row">
<div class="profile-info-name"> 审批意见: </div>
<div class="profile-info-value">
<span >$!{authen.auditReson} </span>
</div>
</div>
</div>
</div>
</div>
#end
<script type="text/javascript">
function operata(status){
$("#opId").val(status);
}
function sure(){
var status =$("#opId").val();
var reason =$("#reasonId").val();
if(status=="4"&&reason=="" ){
alert("请填写拒绝原因");
return;
}else{
if(reason.length>60){
alert("审核不能够超过60个字符!");
return;
}
var url = $("#urlId").val().trim();
url =url+"&authState="+$("#opId").val()+"&auditReson= "+reason;
$.ajax({
type : 'post',
url : url,
success : function(data) {
console.info(data);
if(data){
window.location.href=$("#urlOkId").val();
}else{
alert("操作失败!");
}
},
error : function() {
alert("网络超时!");
}
});
}
}
</script>