zhengkaixin 2 years ago
parent
commit
dbcdbb0b66
2 changed files with 53 additions and 4 deletions
  1. 17 2
      pages/searchPile/chargeProcess/charge.vue
  2. 36 2
      pages/user/finance/recharge.vue

+ 17 - 2
pages/searchPile/chargeProcess/charge.vue

@@ -584,8 +584,23 @@
 				
 			},
 			wxpy(){
-				
-				Pay.wxpay(this.submitForm_f).then((response) => {
+				var obj={
+					...this.submitForm_f
+				}
+				if(obj.amount){
+					debugger
+					for(var i in this.moneyList_f){
+						var item =this.moneyList_f[i]
+						if(item.rechargeAmount==obj.amount){
+							
+							delete obj.amount; 
+				
+							obj.chargingMarketingId=item.id
+							break
+						}
+					}
+				}
+				Pay.wxpay(obj).then((response) => {
 					
 					if(!response.result){		
 						uni.showToast({

+ 36 - 2
pages/user/finance/recharge.vue

@@ -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({