Authored by 毕凯

增加购物车类型

@@ -17,7 +17,8 @@ var dispatchModeHammer, @@ -17,7 +17,8 @@ var dispatchModeHammer,
17 $invoice = $('.invoice'), 17 $invoice = $('.invoice'),
18 $price = $('.price-cal'), 18 $price = $('.price-cal'),
19 payType, 19 payType,
20 - priceTmpl = Handlebars.compile($('#tmpl-price').html()); 20 + priceTmpl = Handlebars.compile($('#tmpl-price').html()),
  21 + queryString = $.queryString();
21 22
22 lazyLoad(); 23 lazyLoad();
23 24
@@ -101,7 +102,7 @@ function submitOrder() { @@ -101,7 +102,7 @@ function submitOrder() {
101 url: '/cart/index/orderSub', 102 url: '/cart/index/orderSub',
102 data: { 103 data: {
103 addressId: orderInfo('addressId'), 104 addressId: orderInfo('addressId'),
104 - cartType: orderInfo('cartType'), 105 + cartType: queryString.cartType || queryString.carttype || 'ordinary',
105 deliveryId: orderInfo('deliveryId'), 106 deliveryId: orderInfo('deliveryId'),
106 deliveryTimeId: orderInfo('deliveryTimeId'), 107 deliveryTimeId: orderInfo('deliveryTimeId'),
107 invoiceText: $invoice.find('[name="invoice-title"]').val() || orderInfo('invoiceText'), 108 invoiceText: $invoice.find('[name="invoice-title"]').val() || orderInfo('invoiceText'),
@@ -132,7 +133,7 @@ function submitOrder() { @@ -132,7 +133,7 @@ function submitOrder() {
132 window.location.href = url; 133 window.location.href = url;
133 } else { 134 } else {
134 loading.hideLoadingMask(); 135 loading.hideLoadingMask();
135 - tip.show(res.messege || '网络出错'); 136 + tip.show(res.message || '网络出错');
136 } 137 }
137 }).fail(function() { 138 }).fail(function() {
138 loading.hideLoadingMask(); 139 loading.hideLoadingMask();