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,6 +552,16 @@ export default {
|
||||||
confirmSelection(row) {
|
confirmSelection(row) {
|
||||||
if (this.selectedRow) {
|
if (this.selectedRow) {
|
||||||
|
|
||||||
|
// 这里假设你有一个发起支付的方法,传入所选行的数据
|
||||||
|
// startPayment(this.selectedRow);
|
||||||
|
console.log(row)
|
||||||
|
window.open("http://localhost:9701/alipay/pay?ordersPrice=" + row.middlePrice)
|
||||||
|
this.$message.success('付款成功')
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
show(){
|
||||||
// 创建一个容器来展示数据
|
// 创建一个容器来展示数据
|
||||||
var container = document.getElementById('news-list');
|
var container = document.getElementById('news-list');
|
||||||
// 清空容器内容
|
// 清空容器内容
|
||||||
|
@ -575,18 +586,11 @@ export default {
|
||||||
resultDiv.innerHTML += '<p>Result: ' + jsonData.result.res + '</p>';
|
resultDiv.innerHTML += '<p>Result: ' + jsonData.result.res + '</p>';
|
||||||
} else {
|
} else {
|
||||||
resultDiv.innerHTML += '<p>Result information is not available.</p>';
|
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添加到容器中
|
// 将结果div添加到容器中
|
||||||
container.appendChild(resultDiv);
|
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