Authored by 毕凯

发票选项修改

framework @ 75bbc3b0
1 -Subproject commit e9d066dd88a8e7e37103021c427a205a5cfcdcec 1 +Subproject commit 75bbc3b075de19f239532f60c5995d06c5f814e2
@@ -78,7 +78,7 @@ @@ -78,7 +78,7 @@
78 </li> 78 </li>
79 {{/ yohoCoin}} 79 {{/ yohoCoin}}
80 80
81 - {{# invoice}} 81 + {{#if invoice}}
82 <li class="invoice"> 82 <li class="invoice">
83 <span class="title">发票</span> 83 <span class="title">发票</span>
84 <span class="iconfont checkbox icon-checkbox"></span> 84 <span class="iconfont checkbox icon-checkbox"></span>
@@ -87,13 +87,14 @@ @@ -87,13 +87,14 @@
87 <label> 87 <label>
88 发票类型 88 发票类型
89 <select class="invoice-type" name="invoice-type"> 89 <select class="invoice-type" name="invoice-type">
90 - <option value ="A">服装</option>  
91 - <option value ="B">图书</option> 90 + {{# invoice}}
  91 + <option value="{{id}}">{{name}}</option>
  92 + {{/ invoice}}
92 </select> 93 </select>
93 </label> 94 </label>
94 </form> 95 </form>
95 </li> 96 </li>
96 - {{/ invoice}} 97 + {{/if}}
97 </ul> 98 </ul>
98 99
99 <ul class="total"> 100 <ul class="total">
@@ -155,7 +155,6 @@ class ShoppingCartController extends AbstractAction @@ -155,7 +155,6 @@ class ShoppingCartController extends AbstractAction
155 'orderEnsure' => CartModel::cartPay($uid, $cartType) 155 'orderEnsure' => CartModel::cartPay($uid, $cartType)
156 ); 156 );
157 157
158 -  
159 $this->_view->display('order-ensure', $data); 158 $this->_view->display('order-ensure', $data);
160 } 159 }
161 160