初始化

master
法外狂徒张三 2024-08-31 08:40:40 +08:00
parent d54f4d3a47
commit eb27318aa1
1 changed files with 3 additions and 0 deletions

View File

@ -103,6 +103,7 @@
<script>
import { listApitype, getApitype, delApitype, addApitype, updateApitype } from "@/api/market/apitype";
import {pay} from "../../../api/market/apitype";
import * as url from "url";
export default {
name: "Apitype",
@ -159,8 +160,10 @@ 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:81/alipay/pay?subject=${this.pay.subject}&traceNo=${this.pay.traceNo}&totalAmount=${this.pay.totalAmount}`;
pay(this.pay).then(res => {
console.log(res);
window.open(url, '_self');
})
},
getType(activeNameL){