...
|
...
|
@@ -50,14 +50,14 @@ Page({ |
|
|
let data;
|
|
|
if (isStore) {
|
|
|
data = await api.createOfflinePayment(params, () => wx.hideLoading())
|
|
|
// let index;
|
|
|
// data.promotionFormulaList.forEach((value, i) => {
|
|
|
// if (value.promotion === '运费') {
|
|
|
// index = i;
|
|
|
// break;
|
|
|
// }
|
|
|
// })
|
|
|
// data.promotionFormulaList.splice(index,1)
|
|
|
let index;
|
|
|
data.promotionFormulaList.forEach((value, i) => {
|
|
|
if (value.promotion === '运费') {
|
|
|
index = i;
|
|
|
break;
|
|
|
}
|
|
|
})
|
|
|
data.promotionFormulaList.splice(index,1)
|
|
|
} else {
|
|
|
data = await api.createPaymentInfo(params, () => wx.hideLoading())
|
|
|
}
|
...
|
...
|
|