Commit 70ef64f0faf786befebd6fb7c0c91bfb18406e59

Authored by pengye
1 parent cf729257

已点餐页面,不显示没有下单的菜品

@@ -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,