diff --git a/src/views/market/apitest/index.vue b/src/views/market/apitest/index.vue index 083cf9b..c545c5b 100644 --- a/src/views/market/apitest/index.vue +++ b/src/views/market/apitest/index.vue @@ -19,15 +19,8 @@
- - 立即使用 - 续约 - - - 测试 - 立即申请 - - + 测试 + 立即申请
@@ -183,7 +176,7 @@ 取 消 - 确 定 + 确 定 @@ -331,6 +324,8 @@ export default {

Author: ${item.author_name}

URL: ${item.url}

+ + `; }); } else { @@ -344,7 +339,26 @@ export default { container.appendChild(resultDiv); }); - } + }, + handleEdit(row) { + this.selectedRow = row; + }, + confirmSelection(row) { + this.dialogVisible1=false + if (this.selectedRow) { + // 这里假设你有一个发起支付的方法,传入所选行的数据 + startPayment(this.selectedRow); + console.log(row) + window.open("http://localhost:9701/alipay/pay?middlePrice="+row.middlePrice) + this.$message.success('付款成功') + + this.dialogVisible1 = false; + + } else { + // 如果没有选择任何行,给出提示 + this.$message.warning('请先选择一项进行支付'); + } + }, }, //生命周期 - 创建完成(可以访问当前this实例)", created() {