| | |
| | | orderGoods: '', |
| | | isPaySuccess: false, |
| | | isPayComplete: false, |
| | | type: '' |
| | | }, |
| | | |
| | | /** |
| | |
| | | }) |
| | | res.saleMethodLinks.forEach(item => { |
| | | |
| | | const type = item.type == 'createProductItemSaleMethod' ? 'item' : 'product'; |
| | | item.type = type; // 将type设置为item对象的属性,而不是使用setData |
| | | item.paymentIcon = getPublicImage(item.orderSaleMethod.product.icon) |
| | | console.log(item.orderSaleMethod.type); |
| | | |
| | | console.log(item.type, 'item'); |
| | | |
| | | |
| | | }) |
| | | this.setData({ |
| | | productList: res.saleMethodLinks, |
| | | type: item.orderSaleMethod.type == 'createProductItemSaleMethod' ? 'item' : 'product' |
| | | }) |
| | | |
| | | // type: item.orderSaleMethod.type == 'createProductItemSaleMethod' ? 'item' : 'product' |
| | | }) |
| | | }) |
| | | }, |