Authored by 毕凯

完善 jit 拆单地址修改

@@ -116,7 +116,13 @@ $invoice.on('touchend', '.checkbox', function() { @@ -116,7 +116,13 @@ $invoice.on('touchend', '.checkbox', function() {
116 116
117 function updateDeliverId(id) { 117 function updateDeliverId(id) {
118 var $moreJit = $('.more-jit a').get(0), 118 var $moreJit = $('.more-jit a').get(0),
  119 + url;
  120 +
  121 + if ($moreJit) {
119 url = $moreJit.href; 122 url = $moreJit.href;
  123 + } else {
  124 + return;
  125 + }
120 126
121 if (url.indexOf('deliveryId') < 0) { 127 if (url.indexOf('deliveryId') < 0) {
122 $moreJit.href = url + '&deliveryId=' + id; 128 $moreJit.href = url + '&deliveryId=' + id;