Showing
3 changed files
with
6 additions
and
6 deletions
framework @ 75bbc3b0
@@ -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 |
-
Please register or login to post a comment