Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop
Showing
4 changed files
with
38 additions
and
21 deletions
@@ -79,6 +79,9 @@ function orderCompute() { | @@ -79,6 +79,9 @@ function orderCompute() { | ||
79 | if (!res) { | 79 | if (!res) { |
80 | tip.show('网络出错'); | 80 | tip.show('网络出错'); |
81 | } else { | 81 | } else { |
82 | + if (res.last_order_amount) { | ||
83 | + res.last_order_amount = (+res.last_order_amount).toFixed(2); | ||
84 | + } | ||
82 | priceHtml = priceTmpl({ | 85 | priceHtml = priceTmpl({ |
83 | sumPrice: res.order_amount, | 86 | sumPrice: res.order_amount, |
84 | salePrice: res.discount_amount, | 87 | salePrice: res.discount_amount, |
@@ -75,6 +75,20 @@ | @@ -75,6 +75,20 @@ | ||
75 | 75 | ||
76 | .goods { | 76 | .goods { |
77 | margin-right: -20rem / $pxConvertRem; | 77 | margin-right: -20rem / $pxConvertRem; |
78 | + | ||
79 | + .price-wrap { | ||
80 | + position: static; | ||
81 | + text-align: left; | ||
82 | + | ||
83 | + .price { | ||
84 | + color: #444; | ||
85 | + } | ||
86 | + | ||
87 | + .count { | ||
88 | + display: inline; | ||
89 | + margin-left: 20rem / $pxConvertRem; | ||
90 | + } | ||
91 | + } | ||
78 | } | 92 | } |
79 | 93 | ||
80 | .sale-invoice { | 94 | .sale-invoice { |
@@ -148,21 +162,27 @@ | @@ -148,21 +162,27 @@ | ||
148 | } | 162 | } |
149 | } | 163 | } |
150 | 164 | ||
151 | - #invoice { | ||
152 | - input { | 165 | + .block input { |
166 | + box-sizing: border-box; | ||
167 | + margin: pxToRem(20px) 0; | ||
168 | + padding: 0 pxToRem(12px); | ||
153 | width: 100%; | 169 | width: 100%; |
154 | - height: pxToRem(90px); | 170 | + height: pxToRem(60px); |
171 | + color: #444; | ||
172 | + background: #efefef; | ||
173 | + font-size: pxToRem(16px); | ||
174 | + line-height: 1; | ||
155 | outline: 0; | 175 | outline: 0; |
156 | border: 0; | 176 | border: 0; |
157 | - border-top: 1px solid #f7f7f7; | ||
158 | - border-bottom: 1px solid #f7f7f7; | 177 | + @include border-radius(4px); |
159 | } | 178 | } |
160 | 179 | ||
180 | + #invoice { | ||
181 | + border-top: 1px solid #f7f7f7; | ||
182 | + | ||
161 | label { | 183 | label { |
162 | - position: relative; | ||
163 | - width: 100%; | ||
164 | - height: pxToRem(90px); | ||
165 | - border-bottom: 1px solid #f7f7f7; | 184 | + display: block; |
185 | + border-top: 1px solid #f7f7f7; | ||
166 | } | 186 | } |
167 | 187 | ||
168 | select { | 188 | select { |
@@ -178,13 +198,7 @@ | @@ -178,13 +198,7 @@ | ||
178 | #msg { | 198 | #msg { |
179 | padding-top: pxToRem(20px); | 199 | padding-top: pxToRem(20px); |
180 | input { | 200 | input { |
181 | - padding: pxToRem(10px); | ||
182 | - width: pxToRem(580px); | ||
183 | - height: pxToRem(50px); | ||
184 | - outline: 0; | ||
185 | - border: 0; | ||
186 | - border: 1px solid #f7f7f7; | ||
187 | - border-radius: pxToRem(4px); | 201 | + margin: 0; |
188 | } | 202 | } |
189 | 203 | ||
190 | } | 204 | } |
@@ -41,10 +41,10 @@ | @@ -41,10 +41,10 @@ | ||
41 | 41 | ||
42 | <section class="block"> | 42 | <section class="block"> |
43 | <ul class="sale-invoice"> | 43 | <ul class="sale-invoice"> |
44 | - {{# coupon}} | ||
45 | <li class="coupon"> | 44 | <li class="coupon"> |
46 | <a href="/cart/index/selectCoupon"> | 45 | <a href="/cart/index/selectCoupon"> |
47 | <span class="title">优惠券</span> | 46 | <span class="title">优惠券</span> |
47 | + {{# coupon}} | ||
48 | {{#if count}} | 48 | {{#if count}} |
49 | <span class="coupon-count"> | 49 | <span class="coupon-count"> |
50 | {{count}}张可用 | 50 | {{count}}张可用 |
@@ -62,13 +62,12 @@ | @@ -62,13 +62,12 @@ | ||
62 | <i class="iconfont"></i> | 62 | <i class="iconfont"></i> |
63 | </span> | 63 | </span> |
64 | {{/if}} | 64 | {{/if}} |
65 | + {{/coupon}} | ||
65 | </a> | 66 | </a> |
66 | </li> | 67 | </li> |
67 | - {{/coupon}} | ||
68 | - | ||
69 | <li class="coin" data-yoho-coin="{{yohoCoin}}"> | 68 | <li class="coin" data-yoho-coin="{{yohoCoin}}"> |
70 | <span class="title">YOHO币</span> | 69 | <span class="title">YOHO币</span> |
71 | - <span class="desc">可抵用¥{{yohoCoin}}</span> | 70 | + <span class="desc">可抵¥{{yohoCoin}}</span> |
72 | <span class="coin-check"> | 71 | <span class="coin-check"> |
73 | <em>- ¥ {{yohoCoin}}</em> | 72 | <em>- ¥ {{yohoCoin}}</em> |
74 | <i class="iconfont checkbox icon-cb-checked"></i> | 73 | <i class="iconfont checkbox icon-cb-checked"></i> |
@@ -356,7 +356,8 @@ class IndexController extends AbstractAction | @@ -356,7 +356,8 @@ class IndexController extends AbstractAction | ||
356 | } | 356 | } |
357 | 357 | ||
358 | if (empty($result)) { | 358 | if (empty($result)) { |
359 | - echo ' '; | 359 | + // 这儿需要返回空数组,勿改!!! |
360 | + echo '[]'; | ||
360 | } else { | 361 | } else { |
361 | $this->echoJson($result); | 362 | $this->echoJson($result); |
362 | } | 363 | } |
-
Please register or login to post a comment