From 709875229d0b998b9be708091e510198241a6b29 Mon Sep 17 00:00:00 2001 From: liugongyu <290219706@qq.com> Date: Tue, 7 Jun 2022 16:10:15 +0800 Subject: [PATCH] 领取优惠券 --- src/views/parkPay/coupon.vue | 13 +++++++++---- src/views/parkPay/couponPay.vue | 30 ++++++++++++++++-------------- 2 files changed, 25 insertions(+), 18 deletions(-) diff --git a/src/views/parkPay/coupon.vue b/src/views/parkPay/coupon.vue index 8974ee1..20ebb40 100644 --- a/src/views/parkPay/coupon.vue +++ b/src/views/parkPay/coupon.vue @@ -37,6 +37,7 @@ export default { codeType: '', tipText: '', payFlag: true, + couponsType:1,// 1:按次优惠,2:按时优惠,3:折扣优惠(打折),4:满减优惠' } }, created() { @@ -81,11 +82,14 @@ export default { this.payFlag = true this.imgurl = this.successiconUrl this.tipText = '领取优惠券成功' + this.couponsType = response.data.cardType + console.log(this.couponsType) } else { - this.payFlag = true + this.payFlag = false this.imgurl = this.loseiconUrl this.tipText = response.message } + // this.tipText = }) }, @@ -109,7 +113,7 @@ export default { pageNum: '1', pageSize: '1000', parkState: '10', - terminalSource: '3', + terminalSource: '7', // parkState:'10', carNumber: this.carNum, // carNumberColor: '1', @@ -143,7 +147,7 @@ export default { sign_type: "md5", orderId: i[0].orderId, payOrderType: '101', - terminalSource: '3', + terminalSource: '7', } params.sign = this.$utils.signObject(params) appApplyParkOut(url,params).then(response => { @@ -182,6 +186,7 @@ export default { paySrcType: 101, //支付的类型 101 是本次 103是历史欠费 ordeID: i.orderId, //支付的订单号 appOrderTimeout: res.appOrderTimeout, // 超时描述 + couponsType:this.couponsType } } ) @@ -189,7 +194,7 @@ export default { } else { //$('.dialog-out').show() - this.$msgbox('提示', '停车15分钟内无需缴费,申请成功。') + this.$msgbox('提示', '停车15分钟内无需缴费,请出场。') } }) diff --git a/src/views/parkPay/couponPay.vue b/src/views/parkPay/couponPay.vue index de794cd..b1b39be 100644 --- a/src/views/parkPay/couponPay.vue +++ b/src/views/parkPay/couponPay.vue @@ -31,7 +31,7 @@
- ({{ cardTypeFormat(carType) }}) {{ discountFee }} + ({{ cardTypeFormat(couponsType) }}) {{ discountFee }}