| | |
| | | }, |
| | | async payBill(){ |
| | | this.payLoading = true |
| | | let device = 1 |
| | | const userAgent = window.navigator.userAgent |
| | | if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(userAgent)) { |
| | | device = 2 |
| | | } else { |
| | | device = 1 |
| | | } |
| | | if(this.dataForm.type == 1){ |
| | | const query = { |
| | | id: this.detailInfo.nonCoalStudentId, |
| | |
| | | const res = await nonCoalPersonPay(query) |
| | | if(res.code == 200) { |
| | | this.payLoading = false |
| | | window.open(`http://finpt.xjcz.gov.cn/fs-public/billQuery/findByOrderId.do?orderId=${res.msg}&deviceType=${device}`) |
| | | }else{ |
| | | this.payLoading = false |
| | | this.$message({ |
| | | type:'warning', |
| | | message: res.msg |
| | |
| | | const res = await coalPersonPay(query) |
| | | if(res.code == 200) { |
| | | this.payLoading = false |
| | | window.open(`http://finpt.xjcz.gov.cn/fs-public/billQuery/findByOrderId.do?orderId=${res.msg}&deviceType=${device}`) |
| | | }else{ |
| | | this.payLoading = false |
| | | this.$message({ |
| | | type:'warning', |
| | | message: res.msg |