📄 intergralconsume.jsp
字号:
<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
<html:base />
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link href="${pageContext.request.contextPath }/image/main.css"
rel="stylesheet" type="text/css">
<link href="${pageContext.request.contextPath }/image/shh.css"
rel="stylesheet" type="text/css">
<style type="text/css">
body {
text-align:center;
}
</style>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/check.js"></script>
<script type="text/javascript">
function closeDiv(divObj){
divObj.parentNode.removeChild(divObj);
}
function queryIntergral(){
var mainBody = document.getElementById("main");
var messageBody = document.getElementById("message");
var phone = document.getElementById("phone").value;
var task = document.getElementById("task");
if(trim(phone)==""){
if(messageBody!=null){
closeDiv(messageBody);
}
mainBody.innerHTML = mainBody.innerHTML + "<div id='message'>必须输入正确的信息以进行查询</div>";
return false;
}else{
//location.href="${pageContext.request.contextPath}/intergralConsume.do?task=queryIntergral&phone="+phone
task.value="queryIntergral";
return true;
}
}
</script>
</head>
<body>
<div id="title">积分消费</div>
<html:form action="/intergralConsume" styleId="queryForm">
<input type="hidden" name="task" value="" id="task"/>
<div id="main">
<div id="query">
号码: <html:text property="phone" styleId="phone" maxlength="15" size="15"></html:text> <input type="submit" value=" 查 询 " onClick="return queryIntergral();"/>
</div>
<logic:equal property="task" name="intergralConsumeForm" value="result">
<logic:empty name="userInfo">
<div id="message">你所输入的号码信息不存在,请确认后再次输入!</div>
</logic:empty>
<logic:notEmpty name="userInfo">
<logic:notEqual name="userInfo" property="integralsign" value="1">
<div id="message">你所输入的号码尚未申请积分!<a href="${pageContext.request.contextPath}/intergralRequisition.do?task=showIntergralRequisition">申请积分</a>后再次查询</div>
</logic:notEqual>
<logic:notEqual name="userInfo" property="integralsign" value="0">
<table width="740px" border="0.5px" bordercolor="#FFFFFF" style="margin-top: 20px">
<tr id="row1"><td width="190px" align="right">用户姓名:</td><td width="180px" align="left"> ${userInfo.username }</td>
<td width="180px" align="right">手机号码:</td><td width="190px" align="left"> ${userInfo.phone }</td></tr>
<tr id="row2"><td width="190px" align="right">证件类型:</td><td width="180px" align="left"> ${userInfo.papertype }</td>
<td width="180px" align="right">证件号码:</td><td width="190px" align="left"> ${userInfo.paperid }</td></tr>
<tr id="row1"><td width="190px" align="right">所属地区:</td><td width="180px" align="left"> ${userInfo.area }${userInfo.city }</td>
<td width="180px" align="right">可用积分:</td><td width="190px" align="left"> ${totalIntergral }</td></tr>
<tr id="row2"><td width="190px" align="right">最低积分标准:</td><td width="180px" align="left"> ${intergralRule.minintergral }</td>
<td width="180px" align="right">积分兑换比率:</td><td width="190px" align="left"> ${intergralRule.rate }</td></tr>
<tr id="row1" align="center"><td colspan="4">
<logic:equal value="true" name="message">
你现在可以使用积分进行兑换,
<a href="${pageContext.request.contextPath }/intergralConsume.do?task=listProduct">
点此进入
</a>物品浏览页面
</logic:equal>
<logic:equal value="false" name="message">
你的积分未达到最低积分兑换标准,<a href="#" onclick="histroy.back();">点此返回</a>
</logic:equal>
</td></tr>
</table>
</logic:notEqual>
</logic:notEmpty>
</logic:equal>
</div>
</html:form>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -