diff --git a/src/views/market/apitest/index.vue b/src/views/market/apitest/index.vue index 50c4837..e119490 100644 --- a/src/views/market/apitest/index.vue +++ b/src/views/market/apitest/index.vue @@ -286,7 +286,7 @@ 取 消 - 确 定 + 确 定 @@ -552,42 +552,45 @@ export default { confirmSelection(row) { if (this.selectedRow) { - // 创建一个容器来展示数据 - var container = document.getElementById('news-list'); - // 清空容器内容 - container.innerHTML = ''; + // 这里假设你有一个发起支付的方法,传入所选行的数据 + // startPayment(this.selectedRow); + console.log(row) + window.open("http://localhost:9701/alipay/pay?ordersPrice=" + row.middlePrice) + this.$message.success('付款成功') + } - // 创建一个div来存放结果 - var resultDiv = document.createElement('div'); + }, - // 检查jsonData.reason - if (jsonData.reason !== undefined) { - // 移除reason中的感叹号(如果存在) - resultDiv.innerHTML += '

Reason: ' + jsonData.reason.replace(/!/g, '') + '

'; - } else { - resultDiv.innerHTML += '

Reason: Not available

'; - } - // 检查jsonData.result - if (jsonData.result !== undefined) { - // 添加result中的信息 - resultDiv.innerHTML += '

Real Name: ' + jsonData.result.realname + '

'; - resultDiv.innerHTML += '

ID Card: ' + jsonData.result.idcard + '

'; - resultDiv.innerHTML += '

Order ID: ' + jsonData.result.orderid + '

'; - 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('付款成功') +show(){ + // 创建一个容器来展示数据 + var container = document.getElementById('news-list'); + // 清空容器内容 + container.innerHTML = ''; - } + // 创建一个div来存放结果 + var resultDiv = document.createElement('div'); - // 将结果div添加到容器中 - container.appendChild(resultDiv); + // 检查jsonData.reason + if (jsonData.reason !== undefined) { + // 移除reason中的感叹号(如果存在) + resultDiv.innerHTML += '

Reason: ' + jsonData.reason.replace(/!/g, '') + '

'; + } else { + resultDiv.innerHTML += '

Reason: Not available

'; + } + // 检查jsonData.result + if (jsonData.result !== undefined) { + // 添加result中的信息 + resultDiv.innerHTML += '

Real Name: ' + jsonData.result.realname + '

'; + resultDiv.innerHTML += '

ID Card: ' + jsonData.result.idcard + '

'; + resultDiv.innerHTML += '

Order ID: ' + jsonData.result.orderid + '

'; + resultDiv.innerHTML += '

Result: ' + jsonData.result.res + '

'; + } else { + resultDiv.innerHTML += '

Result information is not available.

'; + } + + // 将结果div添加到容器中 + container.appendChild(resultDiv); - } //测试次数-1 reducetestcount(this.myapi).then(response=>{}) } diff --git a/src/views/market/orders/index.vue b/src/views/market/orders/index.vue index 968cabc..ebb691b 100644 --- a/src/views/market/orders/index.vue +++ b/src/views/market/orders/index.vue @@ -1,5 +1,5 @@ @@ -160,10 +161,11 @@ import { ordersDelete, pay, getOut, - updateByeExist + updateByeExist, updateByordersState1 } from '@/api/market/orders' import { diGui } from "@/api/market/orders"; import axios from 'axios' +import item from '@/layout/components/Sidebar/Item.vue' //这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等), @@ -217,7 +219,11 @@ export default { }; }, //计算属性 类似于data概念", - computed: {}, + computed: { + item() { + return item + } + }, //监控data中的数据变化", watch: {}, //方法集合", @@ -308,9 +314,13 @@ export default { pay(row){ console.log(row) - window.open("http://localhost:9701/alipay/pay?productName="+row.productName +"&ordersNum="+row.ordersNum+"&ordersPrice="+row.ordersPrice) + window.open("http://21.12.0.10:80/prod-api/market/alipay/pay?productName="+row.productName +"&ordersNum="+row.ordersNum+"&ordersPrice="+row.ordersPrice) this.$message.success('付款成功') - + updateByordersState1(ordersForm).then(response=>{ + alert(response.msg) + if (response.code==200){} + this.addordersoff=false + }) }, @@ -326,6 +336,7 @@ export default { this.$router.push({path:"/reclaim/index"}) } + // getOut(){ // axios.get('/market/orders/getOutAll'). // then(response =>{ diff --git a/src/views/market/workbench/index.vue b/src/views/market/workbench/index.vue index 48ccd8a..a83bafd 100644 --- a/src/views/market/workbench/index.vue +++ b/src/views/market/workbench/index.vue @@ -190,10 +190,10 @@ export default { insertmoney(moneyForm){ if (moneyForm.pay==1){ if (moneyForm.resource!=''){ - window.open("http://localhost:9701/alipay/pay?ordersPrice="+moneyForm.resource) + window.open("http://21.12.0.10:80/prod-api/market/alipay/pay?ordersPrice="+moneyForm.resource) this.$message.success('付款成功') }else { - window.open("http://localhost:9701/alipay/pay?ordersPrice="+moneyForm.resource) + window.open("http://21.12.0.10:80/prod-api/market/alipay/pay?ordersPrice="+moneyForm.resource) this.$message.success('付款成功') }