初始化
parent
143bfe15c0
commit
8a508e9097
|
@ -35,7 +35,19 @@
|
||||||
<span>{{firminfoForm.firmScore}}</span>
|
<span>{{firminfoForm.firmScore}}</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<button @click="topup()">充值</button>
|
|
||||||
|
<el-button @click="dialogFormVisible = true">充值</el-button>
|
||||||
|
|
||||||
|
<el-dialog title="充值" :visible.sync="dialogFormVisible">
|
||||||
|
<el-form :model="pay">
|
||||||
|
<el-form-item label="金额" >
|
||||||
|
<el-input v-model="pay.totalAmount" autocomplete="off"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<button @click="topup()">充值</button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -55,8 +67,9 @@ export default {
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
dialogFormVisible:false,
|
||||||
firminfoForm:{},
|
firminfoForm:{},
|
||||||
money:"",
|
pay:{},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
@ -69,8 +82,9 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
async topup(){
|
async topup(){
|
||||||
this.pay.totalAmount=this.money
|
this.pay.subject=this.firminfoForm.firmTem
|
||||||
const url = `http://10.0.2.1:8080/pay/alipay/pay?subject=充值&totalAmount=${this.pay.totalAmount}`;
|
console.log(this.pay)
|
||||||
|
const url = `http://10.0.2.1:8080/pay/alipay/pay?subject=${this.pay.subject}&totalAmount=${this.pay.totalAmount}`;
|
||||||
pay(this.pay).then(res => {
|
pay(this.pay).then(res => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
window.open(url, '_self');
|
window.open(url, '_self');
|
||||||
|
|
Loading…
Reference in New Issue