master
yuan 7 years ago
parent 7ea1050366
commit 92be3cf81a

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

Loading…
Cancel
Save