Authored by 周少峰

add invoice switchtag

@@ -413,12 +413,12 @@ @@ -413,12 +413,12 @@
413 </div> 413 </div>
414 414
415 <div class="receipt-type receipt-margin"> 415 <div class="receipt-type receipt-margin">
416 - <span class="e-receipt curser-buttonn receipt-type-selected ">电子发票</span>  
417 - <span class="paper-receipt curser-button">纸质发票</span> 416 + <span class="e-receipt curser-buttonn {{#if openInvoice}} receipt-type-selected {{^}} hide {{/if}}">电子发票</span>
  417 + <span class="paper-receipt curser-button {{#unless openInvoice}}receipt-type-selected{{/unless}}">纸质发票</span>
418 </div> 418 </div>
419 419
420 <div class="receipt-container receipt-margin"> 420 <div class="receipt-container receipt-margin">
421 - <div class="e-receipt-desc"> 421 + <div class="e-receipt-desc {{#unless openInvoice}}hide{{/unless}}">
422 <a href="{{invoiceUrl}}" target="_blank"></a> 422 <a href="{{invoiceUrl}}" target="_blank"></a>
423 </div> 423 </div>
424 424
@@ -450,7 +450,7 @@ @@ -450,7 +450,7 @@
450 </div> 450 </div>
451 </div> 451 </div>
452 452
453 - <div class="invoice-list invoice-phone"> 453 + <div class="invoice-list invoice-phone {{#unless openInvoice}}hide{{/unless}}">
454 <span class="invoice-star">*</span> 454 <span class="invoice-star">*</span>
455 <span class="invoice-list-type">收票人手机</span> 455 <span class="invoice-list-type">收票人手机</span>
456 <div class="invoice-line first-line input-line"> 456 <div class="invoice-line first-line input-line">
@@ -259,6 +259,7 @@ class IndexController extends WebAction @@ -259,6 +259,7 @@ class IndexController extends WebAction
259 259
260 $this->_view->display('order-ensure', array( 260 $this->_view->display('order-ensure', array(
261 'orderEnsurePage' => true, 261 'orderEnsurePage' => true,
  262 + 'openInvoice' => false, //是否开启电子发票
262 'orderEnsure' => $orderEnsure, 263 'orderEnsure' => $orderEnsure,
263 )); 264 ));
264 } 265 }