From 509f1d71c91242b11fd287cfcdeafe3d19b2d807 Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: Tue, 04 Mar 2025 11:11:46 +0800
Subject: [PATCH] 新增
---
src/views/specialOperationsPay/singlePage/index.vue | 18 ++++++++++++++++--
1 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/src/views/specialOperationsPay/singlePage/index.vue b/src/views/specialOperationsPay/singlePage/index.vue
index 73c25da..010e7df 100644
--- a/src/views/specialOperationsPay/singlePage/index.vue
+++ b/src/views/specialOperationsPay/singlePage/index.vue
@@ -65,7 +65,7 @@
</div>
<div>总计应缴:<span class="cardCont">{{ item.amount }}元</span></div>
<el-button style="margin-top: 5px" type="primary" size="small" v-if="item.payStatus == 0" @click="goPay(item)">去缴费</el-button>
- <el-button style="margin-top: 5px" type="success" size="small" v-if="item.payStatus == 1" @click="checkTicket(item)">查看票据</el-button>
+ <el-button style="margin-top: 5px" type="success" size="small" v-if="item.payStatus == 1" @click="checkTicket()">查看票据</el-button>
</div>
</div>
<div v-else class="feeList">
@@ -87,7 +87,7 @@
</div>
<div>总计应缴:<span class="cardCont" v-if="item.coalPays">{{ item.coalPays.amount }}元</span></div>
<el-button style="margin-top: 5px" type="primary" size="small" v-if="item.payStatus == 0" @click="goPay(item)">去缴费</el-button>
- <el-button style="margin-top: 5px" type="success" size="small" v-if="item.payStatus == 1" @click="checkTicket(item)">查看票据</el-button>
+ <el-button style="margin-top: 5px" type="success" size="small" v-if="item.payStatus == 1" @click="checkTicket()">查看票据</el-button>
</div>
</div>
</div>
@@ -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
@@ -316,6 +327,9 @@
}
}
},
+ checkTicket(){
+ window.open('http://finpt.xjcz.gov.cn/fs-public/index.do')
+ },
resetDataForm() {
this.dataForm = {
}
--
Gitblit v1.9.2