|
|
@ -11,7 +11,7 @@
|
|
|
|
<meta http-equiv="pragma" content="no-cache">
|
|
|
|
<meta http-equiv="pragma" content="no-cache">
|
|
|
|
<link rel="stylesheet" href="/static/lib/bootstrap/css/bootstrap.min.css">
|
|
|
|
<link rel="stylesheet" href="/static/lib/bootstrap/css/bootstrap.min.css">
|
|
|
|
<link rel="stylesheet" href="/static/templates/activity/mondelay/mondelay.css?t=201607242202">
|
|
|
|
<link rel="stylesheet" href="/static/templates/activity/mondelay/mondelay.css?t=201607242202">
|
|
|
|
<title>跨境电商优选补贴计划</title>
|
|
|
|
<title>余额增值,周一专享活动</title>
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
|
|
|
|
<script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
|
|
|
|
<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>
|
|
|
@ -39,12 +39,12 @@
|
|
|
|
<li>本活动最终解释权归RoyalPay所有</li>
|
|
|
|
<li>本活动最终解释权归RoyalPay所有</li>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="button_center" th:if="!${detail['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="${detail['apply']}?'margin_top'">
|
|
|
|
<div th:class="${apply}?'margin_top'">
|
|
|
|
<div class="content">
|
|
|
|
<div class="content">
|
|
|
|
<div class="h3_width">
|
|
|
|
<div class="h3_width">
|
|
|
|
<h2>补贴金额记录</h2>
|
|
|
|
<h2>补贴金额记录</h2>
|
|
|
@ -59,7 +59,7 @@
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tbody>
|
|
|
|
<tr th:each="redpack:${detail['list']}">
|
|
|
|
<tr th:each="redpack:${list}">
|
|
|
|
<td th:text="${#dates.format(redpack['send_time'], 'yyyy-MM-dd')}">>04-01 12:00</td>
|
|
|
|
<td th:text="${#dates.format(redpack['send_time'], 'yyyy-MM-dd')}">>04-01 12:00</td>
|
|
|
|
<td style="text-align: right" th:text="${redpack['redpack_amount']}">$5.00</td>
|
|
|
|
<td style="text-align: right" th:text="${redpack['redpack_amount']}">$5.00</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
@ -75,35 +75,49 @@
|
|
|
|
<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>
|
|
|
|
<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 class="royal_position"><img src="/static/templates/activity/mondelay/logo@2x.png">
|
|
|
|
<button type="button" class="btn btn-primary" th:if="${detail['apply']}" id="cancelButton">取消</button>
|
|
|
|
<button type="button" class="btn btn-primary" th:if="${apply}" id="cancelButton">取消</button>
|
|
|
|
</footer>
|
|
|
|
</footer>
|
|
|
|
</body>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
</html>
|
|
|
|
<script type="text/javascript" data-th-inline="javascript">
|
|
|
|
<script type="text/javascript" data-th-inline="javascript">
|
|
|
|
$(document).ready(function () {
|
|
|
|
$(document).ready(function () {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function is_weixin() {
|
|
|
|
|
|
|
|
var ua = navigator.userAgent.toLowerCase();
|
|
|
|
|
|
|
|
if (ua.match(/MicroMessenger/i) == "micromessenger") {
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
$('#applyButton').click(function () {
|
|
|
|
$('#applyButton').click(function () {
|
|
|
|
$.ajax({
|
|
|
|
var u = navigator.userAgent;
|
|
|
|
url: '/act/mondelay/apply',
|
|
|
|
var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
|
|
|
|
method: 'POST',
|
|
|
|
|
|
|
|
dataType: "json",
|
|
|
|
|
|
|
|
success: function (resp) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, error: function (jqXHR) {
|
|
|
|
if(is_weixin()){
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
} else if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
|
|
|
|
});
|
|
|
|
appCmd('{\"type\":\"cmd_join_mondelay\"');
|
|
|
|
|
|
|
|
} else if (/(Android)/i.test(navigator.userAgent)) {
|
|
|
|
|
|
|
|
android.appCmd('{\"type\":\"cmd_join_mondelay\"}');
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
$('#cancelButton').click(function () {
|
|
|
|
$('#cancelButton').click(function () {
|
|
|
|
$.ajax({
|
|
|
|
var u = navigator.userAgent;
|
|
|
|
url: '/act/mondelay/cancel',
|
|
|
|
var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
|
|
|
|
method: 'PUT',
|
|
|
|
|
|
|
|
dataType: "json",
|
|
|
|
if(is_weixin()){
|
|
|
|
success: function (resp) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, error: function (jqXHR) {
|
|
|
|
} else if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
|
|
|
|
|
|
|
|
appCmd('{\"type\":\"cmd_cancel_mondelay\"');
|
|
|
|
|
|
|
|
} else if (/(Android)/i.test(navigator.userAgent)) {
|
|
|
|
|
|
|
|
android.appCmd('{\"type\":\"cmd_cancel_mondelay\"}');
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
})
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
</script>
|