初始化
parent
78bf1d4deb
commit
35bf0dfb34
|
@ -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
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 查询接口列表
|
// 查询接口列表
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue