Commit fd7204cc15cfbf63843d8d7a473b586471cb7faf
1 parent
baa9e35e
orgid
Showing
2 changed files
with
4 additions
and
88 deletions
src/components/orderPay.vue
@@ -136,7 +136,7 @@ export default { | @@ -136,7 +136,7 @@ export default { | ||
136 | aliParams.payType = 1;// 1:支付宝 2:微信 3:银联 10:H5 4微信公众号 | 136 | aliParams.payType = 1;// 1:支付宝 2:微信 3:银联 10:H5 4微信公众号 |
137 | aliParams.terminalSource = 7;//请求端来源 1: 任你停 2:pda 3:微信公共号 7:H5扫码 10页面支付 | 137 | aliParams.terminalSource = 7;//请求端来源 1: 任你停 2:pda 3:微信公共号 7:H5扫码 10页面支付 |
138 | aliParams.paySrcType = this.paySrcType;//101停车支付 | 138 | aliParams.paySrcType = this.paySrcType;//101停车支付 |
139 | - aliParams.orgId = this.$utils.myOrgId | 139 | + aliParams.orgId = sessionStorage.getItem('orgId') |
140 | aliParams.backType = 2 | 140 | aliParams.backType = 2 |
141 | aliParams.backDeveloperCode = this.backDeveloperCode | 141 | aliParams.backDeveloperCode = this.backDeveloperCode |
142 | aliParams.recordArreaInfos = JSON.stringify(this.orderId); | 142 | aliParams.recordArreaInfos = JSON.stringify(this.orderId); |
@@ -169,90 +169,6 @@ export default { | @@ -169,90 +169,6 @@ export default { | ||
169 | }) | 169 | }) |
170 | } | 170 | } |
171 | 171 | ||
172 | - console.log(this.clientBrowser) | ||
173 | - if (this.clientBrowser == '立即') { // 农行支付 | ||
174 | - var bankabcParams = {}; | ||
175 | - bankabcParams.orderId = this.orderId; | ||
176 | - bankabcParams.carNumber = this.carNumber; | ||
177 | - bankabcParams.payType = 34;// 1:支付宝 2:微信 3:银联 10:H5 4微信公众号 34 农行 | ||
178 | - bankabcParams.terminalSource = 7;//请求端来源 1: 任你停 2:pda 3:微信公共号 7:H5扫码 10页面支付 | ||
179 | - bankabcParams.paySrcType = this.paySrcType;//101停车支付 | ||
180 | - bankabcParams.orgId = this.$utils.myOrgId | ||
181 | - bankabcParams.backType = 2 | ||
182 | - bankabcParams.PaymentLinkType = 1 | ||
183 | - bankabcParams.backDeveloperCode = this.backDeveloperCode | ||
184 | - bankabcParams.recordArreaInfos = JSON.stringify(this.orderId); | ||
185 | - console.log(bankabcParams) | ||
186 | - bankH5Pay(bankabcParams).then(response => { | ||
187 | - console.log(response) | ||
188 | - if(response.code=='0'){ | ||
189 | - let res = response.data.PaymentURL | ||
190 | - let _token = res.split('TOKEN=')[1] | ||
191 | - let OrderNo = response.data.OrderNo | ||
192 | - localStorage.setItem('OrderNum',OrderNo) | ||
193 | - | ||
194 | - | ||
195 | - if(window.navigator.userAgent.indexOf('Bankabc/Portal') > -1) { | ||
196 | - // alert('当前页面在新容器'); | ||
197 | - AlipayJSBridge.call('startApp',{ | ||
198 | - appId:'30603024', // 固定值 | ||
199 | - param:{ | ||
200 | - type:"3", // 3: 掌银内H5页面, | ||
201 | - tokenId:_token, //商户传过来的tokenId | ||
202 | - paySystem:"", //商户传过来的paySystem, 没有则传空字符串 | ||
203 | - payType:"1111", //商户传过来的payType,没有则传'1111' | ||
204 | - webviewURL:"https://wxgzh.renniting.cn/wechatwuxi/Chifeng/TEST/sweeping_payment/codepay/index.html#/payResult", //商户传过来的回跳地址 | ||
205 | - remark:"其他参数", //扩展备用 | ||
206 | - showProgress:'NO', | ||
207 | - backBehavior:'back' | ||
208 | - }, | ||
209 | - },function(result){ | ||
210 | - | ||
211 | - }); | ||
212 | - } else { | ||
213 | - // alert('当前页面在旧容器'); | ||
214 | - // 旧支付方式 | ||
215 | - window.location.href = 'https://www.abchina.com/luascript/mobilePayLua/'+ encodeURI('{"return":{"tokenID":"'+_token+'","backURL":"https://wxgzh.renniting.cn/wechatwuxi/Chifeng/TEST/sweeping_payment/codepay/index.html#/payResult","payType":""}}'); | ||
216 | - | ||
217 | - } | ||
218 | - }else if(response.code == 1002){//其他情况如【该卡号场内已存在】 | ||
219 | - console.log(response.message); | ||
220 | - MessageBox.confirm('', { | ||
221 | - message: response.message, | ||
222 | - title: '温馨提示', | ||
223 | - showCancelButton:false, | ||
224 | - confirmButtonText: '确定', | ||
225 | - }).then(action => { | ||
226 | - if (action == 'confirm') { //确认的回调 | ||
227 | - console.log('确定'); | ||
228 | - this.$router.go(-1) | ||
229 | - } | ||
230 | - }).catch(err => { | ||
231 | - if (err == 'cancel') { //取消的回调 | ||
232 | - console.log('取消'); | ||
233 | - } | ||
234 | - }); | ||
235 | - }else{ | ||
236 | - alert('支付失败') | ||
237 | - } | ||
238 | - | ||
239 | - | ||
240 | - // console.log(_token) | ||
241 | - // let _data = 'method=invokePayFromBrowser&tokenID='+_token | ||
242 | - // let cryData = CryptoJS.encrypt(_data, 'G9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvM3', 'EkpTEA3FbZFGGq8Y') | ||
243 | - // | ||
244 | - // let baseCRY = Base64.encode(cryData) | ||
245 | - // console.log(baseCRY) | ||
246 | - // window.location.href='bankabc:' + encodeURIComponent('{"method":"invokePayFromBrowser","param":'+baseCRY+'}') | ||
247 | - // // 即为加密后的数据。其中paramsEncode是需要加密的数据、 | ||
248 | - // // keyStr是加密时使用的key,与服务端一致、hash是偏移量,是一个随机生成的16位字符串。 | ||
249 | - }) | ||
250 | - } | ||
251 | - | ||
252 | - | ||
253 | - | ||
254 | - | ||
255 | - | ||
256 | 172 | ||
257 | 173 | ||
258 | if (this.clientBrowser == '微信') { // 微信支付 | 174 | if (this.clientBrowser == '微信') { // 微信支付 |
@@ -284,8 +200,8 @@ export default { | @@ -284,8 +200,8 @@ export default { | ||
284 | let vm = this | 200 | let vm = this |
285 | var wxParams = {}; | 201 | var wxParams = {}; |
286 | wxParams.orderId = orderIdData; | 202 | wxParams.orderId = orderIdData; |
287 | - wxParams.backType = 2, | ||
288 | - wxParams.orgId = this.$utils.myOrgId, | 203 | + wxParams.backType = 2 |
204 | + wxParams.orgId = sessionStorage.getItem('orgId') | ||
289 | wxParams.payType = 4;// 1:支付宝 2:微信 3:银联 10:H5 4微信公众号 | 205 | wxParams.payType = 4;// 1:支付宝 2:微信 3:银联 10:H5 4微信公众号 |
290 | wxParams.terminalSource = 7;//请求端来源 1: 任你停 2:pda 3:微信公共号 7:H5扫码 10页面支付 | 206 | wxParams.terminalSource = 7;//请求端来源 1: 任你停 2:pda 3:微信公共号 7:H5扫码 10页面支付 |
291 | wxParams.carNumber = this.carNumber; | 207 | wxParams.carNumber = this.carNumber; |
src/utils/utils.js
@@ -129,7 +129,7 @@ export default { | @@ -129,7 +129,7 @@ export default { | ||
129 | // 黄石 appid wxa1a66cc7d263afe6 | 129 | // 黄石 appid wxa1a66cc7d263afe6 |
130 | // 天水 appid wx776e81ec7494232e | 130 | // 天水 appid wx776e81ec7494232e |
131 | 131 | ||
132 | - // myOrgId: sessionStorage.getItem('orgId'), // 归属地 赤峰id 10003 黄石 10079 | 132 | + myOrgId: sessionStorage.getItem('orgId'), // 归属地 赤峰id 10003 黄石 10079 |
133 | 133 | ||
134 | myGetSign: function (objb) { // 获取签名 | 134 | myGetSign: function (objb) { // 获取签名 |
135 | var compare = function (obj1, obj2) { | 135 | var compare = function (obj1, obj2) { |