Переглянути джерело

认证页面查看身份证优化

ZhangWenQiang 4 роки тому
батько
коміт
21afbe2e2f

+ 19 - 18
happy-job-base-system/src/main/webapp/webpage/modules/sys/hpuser/authform.jsp

@@ -19,6 +19,16 @@
 		.panel-body{
 			padding: 6px 10px;
 		}
+        .picture-view{
+            position: absolute;
+            color: #fff;
+            top: 0px;
+            left: 130px;
+            background: #f50;
+            cursor: pointer;
+            padding: 0 5px;
+            font-size: 12px;
+        }
 	</style>
 	<script type="text/javascript">
 
@@ -399,28 +409,19 @@
 			<div class="form-group col-sm-12">
 					<label class="col-sm-3 control-label"><font color="red">*</font>身份证正面:</label>
 					<div class="col-sm-5">
-						<%--<c:choose>--%>
-							<%--<c:when test="${hpMember.idCardFront eq null || hpMember.idCardFront eq ''}">--%>
-								<sys:imgUpload path="idCardFront" value="${hpMember.idCardFront}" type="file" title="上传身份证正面照" uploadPath="/omcandidate" fileNumLimit="1"/>
-							<%--</c:when>--%>
-							<%--<c:otherwise>--%>
-								<img onclick="jp.showPic('${ctxp}${hpMember.idCardFront}')" src="${ctxp}${hpMember.idCardFront}" style="width: 20px;height: 10px;cursor: pointer;">
-							<%--</c:otherwise>--%>
-						<%--</c:choose>--%>
-					<%--</div>--%>
+                        <sys:imgUpload path="idCardFront" value="${hpMember.idCardFront}" type="file" title="上传身份证正面照" uploadPath="/omcandidate" fileNumLimit="1"/>
+                        <c:if test="${not empty hpMember.idCardFront}">
+                            <span onclick="jp.showPic('${ctxp}${hpMember.idCardFront}')" class="picture-view">查看</span>
+                        </c:if>
+					</div>
 			</div>
 			<div class="form-group col-sm-12">
 					<label class="col-sm-3 control-label"><font color="red">*</font>身份证反面:</label>
 					<div class="col-sm-5">
-
-						<%--<c:choose>--%>
-							<%--<c:when test="${hpMember.idCardBack eq null || hpMember.idCardBack eq ''}">--%>
-								<sys:imgUpload path="idCardBack" value="${hpMember.idCardBack}" type="file" title="上传身份证反面照" uploadPath="/omcandidate" fileNumLimit="1"/>
-							<%--</c:when>--%>
-							<%--<c:otherwise>--%>
-								<img onclick="jp.showPic('${ctxp}${hpMember.idCardBack}')" src="${ctxp}${hpMember.idCardBack}" style="width: 20px;height: 10px;cursor: pointer;">
-							<%--</c:otherwise>--%>
-						<%--</c:choose>--%>
+                        <sys:imgUpload path="idCardBack" value="${hpMember.idCardBack}" type="file" title="上传身份证反面照" uploadPath="/omcandidate" fileNumLimit="1"/>
+                        <c:if test="${not empty hpMember.idCardBack}">
+                            <span onclick="jp.showPic('${ctxp}${hpMember.idCardBack}')" class="picture-view">查看</span>
+                        </c:if>
 					</div>
 			</div>
 			<%--<div class="form-group col-sm-12">--%>