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('付款成功')