wr
parent
5f117474af
commit
050afe93a0
|
@ -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
|
||||||
|
|
|
@ -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=>{})
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue