From baa9e35e1a598b5c551f07d83f1ff01fe81c7941 Mon Sep 17 00:00:00 2001 From: liugongyu <290219706@qq.com> Date: Wed, 2 Mar 2022 11:04:27 +0800 Subject: [PATCH] orgid --- src/components/navigation.vue | 5 ++++- src/components/parkRecord.vue | 4 ++-- src/utils/utils.js | 5 +++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/components/navigation.vue b/src/components/navigation.vue index acd1464..1d7110e 100644 --- a/src/components/navigation.vue +++ b/src/components/navigation.vue @@ -56,6 +56,9 @@ export default { this.carWrapBG = this.$route.query.carNumberColor // 车牌颜色 console.log(this.carNumber) + console.log(this.$route.query.orgId) + sessionStorage.setItem('orgId',this.$route.query.orgId) + }, created() { this.initSWiper() @@ -69,7 +72,7 @@ export default { salt: salt, sign_type: 'md5', sign: '1', - orgId: this.$utils.myOrgId, + orgId: this.$route.query.orgId, jumpType: '8' }; // jsondata = JSON.stringify(jsondata); diff --git a/src/components/parkRecord.vue b/src/components/parkRecord.vue index 0c9f106..9c74a00 100644 --- a/src/components/parkRecord.vue +++ b/src/components/parkRecord.vue @@ -192,7 +192,7 @@ export default { terminalSource: 7, carNumber: this.carNumber, carNumberColor: this.carColor, - orgId: this.$utils.myOrgId, + orgId:sessionStorage.getItem('orgId'), } jsondata.sign = this.$utils.signObject(jsondata) @@ -357,7 +357,7 @@ export default { orderIds: list, terminalSource: '7', payType: this.$utils.clientBrowsePayType(), - orgId: this.$utils.myOrgId, + orgId: sessionStorage.getItem('orgId'), backDeveloperCode: this.$route.query.backDeveloperCode } jsondata.sign = this.$utils.signObject(jsondata) diff --git a/src/utils/utils.js b/src/utils/utils.js index 89420b2..c3dac17 100644 --- a/src/utils/utils.js +++ b/src/utils/utils.js @@ -1,4 +1,5 @@ import md5 from './md5.min.js'; + export default { myCommonSalt: function (val) { // 获取盐值 let len = parseInt(val); @@ -122,13 +123,13 @@ export default { myDeviceInfo: 'BC0703A4-AFB0-4B51-9089-9B7487C0CC6E', // 公共请求设备信息 - myVxAppId: 'wx776e81ec7494232e', + myVxAppId: 'wx2fc33e1e61468928', // 测试环境 微信赤峰 appid wxff4cebaedbf4f886 // 微信赤峰 appid wx2af2bab90d433c86 // 黄石 appid wxa1a66cc7d263afe6 // 天水 appid wx776e81ec7494232e - myOrgId: '10092', // 归属地 赤峰id 10003 黄石 10079 + // myOrgId: sessionStorage.getItem('orgId'), // 归属地 赤峰id 10003 黄石 10079 myGetSign: function (objb) { // 获取签名 var compare = function (obj1, obj2) { -- libgit2 0.21.4