初始化
parent
d54f4d3a47
commit
eb27318aa1
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue