|
@@ -316,11 +316,28 @@
|
|
|
this.checked = !this.checked;
|
|
|
},
|
|
|
alpy(){
|
|
|
+ var obj={
|
|
|
+ ...this.submitForm
|
|
|
+ }
|
|
|
+ if(obj.amount){
|
|
|
+
|
|
|
+ for(var i in this.moneyList){
|
|
|
+ var item =this.moneyList[i]
|
|
|
+ if(item.rechargeAmount==obj.amount){
|
|
|
+
|
|
|
+ delete obj.amount;
|
|
|
+
|
|
|
+ obj.chargingMarketingId=item.id
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
uni.showLoading({
|
|
|
title: "加载中",
|
|
|
mask: true,
|
|
|
})
|
|
|
- Pay.alpay(this.submitForm).then((response) => {
|
|
|
+ Pay.alpay(obj).then((response) => {
|
|
|
|
|
|
let qrcode = new QRCode('qrcode', {
|
|
|
width: 200,
|
|
@@ -343,8 +360,25 @@
|
|
|
})
|
|
|
},
|
|
|
wxpy(){
|
|
|
+ var obj={
|
|
|
+ ...this.submitForm
|
|
|
+ }
|
|
|
+ if(obj.amount){
|
|
|
+
|
|
|
+ for(var i in this.moneyList){
|
|
|
+ var item =this.moneyList[i]
|
|
|
+ if(item.rechargeAmount==obj.amount){
|
|
|
+
|
|
|
+ delete obj.amount;
|
|
|
+
|
|
|
+ obj.chargingMarketingId=item.id
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //this.moneyList
|
|
|
|
|
|
- Pay.wxpay(this.submitForm).then((response) => {
|
|
|
+ Pay.wxpay(obj).then((response) => {
|
|
|
|
|
|
if(!response.result){
|
|
|
uni.showToast({
|