diff --git a/dist 2.zip b/dist 2.zip deleted file mode 100644 index cdc827d..0000000 --- a/dist 2.zip +++ /dev/null diff --git a/dist 3.zip b/dist 3.zip deleted file mode 100644 index e71802e..0000000 --- a/dist 3.zip +++ /dev/null diff --git a/dist.zip b/dist.zip deleted file mode 100644 index 1912d99..0000000 --- a/dist.zip +++ /dev/null diff --git a/src/components/plateNumber.vue b/src/components/plateNumber.vue index e1b3d0b..e05bd7f 100644 --- a/src/components/plateNumber.vue +++ b/src/components/plateNumber.vue @@ -352,7 +352,7 @@ export default { // }, noCarQRcodeInOutPark() { let params = this.$route.query - params.payType = this.$utils.IsWeixinOrAlipay()//4:微信 1:支付宝 + params.payType = this.$utils.IsWeixinOrAlipay()//4:微信 1:支付宝 34:农行 params.terminalSource = "7";//1:任你听 3:微信公共号 4:云平台 7:H5 params.app_id = 1, params.salt = 2, diff --git a/src/router/index.js b/src/router/index.js index 27837b4..5cf6547 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,7 +1,7 @@ import Vue from 'vue' import Router from 'vue-router' import plateNumber from '@/components/plateNumber' -import parkRecord from '@/components/parkRecord' +// import parkRecord from '@/components/parkRecord' import dynCodePay from '@/components/dynCodePay' Vue.use(Router) diff --git a/src/utils/utils.js b/src/utils/utils.js index 0e7c2c6..6409df9 100644 --- a/src/utils/utils.js +++ b/src/utils/utils.js @@ -39,10 +39,10 @@ export default { return 1 } else if (/BankabciPhone/.test(window.navigator.userAgent)) { console.log("农行客户端"); - return 1 + return '34' } else if (/BankabcAndroid/.test(window.navigator.userAgent)) { console.log("农行客户端"); - return 1 + return '34' } else { console.log("其他浏览器"); return 1 @@ -128,6 +128,28 @@ export default { return '支付宝' } }, + // 1:支付宝 2:微信 3:银联 10:H5 4微信公众号 + clientBrowserPayType: function () { // 判断客户端 + if (/MicroMessenger/.test(window.navigator.userAgent)) { + console.log("微信客户端"); + return '4' + } else if (/AlipayClient/.test(window.navigator.userAgent)) { + console.log("支付宝客户端"); + return '1' + } else if (/BankabciPhone/.test(window.navigator.userAgent)) { + console.log("农行客户端"); + return '34' + }else if (/BankabcAndroid/.test(window.navigator.userAgent)) { + console.log("农行客户端"); + return '34' + }else { + console.log("其他浏览器"); + return '1' + } + }, + + + // 0eca8f5373ca4866aec2f8e9d9367104 老的id // 14318527b13840c2a4af63fef52c2d6e 老的签名