Showing
5 changed files
with
11 additions
and
5 deletions
@@ -299,15 +299,16 @@ $('form').on('submit', function() { | @@ -299,15 +299,16 @@ $('form').on('submit', function() { | ||
299 | // xwg 2016/3/21 13:22 | 299 | // xwg 2016/3/21 13:22 |
300 | $('.dispatch').on('touchend', 'h3', function() { | 300 | $('.dispatch').on('touchend', 'h3', function() { |
301 | if ($(this).siblings('ul').is(':hidden')) { | 301 | if ($(this).siblings('ul').is(':hidden')) { |
302 | - | 302 | + $('.dispatch h3').removeClass('border-none'); |
303 | + $(this).addClass('border-none'); | ||
303 | $('.down').removeClass('hide'); | 304 | $('.down').removeClass('hide'); |
304 | $('.up').addClass('hide'); | 305 | $('.up').addClass('hide'); |
305 | - | ||
306 | $('.up', this).removeClass('hide'); | 306 | $('.up', this).removeClass('hide'); |
307 | $('.down', this).addClass('hide'); | 307 | $('.down', this).addClass('hide'); |
308 | $('.dispatch ul').hide(); | 308 | $('.dispatch ul').hide(); |
309 | $(this).siblings('ul').show(); | 309 | $(this).siblings('ul').show(); |
310 | } else { | 310 | } else { |
311 | + $(this).removeClass('border-none'); | ||
311 | $('.down', this).removeClass('hide'); | 312 | $('.down', this).removeClass('hide'); |
312 | $('.up', this).addClass('hide'); | 313 | $('.up', this).addClass('hide'); |
313 | $(this).siblings('ul').hide(); | 314 | $(this).siblings('ul').hide(); |
@@ -222,5 +222,6 @@ $('.phone').on('touchend', function() { | @@ -222,5 +222,6 @@ $('.phone').on('touchend', function() { | ||
222 | 222 | ||
223 | $('input[name = "mobile"]').on('blur', function() { | 223 | $('input[name = "mobile"]').on('blur', function() { |
224 | $('.phone').css('display', 'block'); | 224 | $('.phone').css('display', 'block'); |
225 | + $('.phone').html(phoneHidden($('input[name = "mobile"]').val())); | ||
225 | $('input[name = "mobile"]').attr('type', 'hidden'); | 226 | $('input[name = "mobile"]').attr('type', 'hidden'); |
226 | }); | 227 | }); |
@@ -22,6 +22,9 @@ | @@ -22,6 +22,9 @@ | ||
22 | .hide{ | 22 | .hide{ |
23 | display: none !important; | 23 | display: none !important; |
24 | } | 24 | } |
25 | + .border-none{ | ||
26 | + border-bottom:none !important; | ||
27 | + } | ||
25 | .boys{ | 28 | .boys{ |
26 | background:image-url('shopping-cart/boys.png') bottom left repeat-x #fff; | 29 | background:image-url('shopping-cart/boys.png') bottom left repeat-x #fff; |
27 | } | 30 | } |
@@ -38,7 +38,7 @@ | @@ -38,7 +38,7 @@ | ||
38 | <h3> | 38 | <h3> |
39 | <p>配送方式</p> | 39 | <p>配送方式</p> |
40 | {{#each dispatchMode}} | 40 | {{#each dispatchMode}} |
41 | - {{#if isSelected}}<span>{{name}}</span>{{/if}} | 41 | + {{#if isSelected}}<span>{{name}}¥{{cost}}</span>{{/if}} |
42 | {{/each}} | 42 | {{/each}} |
43 | <i class="iconfont down"></i> | 43 | <i class="iconfont down"></i> |
44 | <i class="iconfont hide up"></i> | 44 | <i class="iconfont hide up"></i> |
@@ -46,7 +46,7 @@ | @@ -46,7 +46,7 @@ | ||
46 | <ul class="dispatch-mode"> | 46 | <ul class="dispatch-mode"> |
47 | {{#each dispatchMode}} | 47 | {{#each dispatchMode}} |
48 | <li {{#if isSelected}}class="chosed"{{/if}} data-id="{{id}}"> | 48 | <li {{#if isSelected}}class="chosed"{{/if}} data-id="{{id}}"> |
49 | - <span>{{name}}</span> | 49 | + <span>{{name}}¥{{cost}}</span> |
50 | <i class="right iconfont {{#if isSelected}}icon-cb-radio{{else}}icon-radio{{/if}}"></i> | 50 | <i class="right iconfont {{#if isSelected}}icon-cb-radio{{else}}icon-radio{{/if}}"></i> |
51 | </li> | 51 | </li> |
52 | {{/each}} | 52 | {{/each}} |
@@ -404,6 +404,7 @@ class CartModel | @@ -404,6 +404,7 @@ class CartModel | ||
404 | $oneDeliv = array(); | 404 | $oneDeliv = array(); |
405 | $oneDeliv['id'] = $val['delivery_way_id']; | 405 | $oneDeliv['id'] = $val['delivery_way_id']; |
406 | $oneDeliv['name'] = $val['delivery_way_name']; | 406 | $oneDeliv['name'] = $val['delivery_way_name']; |
407 | + $oneDeliv['cost'] = $val['delivery_way_cost']; | ||
407 | ($val['default'] === 'Y') && $defaultKey = $key; | 408 | ($val['default'] === 'Y') && $defaultKey = $key; |
408 | 409 | ||
409 | $idArr[$key] = $oneDeliv['id']; | 410 | $idArr[$key] = $oneDeliv['id']; |
@@ -505,7 +506,7 @@ class CartModel | @@ -505,7 +506,7 @@ class CartModel | ||
505 | $price = isset($orderCompute['last_order_amount']) ? $orderCompute['last_order_amount'] : $payReturn['shopping_cart_data']['last_order_amount']; | 506 | $price = isset($orderCompute['last_order_amount']) ? $orderCompute['last_order_amount'] : $payReturn['shopping_cart_data']['last_order_amount']; |
506 | $result['price'] = Helpers::transPrice($price); | 507 | $result['price'] = Helpers::transPrice($price); |
507 | // 订单商品数 | 508 | // 订单商品数 |
508 | - $result['num'] = $payReturn['shopping_cart_data']['goods_count']; | 509 | + $result['num'] = $payReturn['shopping_cart_data']['selected_goods_count']; |
509 | // 商品金额 | 510 | // 商品金额 |
510 | $result['goodsPrice'] = $payReturn['shopping_cart_data']['str_order_amount']; | 511 | $result['goodsPrice'] = $payReturn['shopping_cart_data']['str_order_amount']; |
511 | } | 512 | } |
-
Please register or login to post a comment