| | |
| | | orderGoods: res.orderNumber |
| | | }) |
| | | this.setData({ |
| | | price: res.payPrice, |
| | | price: res.payPrice.toFixed(2), |
| | | payPrice: res.payPrice.toFixed(2), |
| | | ImmediatelyReceive: res.payPrice |
| | | }) |
| | |
| | | item.type = type; // 将type设置为item对象的属性,而不是使用setData |
| | | item.paymentIcon = getPublicImage(item.orderSaleMethod.product.icon) |
| | | item.payPrice = this.numFormat(item.payPrice) |
| | | item.orderSaleMethod.price = this.numFormat(item.orderSaleMethod.price) |
| | | // |
| | | if (item.orderSaleMethod.product.cmsTypeRefCode == 'jsek_digitalTextbooks') { |
| | | item.typeTxt = '数字教材' |
| | | item.productType = "数字教材" |
| | | } else if (item.orderSaleMethod.product.cmsTypeRefCode == 'jsek_digitalCourses') { |
| | | item.typeTxt = '数字课程' |
| | | item.productType = "数字课程" |
| | | } else { |
| | | item.typeTxt = '电子书' |
| | | item.productType = "图书服务-电子书" |
| | | |
| | | if (item.orderSaleMethod.type == 'createProductItemSaleMethod') { |
| | | item.typeTxt = '云学习' |
| | | item.productType = "图书服务-云学习" |
| | | } |
| | | } |
| | | }) |
| | | this.setData({ |
| | | productList: res.saleMethodLinks, |
| | |
| | | if (res) { |
| | | this.setData({ |
| | | payId: res.payList[0].id, |
| | | payPrice: res.payPrice, |
| | | deduct: (this.data.price - this.data.payPrice).toFixed(2), |
| | | payPrice: res.payPrice.toFixed(2), |
| | | deduct: (this.data.currentBalance / 100).toFixed(2), |
| | | integral: this.data.integral - this.data.currentBalance, |
| | | showIntegral: true |
| | | }); |
| | | console.log(this.data.price, this.data.payPrice, 123) |
| | | } |
| | | }) |
| | | } else { |
| | |
| | | console.log(res, "取消用积分") |
| | | if (res) { |
| | | this.setData({ |
| | | payPrice: res.payPrice, |
| | | payPrice: res.payPrice.toFixed(2), |
| | | showIntegral: false |
| | | }); |
| | | this.getIntegral() |