Commit 709875229d0b998b9be708091e510198241a6b29
1 parent
7e244ba4
领取优惠券
Showing
2 changed files
with
25 additions
and
18 deletions
src/views/parkPay/coupon.vue
... | ... | @@ -37,6 +37,7 @@ export default { |
37 | 37 | codeType: '', |
38 | 38 | tipText: '', |
39 | 39 | payFlag: true, |
40 | + couponsType:1,// 1:按次优惠,2:按时优惠,3:折扣优惠(打折),4:满减优惠' | |
40 | 41 | } |
41 | 42 | }, |
42 | 43 | created() { |
... | ... | @@ -81,11 +82,14 @@ export default { |
81 | 82 | this.payFlag = true |
82 | 83 | this.imgurl = this.successiconUrl |
83 | 84 | this.tipText = '领取优惠券成功' |
85 | + this.couponsType = response.data.cardType | |
86 | + console.log(this.couponsType) | |
84 | 87 | } else { |
85 | - this.payFlag = true | |
88 | + this.payFlag = false | |
86 | 89 | this.imgurl = this.loseiconUrl |
87 | 90 | this.tipText = response.message |
88 | 91 | } |
92 | + | |
89 | 93 | // this.tipText = |
90 | 94 | }) |
91 | 95 | }, |
... | ... | @@ -109,7 +113,7 @@ export default { |
109 | 113 | pageNum: '1', |
110 | 114 | pageSize: '1000', |
111 | 115 | parkState: '10', |
112 | - terminalSource: '3', | |
116 | + terminalSource: '7', | |
113 | 117 | // parkState:'10', |
114 | 118 | carNumber: this.carNum, |
115 | 119 | // carNumberColor: '1', |
... | ... | @@ -143,7 +147,7 @@ export default { |
143 | 147 | sign_type: "md5", |
144 | 148 | orderId: i[0].orderId, |
145 | 149 | payOrderType: '101', |
146 | - terminalSource: '3', | |
150 | + terminalSource: '7', | |
147 | 151 | } |
148 | 152 | params.sign = this.$utils.signObject(params) |
149 | 153 | appApplyParkOut(url,params).then(response => { |
... | ... | @@ -182,6 +186,7 @@ export default { |
182 | 186 | paySrcType: 101, //支付的类型 101 是本次 103是历史欠费 |
183 | 187 | ordeID: i.orderId, //支付的订单号 |
184 | 188 | appOrderTimeout: res.appOrderTimeout, // 超时描述 |
189 | + couponsType:this.couponsType | |
185 | 190 | } |
186 | 191 | } |
187 | 192 | ) |
... | ... | @@ -189,7 +194,7 @@ export default { |
189 | 194 | |
190 | 195 | } else { |
191 | 196 | //$('.dialog-out').show() |
192 | - this.$msgbox('提示', '停车15分钟内无需缴费,申请成功。') | |
197 | + this.$msgbox('提示', '停车15分钟内无需缴费,请出场。') | |
193 | 198 | } |
194 | 199 | |
195 | 200 | }) | ... | ... |
src/views/parkPay/couponPay.vue
... | ... | @@ -31,7 +31,7 @@ |
31 | 31 | <li> |
32 | 32 | <span>停车优惠</span> |
33 | 33 | <p> |
34 | - ({{ cardTypeFormat(carType) }}) <span style="color: #3cc51f">{{ discountFee }}</span> | |
34 | + ({{ cardTypeFormat(couponsType) }}) <span style="color: #3cc51f">{{ discountFee }}</span> | |
35 | 35 | </p> |
36 | 36 | </li> |
37 | 37 | |
... | ... | @@ -85,7 +85,7 @@ export default { |
85 | 85 | parkDuration: '', |
86 | 86 | discountFee: 0,// 停车优惠 |
87 | 87 | carType: 1, |
88 | - | |
88 | + couponsType:1,// 1:按次优惠,2:按时优惠,3:折扣优惠(打折),4:满减优惠' | |
89 | 89 | orderTotalFee: 0,// 应付 |
90 | 90 | orderFee: 0,// 实付 |
91 | 91 | busDiscValue: 0,// 优惠券优惠金额 |
... | ... | @@ -118,6 +118,7 @@ export default { |
118 | 118 | this.appOrderTimeout = couponPark.appOrderTimeout |
119 | 119 | this.clientBrowser = this.$utils.clientBrowser() //支付方式 |
120 | 120 | // this.paySrcType = this.$route.query.paySrcType // 实收 |
121 | + this.couponsType = this.$route.query.couponsType | |
121 | 122 | this.orderId = couponPark.orderId |
122 | 123 | if (this.clientBrowser == "微信") { |
123 | 124 | this.webAppCode = this.getCode(); |
... | ... | @@ -169,7 +170,7 @@ export default { |
169 | 170 | aliParams.orderId = this.orderId; |
170 | 171 | aliParams.carNumber = this.carNumber; |
171 | 172 | aliParams.payType = 1;// 1:支付宝 2:微信 3:银联 10:H5 4微信公众号 |
172 | - aliParams.terminalSource = 3;//请求端来源 1: 任你停 2:pda 3:微信公共号 7:H5扫码 10页面支付 | |
173 | + aliParams.terminalSource = 7;//请求端来源 1: 任你停 2:pda 3:微信公共号 7:H5扫码 10页面支付 | |
173 | 174 | aliParams.paySrcType = this.paySrcType;//101停车支付 |
174 | 175 | aliParams.orgId = this.$utils.myOrgId |
175 | 176 | aliParams.backType = 2 |
... | ... | @@ -237,7 +238,7 @@ export default { |
237 | 238 | wxParams.backType = 2 |
238 | 239 | wxParams.orgId = this.$utils.myOrgId |
239 | 240 | wxParams.payType = 4;// 1:支付宝 2:微信 3:银联 10:H5 4微信公众号 |
240 | - wxParams.terminalSource = 3;//请求端来源 1: 任你停 2:pda 3:微信公共号 7:H5扫码 10页面支付 | |
241 | + wxParams.terminalSource = 7;//请求端来源 1: 任你停 2:pda 3:微信公共号 7:H5扫码 10页面支付 | |
241 | 242 | wxParams.carNumber = this.carNumber; |
242 | 243 | wxParams.paySrcType = this.paySrcType;//101停车支付 |
243 | 244 | wxParams.recordArreaInfos = JSON.stringify(orderIdData); |
... | ... | @@ -313,24 +314,25 @@ export default { |
313 | 314 | ) |
314 | 315 | }, |
315 | 316 | cardTypeFormat: function (num) { |
317 | + // 1:按次优惠,2:按时优惠,3:折扣优惠(打折),4:满减优惠' | |
316 | 318 | if (num == '1') { |
317 | - return '单次券' | |
319 | + return '按次优惠' | |
318 | 320 | } |
319 | 321 | if (num == 2) { |
320 | - return '时长券' | |
322 | + return '按时优惠' | |
321 | 323 | } |
322 | 324 | if (num == 3) { |
323 | - return '满减券' | |
325 | + return '折扣优惠' | |
324 | 326 | } |
325 | 327 | if (num == 4) { |
326 | - return '金额券' | |
327 | - } | |
328 | - if (num == 5) { | |
329 | - return '包天券' | |
330 | - } | |
331 | - if (num == 6) { | |
332 | - return '折扣券' | |
328 | + return '满减优惠' | |
333 | 329 | } |
330 | + // if (num == 5) { | |
331 | + // return '包天券' | |
332 | + // } | |
333 | + // if (num == 6) { | |
334 | + // return '折扣券' | |
335 | + // } | |
334 | 336 | } |
335 | 337 | }, |
336 | 338 | filters: { | ... | ... |