diff --git a/src/components/dynCodePay.vue b/src/components/dynCodePay.vue index 30a2083..c550477 100644 --- a/src/components/dynCodePay.vue +++ b/src/components/dynCodePay.vue @@ -69,7 +69,7 @@ export default { outtime: '', // 出场时间 staytime: '', // 停车时长 orderFee: '', // 需要支付的费用 - + urlAppid:'', arrearageActFee: 0, arrearageDiscFee: 0, arrearageActFee: 0, @@ -100,10 +100,12 @@ export default { this.webAppCode = this.getCode(); } + this.urlAppid = this.$route.query.appId }, methods: { getCode() { - var appID = this.$utils.myVxAppId; + + var appID = this.urlAppid; // alert(appID) var code = this.getUrlParam('code'); var local = window.location.href; @@ -165,8 +167,8 @@ export default { bankabcParams.terminalSource = 7;//请求端来源 1: 任你停 2:pda 3:微信公共号 7:H5扫码 10页面支付 bankabcParams.paySrcType = this.paySrcType;//101停车支付 bankabcParams.orgId = this.$utils.myOrgId, - bankabcParams.backType = 2, - bankabcParams.PaymentLinkType = 1 + bankabcParams.backType = 2, + bankabcParams.PaymentLinkType = 1 bankabcParams.recordArreaInfos = JSON.stringify(this.orderId); console.log(bankabcParams) @@ -221,7 +223,7 @@ export default { //第一步获取openid var codeParams = { code: this.webAppCode, - appId: this.$utils.myVxAppId + appId: this.urlAppid }; getOpenId(codeParams).then(res => { if (res.code == 0) { @@ -243,13 +245,13 @@ export default { wxParams.orderId = orderIdData; // wxParams.backType = 2, // wxParams.orgId = this.$utils.myOrgId, - wxParams.payType = 4;// 1:支付宝 2:微信 3:银联 10:H5 4微信公众号 + wxParams.payType = 4;// 1:支付宝 2:微信 3:银联 10:H5 4微信公众号 wxParams.terminalSource = 7;//请求端来源 1: 任你停 2:pda 3:微信公共号 7:H5扫码 10页面支付 // wxParams.carNumber = this.carNumber; // wxParams.paySrcType = this.paySrcType;//101停车支付 // wxParams.recordArreaInfos = JSON.stringify(orderIdData); wxParams.openId = openIdData; - wxParams.appId = this.$utils.myVxAppId; + wxParams.appId = this.urlAppid vxPayQuery(wxParams).then(res => { if (res.code == 0) { // if (res.data) {