Authored by biao

update for express

... ... @@ -296,11 +296,29 @@ function bindCancelEvent() {
function bindExpressEvent() {
$('body').on('click', function(e) {
if ($(e.target).hasClass('express')) {
return false;
}
$('.express-info').each(function(idx, el) {
if(!$(el).hasClass('hide')) {
$(el).addClass('hide');
}
});
});
$('.express').on('click', function() {
var $this = $(this);
var code = $this.closest('.order').data('code');
var $info = $this.find('.express-info');
$('.express-info').each(function(idx, el) {
if(!$(el).hasClass('hide')) {
$(el).addClass('hide');
}
});
if ($info.length) {
$info.toggleClass('hide');
} else {
... ... @@ -318,7 +336,6 @@ function bindConfirmReceiveEvent() {
});
}
function bindEvent() {
bindPaginationClick();
bindDeleteEvent();
... ...
... ... @@ -14,7 +14,7 @@
{{# sub_express_deatil}}
{{#if @first}}
<div class="tip">
<p>以上为最新跟踪信息<a href='/me/order/detail?code={{order_code}}'>查看全部</a></p>
<p>以上为最新跟踪信息<a href='/me/order/detail?orderCode={{order_code}}' target="_blank">查看全部</a></p>
</div>
{{/if}}
{{/ sub_express_deatil}}
... ...