Merge remote-tracking branch 'origin/develop' into develop

master
eason.qian 7 years ago
commit 2c313cbf65

@ -67,6 +67,7 @@ public class ActMonDelaySettleServiceImp implements ActMonDelaySettleService {
int client_id = device.getIntValue("client_id");
List<JSONObject> clientLogs = actMonDelaySettleMapper.clientLog(client_id);
JSONObject res = new JSONObject();
res.put("operation_pause",false);
Boolean apply = false;
if (!clientLogs.isEmpty()) {
apply = true;
@ -82,6 +83,10 @@ public class ActMonDelaySettleServiceImp implements ActMonDelaySettleService {
res.put("active", true);
res.put("expire", false);
}
LocalDateTime dt = LocalDateTime.now();
if(dt.getDayOfWeek()==DayOfWeek.MONDAY && dt.getHour()<18){
res.put("operation_pause",true);
}
BigDecimal total_redpack = actMonDelaySettleRedPackMapper.getTotalRedPack(client_id);
PageList<JSONObject> list = actMonDelaySettleRedPackMapper.listRedpacks(client_id, new PageBounds(Order.formString("create_time.desc")));
res.put("apply", apply);

@ -53,8 +53,8 @@
</button>
</div>
<div class="button_center" th:if="${active && !apply}" id="applyButton">
<button class="button_position">
<span style="color: #FFFFFF;">我要参加</span>
<button class="button_position" th:style="'background-image:' + @{(${operation_pause} ? 'linear-gradient(0deg, #eee 0%, #eee 100%)' )} + ''">
<span style="color: #FFFFFF;" th:style="'color:' + @{(${operation_pause} ? '#999' )} + ''">我要参加</span>
</button>
</div>
<div th:class="${apply}?'margin_top'" th:if="${list!=null}">
@ -87,8 +87,8 @@
</div>
</div>
<div class="button_center cancel_posttion" th:if="${active && apply}" id="cancelButton">
<button class="button_position button_color">
<span class="cancel">放弃活动资格</span>
<button class="button_position button_color" th:style="'background-image:' + @{(${operation_pause} ? 'linear-gradient(0deg, #eee 0%, #eee 100%)' )} + ''">
<span class="cancel" th:style="'color:' + @{(${operation_pause} ? '#999' )} + ''">放弃活动资格</span>
</button>
</div>
@ -110,7 +110,7 @@
</html>
<script type="text/javascript" data-th-inline="javascript">
$(document).ready(function () {
var operation_pause= /*[[${operation_pause}]]*/false;
function is_weixin() {
var ua = navigator.userAgent.toLowerCase();
@ -121,6 +121,9 @@
}
}
$('#applyButton').click(function () {
if(operation_pause){
return;
}
var u = navigator.userAgent;
var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
@ -135,6 +138,9 @@
}
});
$('#cancelButton').click(function () {
if(operation_pause){
return;
}
var u = navigator.userAgent;
var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);

@ -212,4 +212,3 @@ tbody tr:nth-child(odd){
letter-spacing: 0px;
padding: 0 8px;
}

Loading…
Cancel
Save