Merge branch 'mondelay' into develop

master
eason.qian 7 years ago
commit b49f43c3bb

@ -10,6 +10,7 @@ import au.com.royalpay.payment.tools.env.PlatformEnvironment;
import au.com.royalpay.payment.tools.exceptions.BadRequestException; import au.com.royalpay.payment.tools.exceptions.BadRequestException;
import au.com.royalpay.payment.tools.exceptions.ForbiddenException; import au.com.royalpay.payment.tools.exceptions.ForbiddenException;
import au.com.royalpay.payment.tools.permission.enums.PartnerRole; import au.com.royalpay.payment.tools.permission.enums.PartnerRole;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.github.miemiedev.mybatis.paginator.domain.Order; import com.github.miemiedev.mybatis.paginator.domain.Order;
import com.github.miemiedev.mybatis.paginator.domain.PageBounds; import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
@ -112,7 +113,7 @@ public class ActMonDelaySettleServiceImp implements ActMonDelaySettleService {
} }
device.put("account_name", account.getString("display_name")); device.put("account_name", account.getString("display_name"));
device.put("create_time", new Date()); device.put("create_time", new Date());
JSONObject params = act.getJSONObject("params_json"); JSONObject params = JSON.parseObject(act.getString("params_json"));
device.put("rate", params.getBigDecimal("rate") == null ? new BigDecimal(0.15) : params.getBigDecimal("rate")); device.put("rate", params.getBigDecimal("rate") == null ? new BigDecimal(0.15) : params.getBigDecimal("rate"));
device.put("expire_time", act.getDate("expire_date")); device.put("expire_time", act.getDate("expire_date"));
actMonDelaySettleMapper.save(device); actMonDelaySettleMapper.save(device);

@ -17,9 +17,17 @@
<script type="text/javascript" src="/static/lib/jquery/jquery-2.1.4.min.js"></script> <script type="text/javascript" src="/static/lib/jquery/jquery-2.1.4.min.js"></script>
</head> </head>
<body> <body>
<div th:class="!${expire}?'margin_bottom'">
<div class="title_img"> <div class="title_img">
<h1><img src="/static/templates/activity/mondelay/title@2x.png"></h1> <h1><img src="/static/templates/activity/mondelay/title@2x.png"></h1>
</div> </div>
</div>
<div class="activity_close" th:if="${expire}">
<div class="line"></div>
<div class="activity_text">活动已结束</div>
<div class="line"></div>
</div>
<div class="content ul_font"> <div class="content ul_font">
<div class="h2_width"> <div class="h2_width">
<h2>活动说明</h2> <h2>活动说明</h2>
@ -39,12 +47,20 @@
<li>本活动最终解释权归RoyalPay所有</li> <li>本活动最终解释权归RoyalPay所有</li>
</ul> </ul>
</div> </div>
<div class="button_center" th:unless="${active}">
<button class="button_position button_active">
<span style="color:#9BFBFE;"><font th:text="${#dates.format(active_date, 'MM-dd')}"></font> 敬请期待</span>
</button>
</div>
<div th:if="${active}">
<div th:unless="${expire}">
<div class="button_center" th:if="!${apply}" id="applyButton"> <div class="button_center" th:if="!${apply}" id="applyButton">
<button class="button_position"> <button class="button_position">
<span style="color: #FFFFFF;">我要参加</span> <span style="color: #FFFFFF;">我要参加</span>
</button> </button>
</div> </div>
<div th:class="${apply}?'margin_top'"> </div>
<div th:class="${apply}?'margin_top'" th:if="${list.size()>0}">
<div class="content"> <div class="content">
<div class="h3_width"> <div class="h3_width">
<h2>补贴金额记录</h2> <h2>补贴金额记录</h2>
@ -73,18 +89,22 @@
</div> </div>
</div> </div>
</div> </div>
<div th:unless="${expire}">
<div class="button_center cancel_posttion" th:if="${apply}" id="cancelButton"> <div class="button_center cancel_posttion" th:if="${apply}" id="cancelButton">
<button class="button_position button_color"> <button class="button_position button_color">
<span class="cancel">取消</span> <span class="cancel">取消</span>
</button> </button>
</div> </div>
</div>
</div>
<div class="shape1_position"><img src="/static/templates/activity/mondelay/shape1@2x.png"></div> <div class="shape1_position"><img src="/static/templates/activity/mondelay/shape1@2x.png"></div>
<div class="shape2_position"><img src="/static/templates/activity/mondelay/shape2@2x.png"></div> <div class="shape2_position"><img src="/static/templates/activity/mondelay/shape2@2x.png"></div>
<div class="shape3_position"><img src="/static/templates/activity/mondelay/shape3@2x.png"></div> <div class="shape3_position"><img src="/static/templates/activity/mondelay/shape3@2x.png"></div>
<div class="shape4_position"><img src="/static/templates/activity/mondelay/shape4@2x.png"></div> <div class="shape4_position"><img src="/static/templates/activity/mondelay/shape4@2x.png"></div>
<div class="shape5_position"><img src="/static/templates/activity/mondelay/shape5@2x.png"></div> <div class="shape5_position"><img src="/static/templates/activity/mondelay/shape5@2x.png"></div>
<footer class="royal_position"><img src="/static/templates/activity/mondelay/logo copy@2x.png">
<div class="shape6_position"><img src="/static/templates/activity/mondelay/shape6@2x.png"></div> <div class="shape6_position"><img src="/static/templates/activity/mondelay/shape6@2x.png"></div>
<footer class="royal_position"><img src="/static/templates/activity/mondelay/logo@2x.png">
</footer> </footer>
</body> </body>
</html> </html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

@ -123,6 +123,7 @@ tbody tr:nth-child(odd){
margin-top: 50px; margin-top: 50px;
margin-bottom: 20px; margin-bottom: 20px;
text-align: center; text-align: center;
position: relative;
} }
.royal_position img{ .royal_position img{
height: 25px; height: 25px;
@ -174,6 +175,7 @@ tbody tr:nth-child(odd){
.shape6_position{ .shape6_position{
position: absolute; position: absolute;
left: -9px; left: -9px;
top: -40px;
z-index: -1; z-index: -1;
} }
.shape6_position img{ .shape6_position img{

Loading…
Cancel
Save