async onSubmit(event) {
event.preventDefault()
this.sentform.householder = this.form.name
this.sentform.Amount = parseInt(this.form.bill)
this.sentform.OrderNo = this.form.yyyymm
this.sentform.PayType = this.form.selected
axios.defaults.headers.common['Access-Control-Allow-Origin'] = '*';
const response =await axios.post(`${this.sinopac_api}`+"sinopacApi_Order", this.sentform)
let responseResult=JSON.stringify(response.data["decrypt_dist"])
let atmParam= JSON.stringify(response.data["decrypt_dist"]["ATMParam"])
console.log(responseResult)
console.log(atmParam)
console.log(JSON.parse(responseResult).OrderNo)
console.log(JSON.parse(atmParam).AtmPayNo)
},
alert("银行代码 : 807 汇款帐号 : "+ JSON.parse(atmParam).AtmPayNo+" 汇款金额 : "+ JSON.parse(responseResult).Amount/100)
<b-card class="mt-3" header="订单资讯">
<span class="order info"> {{orderinfo }}</span>
</b-card>
script增加资讯
this.orderinfo = "银行代码 : 807 汇款帐号 : "+ JSON.parse(atmParam).AtmPayNo+" 汇款金额 : "+ JSON.parse(responseResult).Amount/100 ;
<<: Day24 Modules & Namespaces
>>: Day23 Plugin 从零开始到上架 - ActivityAware 介绍
正如Day 04 - Spring Boot 的前世今生所说,Spring Boot 为了简化设定提...
昨天,我们把基尼系数算完,那今天,我打算建立bagging算法函数: 对於有n个资料的资料集,我们取...
SharedPreference常被使用於资料储存,很适合做一些简单的资料存取 先配置按钮-因为是要...
今天我们来学习一下流程控制跟一些基本运算子吧~ 布林值:用来表达true或false的资料型态 宣告...
昨天说的是单一档案上传,如果要多个档案上传的话... 建立新栏位 资料表先新增可以储存一个阵列的栏位...