Showing
1 changed file
with
4 additions
and
0 deletions
| @@ -312,6 +312,10 @@ Page({ | @@ -312,6 +312,10 @@ Page({ | ||
| 312 | if (j.order_xx && j.order_xx.length > 0) { | 312 | if (j.order_xx && j.order_xx.length > 0) { |
| 313 | let arr = j.order_xx; | 313 | let arr = j.order_xx; |
| 314 | let result = arr.reduce((obj, item) => { | 314 | let result = arr.reduce((obj, item) => { |
| 315 | + if (item && item.status == '0') { | ||
| 316 | + console.log('status为0,这个菜没有下单'); | ||
| 317 | + return obj; | ||
| 318 | + } | ||
| 315 | let find = obj.find(i => (i.practiceid === item.practiceid && i.specid === item.specid)); | 319 | let find = obj.find(i => (i.practiceid === item.practiceid && i.specid === item.specid)); |
| 316 | let _d = { | 320 | let _d = { |
| 317 | ...item, | 321 | ...item, |
-
Please register or login to post a comment