Authored by 郝肖肖

电子发票 秒杀

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