Commit cc9e5401 by dhn

修复购物车支付页物流展示bug

parent 8494b5ee
...@@ -55,8 +55,24 @@ define([ ...@@ -55,8 +55,24 @@ define([
storage.post( storage.post(
serviceUrl, payload, false serviceUrl, payload, false
).done(function (result) { ).done(function (result) {
var new_sh = [];
if(result.length > 1)
{
for(var i=0;i<result.length;i++)
{
if(result[i].amount == 0)
{
new_sh.push(result[i]);
}
}
}
else if(result.length === 1)
{
new_sh.push(result[0]);
}
rateRegistry.set(address.getCacheKey(), result); rateRegistry.set(address.getCacheKey(), result);
shippingService.setShippingRates(result); shippingService.setShippingRates(new_sh);
}).fail(function (response) { }).fail(function (response) {
shippingService.setShippingRates([]); shippingService.setShippingRates([]);
errorProcessor.process(response); errorProcessor.process(response);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment