Commit 2b165cd7b45418c4e3b5d5540396654ac3a96cc4
1 parent
46c9a710
阶梯优化
Showing
2 changed files
with
2 additions
and
1 deletions
pages/cart/cart2/ladder_calculate.js
@@ -185,7 +185,7 @@ module.exports = { | @@ -185,7 +185,7 @@ module.exports = { | ||
185 | return dest; | 185 | return dest; |
186 | }, | 186 | }, |
187 | 187 | ||
188 | - //-- 平摊组合购的价格 -- | 188 | + //-- 组装阶梯购的价格 -- |
189 | calc_split_price: async function (c_arr, th) { | 189 | calc_split_price: async function (c_arr, th) { |
190 | //-- 循环处理 -- | 190 | //-- 循环处理 -- |
191 | for (var k in c_arr) { | 191 | for (var k in c_arr) { |
pages/goods/search/search.js
@@ -242,6 +242,7 @@ Page({ | @@ -242,6 +242,7 @@ Page({ | ||
242 | } | 242 | } |
243 | }) | 243 | }) |
244 | } | 244 | } |
245 | + if(!th.data.requestData) th.data.requestData=[]; | ||
245 | th.data.requestData.push(item); | 246 | th.data.requestData.push(item); |
246 | e.setData({requestData: e.data.requestData}); | 247 | e.setData({requestData: e.data.requestData}); |
247 | } | 248 | } |