Authored by cailing

拆单添加文字

... ... @@ -117,8 +117,11 @@ $invoice.on('touchend', '.checkbox', function() {
function updateDeliverId(id) {
var $moreJit = $('.more-jit a').get(0),
url = $moreJit.href;
$moreJit.href = url.replace(/deliveryId=(\d)/, 'deliveryId=' + id);
if (url.indexOf('deliveryId') <0 ) {
$moreJit.href = url + '&deliveryId=' + id;
} else {
$moreJit.href = url.replace(/deliveryId=(\d)/, 'deliveryId=' + id);
}
}
function orderCompute() {
... ... @@ -163,7 +166,7 @@ function orderCompute() {
$('.bill span').html('¥' + res.last_order_amount);
$('.total').html(total);
}
updateDeliverId(deliverId);
}
}).fail(function() {
... ...
... ... @@ -23,7 +23,7 @@
<p class="beside-icon sub-content">
<span class="sub-title">订单编号:{{orderNum}}</span>
<span >{{orderStatus}}</span>
<span >订单详情:{{orderStatus}}</span>
<span>下单时间:{{orderTime}}</span>
</p>
</div>
... ...