Authored by 郝肖肖

电子发票 秒杀

@@ -23,7 +23,7 @@ var $invoiceNotice = $('.invoice-notice'), @@ -23,7 +23,7 @@ var $invoiceNotice = $('.invoice-notice'),
23 isModifyTel = false; 23 isModifyTel = false;
24 24
25 var myreg = /^(((13[0-9]{1})|(14[0-9]{1})|(15[0-9]{1})|(17[0-9]{1})|(18[0-9]{1}))+\d{8})$/, 25 var myreg = /^(((13[0-9]{1})|(14[0-9]{1})|(15[0-9]{1})|(17[0-9]{1})|(18[0-9]{1}))+\d{8})$/,
26 - linkUrl = window.cookie('addressMore') || '/cart/index/orderEnsure?cartType=ordinary'; 26 + linkUrl = $('.address-more').val() || '/cart/index/orderEnsure?cartType=ordinary';
27 27
28 require('../common'); 28 require('../common');
29 29
@@ -54,6 +54,7 @@ @@ -54,6 +54,7 @@
54 </div> 54 </div>
55 55
56 <input type="hidden" class="edit-flag" value="false" /> 56 <input type="hidden" class="edit-flag" value="false" />
  57 + <input type="hidden" class="address-more" value="{{addressMore}}" />
57 58
58 {{> layout/footer}} 59 {{> layout/footer}}
59 </div> 60 </div>
@@ -481,6 +481,7 @@ class IndexController extends AbstractAction @@ -481,6 +481,7 @@ class IndexController extends AbstractAction
481 481
482 $this->setTitle('发票信息'); 482 $this->setTitle('发票信息');
483 $this->setNavHeader('发票信息', true, false); // 不显示右上角home按钮 483 $this->setNavHeader('发票信息', true, false); // 不显示右上角home按钮
  484 + $data['addressMore'] = $this->getSession('addressMore');
484 485
485 $this->_view->display('invoice-info', $data); 486 $this->_view->display('invoice-info', $data);
486 } 487 }
@@ -571,7 +572,6 @@ class IndexController extends AbstractAction @@ -571,7 +572,6 @@ class IndexController extends AbstractAction
571 //购物车订单进来,秒杀进来 572 //购物车订单进来,秒杀进来
572 if (strrpos($moreUrl, '/cart/index/orderEnsure') !== false || strrpos($moreUrl, '/cart/seckill') !== false) { 573 if (strrpos($moreUrl, '/cart/index/orderEnsure') !== false || strrpos($moreUrl, '/cart/seckill') !== false) {
573 $this->setSession('addressMore', $moreUrl); 574 $this->setSession('addressMore', $moreUrl);
574 - $_COOKIE['addressMore'] = $moreUrl;//第一次设置无效  
575 } 575 }
576 576
577 $moreUrl = $this->getSession('addressMore', '/cart/index/orderEnsure'); 577 $moreUrl = $this->getSession('addressMore', '/cart/index/orderEnsure');