|
@@ -305,9 +305,9 @@ export default defineComponent({
|
|
|
const result = res.data || {}
|
|
|
if (res.code === 998) {
|
|
|
this.dialogVisiable = true
|
|
|
- this.dialogContent = '您当前VIP天数更新,请刷新后尝试'
|
|
|
+ this.dialogContent = res.msg
|
|
|
this.dialogBtnText = '刷新'
|
|
|
- this.dialogType = 'refresh'
|
|
|
+ this.dialogType = 'back'
|
|
|
return
|
|
|
}
|
|
|
// 支付成功
|
|
@@ -345,16 +345,16 @@ export default defineComponent({
|
|
|
// 支付成功
|
|
|
if (res.code === 999) {
|
|
|
this.dialogVisiable = true
|
|
|
- this.dialogContent = '产品信息已更新,请重新选择'
|
|
|
+ this.dialogContent = res.msg
|
|
|
this.dialogBtnText = '确定'
|
|
|
this.dialogType = 'back'
|
|
|
return
|
|
|
}
|
|
|
if (res.code === 998) {
|
|
|
this.dialogVisiable = true
|
|
|
- this.dialogContent = '您当前VIP天数更新,请刷新后尝试'
|
|
|
+ this.dialogContent = res.msg
|
|
|
this.dialogBtnText = '刷新'
|
|
|
- this.dialogType = 'refresh'
|
|
|
+ this.dialogType = 'back'
|
|
|
return
|
|
|
}
|
|
|
if (result.status == 'PAID') {
|
|
@@ -423,7 +423,7 @@ export default defineComponent({
|
|
|
return item.couponIssueId
|
|
|
})
|
|
|
orderStatus.orderObject.couponId = couponIds.join(',') || ''
|
|
|
- orderStatus.orderObject.couponDiscountPrice += discountCount
|
|
|
+ orderStatus.orderObject.couponDiscountPrice = discountCount
|
|
|
},
|
|
|
onConfirm(val: any) {
|
|
|
const config: any = this.orderInfo.paymentConfig || {}
|
|
@@ -528,6 +528,12 @@ export default defineComponent({
|
|
|
item={item}
|
|
|
disabled={this.disabledCoupon}
|
|
|
onPriceChange={(price: number) => {
|
|
|
+ console.log(
|
|
|
+ price,
|
|
|
+ this.orderAmount,
|
|
|
+ orderStatus.orderObject.couponDiscountPrice,
|
|
|
+ 'orderStatus.orderObject.couponDiscountPrice'
|
|
|
+ )
|
|
|
// 重置金额
|
|
|
this.orderAmount = Number(price)
|
|
|
const lastAmount = Number(
|