Authored by biao

update for close jit window when click body

... ... @@ -2,7 +2,6 @@
<div class="order">
{{# returnsList}}
{{> common/subtitle}}
{{#if list}}
<div class="table">
<ul class="header">
<li class="info">商品信息</li>
... ... @@ -10,6 +9,7 @@
<li class="op">操作</li>
</ul>
</div>
{{#if list}}
{{#list}}
<div class="table">
{{> order/order-header}}
... ...
... ... @@ -54,6 +54,17 @@ if ($('.left-time').length) {
countDown.start();
}
$('body').on('click', function(e) {
if ($(e.target).hasClass('show-package')) {
return false;
}
e.preventDefault();
if (!$('.package-list').hasClass('hide')) {
$('.package-list').addClass('hide');
}
});
$('.show-package').on('click', function() {
$(this).next('.package-list').toggleClass('hide');
... ...
... ... @@ -29,7 +29,7 @@ module.exports = {
var timeStr = min + '分';
if (src <= 0) {
if (parseInt(src, 10) <= 0) {
timeStr = '已失效';
$('.hide-when-invalid').hide();
$('.user-order .table .common-column .pay-operation .left-time').css('margin-left', '0');
... ...
... ... @@ -69,4 +69,8 @@
left: 3px;
}
}
.check-all:hover {
@extend .blue;
}
}
... ...
... ... @@ -14,7 +14,7 @@
{{# sub_express_deatil}}
{{#if @first}}
<div class="tip">
<p>以上为最新跟踪信息<a href='/me/order/detail?orderCode={{order_code}}' target="_blank">查看全部</a></p>
<p>以上为最新跟踪信息<a class="check-all" href='/me/order/detail?orderCode={{order_code}}' target="_blank">查看全部</a></p>
</div>
{{/if}}
{{/ sub_express_deatil}}
... ...