商品兑换券更新

This commit is contained in:
GaoHao
2024-11-19 16:58:37 +08:00
parent d2dbfd5163
commit 8c5e03d6c4
10 changed files with 141 additions and 69 deletions

View File

@@ -92,6 +92,7 @@
listinfoid: null,
status: [],
amountVIP: null,
couopnInfo: null,
srcimge: 'https://czg-qr-order.oss-cn-beijing.aliyuncs.com/wx.jpg'
};
},
@@ -120,11 +121,10 @@
console.log(e)
},
methods: {
setPayAmount(payAmount) {
console.log("payAmount===",payAmount)
this.listinfo.payAmount = payAmount
// this.$set(this.listinfo,"payAmount",payAmount)
// this.$forceUpdate()
setPayAmount(data) {
console.log(data)
this.listinfo.payAmount = data.payAmount
this.couopnInfo = data;
},
saveImage (url) {
uni.saveImage({
@@ -369,6 +369,16 @@
let res = await this.api.paymodfiyOrderInfo({
orderId: this.listinfo.orderId,
})
// this.couopnInfo
let params = {
shopId: this.listinfo.shopId,
orderId: this.listinfo.orderId,
userCouponInfos: this.couopnInfo.userCouponInfos,
}
if ( this.couopnInfo.isPointsChecked && this.couopnInfo.calcUsablePointsData.pointsNum && this.couopnInfo.calcUsablePointsData.pointsNum > 0) {
params.pointsNum = this.couopnInfo.calcUsablePointsData.pointsNum;
}
let ress = await this.api.useCoupon(params)
},
/**