From 102f2220365de7cd04d7cd07d8ff8ef03ca2c460 Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期三, 19 二月 2025 08:49:38 +0800 Subject: [PATCH] 修改跳转和双向绑定 --- src/views/specialOperationsPay/singlePage/index.vue | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/src/views/specialOperationsPay/singlePage/index.vue b/src/views/specialOperationsPay/singlePage/index.vue index 73c25da..339f274 100644 --- a/src/views/specialOperationsPay/singlePage/index.vue +++ b/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 -- Gitblit v1.9.2