Showing
3 changed files
with
25 additions
and
15 deletions
@@ -92,27 +92,27 @@ | @@ -92,27 +92,27 @@ | ||
92 | </p> | 92 | </p> |
93 | {{/if}} | 93 | {{/if}} |
94 | 94 | ||
95 | - {{#invoiceInfo}} | 95 | + {{#invoice}} |
96 | <ul class="invoice-info"> | 96 | <ul class="invoice-info"> |
97 | <li> | 97 | <li> |
98 | <span>发票信息</span> | 98 | <span>发票信息</span> |
99 | - <span class="invoice-fr">{{#if invoiceType}}电子发票{{else}}纸质发票{{/if}}</span> | 99 | + <span class="invoice-fr">{{#if type}}电子发票{{else}}纸质发票{{/if}}</span> |
100 | </li> | 100 | </li> |
101 | <li> | 101 | <li> |
102 | <span>发票抬头</span> | 102 | <span>发票抬头</span> |
103 | - <span class="invoice-fr">{{invoiceTop}}</span> | 103 | + <span class="invoice-fr">{{title}}</span> |
104 | </li> | 104 | </li> |
105 | <li> | 105 | <li> |
106 | <span>发票内容</span> | 106 | <span>发票内容</span> |
107 | - <span class="invoice-fr">{{invoiceCont}}</span> | ||
108 | - </li> | ||
109 | - {{#if invoiceType}} | ||
110 | - <li> | ||
111 | - <a href="{{invoiceSee}}"><span class="invoice-fr invoice-see">点击查看电子发票</span></a> | 107 | + <span class="invoice-fr">{{contentValue}}</span> |
112 | </li> | 108 | </li> |
109 | + {{#if pdfUrl}} | ||
110 | + <li> | ||
111 | + <a href="{{pdfUrl}}"><span class="invoice-fr invoice-see">点击下载PDF发票</span></a> | ||
112 | + </li> | ||
113 | {{/if}} | 113 | {{/if}} |
114 | </ul> | 114 | </ul> |
115 | - {{/invoiceInfo}} | 115 | + {{/invoice}} |
116 | 116 | ||
117 | <div class="opt block"> | 117 | <div class="opt block"> |
118 | {{#unless unreceived}} | 118 | {{#unless unreceived}} |
@@ -1073,12 +1073,7 @@ class HomeController extends AbstractAction | @@ -1073,12 +1073,7 @@ class HomeController extends AbstractAction | ||
1073 | 1073 | ||
1074 | $this->_view->display('order-detail', array( | 1074 | $this->_view->display('order-detail', array( |
1075 | 'orderDetailPage' => true, | 1075 | 'orderDetailPage' => true, |
1076 | - 'invoiceInfo' => array( | ||
1077 | - 'invoiceType' => true, | ||
1078 | - 'invoiceTop' => '有货(商贸)服务有限公司', | ||
1079 | - 'invoiceCont' => '服装', | ||
1080 | - 'invoiceSee' => '' | ||
1081 | - ), | 1076 | + 'invoice' => empty($orderDetail['invoice']) ? array() : $orderDetail['invoice'], |
1082 | 'serviceUrl' => 'http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=620092&configID=149091&jid=8732423409&info=', | 1077 | 'serviceUrl' => 'http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=620092&configID=149091&jid=8732423409&info=', |
1083 | 'orderDetail' => $orderDetail, | 1078 | 'orderDetail' => $orderDetail, |
1084 | 'orderCode' => $orderCode, | 1079 | 'orderCode' => $orderCode, |
@@ -240,6 +240,21 @@ class OrderModel | @@ -240,6 +240,21 @@ class OrderModel | ||
240 | $result['isJit'] = true; | 240 | $result['isJit'] = true; |
241 | $result['jitDetailUrl'] = Helpers::url('/cart/index/jitDetail', array('orderCode' => $orderCode, 'sessionKey' => $sessionKey)); | 241 | $result['jitDetailUrl'] = Helpers::url('/cart/index/jitDetail', array('orderCode' => $orderCode, 'sessionKey' => $sessionKey)); |
242 | } | 242 | } |
243 | + | ||
244 | + //电子发票 | ||
245 | + if (!empty($orderDetail['data']['invoice'])) { | ||
246 | + $result['invoice'] = $orderDetail['data']['invoice']; | ||
247 | + //纸质 1,电子 2 | ||
248 | + $result['invoice']['type'] = $result['invoice']['type'] * 1 === 2 ? true : false; | ||
249 | + } | ||
250 | + | ||
251 | + $result['invoice'] = array( | ||
252 | + 'type' => true,//-- 纸质 false,电子 true | ||
253 | + 'title' => '发票抬头',// --发票抬头 | ||
254 | + 'contentValue' => '服饰',//-- 发票内容 | ||
255 | + 'mobilePhone' => '13651898702',//--电话 | ||
256 | + 'pdfUrl' => 'http://redmine.yoho.cn/attachments/download/2732/%E7%94%B5%E5%AD%90%E5%8F%91%E7%A5%A8-wap%E7%AB%AF.pdf',//--pdf下载地址 | ||
257 | + ); | ||
243 | } | 258 | } |
244 | //取消订单原因列表 | 259 | //取消订单原因列表 |
245 | $resons = OrderData::closeReasons(); | 260 | $resons = OrderData::closeReasons(); |
-
Please register or login to post a comment