# Conflicts:
#	src/views/market/apitest/index.vue
#	src/views/market/orders/index.vue
wr
WeiRan 2024-09-09 21:06:35 +08:00
commit 4883f0834e
3 changed files with 53 additions and 39 deletions

View File

@ -286,7 +286,7 @@
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible1 = false"> </el-button>
<el-button type="primary" @click=" confirmSelection"> </el-button>
<el-button type="primary" @click=" confirmSelection(row)"> </el-button>
</span>
</el-dialog>
@ -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 += '<h2>Reason: ' + jsonData.reason.replace(/!/g, '') + '</h2>';
} else {
resultDiv.innerHTML += '<h2>Reason: Not available</h2>';
}
// jsonData.result
if (jsonData.result !== undefined) {
// result
resultDiv.innerHTML += '<p>Real Name: ' + jsonData.result.realname + '</p>';
resultDiv.innerHTML += '<p>ID Card: ' + jsonData.result.idcard + '</p>';
resultDiv.innerHTML += '<p>Order ID: ' + jsonData.result.orderid + '</p>';
resultDiv.innerHTML += '<p>Result: ' + jsonData.result.res + '</p>';
} else {
resultDiv.innerHTML += '<p>Result information is not available.</p>';
//
// 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 += '<h2>Reason: ' + jsonData.reason.replace(/!/g, '') + '</h2>';
} else {
resultDiv.innerHTML += '<h2>Reason: Not available</h2>';
}
// jsonData.result
if (jsonData.result !== undefined) {
// result
resultDiv.innerHTML += '<p>Real Name: ' + jsonData.result.realname + '</p>';
resultDiv.innerHTML += '<p>ID Card: ' + jsonData.result.idcard + '</p>';
resultDiv.innerHTML += '<p>Order ID: ' + jsonData.result.orderid + '</p>';
resultDiv.innerHTML += '<p>Result: ' + jsonData.result.res + '</p>';
} else {
resultDiv.innerHTML += '<p>Result information is not available.</p>';
}
// div
container.appendChild(resultDiv);
}
//-1
reducetestcount(this.myapi).then(response=>{})
}

View File

@ -1,5 +1,5 @@
<template>
<div>
<div >
<el-card class="box-card" style="width: 94%;transform: translateX(3%);margin-top: 30px">
<div slot="header" class="clearfix">
<span>筛选搜索</span>
@ -97,6 +97,7 @@
<el-button
type="primary"
size="small"
v-if="scope.row.ordersState !== 1"
@click="pay(scope.row)" >支付</el-button>
<!-- v-if="scope.row.status === '待支付'"-->
</template>
@ -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'
//jsjsjson,
@ -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 =>{

View File

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