Commit 391ea234 by zhangxw

订单补录商品修改

1 parent 0be7a79e
......@@ -154,15 +154,15 @@ Page({
val?.upgradeGoodsList?.forEach((subVal, subInd) => {
if (type == 1 && [1].includes(subVal.merchantGoodsPosition)) {
arr2.push(subVal)
arr[i].upgradeGoodsList = arr2
if (subVal?.goodsInfo?.goodsType == arr[i]?.goodsType || subVal?.upgradeGoodsType == arr[i]?.goodsType) arr[i].upgradeGoodsList = arr2
}
if (type == 2 && [2, 3, 4].includes(subVal.merchantGoodsPosition)) {
arr2.push(subVal)
arr[i].upgradeGoodsList = arr2
if (subVal?.goodsInfo?.goodsType == arr[i]?.goodsType || subVal?.upgradeGoodsType == arr[i]?.goodsType) arr[i].upgradeGoodsList = arr2
}
if (type == 3 && [5, 6, 7].includes(subVal.merchantGoodsPosition)) {
arr2.push(subVal)
arr[i].upgradeGoodsList = arr2
if (subVal?.goodsInfo?.goodsType == arr[i]?.goodsType || subVal?.upgradeGoodsType == arr[i]?.goodsType) arr[i].upgradeGoodsList = arr2
}
})
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!