Commit 63b70d12b2b0ea279f195dab69612178a6b157dd

Authored by yvan.ni
1 parent be958f84

不去保存,提交的优化

pages/goods/goodsInfo/goodsInfo.js
@@ -2099,17 +2099,10 @@ Page({ @@ -2099,17 +2099,10 @@ Page({
2099 getApp().request.delete(url, {}); 2099 getApp().request.delete(url, {});
2100 } 2100 }
2101 } 2101 }
2102 - newd.state = 1;  
2103 - getApp().request.post("/api/weshop/cart/save", {  
2104 - data: newd,  
2105 - success: function (t) {  
2106 - th.closeSpecModal();  
2107 - getApp().goto("/packageE/pages/cart/cart2/cart2?state=1");  
2108 - }  
2109 - }); 2102 +
2110 } 2103 }
2111 }) 2104 })
2112 - return false; 2105 +
2113 } 2106 }
2114 2107
2115 if (th.data.prom_goods) { 2108 if (th.data.prom_goods) {