Commit 70ef64f0faf786befebd6fb7c0c91bfb18406e59

Authored by pengye
1 parent cf729257

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

... ... @@ -312,6 +312,10 @@ Page({
if (j.order_xx && j.order_xx.length > 0) {
let arr = j.order_xx;
let result = arr.reduce((obj, item) => {
if (item && item.status == '0') {
console.log('status为0,这个菜没有下单');
return obj;
}
let find = obj.find(i => (i.practiceid === item.practiceid && i.specid === item.specid));
let _d = {
...item,
... ...