Merge branch 'master' of https://gitea.qinmian.online/a_bazu/cloud-web into wr
# Conflicts: # src/views/market/apitest/index.vue # src/views/market/orders/index.vuewr
commit
4883f0834e
|
@ -286,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>
|
||||||
|
|
||||||
|
@ -552,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');
|
||||||
// 清空容器内容
|
// 清空容器内容
|
||||||
|
@ -576,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=>{})
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div >
|
||||||
<el-card class="box-card" style="width: 94%;transform: translateX(3%);margin-top: 30px">
|
<el-card class="box-card" style="width: 94%;transform: translateX(3%);margin-top: 30px">
|
||||||
<div slot="header" class="clearfix">
|
<div slot="header" class="clearfix">
|
||||||
<span>筛选搜索</span>
|
<span>筛选搜索</span>
|
||||||
|
@ -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,10 +161,11 @@ 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'
|
||||||
|
import item from '@/layout/components/Sidebar/Item.vue'
|
||||||
|
|
||||||
|
|
||||||
//这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等),
|
//这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等),
|
||||||
|
@ -217,7 +219,11 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
//计算属性 类似于data概念",
|
//计算属性 类似于data概念",
|
||||||
computed: {},
|
computed: {
|
||||||
|
item() {
|
||||||
|
return item
|
||||||
|
}
|
||||||
|
},
|
||||||
//监控data中的数据变化",
|
//监控data中的数据变化",
|
||||||
watch: {},
|
watch: {},
|
||||||
//方法集合",
|
//方法集合",
|
||||||
|
@ -308,9 +314,13 @@ export default {
|
||||||
|
|
||||||
pay(row){
|
pay(row){
|
||||||
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://21.12.0.10:80/prod-api/market/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
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
@ -326,6 +336,7 @@ export default {
|
||||||
this.$router.push({path:"/reclaim/index"})
|
this.$router.push({path:"/reclaim/index"})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// getOut(){
|
// getOut(){
|
||||||
// axios.get('/market/orders/getOutAll').
|
// axios.get('/market/orders/getOutAll').
|
||||||
// then(response =>{
|
// then(response =>{
|
||||||
|
|
|
@ -190,10 +190,10 @@ export default {
|
||||||
insertmoney(moneyForm){
|
insertmoney(moneyForm){
|
||||||
if (moneyForm.pay==1){
|
if (moneyForm.pay==1){
|
||||||
if (moneyForm.resource!=''){
|
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('付款成功')
|
this.$message.success('付款成功')
|
||||||
}else {
|
}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('付款成功')
|
this.$message.success('付款成功')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue