Commit 9393381b0dc6d48937f65fba175b59be9ff545a4
1 parent
9cc3457d
payType
Showing
6 changed files
with
26 additions
and
4 deletions
dist 2.zip deleted
No preview for this file type
dist 3.zip deleted
No preview for this file type
dist.zip deleted
No preview for this file type
src/components/plateNumber.vue
| ... | ... | @@ -352,7 +352,7 @@ export default { |
| 352 | 352 | // }, |
| 353 | 353 | noCarQRcodeInOutPark() { |
| 354 | 354 | let params = this.$route.query |
| 355 | - params.payType = this.$utils.IsWeixinOrAlipay()//4:微信 1:支付宝 | |
| 355 | + params.payType = this.$utils.IsWeixinOrAlipay()//4:微信 1:支付宝 34:农行 | |
| 356 | 356 | params.terminalSource = "7";//1:任你听 3:微信公共号 4:云平台 7:H5 |
| 357 | 357 | params.app_id = 1, |
| 358 | 358 | params.salt = 2, | ... | ... |
src/router/index.js
| 1 | 1 | import Vue from 'vue' |
| 2 | 2 | import Router from 'vue-router' |
| 3 | 3 | import plateNumber from '@/components/plateNumber' |
| 4 | -import parkRecord from '@/components/parkRecord' | |
| 4 | +// import parkRecord from '@/components/parkRecord' | |
| 5 | 5 | import dynCodePay from '@/components/dynCodePay' |
| 6 | 6 | |
| 7 | 7 | Vue.use(Router) | ... | ... |
src/utils/utils.js
| ... | ... | @@ -39,10 +39,10 @@ export default { |
| 39 | 39 | return 1 |
| 40 | 40 | } else if (/BankabciPhone/.test(window.navigator.userAgent)) { |
| 41 | 41 | console.log("农行客户端"); |
| 42 | - return 1 | |
| 42 | + return '34' | |
| 43 | 43 | } else if (/BankabcAndroid/.test(window.navigator.userAgent)) { |
| 44 | 44 | console.log("农行客户端"); |
| 45 | - return 1 | |
| 45 | + return '34' | |
| 46 | 46 | } else { |
| 47 | 47 | console.log("其他浏览器"); |
| 48 | 48 | return 1 |
| ... | ... | @@ -128,6 +128,28 @@ export default { |
| 128 | 128 | return '支付宝' |
| 129 | 129 | } |
| 130 | 130 | }, |
| 131 | + // 1:支付宝 2:微信 3:银联 10:H5 4微信公众号 | |
| 132 | + clientBrowserPayType: function () { // 判断客户端 | |
| 133 | + if (/MicroMessenger/.test(window.navigator.userAgent)) { | |
| 134 | + console.log("微信客户端"); | |
| 135 | + return '4' | |
| 136 | + } else if (/AlipayClient/.test(window.navigator.userAgent)) { | |
| 137 | + console.log("支付宝客户端"); | |
| 138 | + return '1' | |
| 139 | + } else if (/BankabciPhone/.test(window.navigator.userAgent)) { | |
| 140 | + console.log("农行客户端"); | |
| 141 | + return '34' | |
| 142 | + }else if (/BankabcAndroid/.test(window.navigator.userAgent)) { | |
| 143 | + console.log("农行客户端"); | |
| 144 | + return '34' | |
| 145 | + }else { | |
| 146 | + console.log("其他浏览器"); | |
| 147 | + return '1' | |
| 148 | + } | |
| 149 | + }, | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 131 | 153 | // 0eca8f5373ca4866aec2f8e9d9367104 老的id |
| 132 | 154 | // 14318527b13840c2a4af63fef52c2d6e 老的签名 |
| 133 | 155 | ... | ... |