| | |
| | | var count = url.split('?').length-1; |
| | | if(count >1){ //获取用户信息后跳回来本页面 |
| | | let data = this.getCodeFromUrl(url) |
| | | // window.location.href = "http://192.168.0.8:8082/#/IndexXTYH39?code="+data.code+"&state=STATE&code2="+data.code2 |
| | | //window.location.href = "http://localhost:8082/#/IndexXTYH39?code="+data.code+"&state=STATE&code2="+data.code2 |
| | | window.location.href = `http://hesuancj.cn/#/index2?code=${encodeURIComponent(data.code)}&state=STATE&code2=${encodeURIComponent(data.code2)}` |
| | | return; |
| | | } |
| | |
| | | // duration:1000, |
| | | // }); |
| | | window.location.href = "http://hesuancj.cn/#/index2?code2="+cs.code //正式 |
| | | // window.location.href = "http://192.168.0.8:8082/#/IndexXTYH39?code2="+cs.code //测试用的 |
| | | // window.location.href = "http://localhost:8082/#/IndexXTYH39?code2="+cs.code //测试用的 |
| | | //window.location.href = "http://60.0.121.40:8889/#/IndexXTYH39?code2="+cs.code //测试用的 |
| | | return; |
| | | } |
| | |
| | | this.dataLoading = false |
| | | this.payFlag = false |
| | | if(!this.statisticData.enterTime) { //没有入场 |
| | | this.isShowjiaofei = false |
| | | this.pipaiCarNumShow = true //匹配区域显示 |
| | | this.$byutil.getData(this,this.$systemconfig.basePath + '/ffzf/outpark/getLikeCar',{outParkId:this.outParkId},res => { |
| | | if(res.code == 0) { |
| | | if(res.data.length > 0) { |
| | | this.moreCarNumData = res.data.map(item => { |
| | | return { |
| | | ...item, |
| | | createTime: this.$moment(item.createTime).format('YYYY-MM-DD HH:mm:ss') |
| | | } |
| | | }) |
| | | }else { |
| | | this.tishiDialogVisiable = true //入场信息 异常提示 |
| | | if(this.statisticData.carNo =='_无_' || this.statisticData.carNo=='无牌车'){ |
| | | this.isShowjiaofei = false |
| | | }else { |
| | | this.isShowjiaofei = false |
| | | this.pipaiCarNumShow = true //匹配区域显示 |
| | | this.$byutil.getData(this,this.$systemconfig.basePath + '/ffzf/outpark/getLikeCar',{outParkId:this.outParkId},res => { |
| | | if(res.code == 0) { |
| | | if(res.data.length > 0) { |
| | | this.moreCarNumData = res.data.map(item => { |
| | | return { |
| | | ...item, |
| | | createTime: this.$moment(item.createTime).format('YYYY-MM-DD HH:mm:ss') |
| | | } |
| | | }) |
| | | }else { |
| | | this.tishiDialogVisiable = true //入场信息 异常提示 |
| | | } |
| | | } |
| | | } |
| | | }) |
| | | |
| | | }) |
| | | } |
| | | }else if(this.statisticData.enterTime && (!this.statisticData.price || this.statisticData.price == 0)) { //金额为0 |
| | | this.isShowjiaofei = false |
| | | if(!this.statisticData.carNo.includes('无')) { |
| | | if(this.statisticData.carNo !='_无_' && this.statisticData.carNo!='无牌车') { |
| | | this.tishiDialogVisiable2 = true |
| | | } |
| | | }else { |
| | |
| | | } |
| | | }, |
| | | noCarOut(){ |
| | | if(this.oldCarNo == '无车牌'){ |
| | | if(this.oldCarNo == '无牌车' || this.oldCarNo == '_无_'){ |
| | | if(this.carNo){ |
| | | this.$byutil.postData(this, this.$systemconfig.basePath + '/ffzf/car/outParkByPhone', {code2:this.code2,carNo:this.carNo}, res => { |
| | | if(res.code===0){ |
| | | this.statisticData = res.data; |
| | | this.outParkId = this.statisticData.id; |
| | | this.isShowjiaofei = true |
| | | this.$message({ |
| | | message: '查询成功', |
| | | type: 'success', |
| | | }); |
| | | }else { |
| | | this.$message({ |
| | | message: res.message, |
| | | type: 'error', |
| | | }); |
| | | } |
| | | }) |
| | | }else{ |