| | |
| | | payPrice: res.payPrice.toFixed(2), |
| | | ImmediatelyReceive: res.payPrice |
| | | }) |
| | | console.log(1, res.saleMethodLinks); |
| | | res.saleMethodLinks.forEach(item => { |
| | | const type = item.orderSaleMethod.type == 'createProductItemSaleMethod' ? 'item' : 'product'; |
| | | item.type = type; // 将type设置为item对象的属性,而不是使用setData |
| | |
| | | if (res) { |
| | | this.setData({ |
| | | payId: res.payList[0].id, |
| | | payPrice: res.payPrice, |
| | | payPrice: res.payPrice.toFixed(2), |
| | | deduct: (this.data.currentBalance / 100).toFixed(2), |
| | | integral: this.data.integral - this.data.currentBalance, |
| | | showIntegral: true |
| | |
| | | console.log(res, "取消用积分") |
| | | if (res) { |
| | | this.setData({ |
| | | payPrice: res.payPrice, |
| | | payPrice: res.payPrice.toFixed(2), |
| | | showIntegral: false |
| | | }); |
| | | this.getIntegral() |