rationOldConfig.jsp
11.3 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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<jsp:include page="${ctx }/view/common/meta.jsp" />
<link href="${ctx }/resource/css/detail.css" rel="stylesheet" type="text/css" />
<link href="${ctx }/resource/css/home.css" rel="stylesheet" type="text/css" />
<link href="${ctx }/resource/css/member.css?r=${now}" rel="stylesheet" type="text/css" />
<link href="${ctx }/resource/css/ration/marktEntrust.css?r=${now}" rel="stylesheet" type="text/css" />
<link href="${ctx }/resource/css/quota/quotaTransfer.css?r=${now}" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${ctx}/resource/js/ration/rationOldConfig.js"></script>
<style>
.sale {
font-size: 13px;
color: black;
border: 1px solid black;
padding: 4px 10px;
width: 100px;
background-color: #fff;
font-family: inherit;
font-weight: bold;
border-radius: 3px;
}
.winbt{
text-align: center;
display: inline-block;
width: 135px;
height: 26px;
margin-top: 10px;
background-color: rgb(231, 36, 38);
font-size: 14px;
color: #fff;
border-radius: 5px;
}
</style>
<script>
var now = parseInt('${now}');
function down() {
$('.endDate').each(function(i, item) {
var agreecount=$(item).parent().parent().find('td:eq(4)').html();
var str=$(item).text().trim();
str = str.replace(/-/g,"/");
var endDate = new Date(str);
endDate = endDate.getTime();
endDate = endDate - now;
if (endDate > 0) {
var dd = parseInt(endDate / 1000 / 60 / 60 / 24, 10);//计算剩余的天数
var hh = parseInt(endDate / 1000 / 60 / 60 % 24, 10);//计算剩余的小时数
var mm = parseInt(endDate / 1000 / 60 % 60, 10);//计算剩余的分钟数
var ss = parseInt(endDate / 1000 % 60, 10);//计算剩余的秒数
$(item).next().text(dd + "天" + hh + "时" + mm + "分" + ss + "秒");
}else if(endDate<=0&&parseInt(agreecount)>0){
$("#ration2_" + (i + 1)).html("待交割");
$(item).next().text('0天0小时0分0秒');
}else {
$(item).next().text('0天0小时0分0秒');
if ($("#ration1_" + (i + 1)).html() == "点击配售") {
$("#ration2_" + (i + 1)).html("已结束");
}
}
});
now = now + 1000;
}
$(function() {
setInterval('down()', 1000);
})
</script>
</head>
<body>
<jsp:include page="${ctx }/view/common/header.jsp" />
<div class="bigbox">
<jsp:include page="${ctx }/view/common/menu.jsp" />
<div class="etlist rightbox0" style="margin-top: 28px">
<h2 style="text-align: left;">配售管理</h2>
<div class="crossline"></div>
<div class="clear"></div>
<table border="0" style="border-bottom: 1px solid #ccc;width:100%;"
class=" etlistbg entrusttable" cellpadding="0" cellspacing="0" >
<thead>
<tr id="head">
<td width="6%"><b>序号</b></td>
<td width="10%"><b>藏品代码</b></td>
<td width="10%"><b>藏品名称</b></td>
<td width="10%"><b>可配售总量</b></td>
<td width="10%"><b>待交割量</b></td>
<td width="12%"><b>配售价(元)</b></td>
<td width="15%"><b>配售时间</b></td>
<td width="10%"><b>公告</b></td>
<td width="10%"><b>配售</b></td>
</tr>
</thead>
<tbody>
<c:if test="${empty entrustsOld }">
<tr>
<td style="background:#f2f2f2;" colspan="10"><img style="width:65%" src="${ctx }/resource/images/noData.png"></img></td>
</tr>
</c:if>
<c:forEach var="entrust" items="${entrustsOld }" varStatus="status">
<tr height="40">
<td>${status.count}</td>
<td>${entrust.otcCode }</td>
<td>${entrust.otcName }</td>
<td>${entrust.qualityAmount}</td>
<td>${entrust.agreeAmount}</td>
<td><fmt:formatNumber type="number" value="${entrust.price}" pattern="0.00" maxFractionDigits="2"/>
</td>
<td><span class="endDate" style="display: none;">
<fmt:formatDate value="${entrust.confirmEndDate }" pattern="yyyy-MM-dd HH:mm:ss" /></span>
<span></span></td>
<td><a href="${entrust.noticeUrl }" target="_blank"
style="color: red;">查看公告</a></td>
<td id="ration2_${status.count}"><a class="agreeRation"
id="ration1_${status.count }" style="color: #fff"
href="javascript:rationOldConfig.rationConfig('ration2_${status.count}','${entrust.id}')">点击配售</a></td>
</tr>
</c:forEach>
</tbody>
</table>
<div style="text-align: left; margin-top: 40px;">
<p
style="font-size: 18px; font-weight: bold; margin-bottom: 20px; color: red">配售规则:</p>
<ul type="circle">
<li>• 在平台发布藏品配售之前,只要您购买过相应品种持仓。则该藏品配售时,我们就会按照您的持仓数量给您相</li>
<li> 应的可配售量。</li>
<li>• 请您在倒计时结束前进行配售,假如您未在倒计时前进行配售,我们将默认您放弃此次配售的机会。</li>
<li>• 配售所获得的资金和权益,会在交割确权后,进入您的账户,请注意查看。如有任何疑问请联系客服。</li>
</ul>
</div>
</div>
<div class="clear"></div>
</div>
<!-- 弹窗 -->
<div class="easyDialog_wrapper" id="easyDialogWrapper">
<div class="easyDialog_content" style="border-top:3px solid #F81919;">
<h4 class="easyDialog_title" id="easyDialogTitle" style="border:0; background: #fff;">
</h4>
<div class="easyDialog_text" id="dialog-content" style="text-align: center;">欢迎使用easyDialog
: )</div>
<div class="easyDialog_footer" style="text-align: center;">
<button class="btn_highlight" id="easyDialogYesBtn"
onclick="easyDialog.close();" style="float: none;background: #F81919; border: 0;border-radius: 3px;width: 100px;">确定</button>
</div>
</div>
</div>
<!-- 成功后弹出-->
<div class="easyDialog_wrapper" id="easyDialogSuccessWrapper">
<div class="easyDialog_content" style="border-top:3px solid #F81919;">
<h4 class="easyDialog_title" id="easyDialogSuccessTitle" style="border:0; background: #fff;">
</h4>
<div class="easyDialog_text" id="dialog-success-content" style="text-align: center;">配售成功
</div>
<div class="easyDialog_footer" style="text-align: center;">
<button class="btn_highlight"
onclick="javascript:window.location.reload();" style="float: none;background: #F81919; border: 0;border-radius: 3px;width: 100px;">确定</button>
</div>
</div>
</div>
<!-- 余额不足弹窗-->
<div class="easyDialog_wrapper" id="easyDialogBalanceWrapper" >
<div class="easyDialog_content" style="width:325px;height:160px;border-top:3px solid #F81919;">
<h4 class="easyDialog_title wintit" id="easyDialogBalanceTitle"
style="vertical-align: middle; text-align: center;background: white;color:#DE4556;border: 0;"
>
<a href="javascript:void(0)" title="关闭窗口" class="close_btn"
id="closeBtn" onclick="easyDialog.close();">×</a>
</h4>
<div class="easyDialog_text" id="dialog-balance-content" style="text-align: center;">您的资金不足,请充值后进行操作!
</div>
<div class="easyDialog_footer" style="text-align: center;">
<button class="winbt" id="easyDialogBalanceBtn"
onclick="rationOldConfig.payButton()" style="color:#fff;border:0;">网银充值</button>
<button class="winbt" id="easyDialogYesBtn"
onclick="easyDialog.close();" style="float: none;color:#fff;border:0;margin-left:10px;">确定</button>
</div>
</div>
</div>
<div class="easyDialog_wrapper" id="easyDialogConfig" style="width:650px">
<div class="easyDialog_content" style="height:300px;border-top:3px solid #F81919;" >
<h4 class="easyDialog_title"
style=" position: relative;vertical-align: left; line-height: 50px; text-align: left; height: 50px; font-size: 19px;background: white;color:red;font-weight: 600;padding:10px 0 10px 20px;">
藏品配售<img style=" position: absolute;top: 10px;right: 10px;width: 15px;" src="../../../resource/images/ration/btnclose.png" alt="关闭" onclick="rationOldConfig.closeWin()" /></h4>
<div class="easyDialog_text" >
<form id="configForm">
<input type="hidden" name="configId" id="configId"/>
<div style="padding: 0px; width: 712px;">
<div style="padding: 0px; width: 250px; float: left; display: inline">
<table cellpadding="0"
cellspacing="10">
<tr >
<td style="white-space: nowrap;margin-top:30px;text-align: center;font-size: 16px"><b>藏品代码:</b></td>
<td id="otcCode" style="text-align: left;font-size: 16px"></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td style="text-align: center;font-size: 16px"><b>藏品名称:</b></td>
<td id="otcName" style="text-align: left;font-size: 16px"></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td style="text-align:center;font-size: 16px"><b>配售单价:</b></td>
<td style="text-align: left;font-size: 16px"><b><span id="price"></span> 元</b></td>
</tr>
</table>
</div>
<div style="float: left; margin-top: -25px;display: inline;background-color: #EBEBEB;width:388px;height:230px">
<table style="width:388px;">
<tr>
<td colspan="3"> </td>
</tr>
<tr >
<td align="center" style="font-size: 16px" width="100">可用余额:</td>
<td align="left" style="font-size: 16px" width="140"><span id="enableBalance">${enableBalance}</span>元</td>
<td align="center" ><a class="rechargebtn" href="javascript:rationOldConfig.payButton()" style="color: #fff;padding: 4px 10px;"> 去充值 </a></td>
</tr>
<tr >
<td colspan="3" style="border-bottom: 1px solid white;"> </td>
</tr>
<tr >
<td align="center" style="font-size: 16px; height: 40px;padding-top:10px;">可配售量:</td>
<td colspan="2" style="padding-top:10px;"><span id="enableAmount"></span></td>
</tr>
<tr >
<td align="center" style="font-size: 16px;height: 40px;">配售数量:</td>
<td colspan="2"><input onblur="rationOldConfig.calculateRecord()" maxlength="6" style="width:80px;height:20px" id="ration_count" name="ration_count"></input></td>
</tr>
<tr >
<td align="center" style="font-size: 16px;height: 40px;">配售金额:</td>
<td style="color:rgb(128,128,128);font-size:20px;" ><span id="record_fare" style="display:inline-block;padding-right:15px;"></span>元</td>
<td align="center"><a class="rechargebtn" id="submit" href="javascript:void(0);"
style="color: #fff;padding: 4px 10px;"> 立刻配售 </a></td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
</table>
</div>
</div>
</form>
</div>
</div>
</div>
<jsp:include page="${ctx }/view/common/bottom.jsp" />
</body>
</html>