初始化

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' import request from '@/utils/request'
export function pay(query) { export function pay(data) {
return request({ return request({
url: '/pay/alipay/pay', url: '/pay/alipay/pay',
method: 'get', method: 'poat',
params: query params: data
}) })
} }
// 查询接口列表 // 查询接口列表

View File

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