马宇豪
2025-02-19 102f2220365de7cd04d7cd07d8ff8ef03ca2c460
src/views/specialOperationsPay/singlePage/index.vue
@@ -286,6 +286,13 @@
    },
    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,
@@ -294,7 +301,9 @@
        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
@@ -308,7 +317,9 @@
        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