From 2e831991385aad03a82888596e3790c52a73ac0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E6=AC=A3=E6=82=A6?= <2289014031@qq.com> Date: Sun, 8 Sep 2024 21:20:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E7=BA=BF=E4=B8=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/market/apitest/index.vue | 16 +++++++++------- src/views/market/orders/index.vue | 2 +- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/views/market/apitest/index.vue b/src/views/market/apitest/index.vue index d446e68..3b83378 100644 --- a/src/views/market/apitest/index.vue +++ b/src/views/market/apitest/index.vue @@ -285,7 +285,7 @@
@@ -549,13 +549,7 @@ export default { }); }}, confirmSelection(row) { - this.dialogVisible1=false if (this.selectedRow) { - // 这里假设你有一个发起支付的方法,传入所选行的数据 - // startPayment(this.selectedRow); - console.log(row) - window.open("http://21.12.0.10:80/alipay/pay?middlePrice="+row.middlePrice) - this.$message.success('付款成功') // 创建一个容器来展示数据 var container = document.getElementById('news-list'); @@ -581,14 +575,22 @@ export default { resultDiv.innerHTML += 'Result: ' + jsonData.result.res + '
'; } else { resultDiv.innerHTML += 'Result information is not available.
'; + // 这里假设你有一个发起支付的方法,传入所选行的数据 + // startPayment(this.selectedRow); + console.log(row) + window.open("http://localhost:9701/alipay/pay?middlePrice="+row.middlePrice) + this.$message.success('付款成功') + } // 将结果div添加到容器中 container.appendChild(resultDiv); + } //测试次数-1 reducetestcount(this.myapi).then(response=>{}) } + }, //生命周期 - 创建完成(可以访问当前this实例)", created() { diff --git a/src/views/market/orders/index.vue b/src/views/market/orders/index.vue index 466d66c..968cabc 100644 --- a/src/views/market/orders/index.vue +++ b/src/views/market/orders/index.vue @@ -308,7 +308,7 @@ export default { pay(row){ console.log(row) - window.open("http://21.12.0.10:80/alipay/pay?productName="+row.productName +"&ordersNum="+row.ordersNum+"&ordersPrice="+row.ordersPrice) + window.open("http://localhost:9701/alipay/pay?productName="+row.productName +"&ordersNum="+row.ordersNum+"&ordersPrice="+row.ordersPrice) this.$message.success('付款成功')