商品兑换券更新
This commit is contained in:
@@ -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)
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user