初始化

master
法外狂徒张三 2024-08-30 18:57:56 +08:00
parent 78bf1d4deb
commit 35bf0dfb34
2 changed files with 11 additions and 5 deletions

View File

@ -1,11 +1,11 @@
import request from '@/utils/request'
export function pay(query) {
export function pay(data) {
return request({
url: '/pay/alipay/pay',
method: 'get',
params: query
method: 'poat',
params: data
})
}
// 查询接口列表

View File

@ -159,8 +159,14 @@ export default {
this.pay.subject=customer.sysIntro
this.pay.traceNo=Math.floor(Math.random() * 900000) + 100000
this.pay.totalAmount=customer.sysNumber
const url = `http://47.116.173.119:80/pay/alipay/pay?traceNo=${this.pay.traceNo}`;
window.open(url, '_self'); // URL
this.pay.returnUrl = `http://47.116.173.119:80/pay/alipay/pay?subject=${this.pay.subject}&traceNo=${this.pay.traceNo}&totalAmount=${this.pay.totalAmount}`;
pay(this.pay).then(res => {
if(res.code==200){
window.location.href=res.data
}else{
this.$message.error(res.msg)
}
})
},
getType(activeNameL){
this.activeNameL=activeNameL