初始化

master
法外狂徒张三 2024-08-29 22:18:39 +08:00
parent f4bbf03b3d
commit 47aad76274
2 changed files with 11 additions and 7 deletions

View File

@ -4,7 +4,7 @@ import request from '@/utils/request'
export function pay(query) {
return request({
url: '/pay/alipay/pay',
method: 'post',
method: 'get',
params: query
})
}

View File

@ -59,7 +59,7 @@
<el-col :span="8" v-for="customer in apitypeList" v-if="apitypeList.length != 0&&activeNameL=='全部类型'||customer.sysLeixingpick==activeNameL">
<el-card class="box-card">
<div slot="header" class="clearfix">
<el-image :src="customer.sysTypes" @click="goToPaySuccess(customer)">
<el-image :src="customer.sysTypes" @click="gotoMaintained(customer)">
<div slot="placeholder" class="image-slot">
加载中<span class="dot">...</span>
</div>
@ -145,18 +145,22 @@ export default {
//
rules: {
},
pay:{
},
};
},
created() {
this.getList();
},
methods: {
async goToPaySuccess(customer){
//window.open(url,'_self')
window.open("http://10.0.2.1:80/alipay/pay?subject="+customer.sysIntro+"&traceNo="+Math.floor(Math.random() * 900000) + 100000+"&totalAmount="+customer.sysNumber,'_self')
gotoMaintained(customer){
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/alipay/pay?subject=${this.pay.subject}&traceNo=${this.pay.traceNo}&totalAmount=${this.pay.totalAmount}`;
window.open(url, '_self'); // URL
},
getType(activeNameL){
this.activeNameL=activeNameL
},