| | |
| | | //支付宝 |
| | | this.type = 1 |
| | | } |
| | | if(this.type == null){ |
| | | this.$message.error("请用微信或支付宝扫描二维码") |
| | | return; |
| | | } |
| | | // if(this.type == null){ |
| | | // this.$message.error("请用微信或支付宝扫描二维码") |
| | | // return; |
| | | // } |
| | | |
| | | var url = window.location.href; |
| | | var count = url.split('?').length-1; |
| | | if(count >1){ |
| | | this.code = this.getCodeFromUrl(url) |
| | | this.code2 = this.getCode2FromUrl(url) |
| | | window.location.href = "http://hesuancj.cn/#/index2?code="+this.code+"&state=STATE&code2="+this.code2 |
| | | let codeONE = this.getCodeFromUrl(url) |
| | | let codeTWO = this.getCode2FromUrl(url) |
| | | window.location.href = "http://hesuancj.cn/#/index2?code="+codeONE+"&state=STATE&code2="+codeTWO |
| | | } |
| | | var cs = url.split('?')[1]; |
| | | var cs_arr = cs.split('&'); |
| | |
| | | this.code2 = cs.code2; |
| | | this.code = cs.code; |
| | | if(this.code2 == null || this.code2 == ''){ |
| | | window.location.href = "http://hesuancj.cn/#/index2?code2="+this.code |
| | | this.$message({ |
| | | message: '1秒后自动跳转,请稍等', |
| | | type: 'success', |
| | | duration:1000, |
| | | }); |
| | | setTimeout(function(){window.location.href = "http://hesuancj.cn/#/index2?code2="+cs.code},1000); |
| | | return; |
| | | } |
| | | if(this.code != null && this.code != '') { |
| | | this.dialogVisible = true |
| | | }else { |
| | | this.dialogVisible = false |
| | | } |
| | | this.$byutil.postData(this, this.$systemconfig.basePath + '/ffzf/outpark/findByBarrierCode', {code2:cs.code2}, res => { |
| | | this.$byutil.postData(this, this.$systemconfig.basePath + '/ffzf/outpark/findByBarrierCode2', {code2:cs.code2}, res => { |
| | | this.statisticData = res.data; |
| | | this.outParkId = this.statisticData.id; |
| | | this.status3 = this.statisticData.status3; |
| | |
| | | }, |
| | | methods: { |
| | | pay(){ |
| | | console.log('code',this.code) |
| | | console.log('code2',this.code2) |
| | | this.payFlag = true; |
| | | this.payNowFlag = true; |
| | | if(this.status3==1){ |
| | |
| | | }, |
| | | queryOrder() { |
| | | this.$byutil.postData(this, this.$systemconfig.basePath + '/ffzf/outpark/getById', {id: this.outParkId}, res => { |
| | | if (res.code == 0) { |
| | | if (res.code === 0) { |
| | | let outpark = res.data |
| | | if(outpark.status == 1){ |
| | | if(outpark.status === 1){ |
| | | window.location.href = "http://hesuancj.cn/#/indexOk?code2="+this.code2 |
| | | return; |
| | | }else { |
| | | window.location.href = "http://hesuancj.cn/#/indexFail?code2="+this.code2 |
| | | return; |
| | | } |
| | | } |
| | | }) |