wr
Aaaaaaaa 2024-09-09 08:40:13 +08:00
parent 5f117474af
commit 050afe93a0
3 changed files with 46 additions and 34 deletions

View File

@ -71,6 +71,9 @@ export function getOut(){
export function updateByordersState1(data){ export function updateByordersState1(data){
return request({ return request({
url:"/market/orders/updateByordersState1", url:"/market/orders/updateByordersState1",
method: "POST", method: "POST",
data: data data: data

View File

@ -241,6 +241,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-popover trigger="hover" placement="top"> <el-popover trigger="hover" placement="top">
<div slot="reference" class="name-wrapper"> <div slot="reference" class="name-wrapper">
<el-button >包年</el-button>
<el-tag size="medium">{{ scope.row.productSpecificationName }}</el-tag> <el-tag size="medium">{{ scope.row.productSpecificationName }}</el-tag>
</div> </div>
</el-popover> </el-popover>
@ -285,7 +286,7 @@
</el-form> </el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible1 = false"> </el-button> <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> </span>
</el-dialog> </el-dialog>
@ -551,42 +552,45 @@ export default {
confirmSelection(row) { confirmSelection(row) {
if (this.selectedRow) { if (this.selectedRow) {
// //
var container = document.getElementById('news-list'); // startPayment(this.selectedRow);
// console.log(row)
container.innerHTML = ''; window.open("http://localhost:9701/alipay/pay?ordersPrice=" + row.middlePrice)
this.$message.success('付款成功')
}
// div },
var resultDiv = document.createElement('div');
// jsonData.reason show(){
if (jsonData.reason !== undefined) { //
// reason var container = document.getElementById('news-list');
resultDiv.innerHTML += '<h2>Reason: ' + jsonData.reason.replace(/!/g, '') + '</h2>'; //
} else { container.innerHTML = '';
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('付款成功')
} // div
var resultDiv = document.createElement('div');
// div // jsonData.reason
container.appendChild(resultDiv); 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 //-1
reducetestcount(this.myapi).then(response=>{}) reducetestcount(this.myapi).then(response=>{})
} }

View File

@ -97,6 +97,7 @@
<el-button <el-button
type="primary" type="primary"
size="small" size="small"
v-if="scope.row.ordersState !== 1"
@click="pay(scope.row)" >支付</el-button> @click="pay(scope.row)" >支付</el-button>
<!-- v-if="scope.row.status === '待支付'"--> <!-- v-if="scope.row.status === '待支付'"-->
</template> </template>
@ -160,7 +161,7 @@ import {
ordersDelete, ordersDelete,
pay, pay,
getOut, getOut,
updateByeExist updateByeExist, updateByordersState1
} from '@/api/market/orders' } from '@/api/market/orders'
import { diGui } from "@/api/market/orders"; import { diGui } from "@/api/market/orders";
import axios from 'axios' import axios from 'axios'
@ -310,7 +311,11 @@ export default {
console.log(row) console.log(row)
window.open("http://localhost:9701/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('付款成功') this.$message.success('付款成功')
updateByordersState1(ordersForm).then(response=>{
alert(response.msg)
if (response.code==200){}
this.addordersoff=false
})
}, },